Skip to content

feat(types): fresh_reload basis at level 3 - #2509

Draft
abrichr wants to merge 1 commit into
claude/nodb-ladderfrom
claude/ladder-fresh-reload
Draft

abrichr wants to merge 1 commit into
claude/nodb-ladderfrom
claude/ladder-fresh-reload

Conversation

@abrichr

@abrichr abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member

What this does

Applies the coordinator's ruling on fresh reloads to the #2495 ladder. It is a small PR stacked on claude/nodb-ladder.

A proven fresh reload now counts as VERIFIED. A proven fresh reload is a new navigation in the acting session that forces a server fetch: the request was sent with the cache bypassed, the response shows no cache, and the request is kept as evidence. Such a reload is a level 3 check with the new basis fresh_reload, so outcome_word returns VERIFIED.

  • A reopen without that proof has no basis. It stays level 2 (reopened), which outcome_word reports as SHOWN.
  • The basis can't be claimed at level 2 or level 4. outcome_word raises ValueError, as it does for any basis that names a different level.
  • A run whose minimum is the system of record doesn't accept the basis. outcome_word returns RECORDED.

The ladder only records the claim. Proving the reload is the adapter's job; #2500's effect-location evaluator is the first caller.

Compatibility

Basis and BASES gain one value. evidence_scope takes its basis type from Basis, so a receipt may now carry fresh_reload. The Cloud and website TypeScript verifiers need the new value in their basis list before a release ships such a receipt, the same condition #2495 sets for the block itself. None of the existing vectors change.

Tests

  • packages/flow/tests/test_one_ladder.py: 30 passed.
    • It covers the word with and without the proof.
    • It covers the refusals at level 2 and level 4.
    • It covers the raised minimum.
  • packages/types/tests: 845 passed.

A new navigation in the acting session that is proven to have fetched from
the server (cache bypassed, the request kept as evidence) is a level 3 check
with basis fresh_reload, so outcome_word gives VERIFIED. A reopen without
that proof has no basis and stays level 2, SHOWN. The basis can't be
claimed at level 2 or 4, and a run that requires a system-of-record read
doesn't accept it.
abrichr added a commit that referenced this pull request Nov 22, 2026
…valuator

Following the coordinator's ruling: a fresh navigation whose adapter names
the fresh_reload basis (#2509: cache bypassed, the request kept as evidence)
is a level 3 check, which the ladder words VERIFIED. Without that basis it
stays level 2 (reopened), SHOWN. The claim never satisfies a location that
requires a new session.
@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Gemini (gemini-3.1-pro-preview), round 1
Reviewed-Head: 9eea6b3

Sent the full diff of this PR's own files, those files in full, and any earlier findings.

The changes cleanly introduce the fresh_reload basis at check level 3 (SEPARATE_SESSION) and correctly map it to VERIFIED when confirmed, while keeping a plain reopen at level 2 (SHOWN).

The implementation is fail-closed:

  • outcome_word strictly enforces that the basis matches the claimed level (level_for_basis(basis) != level raises ValueError), preventing a level 2 check from claiming the fresh_reload basis to sneak into VERIFIED.
  • A fresh_reload check against a run that requires a SYSTEM_OF_RECORD (level 4) minimum correctly falls back to RECORDED.
  • The vocabulary remains general and domain-agnostic.
  • The tests thoroughly cover the new basis, its level mapping, and its rejection at levels 2 and 4.

APPROVE

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: 9eea6b3

Author declaration at the head above. Synthetic tests only; no real app was run.

  • tests/test_one_ladder.py: 30 passed. packages/types/tests: 845 passed.
  • No path in this change is listed in the agent-safety manifest.
  • Gemini round 1 found nothing to fix.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant