Skip to content

feat(ladder): class-keyed cells — an admitted helper host supplies a lead's owed cells (M3) - #4626

Closed
noahgift wants to merge 3 commits into
0d/3715-pr2-on-pr1from
89/m3-class-judge
Closed

noahgift wants to merge 3 commits into
0d/3715-pr2-on-pr1from
89/m3-class-judge

Conversation

@noahgift

Copy link
Copy Markdown
Contributor

Cop ruling M3 (a), 06:40Z: class-keyed judge stacked on 0d's cells branch (#3715), red cases + mutants + quorum, before rc.2 cells.

What it does

  • Owed cells are still derived only from the lead (the required host). No cell is dropped.
  • A non-required host that declares the class of exactly one required host is a helper. Its rows supply the lead's owed cells only if every one of these holds:
    • its receipt passes the same binding checks as the lead: version, apr_sha bound to the cut, executed, v2 inventory;
    • host equals the helper id;
    • its measured cc equals the lead's cc;
    • red is a strict int equal to 0;
    • every row's sha256 equals the lead-held sha256;
    • admitted_by names a bare-filename apr-host-health/v1 receipt whose measured terms pass: window_s ≥ 600, throttle_events == 0, max_gpu_temp_c < gpu_temp_limit_c, host == helper, version == this cut.
  • How helper rows are judged:
    • a helper pass is judged against the helper's own gpu_mem_total_bytes;
    • a helper refusal is skipped, so the lead still owes the cell;
    • a helper failure is a FAIL;
    • a lead row plus a helper row for the same cell is an ambiguous FAIL.
  • The contract gains class: on lambda and gx10. No helper is declared yet; yoga waits for its thermal receipt.

Evidence

  • check_model_ladder.sh --self-test: 180 cases, 0 bad.
  • 20 new class-* mutants, each killed by a named red case.
  • pv validate contracts/model-capability-ladder-v1.yaml: valid.
  • The intel receipt for cargo test -p aprender-contracts-cli --tests + -p aprender-contracts --lib is pending (not_measured) and will be posted when the run finishes.

Quorum (author Opus 5.5, so no Opus lanes)

  • Round 1: Sonnet 5 FAIL and Haiku FAIL. Findings: admission was declaration-only, bool red, self-helper, sha fallback, duplicate untested. All fixed in f511a0e.
  • Round 2: Sonnet 5 PASS and Haiku PASS. Sonnet's two minors (health freshness; health-doc host mismatch) are fixed in 4751e38 with cases and mutants.
  • The agy lane was not run, so this is a 2-lane quorum.

Agent: aprender-89

🤖 Generated with Claude Code

noahgift and others added 3 commits September 29, 2026 08:41
…ad's owed cells, never narrows them (M3)

Operator M3 2026-09-29: shorten the cells with capacity, never by cutting scope. Cop ruling (a) 06:40Z.
A non-required host naming exactly one required host's class supplies that host's owed cells when its
receipt is bound to the cut, its measured cc equals the lead's, it declares red == 0, the contract names
what admitted it, and it ran the same sha256. Its pass is judged against its OWN total; its refusal
leaves the cell owed by the lead; its failure is a FAIL. The owed set is still derived from the lead.

10 red/green cases, 10 mutants (all killed); self-test 169 cases, 0 bad. pv validate: 0 errors.

Agent: aprender-89
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ealth receipt, not declared

Sonnet 5 + Haiku 4.5 lanes on 5c75740, both FAIL:
- admitted_by was free text (blocker, sonnet): it now names apr-host-health/v1 beside the receipts and the
  judge computes admission (window >= 600 s, 0 throttle events, peak temp < limit);
- red=False passed as red == 0 (bool is int): strict type(v) is int;
- a required host re-declared as its own helper; a helper receipt naming another host; a helper row
  without sha256 fell back to inventory: each is now a named FAIL;
- lead + helper rows for one cell: pinned by a case (ambiguous FAIL, one cell runs once).
9 new cases, 9 new mutants; self-test 178 cases, 0 bad. pv validate: 0 errors.

Agent: aprender-89
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…per for one cut, and only for the host it measured

health_defects now also requires the health doc's version to equal the helper receipt's version, so a thermal
receipt from an earlier cut cannot admit a host into this one. New red cases red-cells-class-health-stale and
red-cells-class-health-host, each killed by its own mutant. Self-test: 180 cases, 0 bad.

Agent: aprender-89
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noahgift

Copy link
Copy Markdown
Contributor Author

Superseded by #4629: same patch (patch-id 071642a6e7), restacked on #4615 → #4603 because 0d/3715-pr2-on-pr1 has no PR. Branch kept.

@noahgift noahgift closed this Sep 29, 2026
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