Skip to content

Align four remaining nightly browser cases with Ask workflows - #1004

Merged
max-sixty merged 1 commit into
mainfrom
codex/fix-leaf-nightly-remaining
Sep 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
codex/fix-leaf-nightly-remaining

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The scheduled nightly run on 895a629c failed nine browser cases. Five are covered by merged #1002 and #1003. The other four reproduce on current main at 3aa1888 and are repaired here.

These are stale test arrangements after two intentional changes:

  • A multiple-choice options tick no longer answers its Ask before Done (Make multiple-choice Asks finish with Done #966). The margin-label paint test now uses a single-choice Ask, so the pick produces the receipt whose label it measures.
  • Only an answered Ask creates an agent workflow (Derive every agent obligation from one workflow answer #983). The export test marks its draft needed, making its edit a real Ask answer before checking that export strips the live pickup status. The two-unit arrival test classifies two cards in a swipe-deck Ask, then checks their distinct pickup and work pulses in the margin and Page Map. Ordinary board moves no longer serve that role.
  • The shipped triage-board rail test now creates and resolves an anchored thread. It verifies that a real margin entry appears and disappears without moving the readable column.

Verification: all four repaired cases and the neighboring receipt lifecycle case pass together under --run-nightly -n0 (5/5). Pre-commit passes on the changed files.

This was written by Codex on behalf of max-sixty

Use answered Asks for receipt, pickup, and claim assertions after the workflow cutover. Exercise the shipped board margin rail with a real anchored thread, since an ordinary board move no longer creates a workflow.
@max-sixty
max-sixty merged commit aa3234f into main Sep 23, 2026
7 of 8 checks passed
@max-sixty
max-sixty deleted the codex/fix-leaf-nightly-remaining branch September 23, 2026 13:24
max-sixty added a commit that referenced this pull request Sep 23, 2026
A page action that answers no Ask, such as a moved card or a draft edit,
now shows its Sent / Queued / Picked up receipt again. It still owes the
agent nothing: Stop, `leaf status idle`, and the banner's counts ignore
it.

## What #983 conflated

#983 made each workflow carry `answer`, the operation the agent owes a
move, and dropped every page action that owes nothing from the workflow
list. A workflow carries two separate readings, though:

- `stage` is delivery progress. `conversation-loop.md` promises it for
every reader move, and the margin, the Page Map and `leaf delivery
claim` read it.
- `answer` is the obligation, and Stop, `idle` and the counts read it.

Because the move itself was removed, a moved card lost its receipt and
`leaf delivery claim` on it reported no outstanding move. #1004 then
rewrote the four nightly cases to use Ask answers, so the suite no
longer covers these moves.

## The change

- A page action that answers no Ask keeps a workflow whose `answer` is
null. The workflow stays until the markup records the move or a later
version takes it in.
- Activity counts are now derived from owed answers alone (`outstanding`
= `obligations`). This keeps #983's guarantees: no Stop or idle block
and no pending count for a move that owes nothing. The remedy text and
the `answering` clauses are unchanged.
- A pick before Done still has no workflow. The reader has not handed it
over yet, and the Done carries the receipt. The rule that such a pick
hands the agent nothing still holds.
- A version settles a move only when its note supersedes the revision
the move was made on. A note stamped over that same revision was written
before the move reached anyone. The rule applies to recordless owed
verbs too, and they settled on log order alone before.
- `work_subject` now asks the workflow projection whether a widget has a
receipt, instead of calling `page_action_unsettled` a second time.
- `workflows.py`, `session-lifetime.md` and `conversation-loop.md` now
describe the two readings separately.

## Tests

- In `test_a_page_pick_holds_the_turn_until_the_markup_records_it`, the
draft edit now has a Sent receipt with a null answer that no count
reads, and the next version retires it.
- On the original tests, before #1004 rewrote them, the four nightly
cases pass with this change: each was confirmed passing on `19a02132^`,
failing on `19a02132`, and passing again here.
- On the merged branch, these all pass: `test_render_margin.py` in full
plus the aim and export cases (nightly included), and all of
`test_interact_session.py`. Before the merge, the interact files,
website server, semantic news, conversations, projection and navigation
suites also passed. The one failure,
`test_render_startup.py::test_a_widget_a_reply_carries_arrives_with_its_module`,
also fails on `origin/main` locally.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 23, 2026
#1005 restored delivery receipts for page actions that answer no Ask,
while keeping their `answer` null so they do not create agent
obligations. That changes the contract against which #1004 updated three
nightly cases.

Restore the original export, Page Map arrival, and shipped-board
margin-rail tests. They again cover a draft edit and ordinary card moves
with real Sent / Picked up / Working readings. Keep #1004's
single-choice fixture in the margin-label test: a tick in a
multiple-choice Ask still produces no receipt before Done.

Verification on the PR's base at `0cccbdc`: all three restored cases
plus the retained margin-label case pass together under `--run-nightly
-n0` (4/4). Pre-commit passes on the changed files. The later #988 merge
changes only the workflow docstring in the code these cases exercise.

> _This was written by Codex on behalf of max-sixty_
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.

2 participants