Skip to content

Commit 97b8d67

Browse files
committed
chore: update project files
1 parent 3c42e06 commit 97b8d67

7 files changed

Lines changed: 667 additions & 80 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Release Pilot Skill
2+
3+
## Preconditions (abort if any fail)
4+
- `gh run list --branch develop --limit 1 --json conclusion` = `SUCCESS`.
5+
- `gh pr list --state open --base main` returns 0 open PRs.
6+
- `CHANGELOG.md` has the new version section already drafted.
7+
- `specsmith audit && specsmith validate --strict` clean on develop.
8+
9+
## Sequence
10+
1. Bump version: `specsmith release <version>`.
11+
2. `git add -A && git commit -m 'release: v<version>'`.
12+
3. Push develop: `git push origin develop`.
13+
4. Wait for CI: `gh run watch`.
14+
5. Merge to main: `git checkout main && git merge --ff-only develop`.
15+
6. Tag: `git tag -a v<version> -m 'v<version>'`.
16+
7. Push: `git push origin main --tags`.
17+
8. Release workflow handles PyPI upload + GitHub Release automatically.
18+
19+
## Rollback
20+
If step 7 fails: `git tag -d v<version> && git reset --hard HEAD~1`.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Specsmith Session Governance Skill
2+
3+
This skill describes the **mandatory session protocol** for any agent working
4+
in a specsmith-governed project. It prevents silent drift and keeps governance
5+
state alive across context summarization without modifying the agent runtime.
6+
7+
## Why agents drift
8+
When a conversation gets long, any chat application (Warp, Cursor, Claude,
9+
GPT) summarizes the history. That summary discards: the current work item ID,
10+
the last preflight decision, the project phase, and any uncommitted changes.
11+
The agent then operates on stale or invented governance state.
12+
13+
## The fix: three rules
14+
15+
### Rule 1 — Initialization (every session start)
16+
```bash
17+
specsmith kill-session 2>/dev/null || true # kill orphaned processes
18+
specsmith audit --project-dir . # verify governance health
19+
specsmith sync --project-dir . # confirm machine state
20+
specsmith checkpoint --project-dir . # emit and display the anchor
21+
```
22+
Output the checkpoint verbatim as your first response. This establishes the
23+
governance baseline that all subsequent work traces back to.
24+
25+
### Rule 2 — Preflight gate (before EVERY proposed code change)
26+
```bash
27+
specsmith preflight "<describe the change you intend to make>" --json
28+
```
29+
- If `decision == "accepted"`: proceed with the work item ID in scope.
30+
- If `decision == "needs_clarification"`: surface the instruction to the user
31+
before making any changes.
32+
- Never make a code change without an accepted preflight.
33+
34+
### Rule 3 — Heartbeat (every 8-10 turns, or when context > 60%)
35+
```bash
36+
specsmith checkpoint --project-dir .
37+
```
38+
Output the GOVERNANCE ANCHOR block verbatim in your response. Tag it clearly:
39+
40+
```
41+
⎠ GOVERNANCE ANCHOR (output of `specsmith checkpoint`):
42+
╔═════...
43+
║ GOVERNANCE ANCHOR 2026-05-19T22:43:04Z
44+
║ Project : specsmith
45+
...
46+
╚═════...
47+
```
48+
49+
**When producing any context summary, ALWAYS include the most recent
50+
GOVERNANCE ANCHOR verbatim at the top of the summary.** The anchor is the
51+
minimum viable governance state that must survive summarization.
52+
53+
## End of session
54+
```bash
55+
specsmith save --project-dir . # ESDB backup + commit + push
56+
specsmith kill-session # clean up processes
57+
```
58+
Never end a session with uncommitted governance changes.
59+
60+
## Detecting drift (self-check)
61+
If you notice you cannot answer any of these from memory, you have drifted
62+
and MUST re-anchor immediately:
63+
- What is the current AEE phase?
64+
- What work item is active?
65+
- What was the last preflight decision?
66+
- Is the audit currently healthy?
67+
68+
Run `specsmith checkpoint` and copy the output into your response.
69+
70+
## Quick reference
71+
| When | Command |
72+
|---|---|
73+
| Session start | `specsmith audit && specsmith sync && specsmith checkpoint` |
74+
| Before any code change | `specsmith preflight "<intent>" --json` |
75+
| Every 8-10 turns | `specsmith checkpoint` (output verbatim) |
76+
| Context summary | Include checkpoint output at top |
77+
| Session end | `specsmith save && specsmith kill-session` |
78+
| Drift detected | `specsmith checkpoint` immediately |

.specsmith/requirements.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,5 +3192,13 @@
31923192
"test_ids": [
31933193
"TEST-362"
31943194
]
3195+
},
3196+
{
3197+
"id": "REQ-362",
3198+
"title": "Warp terminal integration: repository workflow YAML files for common governance commands",
3199+
"description": "The specsmith repository ships .warp/workflows/ YAML files so developers using Warp terminal can invoke governance commands (audit, checkpoint, preflight, save, session-start) directly from the Warp command palette without context-switching.",
3200+
"source": "docs/requirements/",
3201+
"status": "planned",
3202+
"test_ids": []
31953203
}
31963204
]

docs/LEDGER.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,11 @@
314314
- **Type**: migration
315315
- **Status**: complete
316316
- **Chain hash**: `cf168f65d973f62b...`
317+
318+
## 2026-06-01T16:40 — KILL SWITCH ACTIVATED: emergency stop
319+
- **Author**: specsmith-operator
320+
- **Type**: kill-switch
321+
- **REQs affected**: REG-005
322+
- **Status**: complete
323+
- **Epistemic status**: high
324+
- **Chain hash**: `07bb2a0d68f4025a...`

docs/REQUIREMENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,3 +2554,11 @@
25542554
- **Source:** GitHub issue
25552555
- **Test_Ids:** ['TEST-362']
25562556

2557+
## REQ-362. Warp terminal integration: repository workflow YAML files for common governance commands
2558+
- **ID:** REQ-362
2559+
- **Title:** Warp terminal integration: repository workflow YAML files for common governance commands
2560+
- **Description:** The specsmith repository ships .warp/workflows/ YAML files so developers using Warp terminal can invoke governance commands (audit, checkpoint, preflight, save, session-start) directly from the Warp command palette without context-switching.
2561+
- **Status:** planned
2562+
- **Source:** docs/requirements/
2563+
- **Test_Ids:** []
2564+

docs/requirements/agent.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,17 @@
514514
status: implemented
515515
- id: REQ-128
516516
title: Cross-Repo Security Sweep
517-
description: 'The specsmith and kairos repos both run `pip-audit` / `cargo audit`
517+
description: The specsmith and kairos repos both run `pip-audit` / `cargo audit`
518518
in CI and fail on high-or-critical findings. Dependabot manifests in both repos
519-
are reviewed and any open alert at 1.0 release time is documented.'
519+
are reviewed and any open alert at 1.0 release time is documented.
520520
source: .github/workflows/ci.yml, BitConcepts/kairos/.github/workflows/ci.yml
521521
status: implemented
522522
- id: REQ-129
523523
title: 1.0 API Stability Commitment
524524
description: '`docs/site/api-stability.md` enumerates the public surfaces frozen
525525
at 1.0 (CLI subcommands and exit codes, JSON payload schemas for preflight / verify
526-
/ chat events, broker module API, ledger event schemas, Kairos CLI API surface). The PyPI classifier is bumped to `Development Status :: 5 - Production/Stable`
526+
/ chat events, broker module API, ledger event schemas, Kairos CLI API surface).
527+
The PyPI classifier is bumped to `Development Status :: 5 - Production/Stable`
527528
and `pyproject.toml` to `1.0.0`.'
528529
source: docs/site/api-stability.md, pyproject.toml
529530
status: implemented

0 commit comments

Comments
 (0)