Skip to content

feat(apr-cli): apr-recipe-v1 schema types (recipe slice 2) (#7126) - #7127

Merged
noahgift merged 5 commits into
mainfrom
R075h-recipe-2
Nov 15, 2026
Merged

noahgift merged 5 commits into
mainfrom
R075h-recipe-2

Conversation

@noahgift

@noahgift noahgift commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What

  • Slice 2 of the apr finetune --recipe stack: the serde types for the apr-recipe-v1 schema (crates/apr-cli/src/commands/train_recipe.rs), their tests, and the contract entries that bind them.
  • Nothing calls the types yet; the CLI flag arrives in a later slice.
  • +179/-3 in 4 files.

Measured (lambda, 2026-11-15, head 9b84ae7)

  • cargo test -p apr-cli --lib recipe: rc 0, 18 passed (1 new test; 17 are older tests the filter also matches).
  • python3 scripts/ci/fail_fast.py ids: rc 0 (contract test ids gap-free).

Known limits

  • Types only: no validation of a recipe file from the command line until the later slices land.
  • Not tested in this slice (reviewer note): deny_unknown_fields, the lower-case rename on the method enum, the schema constant. The loader slices add those tests.

Review: Opus non-author lane PASS @9b84ae70f (receipt handoff/agy/review-aprender-7127-9b84ae7-opus-cop.md).

ont-delta: none
Closes #7126
keep-open: #5316 master ticket, slices 3-13 open

🤖 Generated with Claude Code

noahgift and others added 5 commits November 15, 2026 19:11
…slice 1/6)

Pins contracts.nt, the census witness and the README contract count.

Pmat-Ticket: PMAT-5316

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…(R-1 slice 1/6)

Four falsification tests named fns that land in later slices, so
pv lint --strict-test-binding reported 4 missing. Slice 1 now carries one
shell-harness entry (pv validate); FALSIFY-APR-RECIPE-001..005 return in the
slice that adds each test. Loader and example paths are marked as landing later.

Pmat-Ticket: PMAT-5316

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…st ids)

pr-light's fail_fast ids step refused FALSIFY-APR-RECIPE-000: ids must start at 001.

Pmat-Ticket: PMAT-5316
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Schema types of `apr finetune --recipe` (RecipeMethod, the Raw* shapes, TrainRecipe);
the parser, rules and receipt follow in later slices. FALSIFY-APR-RECIPE-003 cites
the method-spelling test present at this head.

Pmat-Ticket: PMAT-5316
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
# Conflicts:
#	contracts/apr-recipe-v1.yaml
@noahgift
noahgift marked this pull request as ready for review November 15, 2026 21:32
@noahgift
noahgift enabled auto-merge (squash) November 15, 2026 21:34
@github-actions

Copy link
Copy Markdown

§13.11 rung 1 — quorum shadow verdict

S13-SHADOW pr=7127 head=9b84ae70ff3b308dca1be2459bb20a10b1ada8ea verdict=REFUSE class=Q1 arm_rc=1

Shadow mode: this records a verdict and merges nothing. A refusal
to arm is not a block (§13 adds zero rows to §7) — the pull request is
exactly as green as it was.

@noahgift
noahgift merged commit 1fce0e4 into main Nov 15, 2026
31 checks passed
@noahgift
noahgift deleted the R075h-recipe-2 branch November 15, 2026 22:20
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.

apr finetune --recipe: apr-recipe-v1 schema types (R-1 slice 2)

1 participant