Skip to content

Call the user's input an update and the agent's reports reports, and fix stale facts the prose survey found - #2329

Merged
max-sixty merged 10 commits into
mainfrom
prose-survey
Oct 11, 2026
Merged

max-sixty merged 10 commits into
mainfrom
prose-survey

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Gives the user's input and the agent's reports one name each, update and report, and fixes stale facts and broken sentences that a repository-wide prose survey found.

User input is an update. The glossary and UI already called the user's input an update, but agent-facing text, code and the site had drifted to "move" (and the site to "feedback"), so one reference said "delivered updates" and "user move" for the same thing. Shipped instructions, the delivery handling text in registry.json, CLI and hook output, docstrings, sidecar contracts, runtime comments and docs/how-it-works.html now say "update"; where a sentence is about a widget's input it says "action", after the event kind. Identifiers follow: delivery_owed_updates, active_updates, workflows' page_action/thread_action. The q walk labels a widget handed back to the user "Update" rather than "Move". "Move" stays where it means relocation (board cards, focus, anchors, geometry). The glossary's Update row names move, feedback and input-as-a-count-noun as rejected synonyms.

Worker and agent reports are reports. Code also called the agent's and workers' reports "updates", the same word as the user's input. They are now reports throughout: runtime/updates.js → runtime/reports.js, updateSequence/watchUpdates → reportSequence/watchReports (exported from widget-api.js), the served view field updates → reports, the x-state flag update: true → report: true, and the recorded meaning.state.update key → meaning.state.report. A report outranked by a newer one has disposition outranked (was standing, a word the glossary reserves for the user's position). The agent's narration is a "progress message" (threads.md "Progress messages", the fold label "Previous progress messages"). Visible labels: the Page Map kind "Reported state", lf-activity's "Show N new", the Atlas "Show latest". The committed example and fixture logs carrying the recorded key are regenerated; page logs written before this change are not migrated (AGENTS.md, Stage).

Stale facts and broken sentences, each checked against the code:

  • harness-claude-code.md and harness-pi.md: the sentence about a large delivery's leaf delivery read pointer was ungrammatical.
  • page-storage.md named the delivery format leaf-delivery-v3; it is delivery.DELIVERY_FORMAT (v5). docs/how-it-works.html now says the envelope's format field names its version rather than copying the number.
  • tests/AGENTS.md cited a nonexistent version check --render command and an old Node floor.
  • assets/AGENTS.md had the boot order backwards (prepaint.js runs before bootstrap.js), a wrong overlay path, and a paragraph repeated 25 lines later.
  • module-authoring.md still said playback keeps requestAnimationFrame, contradicting its own nextAnimation rule, and listed two durations widget-api.js does not export.
  • leaf page claim --help described pre-Replace delivery recovery caveats with receipt and ownership guarantees #2248 leaf wait.
  • docs/how-it-works.html claimed to list every command family but omitted leaf file bind.
  • event-batches.md dropped a duplicate answer bullet and a tagline whose literal reading is false; conversation-loop.md is retitled "Conversation loop"; smaller fixes in evals/README.md, page-checkpoints.md, package instructions, notes/agent-usability-evals.md and examples/triage-board.html.

Regtest snapshots for delivery and acknowledgement text are re-recorded for the new wording; docs/registry.html and the example corpus are regenerated.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 10, 2026 16:10
- skills/leaf/references/harness-claude-code.md, harness-pi.md: the
  delivery-pointer sentence was broken ("since follow its confirmation
  instruction"); it now says to read every part, then confirm.
- skills/leaf/scripts/leaf/page-storage.md: the delivery format was given as
  `leaf-delivery-v3` (the code writes v5); it now names
  `delivery.DELIVERY_FORMAT`. The `conversation-loop.md` citation gets its
  path from this directory.
- tests/AGENTS.md: `version check --render` does not exist; it is
  `leaf page check --render`. The Node floor is 22.18, as `package.json`
  `engines` requires, not 22.
- skills/leaf/assets/AGENTS.md: the boot paragraph said bootstrap.js loads
  before everything and prepaint.js before the bootstrap; it now orders
  prepaint first, as `compose_document` does. The annotation-overlay path
  in the runtime table pointed under assets/; and the "Put a check on the
  side that can observe the fact" paragraph appeared twice in Render gates.
- skills/leaf/references/module-authoring.md: playback no longer keeps
  `requestAnimationFrame` (it uses `nextAnimation`, documented under Public
  API), and `flashDuration()`/`agentArrivalDuration()` are not exported from
  `widget-api.js`, so a module cannot call them.
- evals/README.md: the models live in `MODELS` in `dev/leaf_dev/arms.py`,
  not `harness.MODELS`; the copied values are dropped.
- skills/leaf/packages/file-editor/instructions/author.md: drop the title,
  which `packages.md` says instruction files do not carry.
  code-review/instructions/author.md: capitalize the sentence starting
  "Pose a Question".
- docs/how-it-works.html: the command table claimed to list every command
  family but omitted `leaf file`; add its row and say how to list them all.
- examples/triage-board.html: the summary claimed every deferred card was
  cosmetic, safely retried, or one customer with a workaround, which the
  webhook and HEIC cards are not; the corpus is regenerated.
- skills/leaf/references/event-batches.md: drop the "transport receipt, not
  semantic settlement" tagline, the `answer` bullet that duplicated the full
  one below, and both "writer records custody" clauses; the full `answer`
  bullet now names `leaf response reply`.
- skills/leaf/scripts/leaf/cli.py: `leaf page claim`'s help still said a
  named `leaf wait PAGE` claims, which #2248 ended.
- notes/agent-usability-evals.md: pointed at a TODO item #1730 replaced;
  it now names the item that replaced it.
- skills/leaf/references/conversation-loop.md: retitled "Conversation loop"
  to match its filename, with the link labels in threads.md,
  event-batches.md and docs/how-it-works.html.
- skills/leaf/references/page-checkpoints.md: "waiter" is the internal lock
  name; agent prose calls it the watcher.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The maintainer decided that the user's input on a page is an "update"
everywhere; the glossary already said so and the UI follows it, but
agent-facing text, code, and the site had drifted to "move" (and the
site to "feedback"), so an agent read "delivered updates" and "user
move" for the same thing in one reference.

Wording changed:
- Shipped instructions (SKILL.md, references), delivery `handling`
  text in the registry ("This action owes no answer of its own"), CLI
  and hook output ("the user's updates read Sent", "an update you
  owe", "no unsettled action", the reconnect notice), docstrings,
  sidecar contracts, runtime comments, and the how-it-works page now
  say "update"; where the sentence knows the kind, a widget's input
  is an "action" (its event kind) and a thread's is a message.
- The queue walk's stop for a widget handed back to the user is
  labelled "Update" rather than "Move".
- The how-it-works page says "updates" where it said "feedback" for
  the user's input, and its "Stages of an update" and "Updates awaiting
  an answer" sections (ids `browser-updates*`, `delivery-envelope`,
  `delivery-handling`) are renamed to match.
- Green is described as marking the user's turn.
- Identifiers that named user input as a move are renamed:
  `delivery_owed_updates`, `active_updates`, workflows' `page_action`
  and `thread_action`, and locals in workflows, hook_transport, work
  and thread.
- The glossary's Update row names the banned synonyms: move, feedback,
  and input as a count noun.

"move" stays where it means relocation: board cards and the `move`
verb, focus and keyboard navigation, anchors and reanchoring, scroll
and layout geometry, and the game metaphor in SKILL.md's Leaf soul.
Regtest snapshots for delivery and acknowledgement text are re-recorded
and docs/registry.html is regenerated with `leaf-dev keydocs`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/assets/registry.json
#	skills/leaf/assets/runtime/thread/held-news.js
#	skills/leaf/assets/runtime/thread/model.js
#	skills/leaf/references/conversation-loop.md
#	skills/leaf/scripts/leaf/events.md
#	skills/leaf/scripts/leaf/tasks.py
#	tests/AGENTS.md
#	tests/_regtest_outputs/test_interact_contract.test_each_case_of_an_event_is_told_what_the_snapshot_shows__0/snapshot.yaml
#	tests/_regtest_outputs/test_interact_contract.test_each_route_hands_the_agent_what_the_snapshot_shows__0/snapshot.yaml
#	tests/_regtest_outputs/test_interact_session.test_agent_sees_a_real_summary_suggestion__0/snapshot.yaml
#	tests/_regtest_outputs/test_interact_session.test_agent_sees_the_complete_interaction_recovery__0/snapshot.yaml

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The revised site explanation still names the wrong delivery format.

Comment thread docs/how-it-works.html Resolved
max-sixty and others added 3 commits October 10, 2026 18:44
"Update" now names only the user's input. Everything Leaf called an update on the
agent's side is renamed in one change, with every consumer:

- The report feed: runtime/updates.js is runtime/reports.js, and widget-api.js
  exports reportSequence and watchReports (were updateSequence and
  watchUpdates). The served view field and `leaf page state`'s widget and
  thread readings carry the feed as `reports` (was `updates`);
  projection.canonical_updates is canonical_reports.
- The x-state flag that requires report text is `report: true` (was
  `update: true`), in the schema, the registry contract, history, projection,
  the browser framework's ActionSpec, and every registry that declared it.
- Admission records the flag as `meaning.state.report` (was
  `meaning.state.update`), and same_state_operation compares that key. Page
  logs written before this change carry the old key and are not migrated
  (AGENTS.md, "Stage"): a recorded action whose state definition lacks the
  new key no longer matches the current verb. The committed seeds that carry
  it (feature-gallery, ship-review, the current-proposed-comparison and
  review-queue fixtures, and docs/event-log.html's records) are rewritten
  with the new key; the corpus, the key reference and the browser
  framework's event types are regenerated.
- A report outranked by a newer report on its coordinate has the disposition
  `outranked` (was `standing`, which names the user's position).
- The agent's interim thread messages are "progress messages": the threads.md
  section and its anchor (#progress-messages), the derived fold's label
  ("Previous progress messages", was "Previous updates"), how-it-works'
  sections and their ids (progress-*), the gallery's practice view, and the
  eval prompts and rubrics that named them.

Visible wording follows: the Page Map kind reads "Reported state" (was
"Reported update"), lf-activity's held-news control reads "Show N new" (was
"N new updates"), and the Atlas refresh button reads "Show latest" (was "Show
updates"). The glossary's Update entry now says which words the agent's side
uses.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…rsion

The page said deliveries use leaf-delivery-v3; the format is v5
(delivery.DELIVERY_FORMAT). A site reader needs to know the envelope
names its version, not the current number, so the page no longer
copies it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	build/browser/application.ts
#	docs/how-it-works.html
#	examples/corpus.html
#	examples/developer/feature-gallery.html
#	skills/leaf/references/authoring-revisions.md
@max-sixty max-sixty changed the title Call the user's input an update, and fix stale facts the prose survey found Call the user's input an update and the agent's reports reports, and fix stale facts the prose survey found Oct 11, 2026
max-sixty and others added 2 commits October 10, 2026 19:17
# Conflicts:
#	skills/leaf/references/module-authoring.md
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 11, 2026
# Conflicts:
#	skills/leaf/scripts/leaf/served_state/browser.py
leaf-agent
leaf-agent previously approved these changes Oct 11, 2026
# Conflicts:
#	skills/leaf/scripts/leaf/thread.py
@max-sixty
max-sixty merged commit 4c1f67f into main Oct 11, 2026
6 checks passed
@max-sixty
max-sixty deleted the prose-survey branch October 11, 2026 04:46
max-sixty added a commit that referenced this pull request Oct 11, 2026
…2431)

A user's lf-options picks, and the Question they answered, stopped
standing
after `leaf page init` moved a page onto a newer layer. AGENTS.md says a
later
version keeps a user decision unless it explicitly retracts what the
decision
rests on.

**Cause.** Each admitted action records its operation's definition in
`meaning.state`, and `state_projection` folds an event only while
`same_state_operation` finds the recorded definition equal to the one
the
current widget declares. That comparison required every key but `detail`
to
match exactly. #2329 renamed the recorded `update` flag to `report`, so
every
action admitted before it, on every page, carried a key the current
definition lacked and silently stopped standing, with its Question
reopened.
The re-vendor only mattered because it let the new Python read the old
log.

**Fix.**
- The operation is now the fields `state_definition` writes, `detail`
aside,
each required and equal. A field an earlier Leaf recorded beside them no
  longer retracts a decision; a missing or different field still does.
Python (`registry/contract.py`) and the browser (`registry-contract.js`)
  hold the same rule.
- The domain check that decides whether to re-validate a payload
compares
`detail` only, in `state_projection` and in the browser's
pending-gesture
  check, so an undo of an older decision also draws at once.
- The recorded definition no longer carries `report`: its only effect is
the
required `text` that `detail` already records. The event admission
schema
  in `registry.json`, the generated `event-contract.d.ts`, the committed
  example and fixture logs, and `docs/event-log.html` follow.

**Tests.**
`test_a_decision_stands_when_an_earlier_leaf_recorded_its_operation`
rewrites an admitted pick into the pre-#2329 form and checks that it
stands
and keeps its Question answered; it fails with the old comparison. Node
tests
cover `sameStateOperation` and a pending undo of such a decision. The
affected page, copied to scratch, reads its revision-7 picks and
answered
Question again.

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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 12, 2026
…2646)

#2329 (updates → reports and progress messages) and #2506 (queue kinds →
ask, to-do, resend) reworded eval cases without rescoring them. This
rescores every case they touched on Claude Code at 3fe3eb0 and records
the result in each case's leading comment.

- `assessment-surfaces-pending-decisions`, the one case whose rename
could have changed what it measures, ran paired against 0cc6805 (the
commit before #2506), 3 repeats per variant: prose-review-handoff 2/3 →
3/3 (the old arm's miss was the judge faulting the unrun plan the prompt
asks for), settled-review 3/3 → 3/3, queue-handoff 3/3 → 3/3.
- The other 19 edited cases passed 1/1 each.
- The handling text pasted into `user-rewrite-answered` and
`user-rewrite-retitles-its-thread` still said "takes the move in hand";
it now matches the registry's clause.
- The remaining eval text that said "move" for the user's input now says
"update".

The runner reported $10.59, judge excluded.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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.

2 participants