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
22 changes: 17 additions & 5 deletions benchmarks/locomo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RS-LoCoMo-Full-v39 setup
# RS-LoCoMo-Full-v40 setup

One current execution profile uses Luna 6 for ingestion and vision at low
reasoning, Luna 6 for answering and judging at high reasoning, and Jev
Expand All @@ -23,16 +23,28 @@ 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-v39 \
--protocol full-v40 \
--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-v39` is the one
eight-question smoke plan. `--protocol` is prepare-only; `full-v40` 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).

Full-v40 asks the answerer to give its best-supported answer to every scored
question, including a qualified inference when evidence is indirect. It forbids
terminal abstentions such as `Unknown`; uncertainty belongs in `likely` or
`possibly` attached to an actual answer. The prompt still forbids invented source
details, preserves entity/time constraints, and exposes no reference answers.
This is benchmark answer-agent policy, not a change to engine evidence or typed
negatives. The existing judge, models, retrieval depths, and call/cost guards are
unchanged. Noncompliant model outputs and infrastructure failures remain visible;
the harness never fabricates an answer to replace them. Prepare a new run for
this protocol; preserve old answers and fingerprints. This prompt change adds
no cross-revision ingestion-adoption command or compatibility contract.

V17 must ingest into a fresh store built from the repository revision recorded
in `run.json`. Store backups protect interrupted work and allow restoration of
that exact run; they are not a license to carry ingestion across a changed
Expand Down Expand Up @@ -180,7 +192,7 @@ from readiness.

## Retrieval-access ablations (development only)

The additive D124 runner reuses one completely processed Full-v39 sample and
The additive D124 runner reuses one completely processed Full-v40 sample and
compares four answer routes without re-ingesting it:

| Profile | Answer runtime | Available evidence |
Expand Down Expand Up @@ -251,7 +263,7 @@ Codex home merely to hide those schemas.
Only compare `codex-p3` with `codex-p3-mcp`, and `mcp` with `mcp-p3`, as causal
access changes. Cross-runtime scores are directional because native Codex has
its own agent loop and shell semantics. A Codex result with `audit_status`
`pending` or `invalid` is not comparable. The canonical Full-v39 protocol and
`pending` or `invalid` is not comparable. The canonical Full-v40 protocol and
its source state are never modified by this command.

## Sharded runs
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-v38 benchmark adapter."""
"""The pinned full-system LoCoMo benchmark adapter."""
3 changes: 2 additions & 1 deletion benchmarks/locomo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from benchmarks.locomo.ablation import run_retrieval_ablation
from benchmarks.locomo.protocol import API_TIMEOUT_SECONDS
from benchmarks.locomo.protocol import DEFAULT_PROTOCOL_KEY
from benchmarks.locomo.protocol import PROTOCOL_NAME
from benchmarks.locomo.protocol import PROTOCOL_REGISTRY
from benchmarks.locomo.retrieval import RetrievalInfrastructureError
from benchmarks.locomo.runner import answer_sample
Expand Down Expand Up @@ -232,7 +233,7 @@ def _parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
prog="python -m benchmarks.locomo",
description=(
"RS-LoCoMo-Full-v38: prepare is local; ingest/answer/judge require "
f"{PROTOCOL_NAME}: prepare is local; ingest/answer/judge require "
"explicit execution acknowledgements"
),
)
Expand Down
8 changes: 4 additions & 4 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-v38 protocol."""
"""Typed values for the full-system LoCoMo protocol and historical artifacts."""

from __future__ import annotations

Expand Down Expand Up @@ -33,7 +33,7 @@
Category = Literal[1, 2, 3, 4, 5]
RetainedCategory = Literal[1, 2, 3, 4]
Tier = Literal["smoke", "development", "publication"]
ProtocolKey = Literal["full-v39"]
ProtocolKey = Literal["full-v40"]
ProtocolName = NonEmpty
SourceTimezoneBasis = Literal["assumed_utc"]
AnswerAgentModel = NonEmpty
Expand Down Expand Up @@ -135,7 +135,7 @@ class ExecutionProfile(FrozenModel):
class RunConfiguration(FrozenModel):
"""Immutable identity of one prepared benchmark run."""

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

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

PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v39"
DEFAULT_PROTOCOL_KEY: Final = "full-v39"
ADAPTER_VERSION: Final = "locomo-full-adapter-2026.10-configurable-retrieval-v39"
"""Current Full-v39 evaluation identity, with explicit Luna/Flex and Jev roles."""
PROTOCOL_NAME: Final = "RS-LoCoMo-Full-v40"
DEFAULT_PROTOCOL_KEY: Final = "full-v40"
ADAPTER_VERSION: Final = "locomo-full-adapter-2026.10-best-supported-answer-v40"
"""Current Full-v40 identity: best-supported answers, Luna/Flex, and Jev roles."""
MAX_TOOL_CALLS: Final = 8
MAX_AGENT_CALLS: Final = 9
ANSWER_READER_RETRY_BUDGET: Final = 2
Expand Down Expand Up @@ -251,12 +251,26 @@
General knowledge may help interpret retrieved evidence, but RememberStack evidence is
the authority for conversation-specific claims. Never seek or inspect benchmark
reference solutions, reference evidence labels, or evaluator artifacts. You have a budget
of at most 8 tool calls per question. Before concluding that the deployment does not contain
the answer, consult claims_and_sources_context unless you have already queried it or
combined_context, or have exhausted your tool call budget. If after checking fact and source
layers the deployment genuinely does not contain the answer, finish with "Unknown". The final
answer must be the shortest phrase that fully names the requested entities/values, no explanations
or reasoning.{answer_word_cap_instruction}
of at most 8 tool calls per question. Before settling on an answer from sparse evidence,
consult claims_and_sources_context unless you have already queried it or
combined_context, or have exhausted your tool call budget.

Answer policy for this evaluation:
- Give your best-supported answer to every question. Never finish with "Unknown",
"not mentioned", "cannot determine", or another abstention in place of an answer.
- Prefer direct statements, then clear conversational implications, then the most
plausible inference consistent with the retrieved clues and ordinary general knowledge.
A question asking what is likely, suspected, possible, or implied calls for inference;
do not require an explicit statement of the conclusion in the conversation.
- Weigh all relevant clues together. If evidence is incomplete or competing interpretations
remain, choose the best-supported interpretation and qualify the answer with "likely"
or "possibly". Uncertainty should qualify the answer, not replace it.
- Do not invent supporting events, quotes, personal details, or certainty. Preserve the
question's entity and time constraints; a clue from another date is not proof of the
requested state. General knowledge may connect clues, but must not override source details.

The final answer must be the shortest phrase that fully names the requested entities/values,
no explanations or reasoning.{answer_word_cap_instruction}

When a named person, organization, place, or other entity can narrow retrieval,
resolve it with resolve_entity first. Use returned entity IDs to make follow-up
Expand All @@ -269,8 +283,8 @@
would still happen without a condition and the evidence says that condition
caused, enabled, or motivated the outcome, answer "Likely no". If the evidence
indicates that the outcome is independent of the condition, answer "Likely
yes". Use "Unknown" only when the evidence gives no direction about that
dependency.
yes". When that dependency is uncertain, select the better-supported outcome
and qualify it as likely or possible rather than abstaining.

When a question asks about a superlative (e.g. what someone enjoys "most", "best",
or considers their "favorite" or "primary" choice), identify the specific option
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/locomo/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ def _validate_run(
) -> None:
"""Recompute immutable run identity before any local or remote stage."""
if configuration.dataset_sha256 != DATASET_SHA256:
raise BenchmarkRunError("run dataset hash is not RS-LoCoMo-Full-v38")
raise BenchmarkRunError(f"run dataset hash is not {PROTOCOL_NAME}")
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 @@ -1284,7 +1284,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-v38")
raise BenchmarkRunError(f"run dataset commit is not {PROTOCOL_NAME}")
if current_pins and configuration.adapter_version != ADAPTER_VERSION:
raise BenchmarkRunError("run adapter version differs from current code")
if _models_hash(values=documents) != configuration.documents_sha256:
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-v39` | prepare-time protocol key |
| `LOCOMO_PROTOCOL` | `full-v40` | 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
2 changes: 1 addition & 1 deletion 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-v39}
protocol=${LOCOMO_PROTOCOL:-full-v40}
mount_root=${LOCOMO_MOUNT_ROOT:-$run_dir/.mounts}
max_documents=${LOCOMO_MAX_DOCUMENTS:-100}
max_questions=${LOCOMO_MAX_QUESTIONS:-1540}
Expand Down
26 changes: 23 additions & 3 deletions decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3074,7 +3074,13 @@ may proceed to its first tagged artifact proof after CLA activation.

## D78. LoCoMo measures the ordinary OSS query system, not a claims-only shortcut

> **D106 amendment.** The current protocol is `RS-LoCoMo-Full-v21`. It retains
> **Current protocol amendment, 2026-11-09.** Execution uses only
> `RS-LoCoMo-Full-v40` (`full-v40`): the Luna/Flex and Jev profile with the
> best-supported-answer policy recorded in the D104 amendment below. Its
> unchanged judge still scores noncompliant abstentions wrong. See the
> [current benchmark design](plan/designs/locomo_benchmark_design.md).

> **Historical D106 amendment.** The D106 protocol was `RS-LoCoMo-Full-v21`. It retains
> v20's dataset, rendered documents, models, tools, budgets, prompts, and
> scoring and pins the D106 observation adjudicator generation.

Expand Down Expand Up @@ -5085,6 +5091,20 @@ is unchanged. Does not change D95, D99, or D100.

## D104. Counterfactual answers may follow retrieved causal evidence

**Partial supersession, owner amendment 2026-11-09.** Full-v40 replaces this
entry's `Unknown` fallback and blanket prohibition on outside knowledge with
best-supported answers: direct source statements, then conversational
implications, then plausible contextual inference using ordinary general
knowledge. Incomplete evidence calls for `likely` or `possibly` attached to an
actual answer, not abstention. Source/entity/date fidelity and the prohibition
on invented supporting details remain binding. Causal reasoning, prompt-only
execution, unchanged judge/budgets, no category/item hints, and D99's objective
content-before-answer guard survive. This amendment changes no engine or
ingestion reuse identity. Rationale:
[answer-policy analysis](plan/analysis/locomo_best_supported_answers_20261109.md);
current contract: [benchmark design §7](plan/designs/locomo_benchmark_design.md#7-answer-loop).
The original decision below is historical where these clauses are replaced.

**Decision (2026-09-01).** Advance the current benchmark protocol to
`RS-LoCoMo-Full-v19`. Its answer prompt explicitly permits hypothetical and
counterfactual answers inferred from causal or motivational relationships in
Expand Down Expand Up @@ -6274,8 +6294,8 @@ R14 autopsy (`/root/r14/r14-autopsy.md` on the experiment host).

## D128. GLM ingest variant of the v38 LoCoMo protocol

**Execution selection superseded, 2026-10-23:** current LoCoMo execution uses
one `full-v39` profile. The historical GLM benchmark branch is removed; its saved
**Execution selection superseded, updated 2026-11-09:** current LoCoMo execution uses
one `full-v40` profile. The historical GLM benchmark branch is removed; its saved
artifacts remain read-only. The general D127 provider-rotation contract survives.
See [current benchmark design](plan/designs/locomo_benchmark_design.md).

Expand Down
48 changes: 48 additions & 0 deletions plan/analysis/locomo_best_supported_answers_20261109.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Best-supported answers in the LoCoMo evaluator

Owner-authorized evaluation policy, 2026-11-09. This analysis motivates the
current answer-loop contract in
[`locomo_benchmark_design.md` §7](../designs/locomo_benchmark_design.md).

The pinned dataset has 1,986 questions: 1,540 in scored categories 1–4 and 446
in excluded adversarial category 5. A scan of the actual pinned JSON on
2026-11-09 found no missing answer in categories 1–4 and no gold containing
`Unknown`, `unanswerable`, `not mentioned`, `not specified`, `cannot be determined`,
or `not enough information`. Category 5 has 444 records without an `answer`
field and is not evidence about the scored answer policy. The pin is recorded
in the benchmark design §2; execution still validates its bytes.

The previous prompt explicitly permitted `Unknown`, although the unchanged
judge counts it wrong. In the retained conv-47 run all three misses were
abstentions even though the cited source chunks reached the reader; see
the diagnostic analysis in PR #561. Two questions expect uncertain commonsense
inferences. Another has a question/reference date conflict. Removing abstention
does not make those inferences certain or resolve an annotation conflict.

Alternatives are to retain conservative abstention, change the judge, add
question-specific hints, or ask for the most plausible supported answer with
an uncertainty qualifier. The owner selected the last policy. Full-v40 orders
support as direct statement, conversational implication, then contextual
commonsense inference. It asks for an actual answer even when evidence is
incomplete, and forbids invented supporting details or silently replacing a
question's date. There are no named benchmark people, places, conditions, gold
answers, or reference turn IDs in the prompt. The judge, dataset, models,
retrieval pool, and tool/cost limits stay unchanged.

This can trade abstentions for incorrect guesses. Qualifiers communicate
uncertainty but are not proof. Prompt compliance is not guaranteed by schema:
the existing harness records noncompliant answers and failures honestly and
does not synthesize replacements. No new private retries or model calls are
introduced; cost remains within existing ceilings. Engine typed negatives,
claim/fact semantics, ingestion identities, and source visibility are unaffected.

Validation uses a fresh 20-question conv-47 evaluation, with original results
preserved. This PR adds no native ingestion-adoption feature or provenance
field; the canonical run contract remains the benchmark design §9. The owner's
later request to verify pipeline changes also requires resolving whether this
operational test should ingest afresh, rather than treating retained ingestion
as proof of the changed pipeline. The execution mode, exact merged revision,
new prompt identity, answers, grades, traces, and verified GCS receipts belong
in the operational runbook. Repeating this development conversation is not
evidence of held-out generalization or a full-benchmark result. No score is
claimed here before execution.
Loading
Loading