Skip to content

feat: draw the spot-check at a proved landing and observe it at a drain move - #1820

Open
REPPL wants to merge 18 commits into
mainfrom
surge-spotcheck-pra
Open

REPPL wants to merge 18 commits into
mainfrom
surge-spotcheck-pra

Conversation

@REPPL

@REPPL REPPL commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Step 2 of spc-2610301925429250, the spot-check draw. A proved landing now draws spot-checks of agents' unattended work, and a drain move observes them. Nothing yet asks a person to review a draw: the abcd spotcheck verb, the review lane and the board row come in step 3 and later.

  • The draw. A proved landing draws from the round its close fixes. Each cycle's window is recomputed from the default branch. The first window is held to its commit's place on the line.
  • The records. Record populations are listed and bounded. A window fills only from records that read; when some do not read, the note gives the count. A group with no readable key within its bound refuses, and the refusal names the count.
  • The block. .abcd/config.json is sized before it is read. A file over 1 MiB counts by the defaults.
  • The beacon. The draw's randomness is checked against a public beacon. This adds github.com/cloudflare/circl v1.6.3, which the spec records as signed off. Its public key is named so no scanner reads it as a secret, and ACKNOWLEDGEMENTS.md credits the library.
  • Drain moves. A drain move observes the spot-check. The drive's git-command table names the listing form of the person's git that this now reaches.
  • The hook. The spot-check's object names are checked without a regex test. The push-gate tripwire mirrors the spot-check row. The repository's pre-push hook row stays proposed and is never written by abcd.
  • Deferred. Bounding the read of the local spot-check copy is deferred past v0.17.1. It is recorded as dcn-2611262132038983 and as a major issue that keeps the refusal.
  • The ADR. The trust decision in the docs now matches its ADR.

Refs: itd-2610301750162657
Refs: iss-2611262132147121
Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-fable-5-2

REPPL added 18 commits November 25, 2026 22:15
A landing abcd proves, at `abcd land`'s landed re-run and at a lane's landing
in `implement step`, is observed for the spot-check. While the window has not
passed the observation reads the store as last fetched and carries only the
records origin's `abcd-spotcheck` branch lacks. Once it has passed it fetches
the branch, takes one round of the drand quicknet beacon and verifies its BLS
signature against the pinned key, draws by HMAC over the round's randomness
from each group of the window's unattended work, and pushes the cycle with its
items over origin's tip, tried once more after a refusal. A draw that cannot
be made writes nothing and leaves the landing proved.

Only typed fields leave the machine: the push carries a copy of each record
with its free text blanked, under a name hashed over the typed content, while
the local copy keeps the text.

The merge gate's record gains the mode's layer and whether a review receipt
named the head, and a re-arm the release hold makes is recorded too. The
landings reader registers itself with the spot-check to avoid an import
cycle. claim.PushBranch now runs its push, hooks included, under the caller's
context.

The pre-push hook gains a receipt-less row for the one branch
`abcd-spotcheck`, admitting a fast-forward whose every commit holds only
regular files at the store's paths (adr-2611251806496719). The drain site
waits for the drain-bundles change.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The spot-check's BLS check imports circl's sign/bls at v1.6.3, the version
the module graph already holds, rather than v1.6.5, so go.sum is unchanged
and go.mod only lists circl as a direct requirement.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
gitleaks' generic-api-key rule read the drand quicknet group public key,
assigned to a constant named chainKey, as a credential. The key is public
by design; the constant is now chainPoint, and .gitleaksignore records the
one finding the earlier commit leaves in the history.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The plain-only guard scan refuses a package that declares init twice, and
the loop package already has one. The landing and loop tests now turn the
spot-check's observation off through a package variable's initialiser.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The interview's tripwire mirrors the pre-push hook's receipt-less rows, and
its mirror test refused the new abcd-spotcheck row; it now lists it, with
tracking cases for the branch. The hook test's own git commands run under
gittest's hermetic environment, as the hermeticity audit requires.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
A window's close is now read from the default branch's first-parent line
alone, and its round is the first the beacon's chain publishes at or after
that close, on the chain's genesis and period pinned beside its key. The
round is asked for by number, a reply naming another is refused, and before
it is published the observation says the window is not yet drawable. The
cycle's id, round and draw are the same whoever draws and whenever.

Every cycle read back is checked: its signature, its round against its
close, its drawn lists against its populations, and a close no later than
the reader's clock allows. One that fails is set aside and named, and its
window is drawn again. Each machine keeps a high-water mark of the copy it
last read in the home store, and a branch that no longer holds it is refused
in one line, with no first window opened over it. Hand-backs and decisions
join a population when they reach the branch, so a late one is drawn in the
next window. A judgement counts only when it reads as the one its path
names. The pre-push hook bounds each store file at the reader's size and a
push at the writer's file count, a cycle may hold more than a record, and the
spotcheck block is read at origin's default branch.

The ruleset mirror for the store branch, the decision recording the rule,
the ADR, the spec and the pages that describe the draw are updated with it.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
A cycle read back is now checked against origin's default branch rather
than its own fields. The spotcheck block as the branch stores it at the
window's start, the repository layer alone, must be the cycle's window and
per-group values, and the close the first-parent line gives must be its
bound, end commit and moment. Every landing it lists must be a commit of
its window, and the cycle records how many first-parent commits the window
spans. A cycle that fails is set aside like any other.

The draw is keyed by the window's start commit and close moment, never by
the cycle's id. The draw reads its configuration at the window's start too.
The high-water mark is written through the declaration scope its reader
uses, and a mark that cannot be written is named in the note. The pre-push
hook counts the files each store commit changes against its first parent.

The ADR, the decision, the spec and the configuration chapter now say what
the reader checks.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
…line

The window's opening is now read against the default branch: its moment
may lie no later than the reader's clock allows, no earlier than its
commit was committed, and no later than that commit's first-parent child
was. An opening outside those bounds is set aside, named in the note, and
opened afresh at the next observation; the mark keeps an opening only once
the child confirms it, so one a fast clock wrote is retried, not refused.
The writer opens no earlier than the tip's own commit time.

A spotcheck block that does not read at a window's start counts that
window by the bundled defaults, says so in every note, and records
"defaults" in the cycle's window, which every reader checks. A cycle whose
window this checkout's copy of the default branch does not close yet is
named as not yet checkable rather than as failing.

The ADR, the spec's approach 13 and the configuration brief say the same.

Refs: spc-2610301925429250
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The ADR index's one conflict takes both sides' rows in id order, as the
index generator lays them out.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
A record group's population above 1,000 keys was kept by its hash alone,
so the next draw could not tell its records from new ones: they joined
every later population and items already judged were drawn again. A
record group now takes at most 1,000 keys into one window, in key order,
and leaves the rest for the next; only a landing group, whose members are
its window's commits, is still kept by its hash, and a cycle whose record
population is not listed does not verify.

The draw no longer reads every record on the branch, which refused the
whole read once the branch held 4,096 records, for good. It lists the
names, drops the keys earlier verified cycles listed, and reads only the
rest, each key by its four greatest names and half the read bound a group.

A clone sharing this machine's mark that has only not fetched what another
clone pushed was told the branch was rewritten. A copy that does not hold
the mark's commit, or that the commit descends from, is now fetched first;
only a copy origin answers that way is refused as rewritten.

An opening may lie ten seconds past its commit's child, for a forge clock
behind the writer's. A spotcheck block git could not read at a window's
start counted the window by the bundled defaults; such a read now refuses
the observation, and only a file that was read and refused takes the
defaults.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The decision now says what the ADR says: the first window's start is the
opening's word within the bounds every reader checks, an unreadable block
counts a window by the bundled defaults and the cycle records it, a read
that failed for a passing reason refuses instead, a record population is
listed whole, and a copy only behind the mark is fetched, not refused.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The spec names a drain move's fetch of origin's default branch as the
third observing site, and the site waited for the drain-bundles change,
which has landed. A move that read origin now observes the branch it
fetched once, after its records are kept, and the observation's line joins
the move's next; a move that could not read origin observes nothing.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
Main's guard reads the pre-push hook's [[ =~ ]] test over the fields read
from a command substitution as running a program it cannot name, so the
script corpus test refused the hook after the merge. The hook now checks
the object name and size with case patterns and lengths, admitting the
same values.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
The spot-check's outbound reader reads the whole local copy through the
store's 4,096-record bound. It fails closed and only on the checkout past
it, about eight weeks away at the current rate, and the bounded read needs
a design of its own, so it is deferred with its decision and captured at
major, carried past v0.17.1.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
A file over the size a configuration file may hold at a window's start is
a file read and refused: its size is read from the listing first, and the
window is counted by the bundled defaults and drawn, as for any block that
does not read.

A record key none of whose files reads as a record now takes no place in
a window: keys are read in order a batch at a time and the next key takes
the place, within the same read bounds. The draw's note counts the files
that did not read, and a group whose read bound is spent with places open
and files unread refuses the draw, naming the count.

A test now pins the verifier setting aside a cycle whose record group is
kept by its hash.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
A group whose read bound is spent after some of its records read is now
drawn from those, and the note counts the files that did not read; only
a group that listed none of its records within the bound refuses the
draw. Each case has its test, and the set-aside test now asserts the
reason the verifier gives for an unlisted record group.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
A drive move now reaches the spot-check's fetch, whose confirmation of a
branch origin lacks reads origin's listing line by line through
gitutil.NetEachContext since main's change to that read. It runs as
gitutil.NetContext does, in the person's own environment with the hooks
pinned off, and is named in the table with it.

Refs: itd-2610301750162657
Assisted-by: Claude:claude-opus-5-5
@REPPL
REPPL enabled auto-merge November 27, 2026 02:45

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