Skip to content

ledger: stop naming Pb Notes (#140) - #141

Merged
shovon merged 3 commits into
mainfrom
worktree-issue-140
Oct 29, 2026
Merged

shovon merged 3 commits into
mainfrom
worktree-issue-140

Conversation

@shovon

@shovon shovon commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #140.

@pbnotes/ledger no longer names the app that uses it, except for the two places below that are kept on purpose.

Changes

  • AGENTS.md (option 1 from the issue). The text now calls the folder an event ledger that several writers share, and links to the format spec (packages/ledger/multi-writer.md in this repo) instead of naming the app. It names no consumer, so every consumer of this format version writes the same bytes. The exact-bytes test is updated.
  • Lock folder: kept as pbnotes-locks-${uid}. A comment in lock() now explains why the name is frozen: the lock is all that keeps two processes out of one writer directory. If the name changed, an old build and a new build running at once would take different locks, and both could append to the same directory.
  • multi-writer.md. The spec says "the consumer" where it named @pbnotes/files and pagesFold, and its AGENTS.md description matches the new text.

What the done-when grep still finds

grep -niE 'pb ?notes|pagesFold|@pbnotes/(files|pages)' packages/ledger still finds two things besides the package name. Both are intended:

  • github.com/shovon/pbnotes/... in the AGENTS.md link. The spec lives in this repo, so its URL has the repo's name in it.
  • pbnotes-locks- in ledger.ts and open-writer.test.ts. This is the frozen lock name.

Not covered

multi-writer.md still describes the app's focus and refresh behaviour under "Pacing" ("The app keeps the ledger of every project opened this session…"). The grep doesn't catch it and the issue doesn't list it, so I left it alone.

Testing

  • npm test: all workspaces pass (ledger: 41/41).
  • npm run typecheck: clean.

🤖 Generated with Claude Code

shovon and others added 3 commits October 29, 2026 09:18
AGENTS.md now describes a shared event ledger and links to the format
spec, so every consumer of this format writes the same bytes. The spec
says "the consumer" where it named pagesFold and @pbnotes/files.

The lock folder keeps its pbnotes-locks name, with a comment on why:
renaming it would let an old and a new build take different locks and
append to the same writer directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The spec link carried the repo's name. The text now says what the
folder is on its own: one folder per writer, LEDGER holds the version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pointing to the repo is fine; only the app's name in the text had to go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shovon
shovon merged commit 34ee6fe into main Oct 29, 2026
1 check passed
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.

ledger: remove what still names Pb Notes

1 participant