Skip to main content

Module oracle

Module oracle 

Source
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.
DraftRequirement
The requirement a draft was written for.
DraftTest
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.json names.
FrozenTest
One frozen test.
OracleEntry
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.
ViewConfig
What the views need from the configuration.

Constants§

DIR
The store’s directory under a project’s state directory.
LIMIT
Visible tests kept per requirement.

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 (producer review) 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: sha256 over its sorted path=sha256 argv=[…] lines — what review.json and 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 draft with 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
tests against state, with provider for the author calls.
view
One requirement’s oracle as the review shows it: the draft, the frozen entry review.json holds (entry), and whether this machine has the frozen set.

Type Aliases§

Loaded
A draft with its tests’ contents (path, text).