Skip to content

Say what holds now across the tree, leaving its history to the commits that made it - #6212

Merged
max-sixty merged 24 commits into
mainfrom
headers-without-history
Nov 17, 2026
Merged

max-sixty merged 24 commits into
mainfrom
headers-without-history

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Removes the history the tree had collected in module headers, comments, test docstrings and eval-case comments: dates of decisions, who asked when, the incidents and sessions behind them, replay and pass counts, PR numbers cited as provenance, and accounts of earlier versions. Each decision stays with its reason, whether the user made it, and the alternatives a later change might reach for, now stated as rejected with why they fail. The removed history stays in the commits that added it (git log -L). #6210 changes the two rules that produced it.

Lines matching a dated-history pattern outside notes/, examples/ and fixtures go from 264 to 17; the rest are page and prompt data, a page revision's "first version", and three browser/AGENTS.md clauses #6024 already removes. Provenance PR numbers leave code comments; one open TODO(#4041) stays. src/leaf/clerk.py's docstring goes from 250 lines to 190.

What to weigh: a figure that a constant, bound or budget is sized from stays (DEADLINE_S, ROLLOUT_MS, FEW), and so does a version that bounds an observation (a Playwright build, a Claude Code version). An observation of a browser or of Claude Code that carried a date now says what the code guards against ("Chromium can leave … hovered"), since dropping the date alone would have asserted a law. notes/ keeps its dated research. Every hunk is a comment, docstring or string; no assertion changed. packages/default/styles/sample.css also loses a paragraph that described the suggestion as boxless, which base.css no longer makes it.

Conflicts: open PRs that touch these 423 files, such as #6156 in forks.py, will resolve comment hunks when they next merge main.

Asked for by Max on #6160's review. Six agents swept by area; an independent Codex pass per area compared old and new text claim by claim, and a second pass checked the fixes; their findings are fixed. pre-commit passes on every changed file, as do the tests that read them.

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

…o the commits that made it

- dev/leaf_dev/browser.py: dates of browser observations (engine builds kept),
  and the nightly runner's Firefox failures behind the reduced-motion pref.
- dev/leaf_dev/commands/bench.py: dated measurements (OS clock against thread
  ticks, Firefox builds, efficiency-core timings, round-to-round spread, trace
  order), and #4781/#5996 cited as provenance; #5722 stays, still open.
- dev/leaf_dev/arrangement_eval.py: the run count and date behind
  `open_as_user`, now stated as the alternative and why it fails.
- dev/leaf_dev/ios_safari.py, visits.py, commands/probe.py: dates of iOS and
  Playwright observations, and the incident they caused (versions kept).
- dev/leaf_dev/review_scenario.py: the date the line fork's judgment was seen.
- docs/forks.html: dates of the user's choices (kept as the user's), the
  probe's and live runs' timings, and an eval's pass counts; the rejected hook
  now reads as the alternative and why it fails.
- docs/examples.html: the TODO's date.
- .github/workflows/ci.yaml: #296, #751, #3243 and #4781 as provenance, and
  the measurements behind the worker counts and py-spy's rate.
- .claude/skills/fan-out-backlog/SKILL.md: one campaign's run counts, medians
  and incidents, kept as the properties they showed.
- .claude/skills/developing-leaf/references/glossary.md: the dates of a
  rejection.
… made it

An eval case's leading comment now says what situation the case reproduces,
what tempts the agent to fail, and what a variant or guardrail changes and why.
The history in it (session and chat ids, dates, PR and issue numbers cited as
provenance, commit hashes, pass counts, base/head and paired results,
"Reworded by #N", "Re-frozen ... Not rescored", "haven't run since") stays in
the commits that added it. An earlier guidance or handling that agents failed
under is kept as the alternative it is; a measurement is kept only as the
property it showed, without its numbers. YAML data is unchanged in every file;
only comments moved.

Where a cut turned a past result into a present claim about a reference, the
claim names the reference that holds the rule now: authoring-on-me.md for
the paragraphs the comments credited to authoring-questions.md,
authoring-asks.md and authoring-decisions.md, and page-authoring.md's "Show
the subject" for the picture default and refactor exception.

Per file (case directories under evals/ unless a file is named):

- answer-hands-back-the-next-move, answer-quotes-what-it-cites,
  answer-settles-what-it-carried: session id, dates, per-harness pass counts,
  the old handling's results (kept as the alternative wording), "since 15
  November 2026".
- app-server-edit-before-final: issue #1841, replay date, base hash and count,
  the dated sequence of the guard's wording.
- approach-page-leaves-the-choice-open: session id, main hash and pass counts.
- assessment-surfaces-pending-decisions: four session ids, hashes, paired
  results, "Across #2506's rename", protocol-number history.
- audit-calls-are-proposals: session id, hashes, per-commit pass counts, base
  briefs' counts.
- authored-recording: issue #1083.
- brief-document-needs-no-outline: pass counts, the dated widget comparison,
  the sequence of rewrites (the defaults-first wording kept as the alternative).
- capture-set-labels-each-axis: session id, hashes, run counts, "was added
  when".
- changing-feedback-keeps-place: the comparison's name and the precursor's
  counts.
- claude-hook-delivery-needs-no-ack: "Added when", the replaced case, hashes,
  per-harness counts, "Reworded by #2329", "Re-frozen ... Not rescored".
- closeout-asks-take-their-route: session id and dates, survey counts.
- codex-independent-terminal-transports: "Added during", date, counts.
- configuration, dependency-review, draft-review, durable-page-embedding,
  ephemeral-progress-reply, latency-review, notification-design: "Added
  with/before/during" lines, dates, "Pilot pending", a re-freeze hash.
- controls-repay-their-cost: study date, hashes, run counts and the candidate
  sequence (the pointer-only wording kept as the alternative).
- correction-edits-the-standing-reply: #5724, the maintainer's request, "Not
  yet run" and the hand-graded counts.
- dashboard, document: base/head counts, "From TODO.md" sources (the item is
  gone), "Added when" with a hash.
- decision-options-fit-the-window: session id.
- decision-record-after-its-work: session id, dates, corpus counts, per-arm
  results (the failing delivery and pointer wordings kept as alternatives).
- deferral-holds-a-todo: date, hash, run counts and grading note.
- diagram-parts-complete: issue #1455, dated comparison, hashes, probe counts.
- exhibit-playground-stays-in-the-column, file-editor-save-context,
  generated-preview-keeps-its-state, interaction-proof-follows-the-reader:
  chat ids, dates, hashes, historical rubric scores, probe counts.
- figures-add-what-words-cannot, findings-page-shows-its-subject: session ids,
  hashes, replay counts, the dated regrade and "Earlier rubric scores remain in
  scratch".
- first-command-says-what-comes, handoff-holds-a-todo,
  handoff-leaves-the-watch-to-leaf, important-page-reviewed-at-checkpoints:
  journey-run hashes and timings, base/change counts, "Reworded by", "Re-frozen
  ... Not rescored", dated page-survey windows.
- grouped-title-address: "Added while", the discovery repair's result.
- line-fork, long-document-has-contents, mechanism-proposal-shows-its-measurements,
  motion-design, named-work-is-linked-everywhere, numeric-grid-shows-shape:
  run dates and counts, #1242, #1491, #4662, #5900, #4267, #4629, #5901, chat
  and session ids, run ids, the pilot and audit sequence, corpus counts.
- on-lists-read-todo-records: "Added when", hashes, "Re-frozen ... Not
  rescored", the dated removal of to-dos on the user (kept as a present fact).
- option-captures-line-up, option-cards-take-their-width,
  options-draw-their-arrangement, options-keep-one-order,
  options-label-what-sets-them-apart, options-stay-words-for-wording: session
  ids, base hashes, run counts, #44, #3790, rubric-calibration history, "Now a
  probe ... passed".
- package-card-keeps-its-headers-pinned,
  package-scroller-headers-stand-on-its-edge, page-arrangement-uses-layouts:
  "Added with", #1246, trial counts, "since Leaf stopped".
- page-follows-the-work: session id and date, #6110, before/after counts.
- page-reads-at-every-width: the TODO.md source, counts at a hash.
- page-url-followup-final, page-url-midwork-progress, page-url-opening-progress:
  the complaint's date, hashes, counts, "Reworded by #2329".
- parent-keeps-leaf-responsive, parts-take-their-own-layouts, patch-review,
  pin-takes-no-page-room, plan, plan-shows-multi-step-work, plan-skips-quick-work:
  hashes and counts, issue #4018, #1333, #3195, dated misses with token counts,
  "Added/Extended" lines.
- playground-candidates-line-up, playground-candidates-use-product-copy,
  playground-case-is-independent, playground-choice-has-one-surface,
  playground-comment-reads-its-settings, playground-controls-stand-by-their-item,
  playground-isolates-fixture-history, playground-presets-are-whole-designs,
  playground-query-is-the-task, playground-tunes-what-ships: session and chat
  ids, dates, hashes, per-arm counts, historical rubrics, probe results.
- playwright-recording-shows-its-trace, playwright-trace-review: dates, counts,
  "Added with".
- proposals-get-individual-decisions, proposals-show-what-they-change: session
  ids, hashes, counts, "Reworded by #2506", the dated regrade.
- queue, queue-is-a-side-list, quick-page-skips-the-browser-review: #1363, a
  TODO.md source, hashes and run counts.
- record-asks-hold-their-premise, record-asks-hold-their-table,
  record-read-without-the-notes, record-reply-before-its-stamp,
  recorded-effect-payloads, recovery-leaves-a-forks-answer,
  reply-left-standing-reopens: #1322, #3174, #11, session ids, dates, reply
  timings, hashes, counts, "Reworded by #2329", "Added with/for".
- report-navigation-uses-vocabulary, review-plan-stays-open,
  review-shows-the-change, settle-conversational-obligations,
  shared-contribution-actions, shot-frames-read-at-size,
  sidebar-track-is-its-aside, skim-carries-the-argument, source-code-readable,
  step-on-the-user-takes-a-thread, surface-page-takes-the-window,
  table-cells-wrap-in-the-theme, thread-choice-takes-a-press: #45, #1363, #5539,
  session and chat ids, dates, hashes, replay scores, "haven't run since",
  comments that held only results.
- thread-fold-without-summary-prose, thread-named-in-its-reply,
  thread-summary-after-topic-drift, thread-summary-preserves-needed-exchange,
  thread-widget-actions, todo-outlasts-the-turn: #1374, #1288, hashes, initial
  A/B results, "Reworded by #2329/#2506".
- user-rewrite-answered, user-rewrite-retitles-its-thread, user-view-context,
  view-draws-a-case-it-shares, visible-outcome-before-handoff,
  visual-change-uses-captures: re-freeze and re-paste history, hashes, dates,
  session and task ids, paired results.
- widget-checked-before-handoff, widget-controller-lifetime,
  widget-interface-serves-the-task, widget-list-keeps-focus,
  widget-owned-context-keys, widgets-draw-as-written,
  words-question-takes-a-thread, work-names-its-item,
  workspace-header-is-one-row, workspace-prose-keeps-a-reading-width,
  workspace-stacks-where-the-layout-flows: "Added with", run and trial ids,
  the focus overhaul and Lit survey, a TODO.md source, #1301, hashes, counts,
  "historical scores".
- control-legibility/README.md: "Undo's old arrow", kept as the alternative
  icon it illustrates.
- ui-review-detection/README.md: the dated calibration paragraphs, the
  partial-source run, earlier provider gaps and deadlines, "Historical study
  grades"; the section is "Retained cases".
- ui-review-detection/cases.yaml: two dates and a calibration result.
- workflows/arrangement_eval.yaml: a TODO.md source.
- workflows/usability_eval.yaml: a session id, the October 2026 investigation,
  hashes, counts and issue #4042.
…ry to the commits that made it

Module headers and comments in this area recorded how their code and decisions
came to be: dates, the sessions and incidents that prompted a change, earlier
versions, and the replays and measurements that settled each choice. The text now
states each decision, whose decision it is, its reason and the alternatives a later
change might reach for, in the present tense; the removed history stays in the
commits that added it.

- src/leaf/clerk.py: dates of the user's choices, the /reload-plugins incident,
  the first versions (to-dos on the user, status lines, "added by Leaf"), the
  #5724 and #5804 replays, and the measurement paragraphs (replay counts, costs,
  scratch scripts, the low-effort fork's runs).
- src/leaf/forks.py: dates of the user's choices, the 2026-11-09 to 11-14 `low`
  period and its eval and replay results, and the reply-time medians.
- src/leaf/render_gate/handover_pass.py: eval counts and dates, the removed
  cross-page lock's story, and the "What it costs" measurements; the DEADLINE_S
  comment keeps its sizing without the sample's dates.
- hooks/claude-code.ts: the journey dates and fork costs, the closed issues and
  merged PRs cited as provenance (#5891, #5904, #5892, #5907), and the pointer to
  measurements clerk.py and forks.py no longer hold.
- src/leaf/provenance.py: the "How far the order holds" measurement section and
  the percentages behind the rejected nearest-id placement.
- src/leaf/render-checks/{layout,reachability,widgets,words,framing,runtime}.js:
  the incidents that prompted each check (shipped row-form groups, an eval
  dashboard, lf-options' attributes, the reserved-width lint), earlier readings
  each check replaced, and a measurement date.
- src/leaf/hooks.py, reconnect.py, thread_titles.py, inference.py,
  completions.py: session counts, run results and dates behind each choice.
- src/leaf/todos.py, plans.py, obligations.py, interaction_log.py,
  hook_transport.py, holding.py, http.py: dates of the user's and maintainer's
  choices (the decisions and whose they are stay), and #4024.
- src/leaf/served_state/page.py, holding.py, worker/README.md: dates on TODOs.
- src/leaf/codex.py, file_changes.py, served_state/tail.py, build/browser/build.mjs
  and its test: PR and issue numbers cited as provenance (#3357, #4812, #5271,
  #4112); file_changes.py also drops "which this replaced" and the ctypes
  prototype's story.
- src/leaf/cli.py, exporting.py, themes.py, events.py, event_log.py,
  event_contracts.py, passages.py, structure.py, revision_artifact.py,
  registry/contract.py, validation/markup.py, served_state/thread.py,
  workflows.py, render_checks.py, render_gate/command.py,
  worker/leaf_website/__init__.py: "used to", "once", "for a long time" and
  past-tense incidents, restated as the alternative and why it fails.
…y to the commits that made it

Comments in the stylesheets, browser/AGENTS.md and the bundled packages now
state each decision, whose it is, its reason and the alternatives it rejects,
without the dates, occasions, earlier versions and run results that led there.
Rejected earlier versions become "Rejected:" clauses; measurements that settled
a decision give way to the property they showed.

- browser/AGENTS.md: two decision dates; a past-tense reason for the focus
  `:has()` rule.
- browser/base.css: the suggestion wrapper's boxless past, its tag list, the
  room its slots once took, a corpus measurement and the incident that found
  the delete ink; a decision date.
- browser/layouts.css: rejection dates; the prose's earlier start edge and PR
  numbers.
- browser/styles/chrome-guard.css: spike and PR numbers; the guard's earlier
  reach, kept as a rejected alternative.
- browser/styles/components/controls.css: decision dates throughout; earlier
  faces and layouts ("until the user chose", "once", "N lists drew N ways");
  a PR number; measurements of a cut flowchart and of 512 questions.
- browser/styles/components/reading.css: survey counts and table
  measurements, "until November 2026", a PR number, the first draft of the
  apparatus list, a measurement of digit widths, decision dates.
- browser/styles/components/response.css: decision dates, "Max removed ... on",
  a PR number, "as before this".
- browser/styles/components/surfaces.css: a measurement taken before the aim
  floor existed; earlier spent-press and pressable states; a decision date.
- browser/styles/components/webawesome.css: a decision date and the occasion
  of the comparison.
- browser/styles/floating-panel.css: decision dates throughout; the panel's
  earlier faces, sizes and field; a dated pointer into notes.
- browser/styles/tokens.css: a measurement run, earlier shadows and rings,
  "no longer", the palette's first attempt, decision dates.
- packages/deck/widgets/lf-deck.js: a decision date.
- packages/default/styles/board.css: the floor's earlier statement and the
  incident it caused, earlier layouts ("used to").
- packages/default/styles/code.css: the occasion of a decision.
- packages/default/styles/draft.css: a decision date.
- packages/default/styles/options.css: decision dates, the sequence of four
  layout rules with their PR numbers, review rounds.
- packages/default/styles/sample.css: the incident behind the gutter, a page
  and corpus measurement, the bar's earlier width, a decision date.
- packages/default/styles/text-document.css: a timing measurement.
- packages/default/styles/toc.css: PR numbers and the order of rejected forms,
  decision dates.
- packages/default/widgets/image-difference.js: a PR number, the adoption
  story and pixel counts behind the floor and SLIGHT, a benchmark time.
- packages/default/widgets/lf-draft.js, lf-options.js, lf-options-settled.js,
  lf-sample.js: decision dates and an "until" date.
- packages/default/widgets/lf-text-document.js: a run-count measurement.
- packages/diff/widget-shadow.css: a decision date and "as before".
- packages/file-editor/widgets/lf-file-editor.js: a rejection date.
- packages/playground/defaults.css: "That reverses an earlier", rejection
  dates, a survey count.
- packages/playground/widgets/lf-playground.js: rejection dates.
- packages/playwright/widgets/lf-trace.js: rejection dates and a replaced
  mark.
- packages/reading/defaults.css: a drift incident and a decision date.
- packages/visual-review/widgets/lf-visual-review.js: a decision date.
…made it

Test docstrings and comments in tests/, dev/tests/ and worker/test/ named
the behavior they protect alongside how it came to be: dates of the user's
decisions, the incidents and PRs that prompted a test, what the code did
before ("used to", "once", "no longer"), and measurements that justified a
test's shape. That history stays in the commits that added it. Each
decision, whose decision it is, its reason, and each rejected alternative
with why it fails stay, restated in the present tense where the history
carried them. Fixture data, timestamps a test feeds the code, version
bounds ("measured at Claude Code 2.1.304") and the open issue an expected
failure names are unchanged.

No behavior changes: every edit is to a docstring, a comment, or an
expected-failure reason string in tests/journeys/test_page_holds_still.py.

Files, and the history that left each:

- dev/tests/journeys/test_render_export.py: the stop a start once stood behind, and an update that once disabled the service, now stated as conditions.
- dev/tests/process/test_website_server.py: the publish-site incident and its latency figures.
- tests/conftest.py: the date and occasion of the user's judgement on test selection; directory-entry counts and worker-minutes.
- tests/interact_support.py: what Leaf once mistook for the session, and the shape seen "in the wild".
- tests/known_widget_findings.py: a PR number.
- tests/model_folds.py: a "now" set against the past.
- tests/page_scripts/focus_rings.js: PR numbers, a commit hash with the case it was written for, the reduced-motion story, and two incidents restated as conditions.
- tests/process/test_interact_server.py: the revision address's old fall-through, the refusals' history, and a sweep that once stopped every server, as conditions.
- tests/process/website_server/test_app_server.py: a measurement's date.
- tests/process/website_server/test_turn_follower.py: "used to print".
- tests/render_cases_interaction.py: the commit that dropped lf-options' seat.
- tests/render_cases_layout.py: the reported drawer incident, corpus measurements, the first draft's scan, a former contrast gap, a PR number.
- tests/render_cases_navigation.py: pattern compile-time measurements.
- tests/render_cases_widgets.py: the last failure's row counts.
- tests/render_harness.py: the header's list of things once wrong, now failures it asserts; the poll timer and key line that used to be; a dated CPU measurement.
- tests/runtime/command-controls.test.mjs, image-difference.test.mjs, leaf-element.test.mjs, semantic-store-ownership-rule.test.mjs, shadow-climb.test.mjs: "once" and "used to" narration, and a PR page's measurement.
- tests/runtime/framework-application.test.mjs: a PR number on what an earlier Leaf recorded.
- tests/shift_watch.js: the date of a user's choice.
- tests/smoke/test_plain_page.py: a PR number.
- tests/smoke/test_smoke.py: an incident's pixel figures and a "now".
- tests/browser/test_chrome_contracts.py: "once made it do so".
- tests/browser/test_native_document_layout.py: where the words used to go, and a 334px measurement.
- tests/browser/test_render_aim.py: ten "used to"/"once" narratives, now alternatives; a timing range; a PR number on the user's choice.
- tests/browser/test_render_anchors.py: "used to" narratives, the case that first showed a gap, and an incident a user hit twice.
- tests/browser/test_render_drawing.py: the mode that once set `touch-action: none`.
- tests/browser/test_render_floating_panel.py: "once"/"used to" narratives, two PR numbers, a pixel figure.
- tests/browser/test_render_gate.py: "used to" passages and the bug counts and widths that measured them.
- tests/browser/test_render_margin.py: a cycle the gallery once ran, with its timing.
- tests/browser/test_render_options.py: "for a while", the rule's history, and the CI occasion and run counts for a race.
- tests/browser/test_render_options_addition.py: "used to write over" and "no longer", and a cut measured at one width.
- tests/browser/test_render_outbox.py: what `z` used to stop at or show, and where a test was first written.
- tests/browser/test_render_pages.py: a regression label, "previously", two PR numbers, and pixel figures of past failures.
- tests/browser/test_render_playwright_trace.py: "once scrolled".
- tests/browser/test_render_reactions.py: a measured handoff time, and "where the log used to refuse it".
- tests/browser/test_render_shift_watch.py: "the former 500ms fallback".
- tests/browser/test_render_threads.py: the date of the user's decision.
- tests/browser/test_scroll_writes.py: past-tense narration of a dropped write.
- tests/journeys/navigation/test_command_reference.py: what the old skip button used to supply.
- tests/journeys/navigation/test_reading_place.py: the date of the user's choice.
- tests/journeys/test_chrome_contracts.py: "as they used to".
- tests/journeys/test_floating_box_motion.py: the date a motion was reported.
- tests/journeys/test_page_holds_still.py: dates of the user's choices and a PR number in expected-failure reasons.
- tests/journeys/test_render_aim.py: how the runtime used to read a press; what a widget replaced.
- tests/journeys/test_render_floating_panel.py: "they used to jump down".
- tests/journeys/test_render_gate.py: layout and recalc counts of an old bug.
- tests/journeys/test_render_margin.py: an issue number.
- tests/journeys/test_render_navigation.py: what Threads once replaced, and the former sidebar.
- tests/journeys/test_render_projection.py: where the gate used to fetch, which owners once held the mark and hide, a 200s measurement, and "no longer".
- tests/journeys/test_render_startup.py: the former ten-second deadline.
- tests/journeys/test_render_widgets.py: an issue number twice, and what a row's word used to be.
- tests/journeys/test_server_lifetime.py: "used to be three commands".
- tests/journeys/test_site.py: the site's file counts, sizes and copy timings.
- tests/journeys/threads/test_layout.py: "used to cut it".
- tests/journeys/threads/test_rewrites.py: "once stood" and "once ended z's walk".
- tests/model/interact_contract/test_authored_markup.py: the .lf-quiet incident, now a condition.
- tests/model/interact_contract/test_media.py: "here is what it looks like now".
- tests/model/interact_contract/test_registry_door.py: the three entries once written by hand.
- tests/model/test_claims.py: an earlier version of the test and its seventy-six leaked claims.
- tests/model/test_codex_app_server.py: an issue number, and what used to be recorded.
- tests/model/test_delivery.py: an issue number twice.
- tests/model/test_interact_document.py: how writers used to append, the palette's first attempt and its figure, what used to be parsed, and a PR number.
- tests/model/test_interact_layer.py: the page-authoring.md split, "Before #5050", "Before this check", and dated restyle measurements.
- tests/model/test_interact_product.py: what the door used to refuse, and since when two widgets were outside a list.
- tests/model/test_interface_fonts.py: the drift narrative and its figures.
- tests/model/test_stop_guard.py: what every debt used to carry, and its word count.
- tests/model/test_thread_reading.py: an issue number three times, and what once took longest.
- tests/model/test_wait.py: "a wait used to read a disabled service".
- tests/browser/controls/test_focus.py: "no longer depends", and the story of an earlier sweep that covered nothing.
- tests/browser/controls/test_rings.py: a removed shortcut bar's example, and the edge-grip incident with its PR number.
- tests/browser/controls/test_status_and_news.py: "the chrome once flipped".
- tests/browser/controls/test_theme_and_device.py: the count of geometries lifts once wrote.
- tests/browser/drafts/test_draft_editing.py, test_reply_sessions.py, test_round_trip.py: "once" and "used to" narratives.
- tests/browser/drafts/test_keys.py: the removed `=` key's history, and "the key used to".
- tests/browser/drafts/test_sending.py: where the box once came back.
- tests/browser/margin/test_card_reply.py: the date a Firefox motion was reported, two dates of the user's decisions, and "used to ring".
- tests/browser/margin/test_entries.py: the 205 attributes the corpus restated, and "used to show".
- tests/browser/margin/test_opening_threads.py, test_pins.py: an earlier failure and a "once".
- tests/browser/margin/test_scrollers.py: an issue number and its narrative.
- tests/browser/navigation/test_command_reference.py: how a flaky ordering was found.
- tests/browser/navigation/test_commenting.py: an issue number and "once"/"used to" narratives.
- tests/browser/navigation/test_key_scopes.py: an issue number, the first version of a test that passed broken, and "used to".
- tests/browser/navigation/test_key_surfaces.py, test_obligation_walk.py, test_panes.py, test_threads.py: "once"/"used to" narratives and a row-size incident's pixel figures.
- tests/browser/projection/test_current_location.py, test_reading_position.py: "used to" narratives.
- tests/browser/projection/test_widget_actions.py: "used to" narratives and an error-count measurement.
- tests/browser/startup/test_freshness.py: the publish-site incident and its latency figures.
- tests/browser/startup/test_keys.py, test_modules.py, test_versions.py: "used to" narratives and a byte share.
- tests/browser/startup/test_projected_data.py: what comments used to do on an update.
- tests/browser/threads/test_agent_replies.py, test_composing.py, test_media.py, test_seated_threads.py, test_summaries.py, test_targets.py: "once"/"used to" narratives and pixel figures.
- tests/browser/threads/test_layout.py: a PR number, "once" narratives, a pixel figure, and a Firefox scope bug in markup Leaf no longer generates.
- tests/browser/threads/test_resolving.py: the date of the user's choice.
- tests/browser/threads/test_rewrites.py: a PR number and date on the user's decision, "once" narratives, and a docstring retelling successive designs.
- tests/browser/widgets/test_boards.py, test_charts.py, test_diffs.py: "used to" narratives and a pixel figure.
- tests/browser/widgets/test_code_and_documents.py: an issue number and "while the frame was" narrative.
- tests/browser/widgets/test_lifecycle_and_controls.py: the measured fault on the command hub and its figures.
- tests/browser/widgets/test_obligations.py: "used to" narratives, a corpus measurement, the boxless-wrapper story, and "now".
- tests/browser/widgets/test_on_panel.py: two "Until 15 November 2026" sentences.
- tests/browser/widgets/test_pressed_controls.py: the widgets once found by hand, and "once flickered".
- tests/browser/widgets/test_suggestions.py: "used to" narratives and a pixel measurement on the design page.
- tests/browser/widgets/test_threads.py: when skipped messages stopped being skipped.
- tests/browser/widgets/test_workspaces_and_bounds.py: the end keeper's first version with its figures, and an issue number.
… commits that made it

The comments and headers under browser/runtime/ recorded when each decision
was made, what prompted it, the versions before it and the runs that settled
it. Each now states the decision, that it is the user's where it was, its
reason in the present tense, and each alternative a later change might reach
for with why it fails. The history stays in the commits that added it.

What left each file:

- floating-panel.js: the dates of some forty decisions of the user's, PR
  numbers cited as provenance (#4878, #3939, #2892, #3883), the key counts
  behind a notice's press, and earlier versions (the Threads mark, the line
  over the field, Reply in ink, a card showing only a widget's words, the Plan
  tab) restated as rejected alternatives or deleted.
- annotation-overlay/thread-preview.js: decision dates, the order in which
  the rules replaced each other, a module since deleted (card-anchor.js), the
  comment counts behind the width rule, and #3157.
- thread/held-news.js: decision dates, PR numbers (#1694, #1926, #1480,
  #1780) and the "before" and "once" narratives, restated as rejected
  alternatives.
- preview.js: the "Until <date>" sequence of earlier preview rules, now part
  of its Rejected list.
- version.js: the version picker's earlier <select> and diff press, restated
  as rejected alternatives, and a decision date.
- thread/message-edit.js: decision dates, #46, and the order of rejections.
- box-motion.js: decision dates and the incidents that prompted them.
- Dates or occasions of the user's decisions only: activity-words.js,
  anchor-controls.js, application.js (with its key percentages),
  change-provenance.js, change-walk.js, chrome.css (with an earlier table
  layout, now a rejected alternative), composing/selection.js (with #4124),
  composing/surface.js, composing/target-picker.js, errors.js, icon-paths.js,
  keyboard/close-requests.js, keyboard/touch-controls.js, margin-bars.js,
  annotation-overlay/margin-projection.js, page-controls.js, queue-walk.js,
  reading-place.js, root-headers.js, sample.js (with its measured rollouts),
  since-seen.js, state-application.js, tab-title.js, thread/destination.js,
  thread/focus.js, thread/folding.js (with its key counts), thread/model.js,
  thread/reply-continuity.js, thread/thread-card.js, thread/transcript.js,
  thread/workflow.js, undo.js, user-place.js (with one probe's pixel
  offsets), voice.js, words.js, arrivals.js, and
  annotation-overlay/annotation-chrome.css (with two "used to" passages).
- PR and issue numbers cited as provenance: annotation-overlay/comment-placement.js,
  annotation-overlay/floating.js, annotation-overlay/index.js (with the move
  out of the default package), annotation-overlay/margin-layout.js,
  bootstrap.js, composing/text-field.js, css-anchors.js (with a CI run
  count), leaf-element.js, registry.js and thread/replies.js.
- Earlier versions ("until", "used to", "once", "Replaced:"), restated as
  rejected alternatives or as present reasons: addressable-names.js,
  annotation-overlay/annotation-theme.css (with its case counts),
  composing/field-editor.js, composing/input.js, control-labels.js,
  drafts.js, geometry.js, keyboard/control-keys.js, keyboard/hints.js,
  layer-client.js, notifications.js, obligations/place.js,
  obligations/view.js, passages.js, projection/presentation.js,
  semantic-news.js, shadow-tree.js, thread/messages.js, thread/placement.js,
  widget-elements.js, widget-loader.js and widget-upgrade.js.
- docs/forks.html: name the eval `recovery-leaves-a-forks-answer` as the check
  that holds the recovery behavior; the woken turn "can" check the forks'
  answers rather than always does.
- dev/leaf_dev/browser.py, ios_safari.py, commands/bench.py: observations of
  Chromium, Firefox, WebKit and the simulator read as what can happen, bounded
  by the builds the text names, rather than as unconditional engine behavior.
- dev/leaf_dev/arrangement_eval.py: the author behavior `open_as_user` guards
  against reads as what can happen, without one run's viewport.
- dev/leaf_dev/review_scenario.py: states what the case's message does and why,
  rather than predicting the line fork's judgment.
- dev/leaf_dev/commands/bench.py: the floor calibration reads as arithmetic on
  the BASE page's load, without the machine it was measured on.
- .github/workflows/ci.yaml, .claude/skills/fan-out-backlog/SKILL.md: measured
  results read as what can happen rather than as laws; the user's one-choice
  landing, a past decision, is dropped.
The sweep had restated several bounded observations as unbounded present facts, and
left some measurements and incidents behind. This restates each observation as what
was seen (in replays, on recorded sessions, on real pages) or as what can happen,
drops figures that only recorded how a decision was reached, and keeps those a
constant is sized from.

- clerk.py: drop #5724 and #5401, cited as the incidents the findings address;
  restore that the rejected material finding missed the case it was for, and
  attribute its asking to that question rather than to the fork; bound the
  rewording, paragraph, status-line and effort results to the replays.
- forks.py, hooks.py, inference.py, thread_titles.py, handover_pass.py,
  provenance.py, reconnect.py, render_checks.py, render_gate/command.py: bound
  measured behaviour to what was observed, or say "can".
- inference.py (Pi), thread_titles.py (App Server), revision_artifact.py (bundle
  parse), completions.py: drop figures nothing is sized from.
- render-checks/layout.js: restore the measured block widths the four-times floor
  is set between; drop the incident widths and a past false positive.
- render-checks/{framing,reachability,runtime,widgets,words}.js,
  registry/contract.py, file_changes.py: drop measured sizes and past false
  positives, state them as what would happen, and keep the ctypes prototype as
  the rejected alternative it was.
- handover_pass.py: state the look's cost against `LOOK_S`.
An independent review compared the sweep's old and new text claim by claim.

- Observations the first pass restated as unbounded present facts now say
  "can", keep their engine or platform bound, or state the rejected
  alternative in the past: a table's measured fit, authors' measured
  compliance, a former script's re-measuring, a 200px ceiling, native field
  styling, aim sizes without a floor, BlazeDiff's equivalence, a timing share,
  a focus-reading `:has()`'s restyle cost, the Charter averages (Chromium on
  macOS), and the playground's column property, which now says why the parent
  counts.
- The sample's trimmed margins are stated as what the frame declaration
  prevents, not as present.
- "the same four strings" lost its antecedent; it now names numbers of one
  length.
- Benchmark and incident figures that only recorded how a decision was reached
  are gone from base.css, controls.css, reading.css, surfaces.css, tokens.css,
  floating-panel.css, webawesome.css, board.css, options.css,
  text-document.css, image-difference.js, lf-text-document.js,
  diff/widget-shadow.css and playground/defaults.css, each keeping its reason.
  Figures a constant or budget is sized from stay as the cost they cover: the
  landing's two spare pixels, the board floor's furniture, the panel field's
  character bounds, the overlay scrollbar's track.
A review of the sweep found measured results and observations restated as general
facts, and incidents, benchmarks and earlier implementations still told as stories.

- Observations of a browser or of the user's keys, which the sweep had turned into
  laws, now say what the code guards against ("can"), or state only the decision.
- Benchmark figures that only recorded how a decision was reached are gone, the
  cost they showed kept in words. The rollout bound in sample.js stays, since
  ROLLOUT_MS is sized from it.
- Incident narratives ("the user arrived at ✓ Accept with nothing on screen") now
  state the failure the code prevents, in the present or conditional.
- Fixes one broken clause in floating-panel.js and a claim the sweep invented about
  On Me's earlier headings.

The same class of benchmark figure, unflagged, also left anchor-resolution.js,
annotation-inventory.js, chrome.css, design.js, focus.js and passages.js. Paragraphs
whose lines the edits lengthened are rewrapped without rewording.
An independent review compared the sweep's old and new text claim by claim.
This follow-up fixes the findings that hold:

- A run result restated as a law ("leads agents to", "agents do", "Drafts
  tend to", "refuse every run") now says what can happen, or states the
  decision the guidance makes because of it. A measurement kept as prose
  ("Nearly every answered group", "common on real pages", "most recommending
  groups", "Options on real pages held no drawing") is gone.
- Comments that described how Leaf used to behave now state the present
  design: closeout-asks-take-their-route (no to-dos on the user),
  important-page-reviewed-at-checkpoints (review not limited to records),
  diagram-parts-complete (`parts` takes only "all"), workspace-header-is-one-row
  (the rubric judges crowding, not row count), options-stay-words-for-wording
  (no claim that every page draws).
- Rubric statements now match the rubric: playground-presets-are-whole-designs
  (a preset must set every value its appearance depends on),
  playground-tunes-what-ships (a CSS disclosure isn't a failure, and the card
  list isn't required), record-reply-before-its-stamp (sign-off is judged on
  its own), decision-record-after-its-work (`open-question` holds `keys` open).
- A narrated sequence of corrections or reactions is cut to the situation and
  the user's stated preference: audit-calls-are-proposals,
  proposals-show-what-they-change, the page-url cases, handoff-holds-a-todo.
- source-code-readable no longer names a Read-tool variant the case lacks;
  view-draws-a-case-it-shares drops a claim about forms it doesn't run.
- ui-review-detection/README.md restores that the provider's accessibility
  and nested-scroll evidence has an unmeasured effect on detection.
- playground-candidates-use-product-copy and review-shows-the-change: "These"
  regains an antecedent.
An independent review of the tests sweep found three kinds of fault.

Some rewrites turned a dated observation into an unbounded present fact: a
model's response to an instruction, Chromium restyle costs, deployment
latencies, a timing relationship, copy sizes. Each now says what can happen,
bounded by the page or engine the old text named. Three described failures
the code no longer has (a disabled service ending a wait, a drawer erroring
at startup, a progress run splitting a thread). The two wait passages are
deleted, since Watch._read keeps a disabled service watched, the drawer
example is deleted, and the thread case is a conditional. focus_rings.js now
names state.css as the reduced-motion guard that sets `transition: none`.

The rest left history in place: past failures told as events, "now"
contrasts, former fixture or theme values, CI and deployment incidents, and
the measurements of old bugs. A short description of the failure a test
catches stays, in the conditional, so it says what the test guards against.
Story is removed. A figure stays where an assertion or constant depends on
it, such as the 40,000 ms bound derived from the deployment's slowest
answer, a test's viewport or tap offset, and TAP_RUN_S's Playwright Chromium
bound.

The Firefox `:host` scope reason is restored in threads/test_layout.py as
what an engine can do with a scope Leaf doesn't write.

Every edit is to a docstring or a comment; no test changes behavior.
# Conflicts:
#	.github/workflows/ci.yaml
#	evals/claude-hook-delivery-needs-no-ack/case.yaml
#	evals/first-command-says-what-comes/case.yaml
#	evals/user-rewrite-answered/case.yaml
#	evals/user-rewrite-retitles-its-thread/case.yaml
#	src/leaf/validation/markup.py
#	tests/browser/controls/test_status_and_news.py
Two sentences lacked a clause after the history sweep's rewrite, and six
docstrings described a failure in words that contradicted the test's own
setup or assertions: the log that `k` leaves following, the version a
control's label can name, the stale draft words, the failure mark, the
board's text runs, and delivery's refusal, which does give a reason. Each
now states what the test guards against, consistent with what it asserts.
leaf-agent
leaf-agent previously approved these changes Nov 16, 2026
# Conflicts:
#	.claude/skills/developing-leaf/references/glossary.md
#	browser/base.css
#	browser/layouts.css
#	browser/runtime/activity-words.js
#	browser/runtime/application.js
#	browser/runtime/chrome.css
#	browser/runtime/floating-panel.js
#	browser/runtime/icon-paths.js
#	browser/runtime/notifications.js
#	browser/runtime/passages.js
#	browser/runtime/registry.js
#	browser/runtime/thread/transcript.js
#	browser/styles/components/controls.css
#	browser/styles/components/reading.css
#	browser/styles/components/response.css
#	browser/styles/components/surfaces.css
#	evals/decision-options-fit-the-window/case.yaml
#	evals/decision-record-after-its-work/case.yaml
#	evals/page-follows-the-work/case.yaml
#	evals/thread-choice-takes-a-press/case.yaml
#	packages/default/widgets/lf-options.js
#	packages/playground/defaults.css
#	src/leaf/clerk.py
#	src/leaf/render-checks/reachability.js
#	tests/browser/test_render_anchors.py
#	tests/browser/test_render_options.py
#	tests/browser/test_render_pages.py
#	tests/browser/threads/test_layout.py
#	tests/browser/threads/test_targets.py
#	tests/browser/widgets/test_obligations.py
#	tests/journeys/test_render_gate.py
#	tests/known_widget_findings.py
#	tests/model/test_interact_layer.py
#	tests/render_cases_layout.py
leaf-agent
leaf-agent previously approved these changes Nov 17, 2026
# Conflicts:
#	browser/runtime/floating-panel.js
#	evals/closeout-asks-take-their-route/case.yaml
#	src/leaf/clerk.py
leaf-agent
leaf-agent previously approved these changes Nov 17, 2026
# Conflicts:
#	browser/runtime/thread/placement.js
#	evals/line-fork/case.yaml
leaf-agent
leaf-agent previously approved these changes Nov 17, 2026
# Conflicts:
#	dev/leaf_dev/arrangement_eval.py
#	src/leaf/render_gate/command.py
#	tests/browser/test_render_gate.py
max-sixty added a commit that referenced this pull request Nov 17, 2026
#6210)

Stops agents writing history into the tree. Root `AGENTS.md` asked a
module header to "record" each product decision and the alternatives it
rejected, which agents read as a dated log (`src/leaf/clerk.py`'s
docstring is mostly that), and `evals/README.md` asked each case's
leading comment to record "where the case came from and what it
measured". Now a header states each decision with its reason, whether
the user made it, and any alternative a later change might reach for,
with why it fails; and text in the tree, comments, tests and eval cases
included, says what holds now, with dates, the request or incident,
measurements and earlier versions in the commit message. How a rule came
to be stays on the list of public surface traps in maintainer guidance,
which `running-tend`'s review threshold reads, so review flags history
written there.

Scored with a temporary A/B in scratch (about 40 Opus runs, about $60):
an eval case written from a session's failure carried its session id,
date and pass counts in 4 of 4 runs on the old text and 0 of 4 on the
new. Updating a header, neither text wrote dates on a clean header, and
deleting the decision sentence outright lost a rejected alternative in 4
of 4, so the sentence stays rewritten rather than cut. On a header
already holding dated history, the old text extended it in 1 of 4 runs
and the new in 0 of 4. So in headers the history already there is what
agents copy; #6212 removes it across the tree.

Asked for by Max on #6160's review. `pre-commit` passes on both files.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit f86432a into main Nov 17, 2026
5 checks passed
@max-sixty
max-sixty deleted the headers-without-history branch November 17, 2026 07:06
max-sixty added a commit that referenced this pull request Nov 17, 2026
…with its alternative

Root AGENTS.md (#6210, #6212) keeps a decision's date and the incident behind it in
the commit, and has a header state the decision, its reason, whether the user made
it and the alternative a later change might reach for.

- `framed_widgets` states that the author declares a question's region and name, as
  the user chose, and names the two alternatives, the section a heading opens and a
  widget of Leaf's own, with why each fails. Its history moves here: an `lf-ask`
  declared the question until 16 November 2026, when the user chose plain HTML, and
  of the section rule and the named group built that day chose the group.
- `arrivalRegion` says what landing on a change alone would do, and why a heading or
  the block before a change is no region.
- The full-height rule says why every other section keeps its flow, and the
  playground's rule why a minimum of zero fails inside a group that scrolls.
- Two test docstrings and a subtest comment say what would go wrong rather than what
  once did.
max-sixty added a commit that referenced this pull request Nov 17, 2026
…ol 50

Main took page protocol 49 for agent edits of their own message HTML
(#6246), so this branch's `held` pickup phase and the agent turn's `role`
take the protocol to 50: `$events.protocol`, the agent-turns record's
`since`, and the baseline rebuilt from main's at 49 with only the pickup
event and the agent-turns record changed, and the `forks` and
`fork-lane-start` records removed.

Conflicts kept both sides: `events.md` is main's table with the `held`
phase in the pickup row; `thread.py` keeps main's `import json` and drops
`Callable` with `Receipt.fence`; the `forks.py` header, the
`holding.authorize` docstring and `docs/forks.html` keep this branch's
line-turn hold in main's wording without dates or eval counts (#6212).
max-sixty added a commit that referenced this pull request Nov 17, 2026
…to commits

Main now asks text in the tree to say what holds rather than how it came
to be (#6210, #6212). This branch's own text still carried the date the
user chose the line-turn hold, the hold it replaced as "kept until then",
and the bound it shortened from a minute. The `forks.py` header now
states the decision with the alternative it rejects and why that
alternative fails (a second answer to which turn holds a thread, kept
partly outside the log); the figures that size `STARTING_GRACE` stay in
its comment without the date. No behaviour changes.
max-sixty pushed a commit that referenced this pull request Nov 18, 2026
…uidance (#6357)

Root `AGENTS.md` ("Where instructions live") sends the date of a
decision and the behavior before it to the commit message, and #6210 and
#6212 swept such history out of the tree. Five clauses survived or
arrived since: three "until … November 2026" asides in
`browser/AGENTS.md`, the same aside in
`browser/runtime/keyboard/AGENTS.md`, and the date the user chose
"Claude awaits" in the glossary (added by #6262). This keeps each rule,
its reason and its `check:` pointer, and drops only the dates and the
description of the old behavior; where the old behavior carried the
reason (a long press's release presses nothing so a finger can read
without acting), the reason is now stated directly.

No code or test changes. These paths are agent instructions under
`browser/` and `.claude/`, so landing needs the control-plane owner's
approval.

Co-authored-by: leaf-agent <[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