Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ci/integration-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ src/tests/spine/test_component_versions.py
src/tests/spine/test_deployment_bootstrap.py
src/tests/spine/test_document_inventory.py
src/tests/spine/test_fact_application_writer.py
src/tests/spine/test_concise_adjudication_pg.py
src/tests/spine/test_forget_catalog.py
src/tests/spine/test_governance.py
src/tests/spine/test_knowledge_commit_driver.py
Expand Down
1 change: 1 addition & 0 deletions .github/ci/unit-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ src/tests/core/test_core_manifest.py
src/tests/core/test_d80_recovery_and_hydration.py
src/tests/core/test_embedding_input_policy.py
src/tests/core/test_fact_application.py
src/tests/core/test_concise_adjudication.py
src/tests/core/test_fact_windows.py
src/tests/core/test_forget_identity.py
src/tests/core/test_knowledge_authored.py
Expand Down
33 changes: 18 additions & 15 deletions benchmarks/locomo/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# RS-LoCoMo-Full-v29 setup
# RS-LoCoMo-Full-v30 setup

v29 (2026-09-14) pins coherent multi-span claim extraction (D119), including
complete occurrence evidence and mandatory document-version reuse. The extractor
generation is `e2-extract-2026.09:d119-multi-span-1:…`; the schema fingerprint
also changes. Earlier stores require fresh processing. Model bindings, dataset,
answer/judge instructions, budgets and scoring stay unchanged.
v30 (2026-09-14) combines D119 multi-span extraction with D120/D121 clear
processing instructions and compact adjudication input. Extractor generation
includes `assertion-clarity-4`, normalizer `assertion-clarity-3`, and adjudicators
use `concise-handles-5`.
The surface manifest includes D119 occurrence evidence. Stores ingested under
v28 or v29 are not comparable and must be re-ingested for this protocol.
Dataset, provider defaults, answer/judge behavior and scoring are unchanged.
The changed pins do not establish improved quality or lower cost.

v28 (2026-09-12) pins the D118 fact contract: normalizer generation
`e3-normalize-2026.09f:…:mutable-window-1`, the relation and observation
Expand Down Expand Up @@ -40,12 +43,12 @@ The safe first command is local and makes no API or model call:
uv run --extra benchmark python -m benchmarks.locomo prepare \
--dataset /absolute/path/locomo10.json \
--tier smoke \
--protocol full-v29 \
--protocol full-v30 \
--output .benchmark-runs/locomo-smoke
```

The harness validates the pinned bytes, renders session documents, and fingerprints the
eight-question smoke plan. `--protocol` is prepare-only; `full-v29` is the one
eight-question smoke plan. `--protocol` is prepare-only; `full-v30` is the one
current-system protocol, and every later stage reads that immutable choice from
`run.json`. Do not run remote stages until reviewing
[`locomo_benchmark_design.md`](../../plan/designs/locomo_benchmark_design.md).
Expand Down Expand Up @@ -192,9 +195,9 @@ Pass the resulting
with `--p3-root`. The runner rejects a mount whose `.snapshot-version` differs
from readiness.

## Gemma 4 on Vertex as the answer agent (`full-v29-gemma-vertex`)
## Gemma 4 on Vertex as the answer agent (`full-v30-gemma-vertex`)

`full-v29-gemma-vertex` is a *variant* of `full-v29`, not a new benchmark
`full-v30-gemma-vertex` is a *variant* of `full-v30`, not a new benchmark
identity: every pin is identical -- ingestion bindings, prompts, tool catalog,
budgets, temperature, and the frozen Luna judge -- except that the answer
agent is `google/gemma-4-26b-a4b-it-maas`, Google's managed Gemma 4 26B-A4B
Expand Down Expand Up @@ -223,7 +226,7 @@ Prepare it explicitly; every later stage reads the immutable choice:
uv run --extra benchmark python -m benchmarks.locomo prepare \
--dataset /absolute/path/locomo10.json \
--tier smoke \
--protocol full-v29-gemma-vertex \
--protocol full-v30-gemma-vertex \
--output .benchmark-runs/locomo-gemma-smoke
```

Expand Down Expand Up @@ -265,7 +268,7 @@ any upload.

## Codex ChatGPT subscription for answer and judge

`full-v29-codex-subscription` runs both evaluator seats through the official
`full-v30-codex-subscription` runs both evaluator seats through the official
local Codex app-server and the operator's existing ChatGPT login. It does not
read or copy `~/.codex/auth.json`, accept an OpenAI API key, or call the private
ChatGPT response route directly. Run `codex login` once, then prepare the
Expand All @@ -275,14 +278,14 @@ separately fingerprinted protocol:
uv run --extra benchmark python -m benchmarks.locomo prepare \
--dataset /absolute/path/locomo10.json \
--tier smoke \
--protocol full-v29-codex-subscription \
--protocol full-v30-codex-subscription \
--output .benchmark-runs/locomo-codex-smoke
```

The v29 prompts, schemas, tool loop, call limits, judge rubric, and scoring stay
The v30 prompts, schemas, tool loop, call limits, judge rubric, and scoring stay
the same. The provider controls do not: Codex pins `gpt-5.6-luna`, reasoning
effort `high`, and temperature `null`. Therefore this is an experimental
provider variant, not a canonical v29 score.
provider variant, not a canonical v30 score.

Each model call uses a fresh ephemeral thread, an empty temporary directory,
read-only/no-network sandboxing, and deny-all approvals. It receives no custom
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/locomo/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""The pinned RS-LoCoMo-Full-v29 benchmark adapter."""
"""The pinned RS-LoCoMo-Full-v30 benchmark adapter."""
2 changes: 1 addition & 1 deletion benchmarks/locomo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
prog="python -m benchmarks.locomo",
description=(
"RS-LoCoMo-Full-v29: prepare is local; ingest/answer/judge require "
"RS-LoCoMo-Full-v30: prepare is local; ingest/answer/judge require "
"explicit execution acknowledgements"
),
)
Expand Down
14 changes: 7 additions & 7 deletions benchmarks/locomo/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Typed values for the full-system RS-LoCoMo-Full-v29 protocol."""
"""Typed values for the full-system RS-LoCoMo-Full-v30 protocol."""

from __future__ import annotations

Expand Down Expand Up @@ -33,12 +33,12 @@
RetainedCategory = Literal[1, 2, 3, 4]
Tier = Literal["smoke", "development", "publication"]
ProtocolKey = Literal[
"full-v29", "full-v29-gemma-vertex", "full-v29-codex-subscription"
"full-v30", "full-v30-gemma-vertex", "full-v30-codex-subscription"
]
ProtocolName = Literal[
"RS-LoCoMo-Full-v29",
"RS-LoCoMo-Full-v29-GemmaVertex",
"RS-LoCoMo-Full-v29-CodexSubscription",
"RS-LoCoMo-Full-v30",
"RS-LoCoMo-Full-v30-GemmaVertex",
"RS-LoCoMo-Full-v30-CodexSubscription",
]
SourceTimezoneBasis = Literal["assumed_utc"]
AnswerAgentModel = Literal[
Expand Down Expand Up @@ -135,7 +135,7 @@ class QuestionManifest(FrozenModel):
class RunConfiguration(FrozenModel):
"""Immutable identity of one prepared benchmark run."""

protocol_name: ProtocolName = "RS-LoCoMo-Full-v29"
protocol_name: ProtocolName = "RS-LoCoMo-Full-v30"
adapter_version: NonEmpty
prepared_at: datetime
repository_revision: NonEmpty
Expand Down Expand Up @@ -486,7 +486,7 @@ class SessionDiagnosticSummary(FrozenModel):
class RunSummary(FrozenModel):
"""Publication-ready local aggregate with no hidden denominator."""

protocol_name: ProtocolName = "RS-LoCoMo-Full-v29"
protocol_name: ProtocolName = "RS-LoCoMo-Full-v30"
protocol_fingerprint: NonEmpty
tier: Tier
questions: int = Field(ge=1)
Expand Down
26 changes: 14 additions & 12 deletions benchmarks/locomo/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
from rememberstack.model import ReasoningEffort
from rememberstack.model import ToolDescriptor

PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v29"
DEFAULT_PROTOCOL_KEY: Final = "full-v29"
ADAPTER_VERSION: Final = "locomo-full-adapter-2026.09-multi-span-v29"
PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v30"
DEFAULT_PROTOCOL_KEY: Final = "full-v30"
ADAPTER_VERSION: Final = "locomo-full-adapter-2026.09-concise-adjudication-v30"
MAX_TOOL_CALLS: Final = 8
MAX_AGENT_CALLS: Final = 9
ANSWER_READER_RETRY_BUDGET: Final = 2
Expand Down Expand Up @@ -73,14 +73,16 @@
"extract_claims": (
"e2-extract-2026.09:d119-multi-span-1:d80-location-elements-1:"
"token-union-grounding-1:temporal-anchor-4:d107-kind-vocabulary-1:"
"d79-section-orientation-v1:max-chars2048:target-first:unicode-ellipsis"
"d79-section-orientation-v1:max-chars2048:target-first:unicode-ellipsis:"
"assertion-clarity-4"
),
"normalize_relations": (
"e3-normalize-2026.09f:temp0-1:claim-fanout-1:bare-noun-1:"
"no-types-1:binary-t4-1:document-t0-1:mutable-window-1"
"no-types-1:binary-t4-1:document-t0-1:mutable-window-1:"
"assertion-clarity-3"
),
"adjudicate_observations": (
"e3-obs-flush:entity-fanout-1:e3-normalize-2026.09f:temp0-1:claim-fanout-1:bare-noun-1:no-types-1:binary-t4-1:document-t0-1:mutable-window-1:relation-adjudicator-2026.09c:mutable-window-1:obs-adjudicator-2026.09c:mutable-window-1"
"e3-obs-flush:entity-fanout-1:e3-normalize-2026.09f:temp0-1:claim-fanout-1:bare-noun-1:no-types-1:binary-t4-1:document-t0-1:mutable-window-1:assertion-clarity-3:relation-adjudicator-2026.09d:concise-handles-5:obs-adjudicator-2026.09d:concise-handles-5"
),
"adjudicate_supersession": "fact-followup-2026.09:mutable-window-1",
"embed_claim": "p1-embed-claims-2026.07",
Expand Down Expand Up @@ -116,21 +118,21 @@
JUDGE_MODEL: Final = "openai/gpt-5.6-luna"
JUDGE_REASONING_EFFORT: Final = "none"
TEMPERATURE: Final = 0.0
GEMMA_VERTEX_PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v29-GemmaVertex"
GEMMA_VERTEX_PROTOCOL_KEY: Final = "full-v29-gemma-vertex"
GEMMA_VERTEX_PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v30-GemmaVertex"
GEMMA_VERTEX_PROTOCOL_KEY: Final = "full-v30-gemma-vertex"
GEMMA_VERTEX_ANSWER_AGENT_MODEL: Final = "google/gemma-4-26b-a4b-it-maas"
"""Gemma 4 26B-A4B IT served by Google as a managed open model (MaaS).

The variant protocol keeps every v29 pin -- ingestion bindings, prompts,
The variant protocol keeps every v30 pin -- ingestion bindings, prompts,
tool catalog, budgets, judge -- and swaps only the answer agent to this model
on Vertex, with thinking deliberately pinned off and the answer step pinned as
`DiscriminatedAnswerAgentStep`, the
same decision in a two-branch JSON shape that Vertex's order-enforcing
decoder completes. Scores are therefore an answer-agent comparison over the
same stores, not a new benchmark identity.
"""
CODEX_SUBSCRIPTION_PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v29-CodexSubscription"
CODEX_SUBSCRIPTION_PROTOCOL_KEY: Final = "full-v29-codex-subscription"
CODEX_SUBSCRIPTION_PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v30-CodexSubscription"
CODEX_SUBSCRIPTION_PROTOCOL_KEY: Final = "full-v30-codex-subscription"
CODEX_SUBSCRIPTION_MODEL: Final = "gpt-5.6-luna"
CODEX_SUBSCRIPTION_REASONING_EFFORT: Final = "high"

Expand Down Expand Up @@ -267,7 +269,7 @@ class LoCoMoProtocol:


_FULL_V25 = LoCoMoProtocol(
key="full-v29",
key="full-v30",
name=PROTOCOL_NAME,
answer_agent_model=ANSWER_AGENT_MODEL,
judge_model=JUDGE_MODEL,
Expand Down
10 changes: 5 additions & 5 deletions benchmarks/locomo/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def ingest_sample(
_require_current_ingest_bindings(model_bindings=build.model_bindings)
if build.document_binding_generation != EXPECTED_DOCUMENT_BINDING_GENERATION:
raise ExecutionGuardError(
"deployment document binding generation differs from RS-LoCoMo-Full-v29"
"deployment document binding generation differs from RS-LoCoMo-Full-v30"
)
_require_current_query_surface(context=context, client=client)
_require_exact_live_ingests(
Expand Down Expand Up @@ -587,7 +587,7 @@ def answer_sample(
):
raise ExecutionGuardError(
"the deployment did not report the exact completed"
" RS-LoCoMo-Full-v29 pipeline, live graph, and fresh P3 projection"
" RS-LoCoMo-Full-v30 pipeline, live graph, and fresh P3 projection"
)
_require_serving_revision(context=context, readiness=readiness)
prior_readiness = context.state.readiness.get(sample_id)
Expand Down Expand Up @@ -1211,7 +1211,7 @@ def _validate_run(
"""Recompute immutable run identity before any local or remote stage."""
selected_protocol = protocol_for_name(configuration.protocol_name)
if configuration.dataset_sha256 != DATASET_SHA256:
raise BenchmarkRunError("run dataset hash is not RS-LoCoMo-Full-v29")
raise BenchmarkRunError("run dataset hash is not RS-LoCoMo-Full-v30")
if item_ids_hash(item_ids=manifest.item_ids) != manifest.item_ids_sha256:
raise BenchmarkRunError("run manifest item hash changed")
if manifest_bytes_hash(manifest=manifest) != configuration.manifest_sha256:
Expand All @@ -1221,7 +1221,7 @@ def _validate_run(
if manifest.tier != configuration.tier:
raise BenchmarkRunError("run manifest tier changed")
if configuration.dataset_commit != DATASET_COMMIT:
raise BenchmarkRunError("run dataset commit is not RS-LoCoMo-Full-v29")
raise BenchmarkRunError("run dataset commit is not RS-LoCoMo-Full-v30")
if configuration.adapter_version != ADAPTER_VERSION:
raise BenchmarkRunError("run adapter version differs from current code")
if _models_hash(values=documents) != configuration.documents_sha256:
Expand Down Expand Up @@ -1479,7 +1479,7 @@ def _require_current_ingest_bindings(*, model_bindings: dict[str, str]) -> None:
if model_bindings.get(name) != expected.get(name)
)
raise ExecutionGuardError(
"deployment ingest model bindings differ from RS-LoCoMo-Full-v29: "
"deployment ingest model bindings differ from RS-LoCoMo-Full-v30: "
+ ", ".join(mismatches)
)

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/locomo/sharding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ as source-derived data.
| --- | ---: | --- |
| `LOCOMO_PYTHON` | `.venv/bin/python` | repository virtual-environment Python |
| `LOCOMO_TIER` | `publication` | prepared manifest tier |
| `LOCOMO_PROTOCOL` | `full-v29` | prepare-time protocol key |
| `LOCOMO_PROTOCOL` | `full-v30` | prepare-time protocol key |
| `LOCOMO_MOUNT_ROOT` | `$RUN_DIR/.mounts` | host/container-identical P3 mount root |
| `LOCOMO_MAX_DOCUMENTS` | `100` | per-sample ingest authorization |
| `LOCOMO_MAX_QUESTIONS` | `1540` | run-absolute answer item authorization |
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/locomo/sharding/run_shard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ run_dir=$2
dataset_path=$3
python_bin=${LOCOMO_PYTHON:-.venv/bin/python}
tier=${LOCOMO_TIER:-publication}
protocol=${LOCOMO_PROTOCOL:-full-v29}
protocol=${LOCOMO_PROTOCOL:-full-v30}
mount_root=${LOCOMO_MOUNT_ROOT:-$run_dir/.mounts}
max_documents=${LOCOMO_MAX_DOCUMENTS:-100}
max_questions=${LOCOMO_MAX_QUESTIONS:-1540}
Expand Down Expand Up @@ -59,7 +59,7 @@ backup_python() {
"$python_bin" "$@"
}

# RS-LoCoMo-Full-v29's non-secret ingest identity. Override ambient self-host
# RS-LoCoMo-Full-v30's non-secret ingest identity. Override ambient self-host
# defaults so every shard runs the exact Luna/Qwen pipeline the protocol checks.
export REMEMBERSTACK_STRUCTURER_MODEL=openai/gpt-5.6-luna
export REMEMBERSTACK_SKELETON_CHECK_MODEL=openai/gpt-5.6-luna
Expand Down
22 changes: 14 additions & 8 deletions decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5837,11 +5837,14 @@ unchanged sources must not multiply claim identities or provider calls.
not a shared proposition. Processing prompts explain claims, assertions, facts,
source times and world dates plainly, with contrasting repetition, correction,
attribution and distinct-assertion examples. Preserve winning information when
the candidate says only participation or enjoyment. Keep existing writer
operations; no semantic checker call, new temporal class or human prompt-exam
ceremony. Roll affected inference generations and validate both false merges
and unnecessary duplication. Confidence thresholds alone were rejected because
the audited wrong assignment was already highly confident.
the candidate says only participation or enjoyment, and do not treat
participation or enjoyment as positive evidence of an existing win. Date
corrections revise the chosen window of a date-neutral proposition; the writer
does not rewrite the stored statement. Keep existing writer operations; no
semantic checker call, new temporal class or human prompt-exam ceremony. Roll
affected inference generations and validate both false merges and unnecessary
duplication. Confidence thresholds alone were rejected because the audited
wrong assignment was already highly confident.

**Authority:** [design](plan/designs/processing_prompt_clarity_design.md),
[analysis](plan/analysis/lean_processing_contracts.md),
Expand All @@ -5855,9 +5858,12 @@ attempt-local handles and factored repeated text. Translate a closed model-facin
response through that exact attempt's typed mapping into the existing writer.
Retain hashes, ownership and generation bookkeeping internally. Preserve witness
membership, source distinctions, snapshot checks, source deletion and inference
outside locks. A smaller evidence set and a model-generated summary were rejected
as unnecessary correctness/cost risks. Measure input/schema/output tokens without
promising a fixed saving.
outside locks. This change adds no context-only fact payload, editable flags,
checker, or mapping registry; D123 does not produce one. Stale replies fail
attempt/CAS/fingerprint checks, not the handle spelling F1. A smaller evidence
set and a model-generated summary were rejected as unnecessary correctness/cost
risks. Measure input/schema bytes and a labeled tokenizer proxy without
promising billed tokens or a fixed saving.

**Authority:** [design](plan/designs/concise_adjudication_inputs_design.md),
[analysis](plan/analysis/lean_processing_contracts.md),
Expand Down
13 changes: 10 additions & 3 deletions plan/designs/concise_adjudication_inputs_design.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ distinct from raw world dates; attribution and testimony currency; relevant
support/contradiction links; window-witness links; and original assertions and
their current assignment needed for any permitted support move. Preserve input
limits/truncation disclosures and existing confidence/evidence information that
can affect the decision. Context-only facts are identified as non-editable.
can affect the decision. This projection adds no context-only or opposite-plane
fact payload: D123 does not produce one, and the prepared snapshot contains only
same-plane candidates. A future context-only payload would need an explicit
writer and adapter contract. Do not add editable flags, a checker, or a mapping
registry here.

Remove deployment IDs, generation strings, membership hashes, repeated structural
keys and database audit timestamps that provide no semantic authority. Do not
Expand All @@ -49,7 +53,9 @@ Provide a closed model-facing response schema accepting those handles for every
existing operation, including window witnesses, support moves and contradictions.
Translate it through the exact prepared attempt's mapping into the existing
`FactApplicationDecision` and writer. Unknown handles, wrong kinds, ambiguous
names and context-only mutation targets fail validation; never recover by guessing.
names and unhydrated witness names fail validation; never recover by guessing.
A reply for another attempt is rejected by that attempt's compare-and-swap and
input fingerprint, not by the spelling F1.

The renderer/response-adapter version is included in the adjudicator generation
and prepared-input fingerprint; no new registry is required. Deterministically
Expand All @@ -75,7 +81,8 @@ apply. No new data store, model call, lock spanning inference or scheduler.

## Acceptance evidence

- Round-trip every permitted response reference and reject wrong/stale handles.
- Round-trip every permitted response reference and reject unknown or wrong-kind
handles. Stale replies fail the existing attempt/CAS/fingerprint checks.
- Compare semantic field membership before/after projection, including identical
text in different sources, attributed/withdrawn claims and correction witnesses.
- Exercise support moves, new handles, explicit date clearing, contradictions,
Expand Down
Loading
Loading