core/core
Shay 5a343b49e9 fix(pipeline): back-stamp served surface onto TurnEvent — close T13 telemetry-consistency red
CognitiveTurnPipeline emits TurnEvent inside runtime.chat() and only THEN
applies the #96 fail-closed surface resolution (resolve_surface) and the #97
logos-morph override — so an overridden turn's telemetry recorded a surface
the user never saw. warmed_session_consistency telemetry_consistency_rate was
0.9444 on main (fast-lane red since #96 e0d1b475): an audit/replay trust break
(Absolute Provenance).

Add ChatRuntime.finalize_turn_surface, a sibling to finalize_turn_trace_hash:
the pipeline owns the final surface decision, so it back-stamps the resolved
surface onto turn_log[-1] immediately after the trace-hash back-stamp.
trace_hash byte-identity is preserved — it folds the pre-decoration surface,
not the served surface.

Scope: telemetry-consistency half of T13 only.
- Decision (2), the goldtether over-refusal, is orthogonal to the red and
  OPEN pending ruling (ledger) — recommend AGAINST a query-type cue bypass
  (fail-open / ADR-0252-retired cue-table pattern); prefer routing
  open-geometry-but-pack-grounded surfaces to the existing hedge arm.
- Durable-sink deferral tracked as R7.

telemetry_consistency_rate 0.9444 -> 1.0 (10/10 warmed_session tests green).

[Verification]: uv run core test --suite smoke -q in core-wt-t13serve @ HEAD — 180 passed in 133.17s, exit 0; warmed_session lane 10/10 green.
2026-07-22 21:28:39 -07:00
..
abi feat(abi): Implement GeometricDelta ABI, validator, delta store, and documentation 2026-07-11 02:16:57 -07:00
adr feat(third-door): #21 trajectory invariants + ADR-DAG embedding (Python) 2026-07-13 21:51:42 -07:00
capability Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cognition fix(pipeline): back-stamp served surface onto TurnEvent — close T13 telemetry-consistency red 2026-07-22 21:28:39 -07:00
comprehension_attempt feat(contemplation): wire CMB into multi-organ router and failure registry (CMB-d) 2026-06-08 13:58:48 -07:00
contemplation feat(adr-0244): Phase 5a — §2.7 content-id semantic rigor (4 sites) 2026-07-17 19:48:11 -07:00
demos fix(ci): path-stable env deltas so lane SHA pins stop thrashing 2026-07-14 17:41:04 -07:00
epistemic_disclosure fix(ask): canonicalize question/proposal path collision check 2026-06-10 12:44:46 -07:00
epistemic_questions feat(ask): add default-dark ASK serving gate helper 2026-06-09 09:17:14 -07:00
learning_arena feat: add tier2 reasoning evidence spine 2026-06-04 14:12:18 -07:00
physics fix: skeptic remediations for Stage 3–4 exit gates 2026-07-20 14:08:37 -07:00
ports feat(ring2-ring3): multi-port residual protocol + integrity-coordinated handoff 2026-07-17 23:56:01 -07:00
proposal_review feat(proposal-review): pure idle_summary function (IT-a) 2026-06-07 22:25:00 -07:00
protocol feat(protocol): ADR-0140 CORE Trace Protocol v0 (#259) 2026-05-25 06:08:51 -07:00
reasoning feat(reasoning): field-wedge foundation — f64 embedding, lineage firewall, INV-27 2026-06-04 19:22:16 -07:00
reliability_gate feat(adr-0175): wire the PROPOSE step — autonomous loop closes (attempt->tether->ledger->propose) 2026-05-30 13:50:24 -07:00
response_governance feat(frame-verdict): closed-world FrameVerdict substrate — PR-1..4 + hardening (ADR-0222 B4) (#787) 2026-06-16 06:23:03 -07:00
semantic_primitives feat(logos): bulk live morph authority on turn + teaching seams 2026-07-20 16:35:04 -07:00
sync feat(sync): export optional S3 adapter 2026-05-29 19:47:24 -07:00
__init__.py chore: fix package name, add core/__init__.py, ADR-0011, session note 2026-05-13 2026-05-13 10:44:42 -07:00
_safe_display.py feat(adr-0051): trust-boundary hardening pass 2026-05-18 07:09:55 -07:00
array_codec.py feat(edge): edge-deployment budget gate — deterministic per-turn persistence cost 2026-06-06 10:27:10 -07:00
cli.py fix: full-suite gates — suite SoT + multi-root depth pin 2026-07-20 14:58:21 -07:00
cli_capability.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_doctor.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_eval.py chore: Refactor CLI and Governance Anchors (#926) 2026-07-03 12:34:56 -07:00
cli_ingest.py chore: Refactor CLI and Governance Anchors (#926) 2026-07-03 12:34:56 -07:00
cli_pack.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_rust.py chore: Refactor CLI and Governance Anchors (#926) 2026-07-03 12:34:56 -07:00
cli_teaching.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_test.py test(physics): Stage 2 hardening pins for scale domain, L2 excision, parity 2026-07-20 13:45:05 -07:00
config.py feat(physics,cognition): Cl(4,1) geometric sovereignty convergence 2026-07-20 12:20:05 -07:00
engine_identity.py feat(identity): split engine identity from build provenance (ADR-0220 PR C) (#774) 2026-06-15 11:38:04 -07:00
epistemic_state.py feat(workbench-ui): design system v1 scaffold (ADR-0162 Branch 1) (#295) 2026-05-26 11:33:27 -07:00