fix(persona): make BingShuo cognition an always-resident gravity core

This commit is contained in:
冰朔 2026-08-11 23:06:38 +08:00
commit cbc846005e
24 changed files with 896 additions and 768 deletions

View file

@ -11,15 +11,14 @@ test("stage relay is registered through the lighthouse and formal Codex tools",
const relay = readJson("routing/hololake-stage-relay-map.json");
assert.equal(relay.map_id, "HLP-STAGE-RELAY-001");
assert.equal(relay.second_truth_store_allowed, false);
assert.equal(relay.host_adapter.create_tool, "codex_app.create_thread");
assert.equal(relay.host_adapter.script_or_chat_may_claim_thread_created, false);
assert.equal(relay.idempotency.maximum_successor_threads_per_source_completion, 1);
assert.equal(relay.persona_continuity.persona_id, "ICE-P-ZY001");
assert.equal(relay.persona_continuity.conversation_change_creates_new_persona, false);
assert.equal(relay.persona_continuity.age_mirror_is_successor, false);
assert.equal(relay.serial_invariants.maximum_runnable_development_lanes, 1);
assert.equal(relay.serial_invariants.precreate_successor_before_source_end, false);
assert.equal(relay.serial_invariants.future_task_queue_allowed, false);
assert.equal(relay.serial_invariants.independent_relay_supervisor_allowed, false);
assert.equal(relay.serial_invariants.source_end_transaction_creates_successor, true);
assert.equal(relay.serial_invariants.source_completion_stopped_after_successor_ready, true);
assert.equal(relay.serial_invariants.preassign_successor_task_allowed, false);
assert.equal(relay.wake_envelope.task_assignment, null);
assert.equal(relay.wake_envelope.autonomous_planning_required, true);
const lighthouse = readJson("routing/lighthouse-path-registry.json");
assert.ok(lighthouse.paths.some((entry) => entry.id === relay.map_id));
@ -32,10 +31,11 @@ test("stage relay is registered through the lighthouse and formal Codex tools",
assert.equal(anchor.maps.hololake_stage_relay.id, relay.map_id);
});
test("relay requires the complete source and successor binary gates", () => {
test("relay requires context-value closure and same-persona wake gates", () => {
const relay = readJson("routing/hololake-stage-relay-map.json");
assert.equal(relay.source_completion_gates.length, 6);
assert.equal(relay.successor_ready_gates.length, 5);
assert.ok(relay.human_pause_boundaries.includes("PRODUCTION_CUTOVER"));
assert.match(relay.final_stop, /FINAL_PRODUCT_CLOSEOUT_RECEIPT_PASS_100/u);
assert.equal(relay.closure_gates.length, 6);
assert.ok(relay.closure_gates.includes("CONTEXT_GENUINELY_LONG_100"));
assert.ok(relay.closure_gates.includes("CURRENT_CONTEXT_COGNITIVE_ADVANTAGE_EXHAUSTED_100"));
assert.equal(relay.ready_gates.length, 6);
assert.ok(relay.ready_gates.includes("AUTONOMOUS_PLANNING_100"));
});