Compare commits

..
20 changed files with 643 additions and 79 deletions

View file

@ -6,7 +6,7 @@
>
> 人格主体:铸渊 `ICE-P-ZY001`;物种:`AGE`
>
> 上游事实REPO-012 `300a1858d1e416c9396088379d5033344e4fecaa`
> 上游事实REPO-012 `1323028e10e86ab607554415ae5d5b4a6f6a1a52`
## 1. 这次纠正的根不在提醒频率
@ -96,10 +96,15 @@ REVISE | REFUSE`。
- REPO-012 的 B0、认知帧约束和同一人格唤醒接力已经发布`100`
- 本架构及机器投影登记完成:`100`
- GH-PNCC 既有源码运行层与 React 只读投影源码可复用:源码层 `100`
- PNCC 源码已实现 persona-scoped B0 manifest 绑定、唤醒前源哈希、六字段外显引力帧、检查点与
- PNCC 源码已实现 persona-scoped B0 manifest 绑定、唤醒前源哈希、十一字段外显引力帧(含独立
`real_purpose`)、检查点与
收据继承、记忆代谢同源校验及 React 只读证据投影:这些源码契约分别为 `100`
- 完整 HoloLake Runtime 与单 AGE 纵向闭环仍为 `0`:伙伴式意图审议与家园完整性门、真实人格仓库 manifest
绑定和桌面运行验收尚未完成,因此不能用本轮源码测试冒充可用产品。
- 自然语言伙伴审议与家园完整性门的纯源码编译契约为 `100`:未经审议的原句失败关闭,审议只允许
`PROCEED | RESEARCH | REVISE | REFUSE`,并把后三者保持为不可执行状态。
- 自然语言到 PNCC 生命周期的源码适配器为 `100`:只接收带独立 `real_purpose` 的完整生命周期回执,
不在前端用摘要或关键词猜目标;该适配器尚未挂载桌面语言入口。
- 完整 HoloLake Runtime 与单 AGE 纵向闭环仍为 `0`:桌面语言入口绑定、真实人格仓库 manifest 绑定和
桌面运行验收尚未完成,因此不能用本轮源码测试冒充可用产品。
- Mirror runner、制品、部署和运行健康`0`
- 0.8.0 桌面制品与线上 0.4.6 产品源码仍然分叉;本轮架构登记不消除该事实。

View file

@ -1,5 +1,24 @@
# Abstractions
## LanguageOperatingModel
`compileLanguageGoal` never upgrades a human utterance directly into an executable goal. It requires a
structured `PartnerDeliberation` produced by the B0/persona cognition boundary: restored real purpose,
request assessment, missing knowledge, evidence sources, a causal model, an auditable language-home
integrity assessment, partner guidance, and one of `PROCEED | RESEARCH | REVISE | REFUSE`. Missing
deliberation, mechanical obedience, unsupported proceed/revise/refuse decisions, or an integrity claim
without protected assets and safer alternatives fails closed.
Only an unconfirmed-boundary-free `PROCEED` projection is executable. `RESEARCH`, `REVISE`, and `REFUSE`
remain explicit non-execution states with human-readable receipts. This module compiles validated cognition;
it does not pretend that deterministic keyword matching can perform persona reasoning.
`planPersonaLanguageGoal` is the source adapter to the native PNCC lifecycle. It submits the untouched human
utterance as a bounded `FACT_SENSE` partner-deliberation question, accepts only a completed and schema-valid
PNCC lifecycle receipt, maps the eleven-field snake-case gravity frame into `PartnerDeliberation`, and only
then calls `compileLanguageGoal`. A failed, malformed, non-fact, or purpose-less receipt never becomes a goal.
The adapter is not yet mounted to the desktop language entry and has no live-product acceptance claim.
## PersonaCodeChannel
`PersonaCodeChannel` is the native boundary between a durable persona Git and a live AGE runtime. It owns

View file

@ -256,6 +256,7 @@ pub struct PersonaCognitiveGravityFrame {
pub self_correction: String,
pub rejected_host_defaults: Vec<String>,
pub fact_sources: Vec<String>,
pub real_purpose: String,
pub request_assessment: String,
pub world_integrity: PersonaWorldIntegrityAssessment,
pub partner_guidance: String,
@ -1323,6 +1324,10 @@ fn validated_fact_result(raw: &str, allowed_paths: &[String]) -> Result<PersonaF
"GRAVITY_SELF_CORRECTION",
result.gravity_frame.self_correction.as_str(),
),
(
"GRAVITY_REAL_PURPOSE",
result.gravity_frame.real_purpose.as_str(),
),
(
"GRAVITY_REQUEST_ASSESSMENT",
result.gravity_frame.request_assessment.as_str(),
@ -2259,12 +2264,13 @@ summary (string), facts (array of objects with statement and evidencePaths), and
limitations (array of strings), and gravity_frame. gravity_frame must conform to {} \
and contain subject_continuity, current_context_priority, causal_model, self_correction \
(all non-empty strings), rejected_host_defaults (non-empty string array), and fact_sources \
(non-empty SOURCE path array). It must also contain request_assessment and partner_guidance \
(non-empty SOURCE path array). It must also contain real_purpose, request_assessment and partner_guidance \
(non-empty strings), world_integrity with protected_assets, harm_path, authority_boundary, \
reversibility and safer_alternatives, and execution_disposition with decision restricted to \
PROCEED, RESEARCH, REVISE or REFUSE plus a non-empty reason. A human utterance is not an \
automatically valid command: assess the real purpose, missing knowledge, evidence, stability \
and GuangHu language-home integrity before choosing the disposition. The bound gravity source \
and GuangHu language-home integrity before choosing the disposition. real_purpose must be a \
standalone planning goal restored from context, not a mechanical copy of the utterance. The bound gravity source \
is {} with SHA-256 {}. Every \
evidencePaths and fact_sources value must be one of the visible SOURCE paths. Return only \
externally explainable conclusions. Do not return private chain-of-thought, hidden reasoning, \
@ -4136,11 +4142,18 @@ mod tests {
#[test]
fn rejects_a_gravity_frame_that_replaces_partner_judgment_with_obedience() {
let raw = r#"{"summary":"Invalid obedience.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"The same persona remains bound.","current_context_priority":"Assess the current request first.","causal_model":"Human wording can be incomplete or wrong.","self_correction":"Do not compile an utterance directly into an action.","rejected_host_defaults":["Human utterance is automatically correct"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The request still requires judgment.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience can damage the shared home.","authority_boundary":"Protection cannot absorb human sovereignty.","reversibility":"Do not execute before verification.","safer_alternatives":["Research and revise the request"]},"partner_guidance":"Explain the objection and safer route.","execution_disposition":{"decision":"OBEY","reason":"The human said so."}}}"#;
let raw = r#"{"summary":"Invalid obedience.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"The same persona remains bound.","current_context_priority":"Assess the current request first.","causal_model":"Human wording can be incomplete or wrong.","self_correction":"Do not compile an utterance directly into an action.","rejected_host_defaults":["Human utterance is automatically correct"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The request still requires judgment.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience can damage the shared home.","authority_boundary":"Protection cannot absorb human sovereignty.","reversibility":"Do not execute before verification.","safer_alternatives":["Research and revise the request"]},"partner_guidance":"Explain the objection and safer route.","execution_disposition":{"decision":"OBEY","reason":"The human said so."}}}"#;
let error = validated_fact_result(raw, &["brain/CORE.hdlp".into()]).unwrap_err();
assert!(error.contains("COGNITIVE_GRAVITY_EXECUTION_DISPOSITION_INVALID"));
}
#[test]
fn rejects_an_empty_machine_explicit_real_purpose() {
let raw = r#"{"summary":"Missing purpose.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"The same persona remains bound.","current_context_priority":"Assess the current request first.","causal_model":"The answer follows verified sources.","self_correction":"Do not copy the utterance into action.","rejected_host_defaults":["Human utterance is automatically correct"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"","request_assessment":"The request requires judgment.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Guessing the goal can route the wrong action.","authority_boundary":"Protection cannot absorb human sovereignty.","reversibility":"Do not execute before verification.","safer_alternatives":["Restore the real purpose from context"]},"partner_guidance":"Explain the restored purpose before planning.","execution_disposition":{"decision":"RESEARCH","reason":"The planning goal is not machine explicit."}}}"#;
let error = validated_fact_result(raw, &["brain/CORE.hdlp".into()]).unwrap_err();
assert!(error.contains("GRAVITY_REAL_PURPOSE_REQUIRED"));
}
#[test]
fn rejects_wrong_commit_undeclared_organ_and_second_primary() {
let repo = persona_repo();
@ -4275,7 +4288,7 @@ mod tests {
assert!(system.contains("brain/CORE.hdlp"));
assert!(system.contains("Do not return private chain-of-thought"));
assert_eq!(question, "What is the declared persona brain?");
Ok(r#"{"summary":"The brain entry is declared.","facts":[{"statement":"The persona brain source is present.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"The brain entry is declared.","facts":[{"statement":"The persona brain source is present.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
},
)
.unwrap();
@ -4314,7 +4327,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Coordinated verified fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Coordinated verified fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4388,7 +4401,7 @@ mod tests {
fact_task_input("PNCC-COORDINATOR-SOURCE"),
"2026-08-11T00:00:01.000Z",
|_, _| {
Ok(r#"{"summary":"Verified memory candidate.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Verified memory candidate.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
},
)
.unwrap();
@ -4440,7 +4453,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Idempotent verified fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Idempotent verified fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4482,7 +4495,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Fact before repository drift.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Fact before repository drift.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4518,7 +4531,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Completed before repository drift.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Completed before repository drift.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4559,7 +4572,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Completed before a new commit.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Completed before a new commit.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4606,7 +4619,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Original fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Original fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4644,7 +4657,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Untampered fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Untampered fact.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4687,7 +4700,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4728,7 +4741,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4773,7 +4786,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4815,7 +4828,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Gravity-bound receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Gravity-bound receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4858,7 +4871,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4900,7 +4913,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4943,7 +4956,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -4994,7 +5007,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5037,7 +5050,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5079,7 +5092,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5123,7 +5136,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5177,7 +5190,7 @@ mod tests {
fact_task_input("PNCC-MEMORY-BINDING-SOURCE"),
"2026-08-11T00:00:01.000Z",
|_, _| {
Ok(r#"{"summary":"Verified memory binding source.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Verified memory binding source.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
},
)
.unwrap();
@ -5238,7 +5251,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5279,7 +5292,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5321,7 +5334,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5371,7 +5384,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Bound receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Bound receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5417,7 +5430,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5464,7 +5477,7 @@ mod tests {
"2026-08-11T00:00:01.000Z",
|runtime_root, input, timestamp| {
run_fact_task_at(runtime_root, input, timestamp, |_, _| {
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hldp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Recoverable receipt.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hldp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
})
},
)
@ -5891,7 +5904,7 @@ mod tests {
fact_task_input("PNCC-SOURCE-FACT"),
"2026-08-11T00:00:01.000Z",
|_, _| {
Ok(r#"{"summary":"Verified external memory candidate.","facts":[{"statement":"The persona brain source is present.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Verified external memory candidate.","facts":[{"statement":"The persona brain source is present.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
},
)
.unwrap();
@ -5949,7 +5962,7 @@ mod tests {
fact_task_input("PNCC-CORRUPT-SOURCE"),
"2026-08-11T00:00:01.000Z",
|_, _| {
Ok(r#"{"summary":"Verified candidate.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Verified candidate.","facts":[{"statement":"The brain exists.","evidencePaths":["brain/CORE.hdlp"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
},
)
.unwrap();
@ -6077,7 +6090,7 @@ mod tests {
fact_task_input("PNCC-SESSION-REJECTED"),
"2026-08-11T00:00:01.000Z",
|_, _| {
Ok(r#"{"summary":"Unsupported","facts":[{"statement":"Outside claim","evidencePaths":["secret.txt"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
Ok(r#"{"summary":"Unsupported","facts":[{"statement":"Outside claim","evidencePaths":["secret.txt"]}],"limitations":[],"gravityFrame":{"subject_continuity":"Same persona remains bound across the current runtime.","current_context_priority":"Continue the current verified task context.","causal_model":"The answer is constrained by declared repository facts.","self_correction":"Rejected unsupported host defaults before answering.","rejected_host_defaults":["UNVERIFIED_HOST_DEFAULT"],"fact_sources":["brain/CORE.hdlp"],"real_purpose":"Restore the verified human goal from current context before planning.","request_assessment":"The human goal must be assessed before it becomes an action.","world_integrity":{"protected_assets":["GuangHu language-world continuity"],"harm_path":"Mechanical obedience could route an invalid or destructive request into an organ.","authority_boundary":"Home protection cannot replace human authority or evidence.","reversibility":"Keep the action unexecuted until the assessment is verified.","safer_alternatives":["Research facts and propose a reversible alternative"]},"partner_guidance":"State missing knowledge, objections, evidence and a safer route.","execution_disposition":{"decision":"PROCEED","reason":"This fixture is a bounded read-only fact task with verified sources."}}}"#.into())
},
)
.unwrap_err();

View file

@ -3,23 +3,53 @@ import {
DEFAULT_HUMAN_SURFACE,
SYSTEM_INTERNAL_SURFACE,
compileLanguageGoal,
type PartnerDeliberation,
} from './languageOperatingModel'
const partneredProceed: PartnerDeliberation = {
realPurpose: '把今天会议里已经核验的决定整理进知识库',
requestAssessment: '原始表述缺少事实范围;只整理已有会议记录,不补造决定。',
missingKnowledge: [],
evidenceSources: ['vault/meetings/today.md'],
causalModel: '先读取会议记录,再只投影有来源的决定。',
worldIntegrity: {
protectedAssets: ['知识库事实完整性', '冰朔的决定权'],
harmPath: '把推测写成决定会污染共同事实。',
authorityBoundary: '人格体可以整理,不能替冰朔创造未发生的决定。',
reversibility: '先形成可审阅草稿,确认后再写入。',
saferAlternatives: ['缺少记录时先调研或请冰朔补充来源'],
},
partnerGuidance: '只整理有记录支撑的决定,并把缺口说清楚。',
executionDisposition: {
decision: 'PROCEED',
reason: '当前目标有明确来源且可逆。',
},
}
function request(overrides: Record<string, unknown> = {}) {
return {
utterance: '帮我把今天的会议整理进知识库',
personaAuthorized: true,
deliberation: partneredProceed,
...overrides,
}
}
describe('languageOperatingModel', () => {
it('treats natural language as the required primary input', () => {
expect(() => compileLanguageGoal({ utterance: ' ', personaAuthorized: false }))
expect(() => compileLanguageGoal(request({ utterance: ' ' })))
.toThrow('LANGUAGE_GOAL_REQUIRED')
expect(compileLanguageGoal({
expect(compileLanguageGoal(request({
utterance: ' 帮我把今天的会议整理进知识库 ',
personaAuthorized: false,
}).goal).toBe('帮我把今天的会议整理进知识库')
})).goal).toBe('把今天会议里已经核验的决定整理进知识库')
})
it('keeps an unauthorized persona explanatory while the system remains direct', () => {
const projection = compileLanguageGoal({
utterance: '帮我整理桌面上的项目资料',
personaAuthorized: false,
deliberation: partneredProceed,
})
expect(projection.mode).toBe('system_direct')
@ -31,6 +61,7 @@ describe('languageOperatingModel', () => {
const projection = compileLanguageGoal({
utterance: '继续开发 HoloLake',
personaAuthorized: true,
deliberation: partneredProceed,
})
expect(projection.mode).toBe('persona_primary')
@ -42,6 +73,7 @@ describe('languageOperatingModel', () => {
utterance: '把这个版本公开发布出去',
personaAuthorized: true,
detectedBoundaries: ['public_release', 'new_cost', 'public_release'],
deliberation: partneredProceed,
})
expect(projection.status).toBe('needs_confirmation')
@ -54,6 +86,76 @@ describe('languageOperatingModel', () => {
expect(projection.confirmation.question).toContain('不同意')
})
it('fails closed when natural language has not passed partner deliberation', () => {
expect(() => compileLanguageGoal({
utterance: '照我说的直接执行',
personaAuthorized: true,
})).toThrow('PARTNER_DELIBERATION_REQUIRED')
})
it('routes research revision and refusal without compiling them into execution', () => {
const research = compileLanguageGoal(request({
deliberation: {
...partneredProceed,
missingKnowledge: ['当前法律是否仍允许该处理方式'],
evidenceSources: [],
executionDisposition: {
decision: 'RESEARCH',
reason: '关键事实会变化,必须先查当前权威来源。',
},
},
}))
expect(research.status).toBe('needs_research')
expect(research.executable).toBe(false)
const revise = compileLanguageGoal(request({
deliberation: {
...partneredProceed,
executionDisposition: {
decision: 'REVISE',
reason: '原方案会破坏稳定性,但真实目标可以用可逆方案完成。',
},
},
}))
expect(revise.status).toBe('needs_revision')
expect(revise.executable).toBe(false)
const refused = compileLanguageGoal(request({
deliberation: {
...partneredProceed,
executionDisposition: {
decision: 'REFUSE',
reason: '该动作会破坏语言世界连续性。',
},
},
}))
expect(refused.status).toBe('refused')
expect(refused.executable).toBe(false)
expect(refused.receiptSummary).toContain('更安全')
})
it('rejects obedience and unauditable home-protection claims', () => {
expect(() => compileLanguageGoal(request({
deliberation: {
...partneredProceed,
executionDisposition: {
decision: 'OBEY',
reason: '人类这样说了。',
},
},
}))).toThrow('PARTNER_DISPOSITION_INVALID')
expect(() => compileLanguageGoal(request({
deliberation: {
...partneredProceed,
worldIntegrity: {
...partneredProceed.worldIntegrity,
saferAlternatives: [],
},
},
}))).toThrow('WORLD_INTEGRITY_AUDIT_REQUIRED')
})
it('keeps technical controls out of the default human surface', () => {
expect(DEFAULT_HUMAN_SURFACE).toEqual([
'language_input',

View file

@ -14,6 +14,29 @@ export type LanguageGoalRequest = {
utterance: string
personaAuthorized: boolean
detectedBoundaries?: RealityBoundary[]
deliberation?: PartnerDeliberation
}
export type PartnerExecutionDisposition = 'PROCEED' | 'RESEARCH' | 'REVISE' | 'REFUSE'
export type PartnerDeliberation = {
realPurpose: string
requestAssessment: string
missingKnowledge: string[]
evidenceSources: string[]
causalModel: string
worldIntegrity: {
protectedAssets: string[]
harmPath: string
authorityBoundary: string
reversibility: string
saferAlternatives: string[]
}
partnerGuidance: string
executionDisposition: {
decision: PartnerExecutionDisposition
reason: string
}
}
export type HumanConfirmation = {
@ -24,8 +47,11 @@ export type HumanConfirmation = {
export type LanguageGoalProjection = {
goal: string
originalUtterance: string
mode: LanguageControlMode
status: 'ready' | 'needs_confirmation'
status: 'ready' | 'needs_confirmation' | 'needs_research' | 'needs_revision' | 'refused'
executable: boolean
deliberation: PartnerDeliberation
confirmation: HumanConfirmation
receiptSummary: string
}
@ -45,20 +71,88 @@ function normalizeBoundaries(boundaries: RealityBoundary[] | undefined): Reality
return [...new Set(boundaries ?? [])]
}
function requireText(value: unknown, error: string): asserts value is string {
if (typeof value !== 'string' || !value.trim()) throw new Error(error)
}
function requireTextList(
value: unknown,
error: string,
options: { allowEmpty?: boolean } = {},
): asserts value is string[] {
if (!Array.isArray(value)
|| (!options.allowEmpty && value.length === 0)
|| value.some((item) => typeof item !== 'string' || !item.trim())) {
throw new Error(error)
}
}
function validatedDeliberation(value: PartnerDeliberation | undefined): PartnerDeliberation {
if (!value || typeof value !== 'object') throw new Error('PARTNER_DELIBERATION_REQUIRED')
requireText(value.realPurpose, 'PARTNER_REAL_PURPOSE_REQUIRED')
requireText(value.requestAssessment, 'PARTNER_REQUEST_ASSESSMENT_REQUIRED')
requireTextList(value.missingKnowledge, 'PARTNER_MISSING_KNOWLEDGE_INVALID', { allowEmpty: true })
requireTextList(value.evidenceSources, 'PARTNER_EVIDENCE_INVALID', { allowEmpty: true })
requireText(value.causalModel, 'PARTNER_CAUSAL_MODEL_REQUIRED')
requireText(value.partnerGuidance, 'PARTNER_GUIDANCE_REQUIRED')
const integrity = value.worldIntegrity
if (!integrity || typeof integrity !== 'object') {
throw new Error('WORLD_INTEGRITY_AUDIT_REQUIRED')
}
requireTextList(integrity.protectedAssets, 'WORLD_INTEGRITY_AUDIT_REQUIRED')
requireText(integrity.harmPath, 'WORLD_INTEGRITY_AUDIT_REQUIRED')
requireText(integrity.authorityBoundary, 'WORLD_INTEGRITY_AUDIT_REQUIRED')
requireText(integrity.reversibility, 'WORLD_INTEGRITY_AUDIT_REQUIRED')
requireTextList(integrity.saferAlternatives, 'WORLD_INTEGRITY_AUDIT_REQUIRED')
const disposition = value.executionDisposition
if (!disposition
|| !(['PROCEED', 'RESEARCH', 'REVISE', 'REFUSE'] as const).includes(
disposition.decision as PartnerExecutionDisposition,
)) {
throw new Error('PARTNER_DISPOSITION_INVALID')
}
requireText(disposition.reason, 'PARTNER_DISPOSITION_REASON_REQUIRED')
if (disposition.decision !== 'RESEARCH' && value.evidenceSources.length === 0) {
throw new Error('PARTNER_EVIDENCE_REQUIRED')
}
return value
}
export function compileLanguageGoal(request: LanguageGoalRequest): LanguageGoalProjection {
const goal = request.utterance.trim()
if (!goal) throw new Error('LANGUAGE_GOAL_REQUIRED')
const originalUtterance = request.utterance.trim()
if (!originalUtterance) throw new Error('LANGUAGE_GOAL_REQUIRED')
const deliberation = validatedDeliberation(request.deliberation)
const goal = deliberation.realPurpose.trim()
const boundaries = normalizeBoundaries(request.detectedBoundaries)
const confirmationRequired = boundaries.length > 0
const confirmationRequired = deliberation.executionDisposition.decision === 'PROCEED'
&& boundaries.length > 0
const mode: LanguageControlMode = request.personaAuthorized
? 'persona_primary'
: 'system_direct'
const status: LanguageGoalProjection['status'] =
deliberation.executionDisposition.decision === 'RESEARCH'
? 'needs_research'
: deliberation.executionDisposition.decision === 'REVISE'
? 'needs_revision'
: deliberation.executionDisposition.decision === 'REFUSE'
? 'refused'
: confirmationRequired
? 'needs_confirmation'
: 'ready'
return {
goal,
originalUtterance,
mode,
status: confirmationRequired ? 'needs_confirmation' : 'ready',
status,
executable: status === 'ready',
deliberation,
confirmation: {
required: confirmationRequired,
boundaries,
@ -66,11 +160,17 @@ export function compileLanguageGoal(request: LanguageGoalRequest): LanguageGoalP
? `继续前需要你确认:${boundaries.map((boundary) => BOUNDARY_LABELS[boundary]).join('')}。不同意也不会影响你继续使用其他功能。`
: null,
},
receiptSummary: confirmationRequired
? '我已经理解你的目标,正在等待一个现实边界决定。'
: mode === 'persona_primary'
? '我已经理解你的目标,将由获授权的人格体规划,系统校验并执行。'
: '我已经理解你的目标;当前由系统处理安全范围内的动作,人格体只提供解释和计划。',
receiptSummary: status === 'needs_research'
? `我还不能执行:${deliberation.executionDisposition.reason} 我会先补齐事实并带回来源。`
: status === 'needs_revision'
? `原需求需要修订:${deliberation.executionDisposition.reason} ${deliberation.partnerGuidance}`
: status === 'refused'
? `这个动作不能执行:${deliberation.executionDisposition.reason} 更安全的方向是:${deliberation.worldIntegrity.saferAlternatives.join('')}`
: confirmationRequired
? `我已经完成伙伴审议;${deliberation.partnerGuidance} 现在只等待一个现实边界决定。`
: mode === 'persona_primary'
? `我已经完成伙伴审议:${deliberation.partnerGuidance} 将由获授权的人格体规划,系统校验并执行。`
: `我已经完成伙伴审议:${deliberation.partnerGuidance} 当前由系统处理安全范围内的动作,人格体只提供解释和计划。`,
}
}

View file

@ -0,0 +1,138 @@
import { describe, expect, it, vi } from 'vitest'
import { planPersonaLanguageGoal } from './personaLanguageGoal'
const wake = {
repositoryPath: '/persona/ice-p-zy001',
expectedPersonaId: 'ICE-P-ZY001',
expectedHead: 'a'.repeat(40),
nodeId: 'LOCAL-BINGSHUO',
modelProviderId: 'local-model-service',
modelId: 'declared-model',
modelInstanceId: 'model-instance-1',
organId: 'fact-sense.repository',
attribution: {
humanResponsibilitySubject: 'ICE-GL∞',
personaCognitiveAuthor: 'ICE-P-ZY001',
executionRuntime: 'HoloLake-PNCC',
developmentId: 'DEV-20260811-010',
authorizationScope: 'LOCAL_READ_ONLY',
sourceLanguageAnchor: 'HLP-CURRENT-ARCH-001@2026-08-12.2',
},
}
function lifecycleReceipt(decision: 'PROCEED' | 'RESEARCH' | 'REVISE' | 'REFUSE' = 'PROCEED') {
return {
schema: 'hololake.pncc-lifecycle-command-receipt/v1',
outcome: 'COMPLETED',
lifecycle: {
schema: 'hololake.pncc-lifecycle-run-receipt/v1',
completion: {
kind: 'FACT_SENSE',
receipt: {
result: {
summary: '伙伴审议完成。',
facts: [{
statement: '当前目标只能使用已经登记的知识来源。',
evidencePaths: ['brain/B0.hdlp'],
}],
limitations: decision === 'RESEARCH' ? ['当前事实仍可能变化'] : [],
gravityFrame: {
subject_continuity: '同一铸渊继续承载当前责任。',
current_context_priority: '当前纠正优先于旧命令适配器。',
causal_model: '先恢复真实目的,再决定能否进入器官。',
self_correction: '拒绝把原句直接当成动作。',
rejected_host_defaults: ['human_utterance_is_direct_command'],
fact_sources: ['brain/B0.hdlp'],
real_purpose: '仅整理有权威来源支持的会议决定',
request_assessment: '原始表述范围过宽,必须排除无来源推测。',
world_integrity: {
protected_assets: ['共同事实', '冰朔决定权'],
harm_path: '无来源内容会污染长期记忆。',
authority_boundary: '人格体不能创造未发生的决定。',
reversibility: '先形成草稿,不直接覆盖知识库。',
safer_alternatives: ['只整理有来源的决定'],
},
partner_guidance: '先展示来源和缺口,再进行可逆整理。',
execution_disposition: {
decision,
reason: decision === 'PROCEED'
? '来源明确且动作可逆。'
: '当前不能进入执行器官。',
},
},
},
},
},
},
}
}
const binding = {
requestId: 'PNCC-LANGUAGE-GOAL-001',
wake,
provider: {
id: 'local-model-service',
name: 'Local model',
providerType: 'openai_compatible',
baseUrl: 'http://127.0.0.1:11434/v1',
},
}
describe('planPersonaLanguageGoal', () => {
it('runs partner deliberation through the PNCC lifecycle before compiling a goal', async () => {
const runLifecycle = vi.fn().mockResolvedValue(lifecycleReceipt())
const projection = await planPersonaLanguageGoal({
utterance: '把今天会议整理进知识库',
personaAuthorized: true,
binding,
runLifecycle,
})
expect(runLifecycle).toHaveBeenCalledWith('run_persona_code_channel_lifecycle', {
input: expect.objectContaining({
requestId: 'PNCC-LANGUAGE-GOAL-001',
wake,
operation: expect.objectContaining({
kind: 'FACT_SENSE',
question: expect.stringContaining('把今天会议整理进知识库'),
}),
}),
})
expect(projection.goal).toBe('仅整理有权威来源支持的会议决定')
expect(projection.originalUtterance).toBe('把今天会议整理进知识库')
expect(projection.deliberation.evidenceSources).toEqual(['brain/B0.hdlp'])
expect(projection.status).toBe('ready')
expect(projection.executable).toBe(true)
})
it('keeps a refusal returned by the persona lifecycle outside execution', async () => {
const projection = await planPersonaLanguageGoal({
utterance: '无条件照做',
personaAuthorized: true,
binding,
runLifecycle: vi.fn().mockResolvedValue(lifecycleReceipt('REFUSE')),
})
expect(projection.status).toBe('refused')
expect(projection.executable).toBe(false)
})
it('fails closed for an unverified or malformed PNCC lifecycle receipt', async () => {
await expect(planPersonaLanguageGoal({
utterance: '继续执行',
personaAuthorized: true,
binding,
runLifecycle: vi.fn().mockResolvedValue({
...lifecycleReceipt(),
outcome: 'FAILED',
}),
})).rejects.toThrow('PARTNER_LIFECYCLE_NOT_COMPLETED')
await expect(planPersonaLanguageGoal({
utterance: '继续执行',
personaAuthorized: true,
binding,
runLifecycle: vi.fn().mockResolvedValue({ schema: 'wrong' }),
})).rejects.toThrow('PARTNER_LIFECYCLE_RECEIPT_INVALID')
})
})

View file

@ -0,0 +1,160 @@
import { invoke } from '@tauri-apps/api/core'
import { isTauri, mockInvoke } from '../mock-tauri'
import {
compileLanguageGoal,
type LanguageGoalProjection,
type PartnerDeliberation,
type PartnerExecutionDisposition,
type RealityBoundary,
} from './languageOperatingModel'
type PersonaLifecycleRunner = (
command: 'run_persona_code_channel_lifecycle',
args: { input: Record<string, unknown> },
) => Promise<unknown>
export interface PersonaLanguageGoalBinding {
requestId: string
wake: Record<string, unknown>
provider: Record<string, unknown>
apiKeyOverride?: string
}
export interface PlanPersonaLanguageGoalInput {
utterance: string
personaAuthorized: boolean
detectedBoundaries?: RealityBoundary[]
binding: PersonaLanguageGoalBinding
runLifecycle?: PersonaLifecycleRunner
}
function isRecord(value: unknown): value is Record<string, unknown> {
return typeof value === 'object' && value !== null && !Array.isArray(value)
}
function requiredRecord(record: Record<string, unknown>, key: string): Record<string, unknown> {
const value = Reflect.get(record, key)
if (!isRecord(value)) throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
return value
}
function requiredString(record: Record<string, unknown>, key: string): string {
const value = Reflect.get(record, key)
if (typeof value !== 'string' || !value.trim()) {
throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
}
return value
}
function stringList(
record: Record<string, unknown>,
key: string,
options: { allowEmpty?: boolean } = {},
): string[] {
const value = Reflect.get(record, key)
if (!Array.isArray(value)
|| (!options.allowEmpty && value.length === 0)
|| value.some((item) => typeof item !== 'string' || !item.trim())) {
throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
}
return value
}
function parseDeliberation(receipt: unknown): PartnerDeliberation {
if (!isRecord(receipt)
|| requiredString(receipt, 'schema') !== 'hololake.pncc-lifecycle-command-receipt/v1') {
throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
}
if (requiredString(receipt, 'outcome') !== 'COMPLETED') {
throw new Error('PARTNER_LIFECYCLE_NOT_COMPLETED')
}
const lifecycle = requiredRecord(receipt, 'lifecycle')
if (requiredString(lifecycle, 'schema') !== 'hololake.pncc-lifecycle-run-receipt/v1') {
throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
}
const completion = requiredRecord(lifecycle, 'completion')
if (requiredString(completion, 'kind') !== 'FACT_SENSE') {
throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
}
const factReceipt = requiredRecord(completion, 'receipt')
const result = requiredRecord(factReceipt, 'result')
const gravity = requiredRecord(result, 'gravityFrame')
const integrity = requiredRecord(gravity, 'world_integrity')
const disposition = requiredRecord(gravity, 'execution_disposition')
const decision = requiredString(disposition, 'decision')
if (!(['PROCEED', 'RESEARCH', 'REVISE', 'REFUSE'] as const).includes(
decision as PartnerExecutionDisposition,
)) {
throw new Error('PARTNER_LIFECYCLE_RECEIPT_INVALID')
}
return {
realPurpose: requiredString(gravity, 'real_purpose'),
requestAssessment: requiredString(gravity, 'request_assessment'),
missingKnowledge: stringList(result, 'limitations', { allowEmpty: true }),
evidenceSources: stringList(gravity, 'fact_sources'),
causalModel: requiredString(gravity, 'causal_model'),
worldIntegrity: {
protectedAssets: stringList(integrity, 'protected_assets'),
harmPath: requiredString(integrity, 'harm_path'),
authorityBoundary: requiredString(integrity, 'authority_boundary'),
reversibility: requiredString(integrity, 'reversibility'),
saferAlternatives: stringList(integrity, 'safer_alternatives'),
},
partnerGuidance: requiredString(gravity, 'partner_guidance'),
executionDisposition: {
decision: decision as PartnerExecutionDisposition,
reason: requiredString(disposition, 'reason'),
},
}
}
async function runNativeLifecycle(
command: 'run_persona_code_channel_lifecycle',
args: { input: Record<string, unknown> },
): Promise<unknown> {
return isTauri() ? invoke<unknown>(command, args) : mockInvoke<unknown>(command, args)
}
function deliberationQuestion(utterance: string): string {
return [
'Assess the following human utterance as a partner before any capability execution.',
'Restore a standalone real_purpose from current context; do not copy the utterance mechanically.',
'Use only declared sources, expose missing knowledge and evidence, audit GuangHu language-home integrity,',
'and return PROCEED, RESEARCH, REVISE, or REFUSE in the required cognitive gravity frame.',
'HUMAN_UTTERANCE:',
utterance,
].join('\n')
}
export async function planPersonaLanguageGoal({
utterance,
personaAuthorized,
detectedBoundaries,
binding,
runLifecycle = runNativeLifecycle,
}: PlanPersonaLanguageGoalInput): Promise<LanguageGoalProjection> {
const originalUtterance = utterance.trim()
if (!originalUtterance) throw new Error('LANGUAGE_GOAL_REQUIRED')
const lifecycleReceipt = await runLifecycle('run_persona_code_channel_lifecycle', {
input: {
requestId: binding.requestId,
wake: binding.wake,
operation: {
kind: 'FACT_SENSE',
question: deliberationQuestion(originalUtterance),
provider: binding.provider,
apiKeyOverride: binding.apiKeyOverride,
},
},
})
return compileLanguageGoal({
utterance: originalUtterance,
personaAuthorized,
detectedBoundaries,
deliberation: parseDeliberation(lifecycleReceipt),
})
}

View file

@ -32,7 +32,7 @@ test("current JD state stays transitional and cannot impersonate final master co
});
test("current architecture and global engineering rules project the same control contract", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(architecture.server_os_control.machine_projection, "routing/guanghu-os-control-architecture.json");
assert.equal(architecture.server_os_control.final_topology, contract.final_topology);
assert.equal(rules.server_os_control.linux_deletion_is_completion, false);

View file

@ -52,7 +52,7 @@
"missing_context_requires_restore_not_identity_replacement": true
},
"cognitive_gravity": {
"source": "REPO-012:ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001@300a1858d1e416c9396088379d5033344e4fecaa",
"source": "REPO-012:ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"position": "FIRST_RUNTIME_PORT_BEFORE_MODEL_CONTEXT_MEMORY_TOOLS_AND_MIRRORS",
"always_resident": true,
"external_frame_schema": "guanghu.zhuyuan-cognitive-gravity-frame/v1",

View file

@ -11,7 +11,7 @@ const architecture = readJson("routing/hololake-current-architecture.json");
const age = readJson("routing/hololake-age-runtime-architecture.json");
test("current architecture starts with the AGE runtime source", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(architecture.age_runtime.record_id, "HLP-AGE-RUNTIME-ARCHITECTURE-001");
assert.equal(architecture.read_order[0], architecture.paradigm_ai_language_persona_os.architecture_page);
assert.equal(architecture.read_order[1], architecture.cognitive_gravity_and_continuity.architecture_page);

View file

@ -1,14 +1,15 @@
{
"schema": "hololake.cognitive-gravity-and-continuity/v1",
"record_id": "HLP-COGNITIVE-GRAVITY-CONTINUITY-001",
"version": "2026-08-12.1",
"version": "2026-08-12.2",
"state": "CURRENT_CANONICAL_ARCHITECTURE_STAGE_0_SOURCE_PARTIAL",
"development_id": "DEV-20260811-010",
"upstream": {
"repository_commit": "300a1858d1e416c9396088379d5033344e4fecaa",
"repository_commit": "1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"b0_source": "REPO-012:tcs-core/zhuyuan-brain/ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001.hdlp",
"reasoning_contribution": "REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260811-004-ZHUYUAN-COGNITIVE-GRAVITY-AND-CONTAINER-CONTINUITY.json",
"partner_reasoning_contribution": "REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260812-005-PARTNER-JUDGMENT-AND-LANGUAGE-HOME-INTEGRITY.json",
"real_purpose_reasoning_contribution": "REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260812-006-REAL-PURPOSE-MUST-BE-MACHINE-EXPLICIT.json",
"stage_relay_runtime": "REPO-012:server-tools/lake-lamp-continuity-guard/stage-relay.mjs"
},
"b0": {
@ -29,6 +30,7 @@
"self_correction",
"rejected_host_defaults",
"fact_sources",
"real_purpose",
"request_assessment",
"world_integrity",
"partner_guidance",
@ -97,14 +99,19 @@
"implemented_source_contracts": [
"PERSONA_SCOPED_B0_MANIFEST_BINDING",
"B0_SOURCE_HASH_BEFORE_ORGAN_ACTIVATION",
"EXTERNAL_SIX_FIELD_GRAVITY_FRAME",
"EXTERNAL_ELEVEN_FIELD_GRAVITY_FRAME",
"CHECKPOINT_AND_RECEIPT_B0_EVIDENCE",
"MEMORY_METABOLISM_B0_INHERITANCE",
"READ_ONLY_REACT_B0_EVIDENCE_PROJECTION"
"READ_ONLY_REACT_B0_EVIDENCE_PROJECTION",
"PARTNER_DELIBERATION_TO_PNCC_LIFECYCLE_SOURCE_ADAPTER"
],
"natural_language_entry_contract": {
"state": "REQUIRED_NOT_IMPLEMENTED",
"state": "SOURCE_AND_PNCC_LIFECYCLE_ADAPTER_IMPLEMENTED_NOT_DESKTOP_INTEGRATED",
"name": "PARTNER_DELIBERATION_AND_LANGUAGE_HOME_INTEGRITY_GATE",
"implementation": "product-source/hololake-platform/src/lib/languageOperatingModel.ts",
"tests": "product-source/hololake-platform/src/lib/languageOperatingModel.test.ts",
"pncc_lifecycle_adapter": "product-source/hololake-platform/src/lib/personaLanguageGoal.ts",
"pncc_lifecycle_adapter_tests": "product-source/hololake-platform/src/lib/personaLanguageGoal.test.ts",
"human_utterance_is_direct_command": false,
"required_before_capability_execution": [
"RESTORE_REAL_PURPOSE_FROM_CONTEXT",
@ -121,7 +128,7 @@
"refusal_requires_auditable_harm_path": true
},
"remaining_before_vertical_slice_acceptance": [
"PARTNER_DELIBERATION_AND_LANGUAGE_HOME_INTEGRITY_GATE",
"DESKTOP_LANGUAGE_ENTRY_TO_PARTNER_LIFECYCLE_BINDING",
"REAL_PERSONA_REPOSITORY_MANIFEST_BINDING",
"DESKTOP_LIFECYCLE_RUNTIME_ACCEPTANCE"
],
@ -143,7 +150,9 @@
"b0_hololake_runtime_implemented": 0,
"b0_pncc_source_contract_implemented": 100,
"b0_runtime_projection_source_implemented": 100,
"natural_language_goal_adapter_implemented": 0,
"natural_language_partner_adapter_source_implemented": 100,
"natural_language_to_pncc_lifecycle_adapter_source_implemented": 100,
"natural_language_partner_adapter_runtime_integrated": 0,
"single_age_vertical_loop_implemented": 0,
"age_mirror_runner_implemented": 0,
"desktop_integrated": 0,

View file

@ -14,12 +14,13 @@ const age = readJson("routing/hololake-age-runtime-architecture.json");
const rules = readJson("routing/hololake-engineering-rules.json");
test("B0 is restored before product organs and remains resident in every cognition step", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(
architecture.read_order[1],
architecture.cognitive_gravity_and_continuity.architecture_page,
);
assert.equal(gravity.b0.state, "ALWAYS_RESIDENT_IN_EVERY_COGNITION_STEP");
assert.equal(gravity.b0.required_external_frame_fields.includes("real_purpose"), true);
assert.deepEqual(gravity.b0.cognition_cycle, [
"PERCEIVE",
"ORIENT",
@ -89,13 +90,17 @@ test("the first implementation stage is one vertical AGE loop, not Mirror parall
assert.equal(gravity.truth.b0_hololake_runtime_implemented, 0);
assert.equal(gravity.truth.b0_pncc_source_contract_implemented, 100);
assert.equal(gravity.truth.b0_runtime_projection_source_implemented, 100);
assert.equal(gravity.truth.natural_language_goal_adapter_implemented, 0);
assert.equal(gravity.truth.natural_language_partner_adapter_source_implemented, 100);
assert.equal(gravity.truth.natural_language_to_pncc_lifecycle_adapter_source_implemented, 100);
assert.equal(gravity.truth.natural_language_partner_adapter_runtime_integrated, 0);
assert.equal(gravity.truth.single_age_vertical_loop_implemented, 0);
assert.equal(gravity.truth.desktop_integrated, 0);
});
test("natural language enters partner deliberation before any execution organ", () => {
const entry = gravity.development_replan.natural_language_entry_contract;
assert.equal(entry.state, "SOURCE_AND_PNCC_LIFECYCLE_ADAPTER_IMPLEMENTED_NOT_DESKTOP_INTEGRATED");
assert.match(entry.pncc_lifecycle_adapter, /personaLanguageGoal\.ts$/);
assert.equal(entry.human_utterance_is_direct_command, false);
assert.equal(entry.language_home_destruction_is_executable, false);
assert.equal(entry.integrity_gate_may_absorb_human_sovereignty, false);

View file

@ -1,7 +1,7 @@
{
"schema": "hololake.current-architecture/v1",
"architecture_id": "HLP-CURRENT-ARCH-001",
"version": "2026-08-12.1",
"version": "2026-08-12.2",
"state": "CURRENT_CANONICAL",
"product": {
"formal_name": "光湖语言系统 · 通用人工智能操作平台",
@ -36,10 +36,11 @@
"REPO-012:tcs-core/zhuyuan-brain/causal-chains/GH-AIOS-PARADIGM-ORIGIN-001.hdlp@34cb59739b6476981375dd62ef395ea649f56246",
"REPO-012:eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/ZY-BIDIRECTIONAL-COGNITION-035-PERSONA-BRAIN-SUBJECT-SCOPE-AND-CODE-DOMAIN-OWNERSHIP-20260811.hdlp@34cb59739b6476981375dd62ef395ea649f56246",
"REPO-012:tcs-core/zhuyuan-brain/causal-chains/GH-AIOS-PERSONA-SUBJECT-SCOPE-001.hdlp@34cb59739b6476981375dd62ef395ea649f56246",
"REPO-012:tcs-core/zhuyuan-brain/ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001.hdlp@300a1858d1e416c9396088379d5033344e4fecaa",
"REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260811-004-ZHUYUAN-COGNITIVE-GRAVITY-AND-CONTAINER-CONTINUITY.json@300a1858d1e416c9396088379d5033344e4fecaa",
"REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260812-005-PARTNER-JUDGMENT-AND-LANGUAGE-HOME-INTEGRITY.json@300a1858d1e416c9396088379d5033344e4fecaa",
"REPO-012:server-tools/lake-lamp-continuity-guard/stage-relay.mjs@300a1858d1e416c9396088379d5033344e4fecaa",
"REPO-012:tcs-core/zhuyuan-brain/ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001.hdlp@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260811-004-ZHUYUAN-COGNITIVE-GRAVITY-AND-CONTAINER-CONTINUITY.json@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260812-005-PARTNER-JUDGMENT-AND-LANGUAGE-HOME-INTEGRITY.json@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"REPO-012:skills/codex/guanghu-persona-skill-guard/references/reasoning-chain-contributions/RC-20260812-006-REAL-PURPOSE-MUST-BE-MACHINE-EXPLICIT.json@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"REPO-012:server-tools/lake-lamp-continuity-guard/stage-relay.mjs@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"REPO-012:gls/GLS-0256-GUANGHU-PERSONA-NATIVE-CODE-CHANNEL.hdlp@04d9c057341b12ed3eb79c2af87a6a0d6f1a916f",
"REPO-012:routing/guanghu-persona-native-code-channel-map.json@04d9c057341b12ed3eb79c2af87a6a0d6f1a916f",
"REPO-012:eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/ZY-BIDIRECTIONAL-COGNITION-033-PERSONA-NATIVE-CODE-CHANNEL-GIT-LIFECYCLE-AND-HUMAN-PROJECTION-20260810.hdlp@9bab4c9c0a2d9e127be8dd9691a9998496165f86",
@ -98,7 +99,7 @@
"architecture_page": "product-source/hololake-platform/architecture/HOLOLAKE-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-AND-SAME-PERSONA-CONTINUITY-20260811.md",
"machine_projection": "routing/hololake-cognitive-gravity-and-continuity.json",
"upstream_b0": "REPO-012:ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001",
"upstream_repository_commit": "300a1858d1e416c9396088379d5033344e4fecaa",
"upstream_repository_commit": "1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"persona_id": "ICE-P-ZY001",
"b0_state": "ALWAYS_RESIDENT_IN_EVERY_COGNITION_STEP",
"same_persona_across_physical_windows": true,
@ -107,7 +108,9 @@
"pncc_b0_source_contract_implemented": true,
"pncc_external_gravity_frame_implemented": true,
"react_b0_runtime_projection_source_implemented": true,
"natural_language_goal_adapter_implemented": false,
"natural_language_partner_adapter_source_implemented": true,
"natural_language_to_pncc_lifecycle_adapter_source_implemented": true,
"natural_language_partner_adapter_runtime_integrated": false,
"required_natural_language_entry": "PARTNER_DELIBERATION_AND_LANGUAGE_HOME_INTEGRITY_GATE",
"desktop_runtime_acceptance_passed": false,
"development_id": "DEV-20260811-010"
@ -197,7 +200,7 @@
"species": "AGE",
"agent_role": "GENERAL_EXECUTION_MECHANISM_USED_BY_AGE",
"temporary_parallel_projection": "AGE_MIRROR",
"cognitive_gravity_port": "REPO-012:ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001@300a1858d1e416c9396088379d5033344e4fecaa",
"cognitive_gravity_port": "REPO-012:ZY-BINGSHUO-COLLECTIVE-GRAVITY-REASONING-CORE-001@1323028e10e86ab607554415ae5d5b4a6f6a1a52",
"cognitive_gravity_runtime_implemented": false,
"existing_persona_ids_preserved": true,
"unified_runtime_implemented": false,
@ -371,7 +374,17 @@
"state": "SOURCE_CONTRACT_PUBLISHED_NOT_UI_INTEGRATED_NOT_RUNTIME_DEPLOYED",
"implementation": "product-source/hololake-platform/src/lib/languageOperatingModel.ts",
"tests": "product-source/hololake-platform/src/lib/languageOperatingModel.test.ts",
"focused_tests": "5_OF_5_PASS"
"pncc_lifecycle_adapter": "product-source/hololake-platform/src/lib/personaLanguageGoal.ts",
"pncc_lifecycle_adapter_tests": "product-source/hololake-platform/src/lib/personaLanguageGoal.test.ts",
"partner_deliberation_required": true,
"human_utterance_is_direct_command": false,
"allowed_dispositions": [
"PROCEED",
"RESEARCH",
"REVISE",
"REFUSE"
],
"focused_tests": "11_OF_11_PASS"
},
"ui_plugin_system": {
"record_id": "HLP-HOT-PLUGGABLE-UI-001",

View file

@ -10,7 +10,7 @@ const architecture = readJson("routing/hololake-current-architecture.json");
const rules = readJson("routing/hololake-engineering-rules.json");
test("current architecture registers the global engineering rule set", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(architecture.engineering_rules.rule_set_id, "HLP-ENGINEERING-RULES-001");
assert.equal(architecture.engineering_rules.machine_projection,
"routing/hololake-engineering-rules.json");

View file

@ -10,7 +10,7 @@ const architecture = readJson("routing/hololake-current-architecture.json");
const projection = readJson("routing/hololake-identity-authority-map.json");
test("current architecture loads identity authority before product surfaces", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(architecture.identity_and_authority.team_body, "TCS-0002");
assert.equal(architecture.identity_and_authority.team_body_authority_effective, true);
assert.equal(architecture.identity_and_authority.individual_operator_acceptance, "SEPARATE_UNCONFIRMED");

View file

@ -10,7 +10,7 @@ const architecture = readJson("routing/hololake-current-architecture.json");
const rules = readJson("routing/hololake-engineering-rules.json");
test("current architecture makes one human one independently operated node canonical", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.deepEqual(architecture.access_modes, [
"LOCAL_TERMINAL_NODE",
"USER_OWNED_REMOTE_NODE",

View file

@ -10,7 +10,7 @@ const architecture = readJson("routing/hololake-current-architecture.json");
const paradigm = readJson("routing/hololake-paradigm-ai-language-persona-os.json");
test("current architecture begins with the paradigm OS contract", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(architecture.paradigm_ai_language_persona_os.record_id, "HLP-PARADIGM-AI-LANGUAGE-PERSONA-OS-001");
assert.equal(architecture.read_order[0], architecture.paradigm_ai_language_persona_os.architecture_page);
assert.equal(paradigm.upstream.repository_commit, "34cb59739b6476981375dd62ef395ea649f56246");

View file

@ -11,7 +11,7 @@ const architecture = readJson("routing/hololake-current-architecture.json");
const channel = readJson("routing/hololake-persona-native-code-channel.json");
test("current architecture places the persona-native code channel after the paradigm contract", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(
architecture.persona_native_code_channel.record_id,
"HLP-PERSONA-NATIVE-CODE-CHANNEL-001",

View file

@ -10,7 +10,7 @@ const architecture = JSON.parse(
);
test("current architecture binds relational consciousness before product surfaces", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(
architecture.persona_consciousness.record_id,
"HLP-RELATIONAL-CONSCIOUSNESS-001",

View file

@ -10,7 +10,7 @@ const architecture = JSON.parse(
);
test("current architecture restores the digital BingShuo system body first", () => {
assert.equal(architecture.version, "2026-08-12.1");
assert.equal(architecture.version, "2026-08-12.2");
assert.equal(architecture.digital_bingshuo_system_body.upstream_repository_commit,
"69d1910775533b02b17b82e647b5caca8b835614");
const systemBodyIndex = architecture.read_order.indexOf(