deliberate-engineering-state
/deliberate-engineering-state
Use when work spans phases or sessions and process state must survive: the current phase and phase sequence, the chosen ceremony band and lenses, open pendings, and the decisions made and why. Reads and rehydrates a per-work-unit working-note at the start of a session or phase, and rewrites it at Rule 6 checkpoints with a changed-since-read safety check. Writes that note into the repository at .deliberate/state/ once it confirms the path is VCS-ignored, and falls back to the current host's Deliberate Engineering data root otherwise. Delegates to a tracker or superpowers when one is present; fa
- Author
- lucasfugisawa ↗
- Repository
- deliberate-engineering ↗
- Licence
- MIT
- Last repository change
- 14.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 14.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when work spans phases or sessions and process state must survive: the current phase and phase sequence, the chosen ceremony band and lenses, open pendings, and the decisions made and why. Reads and rehydrates a per-work-unit working-note at the start of a session or phase, and rewrites it at Rule 6 checkpoints with a changed-since-read safety check. Writes that note into the repository at .deliberate/state/ once it confirms the path is VCS-ignored, and falls back to the current host's Deliberate Engineering data root otherwise. Delegates to a tracker or superpowers when one is present; fa
Original author description
Use when work spans phases or sessions and process state must survive: the current phase and phase sequence, the chosen ceremony band and lenses, open pendings, and the decisions made and why. Reads and rehydrates a per-work-unit working-note at the start of a session or phase, and rewrites it at Rule 6 checkpoints with a changed-since-read safety check. Writes that note into the repository at .deliberate/state/ once it confirms the path is VCS-ignored, and falls back to the current host's Deliberate Engineering data root otherwise. Delegates to a tracker or superpowers when one is present; fa
How it works
- vs Rule 6 and the router live-note
- vs the tracker / superpowers (hybrid with fallback)
- When to use
- The working-note: location
- The working-note: naming and granularity
- The schema: two blocks
- Rehydrate (the read operation)
- Checkpoint (the write operation)
- The declaration protocol
- Output
SKILL.md preview
--- name: deliberate-engineering-state description: "Use when work spans phases or sessions and process state must survive: the current phase and phase sequence, the chosen ceremony band and lenses, open pendings, and the decisions made and why. Reads and rehydrates a per-work-unit working-note at the start of a session or phase, and rewrites it at Rule 6 checkpoints with a changed-since-read safety check. Writes that note into the repository at .deliberate/state/ once it confirms the path is VCS-ignored, and falls back to the current host's Deliberate Engineering data root otherwise. Delegates to a tracker or superpowers when one is present; falls back to its own note otherwise. Consulted by the router and Rule 6, not invoked directly; stays silent when there is no state to record." --- # Deliberate Engineering State Consult `deliberate-engineering-host-context` before resolving the fallback. Project-local state remains host-independent; the returned `data_root` supplies only the fallback `<data_root>/state/`. The deliberate layer of *not losing your place*. Where the selectors and the rules skill own the method (the selected phase sequence, the ceremony band, the lenses to apply), this skill owns the working-note that carries that state across sessions and phases. It mirrors how `deliberate-engineering-overrides` owns the override file: one skill encapsulates location, naming, schema, and concurrency for the note, so the router and Rule 6 can bind the write to their checkpoint events without inventing a file format inline. The note is agent-driven: it reads like a shared whiteboard, not a machine-parseable artifact, and it is read and rewritten by the agent at the router's start and Rule 6's checkpoints. ## vs Rule 6 and the router live-note Rule 6 sets the checkpoint posture: compact judiciously, and checkpoint before you do. The router writes the note as a step of each phase transition when the work spans phases or sessions. But neither defines where to write the note or what schema it follows: they own when the write fires, not the mechanism. This skill IS that mechanism. It does not replace Rule 6's posture; it gives it a concrete home. The founding "decide and delegate, don't invent a file format" principle is preserved: the router and Rule 6 still don't invent format inline. They delegate here, and THIS skill is the one place the format and location logic live. ## vs the tracker / superpowers (hybrid with fallback) During a conduction, `deliberate-engineering-conduct`'s conductor doc is the live cockpit for the cluster: the station table, the current gate and the conduction's own pendings live there, and you do not open a second note beside it for them. The work unit's phase state (current phase, phase sequence, ceremony band, chosen lenses) is not dissolved by a baton: it stays wherever it already lived, this note or the tracker, and is rehydrated from there when the baton returns. When a tracker or a `superpowers` plan is present, delegate to it and record state there: the tracker or superpowers task already owns the work-unit's durable home, so use it. Fall back to the owned working-note only when there is no durable tracker home. Always declare which path was taken in the visible output: if state was delegated to a tracker, say so; if the fallback note was used, say so. The hybrid-with-fallback stance mirrors the override layer's awareness protocol: the deviation from the default is never silent. ## When to use This skill is consulted, not invoked directly. It is read at two lifecycle moments: (a) at session or phase start, to rehydrate the work-unit's current state (the current phase, the phase sequence, the chosen ceremony band and lenses, and open pendings), and (b) at Rule 6 checkpoints, to rewrite the live state and append new decisions. When work is a single-shot task with no multi-phase or multi-session state (a one-commit trivial fix), this skill stays silent; there is nothing to record. It is consulted at definite checkpoint events, not when the model happens to recall it: a phase transition, a dispatch or a disposition, a pre-compaction checkpoint, and session end each carry a state write (to this note, or to the tracker it delegates to) as a step of that event (Rule 6 and the router bind the write to those events). This skill still does not decide for itself whether to run; the change is that the events that consult it are named and definite, not an optional nicety. ## The working-note: location The working-note lives in a project-local directory that is ensured-ignored by the VCS, with a fallback to a global directory when no project-local home is available. The resolution order: 1. **Project-local preferred**: `.deliberate/state/` in the repository root. Before writing here, ensure the `.deliberate/` directory is ignored by the VCS in use. The concretely-implemented case is git: run `git check-ignore .deliberate/probe` to confirm it is ignored (probe a child path, not `.deliberate` itself: `git check-ignore` on a not-yet-created directory exits 1 even when `.deliberate/` is ignored, so probing the bare directory would make the first write of a work unit wrongly fall back to global). Exit code 0 means the path IS ignored and safe to write; exit code 1 means it is NOT ignored: add `.deliberate/` to `.gitignore` first and declare the addition in the visible output. That addition is a tracked-file change unrelated to the work, so keep it out of whatever you hand over: stage narrowly, per Rule 1, rather than letting it ride along into the prepared change. The generic principle is "ignored by the VCS in use": git is the implemented case; other VCSes would follow the same principle but are not concretely implemented in this skill. If the working directory is not under version control, skip to the fallback. 2. **Fallback when project-local is unavailable**: `<data_root>/state/`, resolved for the current host. Use this when there is no repository root or the project-local ignore setup failed. Always declare which location was chosen in the visible output when a note is read or written. If the fallback was used, state why: "no repository root" or "VCS ignore setup could not be verified." ## The working-note: naming and granularity One note per work-unit, named by a world-derived identifier in preference order: the current branch name, the PR number, or the ticket key, falling back to an assigned name when the work-unit has none of the three (below). The filename is `<identifier>.md`, where path-unsafe characters in the identifier (e.g., `/` in a branch name like `feat/user-export`) are sanitized (e.g., to `-`) to produce a valid filename like `feat-user-export.md`. Other examples: `pr-1234.md`, `PROJ-42.md`. By construction, parallel sessions working on different work-units never collide: each has its own note. One exception, and it is the branch case: when the branch is a long-lived shared one (`main`, a release branch, a standing integration branch), the branch name identifies the branch and not the work unit, so it is not a usable identifier. Fall through to the PR number or the ticket key, and to an assigned name when neither exists, under the same rule that two different work-units must never be given the same name. Say which identifier you used and why the branch was skipped. The rare collision case is two sessions working on the same work-unit simultaneously; the write gate (below) handles that with best-effort detect-and-reconcile. The naming preference order reflects the durability of the identifier: a branch name is stable across the work-unit's life and is local, so it is preferred. A PR number is stable once the PR is created. A ticket key is stable when the ticket exists but may predate the local branch. Choose the first available identifier in that order. When the work-unit has none of the three (work that happens outside any repository, such as a voice-profile build), fall back to an **assigned name**: a short stable slug for the work itself, normally the name of the skill or command driving it (`voice-build.md`), sanitized the same way. Fix it at the first write, reuse it verbatim in later sessions, and declare it in the visible output, since an assigned name is the only handle a later session has for finding the note. It is the weakest identifier of the four because nothing in the world enforces it: two different work-units must never be given the same name. ## The schema: two blocks The working-note has two blocks: **Live state** (rewritten on each checkpoint) and **Decision log** (append-only). The live state is the current snapshot; the decision log is the history of what was decided and why. **Live state** (rewritten): - Current phase (e.g., "verification") - Phase sequence (e.g., "planning → contribution → verification") - Ceremony band (e.g., "standard") - Chosen lenses (e.g., "planning #8, #12, #19; verification #3, #7") - Open pendings (e.g., "✗ PR description needs ticket link; ✗ DB migration test pending prod schema") **Decision log** (append-only): - Each entry: timestamp, the decision made, and the why (the constraint, risk, or context that drove it). Format: `- YYYY-MM-DD HH:MM: <decision>. Why: <reason>.` - Note: The append-only log's safety is subject to the same residual race as the live state: two concurrent sessions writing to the same work-unit can still lose a log entry despite the changed-since-read check. Example: ```markdown # Work-unit: feat-user-export ## Live state - **Phase**: verification - **Sequence**: planning → review → verification - **Ceremony band**: standard - **Chosen lenses**: planning #8, #12, #19; review #25, #35; verification #1, #3 - **Pendings**: - ✗ PR description needs ticket link - ✗ DB migration test pending prod schema fetch ## Decision log - 2026-06-28 14:32: Skipped verify #14 (kill-switch verification). Why: The export is read-only, so there is no behavior to switch off and no way back to verify. - 2026-06-28 16:45: Chose verify #4 (validate against the real schema) over a broad load pass. Why: The endpoint is low-traffic; schema-change risk outweighs volume risk. - 2026-06-29 09:15: Added verify #1 (query the live canonical source: a read-only prod query). Why: The prod DB schema differs from staging (a legacy column is still present); a read-only query confirms compatibility before the change lands. ``` ## Rehydrate (the read operation) At session or phase start, read the work-unit's note (or the delegated tracker task). Return the current phase, the phase sequence, the ceremony band, the chosen lenses, and the open pendings. If no note exists for this work-unit at the resolved location, check for orphaned notes before starting fresh: (a) if the work-unit identifier changed (e.g., branch renamed, or work moved from ticket-named to branch-named), look for a note under a prior or alternate identifier (other names in the branch, PR, ticket, or assigned-name set) and adopt it if found; (b) if the resolved location is project-local (.deliberate/state/) but has no note, check the current host fallback location (`<data_root>/state/`) for a note written by an earlier session before a repository was initialized, and adopt it if found. Do not search another host's data root. If no note exists after checking alternates and fallback, return nothing: the work is starting from scratch. When resuming work, re-read the note before reasoning about what to do next, rather than guessing from memory or prior context. The rehydrated state is the source of truth for where the work stands. ## Checkpoint (the write operation) At Rule 6 checkpoints, rewrite the live state block and append new decisions to the decision log. Before writing, apply the changed-since-read check: compare the file's current hash or mtime to the value when it was last read. If the file changed since the last read, re-read it, reconcile the changes (merge pendings, preserve newer decisions), and declare the reconciliation in the visible output. This check minimizes the blind-overwrite window rather than eliminating it: a residual time-of-check-to-time-of-use race remains between the re-read/compare and the subsequent write, so two sessions writing to the same work-unit simultaneously can still collide and lose a decision-log entry or a pending. After the check passes (or reconciliation completes), write the updated live state and append new decision-log entries with timestamps. The changed-since-read check is detect-and-reconcile, not lock-based. There is no daemon and no lock file. If the check fails, pause, re-read, reconcile, announce, and proceed. The per-work-unit naming provides by-construction isolation for different work-units (different branches, PRs, or tickets: each has its own note, so parallel sessions on different work-units genuinely never collide). The rare case (two sessions on the same work-unit) is handled by the write gate's best-effort detect-and-reconcile check, which narrows the collision window but does not close it. The goal is to catch most concurrent writes and avoid losing work in the common case; the residual race is accepted as rare enough that perfect serialization (via locking or a daemon) is not warranted. ## The declaration protocol Always declare in the visible output when behavior deviated from the default: (a) the fallback location was used rather than the project-local directory, and why; (b) state was delegated to a tracker or superpowers task rather than written to the owned note; (c) a concurrent change was detected and reconciled at checkpoint. Mirror the override layer's no-silent stance: when the skill's behavior deviates, whether by using a fallback location or by reconciling a collision, that deviation is declared, not hidden. Silence is not an option. ## Output On **rehydrate**, report the recovered state: the current phase, the phase sequence, the ceremony band, the chosen lenses, and the open pendings. If no note existed, say so: "no prior state found; starting fresh." On **checkpoint**, report what was written (the updated live state fields) and what was appended (the new decision-log entries), and declare any deviation (fallback location used, delegated to tracker, collision reconciled). When there is no multi-phase or multi-session state to record (a single-shot task), stay silent. This skill speaks only when there is state to persist or recover.
Versions
The database has no other skills named deliberate-engineering-state.
Database snapshot: 13.11.2026 · package version b0be497dae0b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 85deliberate-engineering-host-context
Use when a Deliberate Engineering workflow needs host-local personal data, state, voice files, overrides, or the current session transcript in Claude Code or Codex. - 100deliberate-engineering-overrides
Use at the start of an engineering session to pick up the operator's standing-rule overrides, and again whenever any deliberate-engineering lens is about to be applied. Reads the current host's Deliberate Engineering override file, honors disable/modify/add overrides on lenses,… - 90ship
Ship the current phase — commit changes and update state.json. Spawns Committer to create a semantic commit, then marks the in-progress phase as done in state.json. Use after Builder and Reviewer complete. User-triggered only. Triggers on: '/ship', 'ship it', 'commit and ship', 'ship the phase'. - 100implement-phase
Execute a single phase from an implementation plan with all quality gates. This skill is the unit of work for implement-plan, handling implementation, verification, code review, ADR compliance, and plan synchronization for ONE phase. Triggers when implement-plan delegates a…