Expand description
The oracle at review: per requirement, the visible
acceptance tests the run would use, written on the person’s request —
two independent author calls whose stated expectations are compared for
ambiguity, the first one’s citing tests red-checked on the checkout’s
HEAD in a scratch worktree, a held-out set sealed beside them — shaped
by the person (reject, ask again, edit, choose a reading), and frozen
with the approval (freeze). A task whose requirement has a frozen,
current oracle reuses it instead of calling the author.
Drafts live in the state directory (<state>/oracle/<unit>/<REQ>/),
never in the worktree; the model writes none of them. A held-out test’s
path or content never leaves its sealed store: the views carry its count
and digest only.
Structs§
- Draft
- A requirement’s draft as the author and the person left it.
- Draft
Requirement - The requirement a draft was written for.
- Draft
Test - One stored test of a draft.
- Freezable
- A requirement whose tests an approval can freeze: its draft on the current wording, no reading open, at least one red test.
- Frozen
- What a freeze keeps beside the pre-frozen record: the commands and the
wording, bound to the manifest digest
review.jsonnames. - Frozen
Test - One frozen test.
- Oracle
Entry - An oracle entry of
review.json: what the person froze, by digest. - Request
- What one oracle action is asked.
- Samples
- Something per author sample.
- Tampered
- A stored draft that no longer matches its record.
- View
Config - What the views need from the configuration.
Constants§
Functions§
- autopilot_
denials - The calls an autopilot run refused, as its tool log recorded them.
- dir
- Where a requirement’s draft lives.
- freezable
- The requirements an approval freezes, in the spec’s order.
Err: a stored draft was tampered with. - freeze
- Freezes one requirement’s red set with the approval: one
PreFrozenAcceptance(producerreview) in the pre-frozen store, its sealed held-out set checked, and the commands and wording beside it. - last_
denials - The last autopilot run’s denials of a unit, for Needs You.
- load
- A requirement’s draft and its tests’ contents, every hash checked;
Ok(None): none was written. - load_
frozen - What a freeze kept beside the record, if this machine has it.
- manifest_
digest - The manifest digest of a visible set:
sha256over its sortedpath=sha256 argv=[…]lines — whatreview.jsonand the tick name. - open_
ambiguities - Requirements of the selected unit whose tests two authors read
differently, with the scenario:
(REQ, scenario). - rung
- The rung of the selected unit, by the format’s standing units.
- store
- Stores
draftwith its tests’contents(path, text); each content must hash to its test’s digest. Files of tests no longer listed go. - tests
speccoder review tests <REQ> …with the configured model when the action calls the test author.- tests_
with testsagainststate, withproviderfor the author calls.- view
- One requirement’s oracle as the review shows it: the draft, the
frozen entry
review.jsonholds (entry), and whether this machine has the frozen set.
Type Aliases§
- Loaded
- A draft with its tests’ contents (path, text).