Skip to content

docs: align README, CLAUDE.md, and AGENTS.md with the code#24

Merged
hefgi merged 1 commit into
mainfrom
claude/magical-einstein-7m4g40-docs
Jun 11, 2026
Merged

docs: align README, CLAUDE.md, and AGENTS.md with the code#24
hefgi merged 1 commit into
mainfrom
claude/magical-einstein-7m4g40-docs

Conversation

@hefgi

@hefgi hefgi commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Fixes #15

Doc-only PR aligning the three prose surfaces with the code.

README.md

  • The main config example taught the deprecated on_up/on_down names. Worse, on_up aliases to pre_up, which runs before any env exists — so the example on_up = "npx prisma migrate deploy" could never see DATABASE_URL. The example now uses post_up/pre_down, documents the five-hook order (pre_up → pre_spawn → post_up → pre_down → post_down), and notes the deprecated aliases explicitly.

CLAUDE.md

  • Project structure now lists the five modules that existed but weren't documented: process.rs, sync.rs, validate.rs, whose_pid.rs, log.rs
  • hooks.rs description updated from "on_up/on_down" to the current five hooks
  • Commands list gains status, sync, whose-pid, flush (all shipped, none listed)

AGENTS.md

No code changes; cargo test unaffected (370 + 18 green).

https://claude.ai/code/session_017UcuvzMKHVfyBCcq8ipAko


Generated by Claude Code

README's main config example taught the deprecated on_up/on_down hook
names — and on_up maps to pre_up, which runs before any env exists, so
the 'npx prisma migrate deploy' example could never see DATABASE_URL.
The example now uses post_up/pre_down and documents the five-hook
lifecycle; the deprecated aliases are mentioned as such.

CLAUDE.md's project structure was missing five modules (process, sync,
validate, log, whose_pid), described hooks.rs by its pre-rename hook
names, and the command list omitted status/sync/whose-pid/flush.

AGENTS.md listed a postgres.rs that does not exist, declared a 2500-line
LoC budget against an ~11.8k-line tree (dropped — a violated budget only
misleads the agents this file targets), and stated the state-lock
mechanism in terms an upcoming change (#1) invalidates; the invariant is
now phrased by intent (mutations only under StateGuard).

Fixes #15

https://claude.ai/code/session_017UcuvzMKHVfyBCcq8ipAko
@hefgi hefgi merged commit c8eff7a into main Jun 11, 2026
2 checks 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

2 participants