Skip to content

Fix what the pre-release hand test of dev found - #2567

Merged
AbirAbbas merged 34 commits into
devfrom
relprep/handtest-fixes
Nov 10, 2026
Merged

AbirAbbas merged 34 commits into
devfrom
relprep/handtest-fixes

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

The pre-release hand test of dev@0fa1b5da7 drove the real binary against a real model in throwaway homes, on
Linux and macOS. Every defect it found is fixed here. Each fix is its own commit with its own test, and each new
test fails on the old code.

Draft until the hand check passes. Every finding's exact repro is being redone on a binary built from this
branch before this leaves draft.

Existing users

Money

  • Background knowledge compilation now reaches the ledger. Every priced answer writes a knowledge line,
    including empty, length-capped and rejected ones. In the hand test, 221 compiler calls for 33 typed messages,
    43% of the session's spend, had never reached the day total, /cost or Spend.
  • One daily-limit gate covers turns, helpers, watches, the knowledge compiler and every provider retry. A
    reached limit pauses knowledge building with the rail's words, and a capped task no longer bills its summary
    helper.
  • Effort setting. The compiler asks with EffortOff instead of the literal "none", which bypassed the
    router's reasoning-disable adaptation.
  • Totals on screen. Home's search card counts a bill that lands after the turn sealed. /cost shows its
    conversation and tasks split again. A task stopped by the daily limit says so.

Sync and tasks

  • Taking a chat back clears its retained-branch redirect, so the computer can run tools in it again, before
    and after a restart.
  • codeaf cluster lead is hidden until it can return its receipt (codeaf cluster lead never returns a receipt: the client's 30 s budget ends before the relay's post-commit wait and a fallback election #2559). This is a decided contract change:
    the three manual-truth gates are rewritten to the new promise, and every probe still reaches its page.
  • A local task whose landing conflicts asks your call with a resolve it, and keeps the person's file as
    <name>.yours, including after a restart. This was already true of v0.8.2.
  • An ask-here follow-up sent while the reply streams waits its turn, instead of doubling the reply and losing
    the card. The garbling was already in v0.8.2.

Smaller

Each has its own commit:

  • /status names --one-model on the engine road.
  • No zero counts on an empty team or on Memory.
  • No banned words in the knowledge edit label or the completed-run guidance.
  • The typed automation change card has only two answers.
  • A time limit ends a task incomplete.
  • Tiny crew costs keep their precision.
  • Settings names the legacy variable that holds a row.
  • A finished reading stops its clock.
  • An unpaired home doesn't offer to run tasks elsewhere.
  • The manual matches the screen for Memory, activity and /quit.

Follow-ups filed: #2559 (cluster lead timing), #2560 (merge rollback turns), #2562 (the read hand-off during
discussion).

🤖 Generated with Claude Code

AbirAbbas and others added 30 commits November 10, 2026 01:29
A task refused by the daily limit still bought its summary helper, and a
watch's model check and a provider retry could start after another call had
spent the day's allowance. DailyLimitReached is now the one reading of the
live ceiling: the turn rail, the helper doors, automation watches and the
provider's per-attempt route gate all call it, with the rail's exact words.
Preauthorization lifts it exactly as it lifts the rail.

Found by the pre-release hand test (F-2.k4 helpers, F-2.k5 summary helper).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Background knowledge compilation wrote its cost only to knowledge.sqlite, so
221 compiler calls for 33 typed messages (43% of a session's spend) never
reached the day total, /cost or Spend, and it kept starting calls after the
daily limit. Every priced compiler answer - empty, length-capped, invalid or
rejected included - now writes one `knowledge` ledger line and a receipt,
each attempt asks the shared daily gate first, and a reached limit pauses the
build with the rail's words until the limit rises or the day turns.

The compiler also asked with the literal effort "none", which bypassed the
router's reasoning-disable adaptation; a provider that ignored it reasoned to
the 8000-token ceiling and answered nothing. It now asks with EffortOff.

Found by the pre-release hand test (F-2.k3, F-2.k4, and the macOS leg).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
settings.md said knowledge capture had to be enabled per project; a fresh
profile turns it on by itself and existing history waits for Build. The
pages now say that, that compilation is a paid call counted in Spend, that
the daily limit pauses it, and that a capped task keeps its last summary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since #1888 the session record spelled every path against the session,
workspace or home root, and mapRecord dropped the whole record when one path
sat outside them - so a folder on another drive, or beside the workspace,
was accepted on screen and silently gone after a restart. A path no base
holds is now kept as written, absolute, exactly as resolve already reads an
older build's absolute path. Another computer keeps the record unchanged and
says the folder is not on its disk.

Found by the pre-release hand test (F-2.k1, a regression from v0.8.2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a computer had unpublished turns and another computer took the chat,
the brancher kept those turns in a retained branch and saved original ->
branch. A later take-back reacquired the original but never removed that
redirect, so every reopen resolved to the branch, whose head this tree did
not know, and the window became a viewer of its own chat: every tool said
"<name> continued this chat; this window now only shows it", across
restarts. A successful take (and its already-here path) now removes the
chat's own redirect before the vault hook and the replacement drive open,
keeping the retained branch and every other mapping.

Found by the pre-release hand test (F-6.k2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A finished task whose change could not land - the person had made an
untracked file the task also wrote - ended "done" with no way to decide; its
work sat on a kept branch, and after a restart "resolve" was refused as
already settled. The state came from the run outcome alone, and only a
remote run's NeedsDecision made it the person's call. A local conflicted
landing now ends `your call` with `a resolve it`, the checkpoint keeps the
landing's reason and paths so the question survives a restart, and
resolving lands the task's file and keeps the person's as `<name>.yours`.

This was already true of v0.8.2. Found by the pre-release hand test (F-3.k3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
In the pre-release hand test the command never returned a receipt, and a
failed attempt left committed membership changes behind that degraded sync
for minutes (F-6.k1; the timing analysis is in #2559). By the design law - a
capability that cannot work is absent, not broken - it is removed from this
release: `codeaf cluster lead` is an unknown command, help offers only
`cluster status`, and the leadership client stays compiled for #2559 to
restore. The relay is untouched.

The three manual-truth gates that pinned the old promise are rewritten to pin
the new one. This is a decided contract change, not a loosened test: every
probe question still has to reach coordination-and-workers, the facts that
are still true stay required, and only the transfer promise is replaced with
"the coordinating computer cannot be chosen by hand", `codeaf cluster status`,
and #2559. The system prompt, docs/relay.md and the continuing-a-chat page say
the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A follow-up sent from Home's ask-here pane while the reply was still being
written was submitted again beside the live reader, so the pane applied the
running turn's deltas twice ("principle principle"); the late steer's wake
streamed only to wake subscribers, so its automation card never reached the
pane, and on dev the pane could sit at "thinking" for minutes. A follow-up
now parks until the current stream closes, the way the chat's own composer
does; submitted and wake streams reach the pane through one reader; and a
subscriber that arrives while a card is waiting is shown that card.

The garbling and the lost card were already in v0.8.2. Found by the
pre-release hand test (F-4.k5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two things an existing person met in silence now say so once, plainly:

- v0.8.2 standing orders and rules are not migrated (#1831), and they simply
  vanished on the update. The first interactive launch of a home that holds
  them now says how many standing orders and rules were found, that they
  were not carried over, and where the list is; the report
  (v3/standing-upgrade-report.txt) is written before the notice is marked
  seen, the old folder is left untouched, and a headless start never uses
  the notice up.
- After pairing, a turn typed in v0.8.2 during a rollback stays in the
  original transcript and never reached the new build's copy. A new copy now
  stamps the original's length, fingerprint and turn count in copy-ready, and
  opening the chat says how many turns typed in an older codeaf are kept in
  which file, once per growth. Nothing is merged (that is #2560); a copy made
  before this change stays silent rather than guess.

One report-and-acknowledgement helper carries both. Found by the pre-release
hand test (F-7.k1, F-6b.k).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The split derived the session id from the transcript's immediate parent;
transcripts now live at <session>/.cell/transcript.jsonl, so it found
`.cell`, no ledger tree, and printed only `spend`. It now derives the id for
both layouts. Found by the pre-release hand test (F-2.k7).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The run's failure was dropped when the engine summary was mapped into the
session's RunSummary, so a task refused by the daily limit ended only
"incomplete" and "nothing to land". The failure now rides through, and the
ending and report carry the rail's words. Found by the pre-release hand test
(F-2.k6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The engine road built its surface options without OneModel, so /status said
"crew auto · codeaf picks the worker, planner and checker" under
--one-model. It now carries the same applied launch the in-process road does.
models-and-cost.md also gains the /cost split, the daily-limit task ending
and this --one-model reading. Found by the pre-release hand test (F-2.k2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The conversation's total on meta.json was written once, at the turn's seal,
so a detached title billed afterwards never reached Home's card: it read
$0.0020 where /cost read $0.0034. Every bill - a seal, a task fold, an
auxiliary call - now owes one coalesced spend stamp that settles the user
stamp first and reads the live books when it writes. Found by the
pre-release hand test (F-5.k1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p their precision

Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found by the pre-release hand test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cope

The tab bar says `Memory` and Home's recent panel says `activity`, but the
pages said `Memories` and `sessions`; screen.md said /quit ends the whole
program, while it closes only the conversation in front and codeaf stays up
while another is held. The pages now match the screen, the probes still
reach them, and they also carry this wave's smaller changes (the empty-team
and zero-memory readings, the plain knowledge label, the two-answer edit
card, time limits ending incomplete, the accept / not right guidance, tiny
crew costs, the legacy variable spelling and the reading clock).

Found by the pre-release hand test (F-1.k2, F-1.k3, F-4.k2, F-5.k2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… session config

cmd/codeaf may not build a session.Config that skips applyV3Governance (the task-audit law). The knowledge wiring now calls session.DailyLimitReachedAt(profileDir, preauthorized), which builds what it needs inside the session package; there is still one gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…iling

The local conflicted-landing decision brought it to 17 decisions against 15. Its outcome and landing words move into a named helper along the phase its comments already drew; no ceiling or debt row changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The prompt never promised the verb, and the added sentence put the lean prefix over its budget. It is removed; the prompt is byte-for-byte what dev ships.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Parking a follow-up behind the live reply left the spinner's clock from the first reply; the follow-up now restarts it when it is submitted, so the pane still starts and advances its spinner before any reply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Expected values change only where the wave changed behaviour on purpose, each with a comment naming the decision: a person's Stop now records its ending explicitly, positive sub-cent crew costs keep four places, the tab is Memory, and the knowledge compiler sends reasoning.enabled=false (EffortOff). The knowledge transport fixture reports instead of calling t.Fatal from the provider worker, which had stranded the caller until the package timed out. TestAgreementDoesNotBuyASecondCompletion now waits on its existing watchReadings synchronisation, because the daily gate's I/O let the finite script outrun the sidecar; every assertion is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er filesystem

The person's files were moved into a holding folder in the system temp directory with os.Rename, which fails with EXDEV when /tmp is a separate filesystem (tmpfs on many Linux systems); the failure was swallowed into a generic refusal, so 'resolve it' landed nothing. The holding folder now lives inside the repository's git directory, a cross-device move falls back to copy-then-remove, a move or restore failure names its real reason, and the task room says 'your call' as the main card does. Found by the hand check of this branch (F-9a.k2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas and others added 4 commits November 10, 2026 04:20
Since #1888, reopening a conversation whose only spend was a folded task rebuilt the parent's usage from the transcript digest, which turned the folded worker totals into fresh ledger rows - 23 already-paid worker calls were billed again. Folded task usage is now marked in the journal and never becomes a billable digest row, so reconstruction adds nothing for calls already recorded. Old duplicate rows are not rewritten. Found by the hand check of this branch (F-9a.k3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bash workers were built without the parent conversation, so their ledger rows had no root and /cost could not attribute task spend to the conversation's tree. The run carries the conversation into the worker's existing root field - attribution on each existing row, never a second bill - and /cost shows conversation and tasks. models-and-cost.md says so, and why reopening adds no second charge. Found by the hand check of this branch (F-9a.k1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The conflicted-landing reading made every your-call node's room header say 'your call', which overrode a design's own 'awaiting your look'. The pending-decision reading now applies only to a node with no named phase, so a conflicted landing still agrees with its card and a design still says its phase.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A task that ended your call counted as ended work, so the open room stopped reading its page and kept saying 'your call' beside the person's own 'resolve it · you' receipt after the landing settled. The beat now keeps reading a page that is waiting on the person until the store says it settled. Found by the hand check of this branch (F-9c.k1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AbirAbbas
AbirAbbas marked this pull request as ready for review November 10, 2026 10:22
@AbirAbbas
AbirAbbas merged commit b0dfe97 into dev Nov 10, 2026
9 checks passed
@AbirAbbas
AbirAbbas deleted the relprep/handtest-fixes branch November 10, 2026 10:22
AbirAbbas added a commit that referenced this pull request Nov 10, 2026
dev's pre-release hand-test fixes (#2567) meet app/v3 in 23 files. Every
behaviour from both sides is kept; where both sides fixed the same thing,
one implementation remains (provider retry admission after waits, the late
spending save, the shared daily-limit gate, compiler billing).

The knowledge compiler needed a ruling, because the two sides' retry
contracts disagreed:

- The retry policy is app/v3's: a five-second backoff doubling to 120
  seconds, and a persisted three-attempt cap per input that survives
  reopening the vault. Build or a new source resets the cap; a job-owned
  failure is retried only by its owner. A persisted total bound is a
  stronger money guard than a time pause.
- dev's persisted 30-second paid-failure pause becomes a two-second repeat
  guard held in memory by the open vault. It keeps the refusal dev's test
  asserts (an identical request right after an unusable paid answer is
  not bought again) without blocking app/v3's deliberate retries.
- The cap's key is now each ordinary source's id and content hash. The old
  key hashed max(arrived), which a revisit moves to now, so the cap could
  reset silently.
- The compiler asks with reasoning disabled (EffortOff, dev's fix for a
  provider that ignored effort "none" and billed 8000 reasoning tokens for
  nothing), with the request identity unchanged so cached answers stay
  cached.
- One billing path: the daily gate runs before every compiler call and
  provider attempt, and each billed answer writes one ledger line and one
  receipt, usable or not.

Proofs, by name:
  P1 TestKnowledgeOrdinaryBuildCapsEveryBilledAnswer
  P2 TestKnowledgeOrdinaryBuildRetryCapSurvivesRepeatedHandovers
  P3 TestKnowledgeDailyLimitBlocksEveryRetry, TestKnowledgeDailyLimitBlocksTransportRetry
  P4 TestKnowledgeMixedPaidAnswersMatchCallLogLedgerAndReceipts

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas added a commit that referenced this pull request Nov 10, 2026
The second full pre-release hand test of dev@b0dfe9702 (after #2567), on Linux and macOS with the v0.8.2 upgrade, rollbacks and the live tmux suite, found these; each fix is its own commit with a test that fails with the fix reverted, and every flow was rechecked by hand on the final branch binary.

- An unsent draft survives reopening its chat from Home after Ctrl+C, on every road; a composer that never loaded the saved draft cannot overwrite it, while a send, edit or clear always replaces it and an unreadable record is still kept aside.
- A remote task's spend is counted once when its conversation arrives on the worker: paid calls carry one identity (session.UsageCallID; local ledger rows keep their schema and derive it), and reconstruction never writes a row for a call the ledger holds.
- The older-turns notice survives a chat moving away and back (the copy-ready stamp is carried forward).
- A late reconciled receipt reaches Home's card.
- A landing whose work is kept on a branch names the branch again; routine landings stay quiet.
- The tmux suite and the manual follow decisions already made: the Memory tab (#1943), the first-conversation starter (#680), folded endings (#1893).

Minor findings not fixed here are in #2575; #2582 is a known count gap (dollars correct).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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