diff --git a/docs/architecture/08-crosscutting-concepts.md b/docs/architecture/08-crosscutting-concepts.md index 968e561b..6c7ee35a 100644 --- a/docs/architecture/08-crosscutting-concepts.md +++ b/docs/architecture/08-crosscutting-concepts.md @@ -216,45 +216,45 @@ task starts. The root file's count includes its fact slots. | Root | Every turn, words | Skills | Skill words | |------|-------------------|--------|-------------| -| `backend-api` | 5818 | 11 | 2714 | -| `backend-auth` | 7872 | 10 | 2094 | -| `backend-caching` | 5477 | 10 | 2094 | -| `backend-concurrency` | 5324 | 10 | 2094 | -| `backend-database` | 5284 | 11 | 2173 | -| `backend-edge` | 8205 | 10 | 2094 | -| `backend-errors` | 6723 | 10 | 2094 | -| `backend-features` | 5335 | 10 | 2094 | -| `backend-grpc` | 8984 | 11 | 2250 | -| `backend-http` | 5751 | 10 | 2094 | -| `backend-jobs` | 5257 | 10 | 2094 | -| `backend-messaging` | 5543 | 11 | 2188 | -| `backend-microservices` | 6940 | 11 | 2853 | -| `backend-monitoring` | 5616 | 10 | 2094 | -| `backend-observability` | 5363 | 10 | 2094 | -| `backend-webhooks` | 8725 | 11 | 2188 | -| `base-agents` | 4885 | 10 | 3290 | -| `base-cicd` | 5173 | 10 | 2214 | -| `base-config` | 5347 | 10 | 2124 | -| `base-containers` | 5226 | 10 | 2194 | -| `base-data-governance` | 5782 | 10 | 2094 | -| `base-data-migration` | 5455 | 11 | 2466 | -| `base-data-modeling` | 5294 | 10 | 2094 | -| `base-data-quality` | 6049 | 11 | 2143 | -| `base-deployment` | 5163 | 10 | 2153 | -| `base-devsecops` | 5471 | 10 | 2094 | -| `base-docs` | 4869 | 10 | 2094 | -| `base-embedded-checks` | 6123 | 11 | 4377 | -| `base-git` | 4869 | 10 | 2094 | -| `base-measurement` | 5596 | 10 | 2094 | -| `base-oop` | 5411 | 10 | 2094 | -| `base-quality` | 4869 | 10 | 2094 | -| `base-quality-gates` | 6102 | 11 | 4134 | -| `base-review` | 4869 | 10 | 2094 | -| `base-security` | 6400 | 10 | 2094 | -| `base-testing` | 4869 | 10 | 2094 | -| `frontend-content` | 5264 | 10 | 2094 | -| `frontend-quality` | 5289 | 10 | 2169 | -| `frontend-ux` | 5371 | 10 | 2094 | +| `backend-api` | 5982 | 11 | 2714 | +| `backend-auth` | 8036 | 10 | 2094 | +| `backend-caching` | 5641 | 10 | 2094 | +| `backend-concurrency` | 5488 | 10 | 2094 | +| `backend-database` | 5448 | 11 | 2173 | +| `backend-edge` | 8369 | 10 | 2094 | +| `backend-errors` | 6887 | 10 | 2094 | +| `backend-features` | 5499 | 10 | 2094 | +| `backend-grpc` | 9148 | 11 | 2250 | +| `backend-http` | 5915 | 10 | 2094 | +| `backend-jobs` | 5421 | 10 | 2094 | +| `backend-messaging` | 5707 | 11 | 2188 | +| `backend-microservices` | 7104 | 11 | 2853 | +| `backend-monitoring` | 5780 | 10 | 2094 | +| `backend-observability` | 5527 | 10 | 2094 | +| `backend-webhooks` | 8889 | 11 | 2188 | +| `base-agents` | 5049 | 10 | 3302 | +| `base-cicd` | 5337 | 10 | 2214 | +| `base-config` | 5511 | 10 | 2124 | +| `base-containers` | 5390 | 10 | 2194 | +| `base-data-governance` | 5946 | 10 | 2094 | +| `base-data-migration` | 5619 | 11 | 2466 | +| `base-data-modeling` | 5458 | 10 | 2094 | +| `base-data-quality` | 6213 | 11 | 2143 | +| `base-deployment` | 5327 | 10 | 2153 | +| `base-devsecops` | 5635 | 10 | 2094 | +| `base-docs` | 5033 | 10 | 2094 | +| `base-embedded-checks` | 6287 | 11 | 4377 | +| `base-git` | 5033 | 10 | 2094 | +| `base-measurement` | 5760 | 10 | 2094 | +| `base-oop` | 5575 | 10 | 2094 | +| `base-quality` | 5033 | 10 | 2094 | +| `base-quality-gates` | 6266 | 11 | 4134 | +| `base-review` | 5033 | 10 | 2094 | +| `base-security` | 6564 | 10 | 2094 | +| `base-testing` | 5033 | 10 | 2094 | +| `frontend-content` | 5428 | 10 | 2094 | +| `frontend-quality` | 5453 | 10 | 2169 | +| `frontend-ux` | 5535 | 10 | 2094 | ## 8.11 Responsibility levels diff --git a/templates/core/agents.md b/templates/core/agents.md index c33e47f0..4b79cf4f 100644 --- a/templates/core/agents.md +++ b/templates/core/agents.md @@ -141,7 +141,7 @@ not a note. [Priority order and checklists from the review rules] ## 5. Session protocol -[How a session starts, proceeds and ends] +[How a session starts, proceeds and ends, with the session handoff if kept] ``` ## Hybrid model @@ -191,7 +191,7 @@ Key references: [Inlined: every review rule marked MUST inline; reference the rest] ## 5. Session protocol -[How a session starts, proceeds and ends] +[How a session starts, proceeds and ends, with the session handoff if kept] ``` ## Formatting diff --git a/templates/core/docs.md b/templates/core/docs.md index c7c17570..281c1d1e 100644 --- a/templates/core/docs.md +++ b/templates/core/docs.md @@ -174,3 +174,25 @@ Which documents a project keeps, and how they stay true. | GitHub Copilot | `.github/copilot-instructions.md` | | OpenAI Codex CLI | `AGENTS.md` | | Generic or other | `AGENTS.md` | + +## Session handoff + +[ID: docs-session-handoff] + +- At a natural boundary a project MAY keep a short handoff file in the + repository: a "Now and next" section rewritten each session, and lasting + facts only where no authoritative source (code, history, ADRs, issues) + holds them +- Treat a missing handoff file as no defect, and a boundary as no reason + to end the session +- Where the project keeps one: + - Name it `HANDOFF.md`, at the repository root, with the sections "Now + and next" and "Lasting facts" + - Keep it in the repository, never in an agent tool's own store, so any + agent reads it + - Read it when a session starts + - State in "Now and next" where the work stands and the next step + - Point at the decision record or issue that holds a decision or a plan; + never copy it + - Prune a lasting fact once it stops being true + - Keep it out of the agent context files, which hold no progress log