docs(website): settle boot/shutdown dispatch and what a boot writes down #130
Reference in New Issue
Block a user
No description provided.
Delete Branch "docs/module-lifecycle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Docs half of phase 2 PR 5 of the module system. Code: website#132.
MODULE_API.md§2.5 Lifecycle gains what the dispatch actually settled:
onBoot;disabledwins over any outcome — guarded, not booted, failure never re-recorded, because overwriting a decision with an outcome silently switches the module back on next boot;onBootstill reachesstarted(having nothing to warm up is not the same as never having started, and the row has to agree with the guard);onBootthrew gets noonShutdown— it is part-way through a warm-up it never finished;onBoothas no budget whileonShutdownhas five seconds: shutdown races the process being killed and boot does not, and a slowonBootdelaying the listener is the promise, not the bug.§4.4 gains the
failure_stagetable: every failure recorded against the §4.3 step that produced it, which steps label themselves and which are inferred, and that every non-failing transition clears both stage and reason.MODULE_SYSTEM.md§2.4 records the new rule for a row whose directory is gone —
startup_failedrather than left claimingenabled, since the boot reset has just moved it there and an uninstall would have leftdisabled.§2.7 gets the PR 5 progress entry and its four decisions, and the progress line moves to PRs 1–5.
BACKEND_DESIGN.mdThe
installed_modulessection gains the write path, now that one exists: where it happens on the boot path, what it writes, and that adisabledrow is never overwritten.AI-assisted (Claude Code).
🤖 Generated with Claude Code
https://claude.ai/code/session_018ocYxQWk3EhZe5gWRJXFU8