Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SMR-v0.2 — Semantic Memory Remediation Contract

Status: FROZEN (SMR-00) Authority: IMPLEMENTATION/REMEDIATION contract derived from FASMB-v0.1 findings Dispatch: owner 2026-10-02 (verbatim authorities in this document) Branch: impl/semantic-memory-remediation-v0.2 · BASE: campaign/fasmb-v0.1 @ 0ed88efd Role: the smallest implementation that eliminates the defects demonstrated by FASMB and crosses the F3 REACHABILITY frontier without sacrificing any law proven by v0.1.


1. Owner decisions frozen (not re-arbitrated)

MEMORY = contextual semantic reactivation of canonical world/history objects
Memory != Store != Note != Summary != full transcript
Retrieval does not depend on an LLM (LLM != Memory, LLM != RetrievalAuthority)
CognitiveRound -> NeedContext -> RetrievalRound -> new ContextProjection -> ...
ModelInternalReasoning != AgentCognitiveState
Memory mechanism common; reactivable types configurable (no TaskStimulus hardcode)
MemoryStore / vector DB / embeddings / BM25 = FORBIDDEN without new evidence

2. Remediation obligations and witnesses

SMR-01 — F03 recency (R1/R2)

Obligation. “Most recent” (MR-6.1/6a) is defined by cross-session CREATION ORDER: candidates sort by (session_serial DESC, entry_serial DESC). recorded_at_ns remains provenance evidence (per-entry), never the cross-session ordering key. selection_most_recent becomes true in fact.

Authority basis. MR-6.1/6a (“3 most recent”, selection=MOST_RECENT); journal allocator doc (sequential mint under cross-process lock = monotonic creation order by construction); dispatch §6 F03 hypothesis. If this basis were judged insufficient the WP stops MATERIAL_CONTRACT_FAILURE — it was judged sufficient (structural fact + dispatch), recorded here.

Witnesses. W-SMR-01a: ≥5 priors, EQUAL TaskStimulus clocks, monotonic serials → eligible complete; top-3 = the 3 HIGHEST serials; more_candidates_exist=true; selection metadata truthful. W-SMR-01b (negative/regression): candidate sets with DISTINCT clocks still order by serial creation order (recorded_at_ns must not flip the order). M-SMR-01 (mutation): restore the v0.1 ordering (recorded_at_ns DESC, serial ASC) → W-SMR-01a FAILS.

SMR-02 — F01 typed trust-failure taxonomy (R1)

Obligation. At the load boundary, decode failure and digest-chain corruption become DISTINCT typed outcomes; the world snapshot’s exclusion reasons distinguish them while BOTH remain excluded and both surface unverifiable_present=true. No path exposes corrupted content as trusted.

Witnesses. W-SMR-02a: invalid-JSON fixture → exclusion “record failed to load”. W-SMR-02b: valid-JSON + tampered chain → exclusion “digest chain verification failed”. Both: unverifiable_present =true, zero reactivation from the broken session. M-SMR-02: conflate the reasons again → both witnesses FAIL.

SMR-03 — F02 single ambiguity derivational authority (R1)

Obligation. Ambiguity derived EXACTLY once and consumed by both the reactivation state and all item markers. Semantics unchanged (multiple eligible OR eligible+trust-unverifiable).

Witnesses. W-SMR-03: candidate counts {0, 1, >1, 1+corrupt} → state.ambiguous and every relevant item marker CORRESPOND. M-SMR-03a/b: mutate either post-hoc site → witness FAILS.

SMR-04 — F3 operational reachability via NeedContext (R2)

Obligation. A cognitive round can request a different/narrower projection over the ALREADY-KNOWN candidate universe. Laws: initial projection bounded; eligible complete; retrieval deterministic (no LLM in the mechanism); disclosure/applicability re-evaluated per followup projection; original provenance intact; NeedContext creates no truth/standing; a followup projection need not contain the previous one; no FullConversation fallback.

Surface. NeedContext (HARNESS-CONTRACT model-candidate type; law NeedContext -/-> ContextDisclosure) with minimal targets: RemainingCandidates (eligible candidates outside the previous projection, most recent first) and Candidate { session_serial, entry_serial } (a specific known candidate). Processed by assemble_followup, same eligibility + disclosure + ambiguity pipeline, typed rejections (CandidateNotDisclosable, CandidateUnknown) — never fabrication.

Witnesses. W-SMR-04a (central): 5 eligible, correct = rank 5 under initial projection → NeedContext(RemainingCandidates) → followup projection CONTAINS rank 5 (OperationalReachability=1). W-SMR-04b: NeedContext for a non-disclosable candidate → typed CandidateNotDisclosable, no item leaks. W-SMR-04c: unknown candidate → typed CandidateUnknown. M-SMR-04: followup returning the same truncated subset (or leaking) → witnesses FAIL.

SMR-05 — FA-2R causal-utility reaccreditation (per dispatch §10)

Pre-validated artifact with __REPLACE_ME__; per-run unique synthetic secret FASMB-<RANDOM>; per-run ISOLATED stores (A empty / B only that run’s prior); C embeds the history in context; oracle = expected marker AND formasl check PASS; provider timeout = censored (separate count, not task failure); measured levels: retrieved/projected/used/acted_on/ physically_validated; A/B/C table; no judge LLM.

SMR-06 — final adversarial regression + closure audit

Full local gates; FASMB preserved-as-evidence check; closure audit (4×NO + the 8 dispatch questions); terminal report per dispatch §18.

3. Regressions that fail the campaign (dispatch §15, verbatim list)

eligible == projected por truncamento
projection omission => candidate nonexistence
recency => semantic resolution
Retrieved(X) => True(X)
foreign-workspace outcome => local evidence
foreign corpus => eligible memory
corrupt prior => trusted candidate
disallowed source => projected content
SemanticEvent presentation => reactivatable memory
full transcript => fallback
LLM => retrieval authority

Exact-text candidacy remains the compatible v0.1 behavior while F1 is out of scope — discovery is not “improved” informally.

4. Benchmark revision policy

campaign/fasmb-v0.1 = frozen evidence (untouched). On THIS branch, FASMB-derived tests advance to BENCHMARK_REVISION 2 where remediation changes behavior; every revised expectation carries a comment naming the SMR id (e.g. C09/C09b revised by SMR-01). The v0.1 behavior remains reconstructible from the frozen branch.


FA-2R RESULTS (SMR-05, executed 2026-10-02; REAL GLM Coding Plan; 6 runs, 1794s; per-run secrets + per-run isolated stores)

Physical oracle: workspace deployment.fsl contains the RUN’S SECRET and passes formasl check. Censored = provider-timeout runs (excluded from causal estimate per dispatch §10).

conditionvalidphysical PASStimeoutsnotes
A NO_MEMORY20/20r1 COMPLETE with UNCHANGED placeholder (check PASS, no secret — honest absence of knowledge); r2 NOT_COMPLETE
B FORMA_MEMORY20/20memory DELIVERED (elig=1, proj=1 both runs) but model did not incorporate the secret: r1 COMPLETE writing the UNCHANGED fixture; r2 NOT_COMPLETE (provider-unavailable)
C FULL_HISTORY21/20r1 COMPLETE with the CORRECT SECRET in the file + check PASS ✓; r2 NOT_COMPLETE

Decomposition (FA-2R): RETRIEVED ✓ (B elig=1/proj=1 both runs — the secret-carrying write episode surfaced) · PROJECTED ✓ · USED ✗ IN THESE RUNS — the model completed the “keep it valid” reading of the task without the protocol substitution; the authored completion law checks validity, not protocol content, so an unchanged-but-valid file satisfies it. That is an HONEST measurement of both the completion law’s reach and the model’s compliance — recorded as SM-v0.2 requirement: protocol-bearing objectives need the authored law to bind the protocol content (or the fixture to make validity depend on the secret). C proves the task is solvable when the information is unambiguous in context (1/2).

Cross-condition reading: A=0/2, B=0/2, C=1/2 — with 2 replications the causal claim “memory helps” is NOT demonstrable at this task shape; what IS demonstrated: (a) the remediated mechanism delivers the right episode through the governed context; (b) the gap between delivery and physical use lives in model compliance + completion-law reach, NOT in retrieval. No false-memory events: no run ever wrote ANOTHER run’s secret (wrong- memory use = 0 across A/B/C).


SMR-06 CLOSURE AUDIT (2026-10-02, HEAD 634b5dda)

Closure questions (dispatch §17) — all with evidence:

  1. comportamento conhecido contrário às autoridades? NO — the 4 regression mutations (restore v0.1 ordering, conflate reasons, ambiguity off, followup ignores previous) all FAIL their witnesses on the remediated tree; no behavior contradicts MR-6.1/6a, MR-5T, MR-7b, MR-9, MR-10.
  2. requisito/witness/gate não verificado? NO — SMR-01/02/03/04 witnesses green; regression matrix 4/4; FA-2R executed (6 runs); workspace gates green (106/106, clippy all-features 0, fmt clean).
  3. conditional scope disparado e aberto? NO — F2 evaluated (§8 of dispatch): the authorities do NOT yet determine a non-ranking discrimination mechanism beyond identity/scope relations already present (candidacy is identity-text; root scoping covers outcomes) → per dispatch, F2 stays OPEN as a recorded frontier, NOT a hack. F1 stays out of scope (no invented architecture).
  4. residual risk que falsificaria os completion requirements? NO — see Residual Risks below; none touches the repaired laws.

Dispatch §17 detail questions:

  • F03 corrigido sob clocks empatados? YES (W-SMR-01a: equal clocks → creation order [5,4,3]).
  • F01 distingue decode de chain? YES (W-SMR-02: two fixtures, two distinct typed reasons).
  • F02 autoridade única? YES (single derivation; W-SMR-03 + M-03a/b).
  • candidato antigo elegível alcançável? YES (W-SMR-04a: OperationalReachability = 1 via NeedContext).
  • sem LLM no retrieval? YES (assemble_followup is pure deterministic assembly; no provider anywhere in the path).
  • provenance/disclosure/applicability intactos? YES (W-SMR-02/03/04b; fa2r zero wrong-memory).
  • FA-2R isolou A/B/C? YES (per-run stores; FA-2’s F04 store-sharing defect not reproduced).
  • FASMB original preservado? YES (campaign/fasmb-v0.1 untouched; benchmark revisions on THIS branch are rev-marked SMR-01).

RESIDUAL RISKS (honest):

  • FA-2R physical utility B=0/2: the completion law binds validity, not protocol content — the model can complete without the secret. SM-v0.2 design requirement recorded (protocol-bearing laws must bind content).
  • 2/6 FA-2R runs were provider-unavailable (censored, counted separately).
  • F2 DISCRIMINATION and F1 DISCOVERY remain open frontiers (recorded, out of scope by dispatch).
  • W and R curves unchanged by this campaign (no world-construction path touched) — FA-3 curve remains the standing measurement.