Skip to content

docs(site): correct fourteen claims on the session page and the pages that repeat them - #305

Merged
laithalsaadoon merged 1 commit into
mainfrom
docs/write-through-a-session
Oct 20, 2026
Merged

laithalsaadoon merged 1 commit into
mainfrom
docs/write-through-a-session

Conversation

@laithalsaadoon

Copy link
Copy Markdown
Contributor

Corrects learn/operations/write-through-a-session.md against the 0.16.0 source, and the same sentences where six other pages repeat them. The page was written inside the v2 PR (#287) and had no source-backed review.

What was wrong, each reproduced on a fixture store:

  1. A session lands on refs/heads/main whatever branch the checkout has open. On a store on master it creates a new main the checkout never sees, and head search and a head server (which follow HEAD) miss the records. The page now says to pass --ref <branch>, and the "see the new records at once" sentence is scoped to that case.
  2. Two subagents sharing one MEMHTML_SESSION can lose a put. The session lock does not wait, so when two puts arrive at the same instant one fails with ERR_STORAGE and appends nothing (6 of 6 tries).
  3. "Has written nothing" after checkout.locked is false for doctor --fix and task status <path> done. Both write the working tree before they take the lock, and a rerun finds nothing left to do. Fixed here and on the glossary, internals/concurrency-and-conflicts.md and share-one-store.md.
  4. Only a session commit and curate merge write a snapshot. memhtml write, apply and a hand git commit write none. Fixed here, on the glossary, on internals/sessions-and-the-commit-path.md, and in the recover-from-a-lost-index.md table, which said the first head load writes one (it does not).
  5. Through a head server, session commit --drop-refused rebases and commits again on its own, up to three times, so "a commit never retries on its own" now applies to a commit without that flag.
  6. session exec lists a reserved-path file under rejected and still appends the rest of the harvest. The page had said the whole call is refused.
  7. A move only requires that no live record still carries the old edge. Cutting the edge passes without adding a new one.
  8. An empty log answers refused with no violations.
  9. A behind session whose log has a violation answers refused before rebase-needed.
  10. Nothing enforces a fresh run id. A reused id resumes its old log on its old base.
  11. neighbors lists up to three records, only ones that match.
  12. The ERR_SESSION_BOUND suggestion is a template with placeholders, not a runnable line. Fixed here and on set-the-store-policy.md.
  13. memhtml correct is closed in a run-bound session, where a claim-edit refusal reaches the agent, so the page no longer offers it there.
  14. An unlanded log that session prune lists needs session rebase before its commit; a local --drop-refused commit alone answers rebase-needed.

Eight paragraphs are split or made specific. Every payload block's keys match what the CLI prints.

Verified:

  • mise run check: 75/75.
  • The review checked 25 claim groups on fixtures (main and master stores, a head server, a held checkout lock, concurrent puts, a simulated killed commit), and a follow-up re-read the whole edited page and the pages that repeat it.
  • Every edited table row keeps its width, so no table re-pads.

… that repeat them

A source-backed review with fixtures of learn/operations/write-through-a-session.md: a session lands on refs/heads/main whatever branch the checkout has open; two concurrent first puts can lose one; doctor --fix and task status done write before they take the checkout lock; only session commits and curate merge write a snapshot; a commit through a head server with --drop-refused rebases on its own; exec lists a reserved-path file under rejected and appends the rest; a move only has to drop the old edge; an empty log is refused; a behind session can answer refused before rebase-needed; nothing enforces a fresh run id; neighbors is a limit of three; the ERR_SESSION_BOUND suggestion is a template; correct is closed in a run-bound session; and an unlanded log needs a rebase before its commit. Eight paragraphs are split or simplified. The same snapshot, lock, retry and suggestion sentences are corrected on the glossary, two internals pages and three operations pages.
Copilot AI balanced review requested due to automatic review settings October 20, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@laithalsaadoon laithalsaadoon changed the title docs(site): correct thirteen claims on the session page and the pages that repeat them docs(site): correct fourteen claims on the session page and the pages that repeat them Oct 20, 2026
@laithalsaadoon

Copy link
Copy Markdown
Contributor Author

Merge basis: documentation only (seven docs-site pages). The local gate is green (75/75), CI is 11/11 green on f285522, our own fixture-backed review and its follow-up over the whole edited page are applied, and Copilot's review body is its monthly-quota message.

@laithalsaadoon
laithalsaadoon merged commit 8df19f6 into main Oct 20, 2026
11 checks passed
@laithalsaadoon
laithalsaadoon deleted the docs/write-through-a-session branch October 20, 2026 08:09
laithalsaadoon added a commit that referenced this pull request Oct 20, 2026
Brings the branch current with main before its merge, which Laith approved
on 2026-10-20 (bench card 62). Main gained #299, #300, #301, #304 and #305
since the branch was cut; the only shared file is pnpm-lock.yaml, which
merges clean.
laithalsaadoon added a commit that referenced this pull request Oct 20, 2026
Brings the branch current with main before the merge Laith approved on
2026-10-20 (bench card 63). Main gained #299, #300, #301, #304, #305 and
#297 (Effect 4.0.5) since the last merge; the branch's two files,
packages/store/src/git.ts and packages/store/tests/git.test.ts, are
untouched on main in that range.
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