25 lines
2.7 KiB
Markdown
25 lines
2.7 KiB
Markdown
# Template design decisions
|
|
|
|
Decision records about the **template itself** — why the Cascade KB is shaped
|
|
the way it is. They use the same `type: decision` format as `wiki/decisions/`,
|
|
but they live here, in the template layer, because:
|
|
|
|
- `wiki/decisions/` is content: a KB's *own* decisions about its *own*
|
|
subject. `ckb-reset` may wipe it, and a fresh `ckb-init` starts it empty.
|
|
- Skills, modules and docs cite these records. A template must not depend on
|
|
pages the content layer is allowed to delete.
|
|
|
|
`ckb-upgrade` carries this folder along with the rest of the template layer.
|
|
`ckb-decide` never writes here — it is not a place for a KB's project decisions.
|
|
|
|
| # | Decision |
|
|
|---|---|
|
|
| [D-0001](0001-opt-in-file-based-kb-modules.md) | Optional capabilities ship as file-based modules under `.agents/modules/`, installed on request |
|
|
| [D-0002](0002-software-module-design.md) | The `software` module: gitignored `src/` clones, two OpenSpec spec levels, hybrid vendoring |
|
|
| [D-0003](0003-python-runtime-with-degraded-fallbacks.md) | Python stays the only scripting runtime; portable interpreter resolution, per-OS install guidance, a native fallback for the session-start check, degraded paths per skill |
|
|
| [D-0004](0004-session-identity-from-git.md) | The git identity is the session's author; one workload file per person per day; `**Author:**` on log entries and saved conversations |
|
|
| [D-0005](0005-session-titles-and-routines.md) | A new session asks for its title first and waits (point 1 reversed by D-0006); routines are time-since-last actions in `ckb.yaml`, run after the user's request, with `last_run` committed |
|
|
| [D-0006](0006-title-chosen-by-agent.md) | The agent derives the session title from the first message and only announces it in one line; `announce_title` replaces `ask_title` |
|
|
| [D-0007](0007-mcp-server-module.md) | The `mcp` module serves the KB over MCP: cascade-aware reads; remote writes limited to `raw/inbox/` and retraction requests, each naming its KB and confirmed by the user, and removable only by the person who added the document; auth switched by one flag (`none`/`token`/`oauth`), server runs in place against its own clone |
|
|
| [D-0008](0008-document-templates.md) | Document templates are the user's Markdown files in root `templates/`, outside the cascade and the template layer; a comment per section is the agent's brief; `ckb-document` fills one into `outputs/documents/`, asking in one round and leaving `TODO:` lines instead of guesses |
|
|
| [D-0009](0009-session-start-in-one-call.md) | Session start is one `session_start.py` call that says what to act on; `wiki/index.md` and the whole workload file are no longer read at start; a skill's `## Purpose` says only what its description does not |
|