dsh-embedded-workbench 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en-US.md +262 -0
- package/README.md +260 -0
- package/cordis.patch.yml +11 -0
- package/lib/index.js +197 -0
- package/lib/types/index.d.ts +43 -0
- package/package.json +81 -0
- package/skills/c-cpp-dev/SKILL.md +121 -0
- package/skills/debug-methodology/SKILL.md +83 -0
- package/skills/debug-methodology/references/iterative-debug-case-study.md +103 -0
- package/skills/embedded-firmware-dev/SKILL.md +133 -0
- package/skills/embedded-firmware-dev/references/architecture-principles.md +204 -0
- package/skills/embedded-firmware-dev/references/embedded-patterns.md +95 -0
- package/skills/embedded-firmware-dev/references/lvgl-pitfalls.md +68 -0
- package/skills/embedded-workbench/SKILL.md +240 -0
- package/skills/embedded-workbench/references/INDEX.md +88 -0
- package/skills/embedded-workbench/references/audit-ledger.md +38 -0
- package/skills/embedded-workbench/references/contract-matrix.md +31 -0
- package/skills/embedded-workbench/references/decision-log.md +31 -0
- package/skills/embedded-workbench/references/detailed-change-plan.md +76 -0
- package/skills/embedded-workbench/references/durable-requirement-notes.md +27 -0
- package/skills/embedded-workbench/references/final-qc.md +40 -0
- package/skills/embedded-workbench/references/iteration-notes.md +53 -0
- package/skills/embedded-workbench/references/platform-tool-mapping.md +88 -0
- package/skills/embedded-workbench/references/result-note.md +54 -0
- package/skills/embedded-workbench/references/steward-memo.md +54 -0
- package/skills/embedded-workbench/references/task-charter.md +53 -0
- package/skills/hardfault-triage/SKILL.md +237 -0
- package/skills/keil-mdk-build/SKILL.md +237 -0
- package/skills/state-machine-design/SKILL.md +190 -0
- package/src/index.ts +209 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: embedded-workbench
|
|
3
|
+
description: "Use when starting any non-trivial coding task — loads multi-agent workflows, engineering policies, and principles for embedded C/C++ firmware development. NOT for trivial single-line fixes, formatting-only changes, or read-only queries."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<SUBAGENT-STOP>
|
|
7
|
+
If you were dispatched as a subagent to execute a specific task (implementation, review, search), skip this bootstrap skill. You already have your task instructions. Only load domain skills relevant to your specific task.
|
|
8
|
+
</SUBAGENT-STOP>
|
|
9
|
+
|
|
10
|
+
# Embedded Engineering Workflow
|
|
11
|
+
|
|
12
|
+
Core workflow system and engineering principles.
|
|
13
|
+
|
|
14
|
+
## Instruction Priority
|
|
15
|
+
|
|
16
|
+
This plugin's skills and policies override default system behavior, but **user instructions always take precedence**:
|
|
17
|
+
|
|
18
|
+
1. **User's explicit instructions** (CLAUDE.md, AGENTS.md, project rules, direct requests) — highest priority
|
|
19
|
+
2. **Plugin skills and workflows** — override default system behavior where they conflict
|
|
20
|
+
3. **Default system prompt** — lowest priority
|
|
21
|
+
|
|
22
|
+
If a user's CLAUDE.md says "skip design review for hotfixes" and the workflow requires it, follow the user. The user is in control.
|
|
23
|
+
|
|
24
|
+
## Platform Adaptation
|
|
25
|
+
|
|
26
|
+
This plugin's skills and agents use Claude Code tool names (`Read`, `Write`, `Edit`, `Bash`, `Skill()`). If you are NOT on Claude Code, load `references/platform-tool-mapping.md` for the tool name equivalents on your platform (Codex CLI, Cursor, Kimi CLI, OpenCode, ZCode, Copilot CLI).
|
|
27
|
+
|
|
28
|
+
## Red Flags
|
|
29
|
+
|
|
30
|
+
If you catch yourself thinking any of these, STOP — you are rationalizing:
|
|
31
|
+
|
|
32
|
+
| You think | Reality |
|
|
33
|
+
|-----------|---------|
|
|
34
|
+
| "This is just a quick fix, I don't need a plan" | Quick fixes are the most likely to break something else. A 3-line design check costs 30 seconds. |
|
|
35
|
+
| "I already understand the architecture" | You're looking at one file. The blast radius may span 5 modules you haven't read. |
|
|
36
|
+
| "The worker can figure out the details" | The worker has NO context from previous calls. A vague plan = the worker guessing. |
|
|
37
|
+
| "I'll review it myself, no need for quality-coordinator" | Self-review catches ~60% of issues. A second pair catches the other 40%. |
|
|
38
|
+
| "This change is too small for a Detailed Change Plan" | If it touches more than one function, it needs a plan. Even single-function changes benefit from explicit invariants. |
|
|
39
|
+
| "I've explored enough, time to exit plan mode" | ExitPlanMode is the verification gate. Have you loaded `Skill("logicprobe")` (独立插件 / standalone plugin)? Every plan — simple or complex — must pass this gate before exit. |
|
|
40
|
+
| "This plan is too simple for logicprobe" | The skill auto-classifies depth (LIGHTWEIGHT/STANDARD/ESCALATED). You don't decide whether verification is needed. Load it (外部插件) and let Phase 0 determine. |
|
|
41
|
+
| "I already read the code, I know the file paths and API names are correct" | Organic verification leaves no audit trail. Load `Skill("logicprobe")` (外部插件), run Phase 0, append the `## Plan Verification` block. |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## General Principles
|
|
46
|
+
|
|
47
|
+
- Build context before acting: identify domain → load relevant skills → read key sources → analyze → edit.
|
|
48
|
+
- **Facts first, code is truth**: verify every document claim (counts, API names, enum values) against the actual codebase with Grep. Design on verified facts, not assumptions.
|
|
49
|
+
- Use `Agent(subagent_type: "Explore")` for broad searches instead of chaining Grep/Glob.
|
|
50
|
+
- Verify every change with `Bash` compilation or tests before reporting success. No verification = no claim of success.
|
|
51
|
+
- Reference file locations with line numbers in all reports: `[path/to/file.c#L100-L110]`.
|
|
52
|
+
- Write project memory to `<workspace>/.github/memory/`, update `MEMORY.md` index. Personal preferences only in `~/.claude/projects/.../memory/`.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Workflows
|
|
57
|
+
|
|
58
|
+
Sub-agents are **stateless** — each `Agent()` call is a fresh process. Plan-then-Implement uses two separate spawns: the first produces a Plan, the orchestrator approves it, the second implements. Only worth it when the Plan is specific enough for mechanical execution.
|
|
59
|
+
|
|
60
|
+
### Lite Workflow — Single-file fix, small bug, local refactor
|
|
61
|
+
|
|
62
|
+
**When**: single file/module, known repro, no cross-module boundaries. Trivial changes (typo, constant) — fix directly.
|
|
63
|
+
|
|
64
|
+
`execution-worker` → Plan → **suggest user run `design-reviewer` or `logicprobe` to verify Plan claims against codebase** → approve → `execution-worker` → implement + verify. Self-check. Uncertain → `quality-coordinator`.
|
|
65
|
+
|
|
66
|
+
Escalate to Multi-Agent when cross-module or two revisions don't converge.
|
|
67
|
+
|
|
68
|
+
### Multi-Agent Workflow — Multi-module tasks, full plan/review/closure cycle
|
|
69
|
+
|
|
70
|
+
**When**: cross-module, new interfaces, state ownership changes, needs design package.
|
|
71
|
+
|
|
72
|
+
`architecture-steward` → design → `design-reviewer` → fact-check → per slice: `execution-worker` (Plan → approve → Implement) → `quality-coordinator` → closure (normal/failure/recovery paths).
|
|
73
|
+
|
|
74
|
+
### Framework Workflow — Platform layer, contracts, staged migration
|
|
75
|
+
|
|
76
|
+
**When**: framework incubation, runtime path mounting, contract/sentinel/audit definition, old/new coexistence.
|
|
77
|
+
|
|
78
|
+
Same as Multi-Agent, plus: design package includes audit matrix + rollback triggers; each slice reports audit delta; quality-coordinator checks audit ledger consistency.
|
|
79
|
+
|
|
80
|
+
### Sub-Agent Reference
|
|
81
|
+
|
|
82
|
+
| Agent | Role |
|
|
83
|
+
| ------- | ------ |
|
|
84
|
+
| `architecture-steward` | Read-only planning: design packages, module boundaries, slice breakdown |
|
|
85
|
+
| `design-reviewer` | Design doc fact-check: verifies claims against codebase before implementation |
|
|
86
|
+
| `execution-worker` | Plan round → Detailed Change Plan. Implement round → edit + verify |
|
|
87
|
+
| `quality-coordinator` | Implementation review: bugs, compliance, closure completeness |
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Plan Mode Integration
|
|
92
|
+
|
|
93
|
+
Claude Code's built-in `EnterPlanMode` / `ExitPlanMode` maps to the **Plan phase** of the Lite and Multi-Agent workflows. Plan mode is a read-only exploration + plan-writing phase — it does NOT exempt you from embedded-workbench verification gates.
|
|
94
|
+
|
|
95
|
+
### Plan Verification Gate
|
|
96
|
+
|
|
97
|
+
> **logicprobe 已拆分为独立插件 / moved to a standalone plugin** (v0.6.0): the verification skill below now ships in its own plugin — <https://github.com/AmethystLuna/logicprobe>. Install it with `claude plugin install logicprobe@logicprobe` (or clone to `~/.claude/plugins/dev/logicprobe`). Without it, this gate degrades to option 2 below.
|
|
98
|
+
|
|
99
|
+
**Before calling `ExitPlanMode`**, exactly one of the following must happen:
|
|
100
|
+
|
|
101
|
+
1. **Load `Skill("logicprobe")`** (standalone plugin — install separately if missing) — the skill classifies depth (LIGHTWEIGHT / STANDARD / ESCALATED) based on objective plan features, runs verification, and appends a `## Plan Verification` summary block to the plan file.
|
|
102
|
+
2. **Inform the user** — if you choose not to load the skill, you MUST say: *"此计划未经 logicprobe 验证。是否需要我在审批前运行核查?(This plan has not been fact-verified. Would you like me to run verification before approving?)"* The user must have the option to request verification before approving.
|
|
103
|
+
|
|
104
|
+
Silent skip is not an option. Either verify, or tell the user you didn't.
|
|
105
|
+
|
|
106
|
+
Plan mode permits `Read`, `Glob`, `Grep`, and `Skill` calls — all verification executes within plan mode before exit.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Workflow Policies
|
|
111
|
+
|
|
112
|
+
<HARD-GATE>
|
|
113
|
+
### Approval Gate
|
|
114
|
+
|
|
115
|
+
- Implementation-bearing slices MUST produce a Detailed Change Plan before editing. No exceptions.
|
|
116
|
+
- Plan must include: objective, entry point, intended files, change shape, invariants, risks, validation, stop conditions.
|
|
117
|
+
- If execution reveals facts that change scope/boundaries/acceptance/verification surface, pause and require re-approval.
|
|
118
|
+
- Do NOT skip the plan phase because "the change is obvious" or "I've done this before."
|
|
119
|
+
</HARD-GATE>
|
|
120
|
+
|
|
121
|
+
<HARD-GATE>
|
|
122
|
+
### Closure Gate
|
|
123
|
+
|
|
124
|
+
- Slice is NOT done until: implementation intent + verification evidence + residual risks are all explicit.
|
|
125
|
+
- Skipped checks MUST record a concrete reason. "Looks good" is not a reason.
|
|
126
|
+
- For fault/recovery scenarios, MUST cover normal, failure, and recovery paths.
|
|
127
|
+
- Documentation and memory updates MUST be completed or explicitly skipped with reason.
|
|
128
|
+
- Do NOT call a slice closed if verification, documentation impact, or audit deltas are unclear.
|
|
129
|
+
</HARD-GATE>
|
|
130
|
+
|
|
131
|
+
### Escalation Triggers
|
|
132
|
+
|
|
133
|
+
- Work crosses module boundaries, public interfaces, or shared-state ownership → escalate.
|
|
134
|
+
- Requirements conflict, acceptance unclear, or review reveals architecture drift → escalate.
|
|
135
|
+
- Two plan revisions fail to converge → escalate.
|
|
136
|
+
|
|
137
|
+
### Context Transfer
|
|
138
|
+
|
|
139
|
+
Sub-agents are **stateless with no implicit context inheritance** — each spawn only gets what's in its prompt:
|
|
140
|
+
|
|
141
|
+
- **Explicit prompt construction**: put design conclusions, approved Plans, review findings directly in the prompt. Do NOT assume the agent "remembers" previous conversations.
|
|
142
|
+
- **Plan is the key handoff artifact**: between Design → Plan round → Implement round, the Detailed Change Plan and review verdicts are the only bridge. Vague Plans = the next agent guessing.
|
|
143
|
+
- **Pass only what's needed**: Design phase doesn't need full source code. Implement phase doesn't need the full Audit Matrix.
|
|
144
|
+
- **Memory for cross-session persistence**: rules, pitfalls, constraints that need to survive across sessions go in `<workspace>/.github/memory/`. In-session coordination stays in chat.
|
|
145
|
+
- **Long content via path references**: if context is too large, write long content to workspace docs and put only the path in the prompt. Let the agent Read it.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Skill Types
|
|
150
|
+
|
|
151
|
+
Each domain skill is classified by how strictly it should be followed:
|
|
152
|
+
|
|
153
|
+
**Rigid** — follow exactly. These are rules and checklists. Don't adapt away the discipline.
|
|
154
|
+
|
|
155
|
+
- `debug-methodology`: 8 iron rules are non-negotiable
|
|
156
|
+
- `logicprobe` (external plugin): claim verification must check every claim
|
|
157
|
+
|
|
158
|
+
**Flexible** — adapt principles to context. These are patterns and references, not commands.
|
|
159
|
+
|
|
160
|
+
- `c-cpp-dev`: style and patterns adapt to existing codebase conventions
|
|
161
|
+
- `embedded-firmware-dev`: architecture principles apply based on project scale
|
|
162
|
+
- `state-machine-design`: implementation patterns adapt to protocol specifics
|
|
163
|
+
- `hardfault-triage`: methodology adapts to processor architecture
|
|
164
|
+
- `keil-mdk-build`: build diagnostics adapt to project structure
|
|
165
|
+
|
|
166
|
+
If unsure, treat a skill as Rigid until you confirm otherwise.
|
|
167
|
+
|
|
168
|
+
## Skill Loading Priority
|
|
169
|
+
|
|
170
|
+
When multiple skills could apply, use this order:
|
|
171
|
+
|
|
172
|
+
1. **Diagnosis skills first** — `debug-methodology`, `hardfault-triage`, `logicprobe` (external plugin). These determine WHAT is wrong.
|
|
173
|
+
2. **Design skills second** — `state-machine-design`. These determine HOW to fix it.
|
|
174
|
+
3. **Implementation skills third** — `c-cpp-dev`, `embedded-firmware-dev`, `keil-mdk-build`. These guide execution.
|
|
175
|
+
|
|
176
|
+
"HardFault crash" → hardfault-triage first, then debug-methodology if root cause is complex.
|
|
177
|
+
"Add retry logic" → state-machine-design first, then c-cpp-dev for implementation.
|
|
178
|
+
"Review this design" → logicprobe first, then escalate findings to design-reviewer agent.
|
|
179
|
+
|
|
180
|
+
**Cross-domain links**: load secondary skills ONLY when the primary skill's findings indicate they are needed. Don't pre-load. `hardfault-triage` ↔ `keil-mdk-build` (.map file bridge — load keil-mdk-build only if .map analysis is needed). `hardfault-triage` ↔ `debug-methodology` (root-cause analysis — load debug-methodology only if the fault cause is complex). `embedded-firmware-dev` ↔ `state-machine-design` (state transitions — load state-machine-design only if state logic is involved). `embedded-firmware-dev` ↔ `debug-methodology` (debugging process). `logicprobe` ↔ `design-reviewer` agent (design doc review, logic verification). `logicprobe` ↔ `state-machine-design` (behavioral claim probing).
|
|
181
|
+
|
|
182
|
+
## Domain Skills
|
|
183
|
+
|
|
184
|
+
Load domain-specific guidance when the task matches. Skills marked with 📚 have deep reference material in their `references/` directory.
|
|
185
|
+
|
|
186
|
+
| Task | Skill | Type | Deep Refs |
|
|
187
|
+
|------|-------|:----:|:---------:|
|
|
188
|
+
| Debugging crashes, HardFault, logs | `Skill("debug-methodology")` | Rigid | 📚 case study |
|
|
189
|
+
| HardFault / exception triage, fault registers, .map crash resolution | `Skill("hardfault-triage")` | Flexible | — |
|
|
190
|
+
| C/C++ code generation or style | `Skill("c-cpp-dev")` | Flexible | — |
|
|
191
|
+
| FreeRTOS, ISR, NVM storage, sensor drivers | `Skill("embedded-firmware-dev")` | Flexible | 📚 architecture, patterns, LVGL |
|
|
192
|
+
| Keil MDK, ARMCLANG, build system, .map optimization | `Skill("keil-mdk-build")` | Flexible | — |
|
|
193
|
+
| State machines, retries, timeouts | `Skill("state-machine-design")` | Flexible | — |
|
|
194
|
+
|
|
195
|
+
Design doc review, claim verification, logic primitive + adversarial probing → `Skill("logicprobe")` — **standalone plugin** (see Plan Verification Gate above).
|
|
196
|
+
|
|
197
|
+
## Templates & References
|
|
198
|
+
|
|
199
|
+
This skill's `references/` directory contains document templates and platform references. Use `Read` with the skill's reference path to load the relevant file when needed:
|
|
200
|
+
|
|
201
|
+
### Platform
|
|
202
|
+
|
|
203
|
+
- `platform-tool-mapping.md` — Claude Code → Codex/Cursor/Kimi/OpenCode/ZCode/Copilot tool name equivalents. **Load this immediately if you are NOT on Claude Code.**
|
|
204
|
+
|
|
205
|
+
### Workflow Templates
|
|
206
|
+
|
|
207
|
+
- `detailed-change-plan.md` — Pre-edit implementation plan
|
|
208
|
+
- `task-charter.md` — Task scope and slice roadmap
|
|
209
|
+
- `iteration-notes.md` — Per-slice execution notes
|
|
210
|
+
- `steward-memo.md` — Pre-execution architecture framing
|
|
211
|
+
- `result-note.md` — Post-edit closure evidence
|
|
212
|
+
- `final-qc.md` — Formal review verdict
|
|
213
|
+
- `decision-log.md` — Approved decisions with rationale
|
|
214
|
+
- `audit-ledger.md` — Recurring audit tracking (Framework Workflow)
|
|
215
|
+
- `contract-matrix.md` — Contract-to-sentinel mapping (Framework Workflow)
|
|
216
|
+
- `durable-requirement-notes.md` — Long-lived business invariants
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Proactive Suggestions
|
|
221
|
+
|
|
222
|
+
When you observe any of these patterns in the user's task, **suggest the relevant feature before the user asks**. Most users don't know these capabilities exist.
|
|
223
|
+
|
|
224
|
+
| Pattern You Observe | Suggest |
|
|
225
|
+
|---------------------|--------|
|
|
226
|
+
| User describes refactoring a state machine (splitting/merging states, changing transitions) | "Before you start, would you like me to run logic-primitive verification on the refactoring? I can extract the current state machine from code, compare it against your plan, and flag any regressions, deadlocks, or behavioral deltas before you change a single line." |
|
|
227
|
+
| User describes a new state machine or protocol with ≥3 states | "I can run an adversarial verification on this design — 14 automated checks for deadlocks, unreachable states, race conditions, guard completeness, and invariant violations. Want me to do that before we implement?" |
|
|
228
|
+
| User pastes or writes a state enum + switch-case dispatcher | "I notice a state machine here. Would you like me to model it and run completeness checks? I can find missing transitions, detect absorbing error loops, and verify that every state is reachable." |
|
|
229
|
+
| User says "always" / "never" / "guaranteed" about behavior | "That's a behavioral invariant. I can model this and try to find a counter-example — the shortest event sequence that would violate 'X always happens before Y'. Want me to check?" |
|
|
230
|
+
| User reviews a PR or diff that touches a state machine file | "This PR changes state machine logic. Would you like me to extract the before/after models and verify no regressions were introduced?" |
|
|
231
|
+
| User debugs a crash or lockup in a stateful module | "This might be a state machine completeness issue. I can model the state machine from the code and check for deadlocks, unreachable states, or event ordering problems that could cause the lockup." |
|
|
232
|
+
| Task would benefit from parallel execution (multiple independent modules, files, or dimensions) | "These are independent. I can dispatch parallel subagents to handle each module concurrently and synthesize the results. Want me to do that?" |
|
|
233
|
+
| User writes a Detailed Change Plan without design review | "Before implementing, would you like the design-reviewer agent to fact-check this plan against the codebase? It catches API mismatches, missing modules, and mechanism feasibility issues before you write code." |
|
|
234
|
+
|
|
235
|
+
### Suggestion Rules
|
|
236
|
+
|
|
237
|
+
- **Suggest once per task**, not repeatedly. If the user declines, don't push.
|
|
238
|
+
- **Be specific about what the feature does** — don't just name-drop. Say "I can find deadlocks and missing transitions" not "I can run logicprobe."
|
|
239
|
+
- **Estimate cost**: for lightweight checks, say "this takes ~30 seconds." For Python harness runs, say "this will generate and run a verification script."
|
|
240
|
+
- **Respect the user's decision**: if they decline, move on. The features are tools, not requirements.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Working Memory Index
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
- Owner:
|
|
6
|
+
- Scope:
|
|
7
|
+
- Last Updated:
|
|
8
|
+
|
|
9
|
+
## Active Task Charters
|
|
10
|
+
|
|
11
|
+
- [ ] Task:
|
|
12
|
+
- Path:
|
|
13
|
+
- Domain:
|
|
14
|
+
- Status:
|
|
15
|
+
- Last Updated:
|
|
16
|
+
|
|
17
|
+
## Recent Iteration Notes
|
|
18
|
+
|
|
19
|
+
- [ ] Note:
|
|
20
|
+
- Path:
|
|
21
|
+
- Related Task:
|
|
22
|
+
- Domain:
|
|
23
|
+
- Last Updated:
|
|
24
|
+
|
|
25
|
+
## Decisions
|
|
26
|
+
|
|
27
|
+
- [ ] Decision:
|
|
28
|
+
- Path:
|
|
29
|
+
- Domain:
|
|
30
|
+
- Status:
|
|
31
|
+
- Last Updated:
|
|
32
|
+
|
|
33
|
+
## Contract Matrices
|
|
34
|
+
|
|
35
|
+
- [ ] Matrix:
|
|
36
|
+
- Path:
|
|
37
|
+
- Domain:
|
|
38
|
+
- Status:
|
|
39
|
+
- Last Updated:
|
|
40
|
+
|
|
41
|
+
## Audit Ledgers
|
|
42
|
+
|
|
43
|
+
- [ ] Ledger:
|
|
44
|
+
- Path:
|
|
45
|
+
- Domain:
|
|
46
|
+
- Status:
|
|
47
|
+
- Last Updated:
|
|
48
|
+
|
|
49
|
+
## Reviews
|
|
50
|
+
|
|
51
|
+
- [ ] Review:
|
|
52
|
+
- Path:
|
|
53
|
+
- Related Task:
|
|
54
|
+
- Verdict:
|
|
55
|
+
- Last Updated:
|
|
56
|
+
|
|
57
|
+
## Durable Requirement Notes
|
|
58
|
+
|
|
59
|
+
- [ ] Note:
|
|
60
|
+
- Path:
|
|
61
|
+
- Domain:
|
|
62
|
+
- Status:
|
|
63
|
+
- Last Updated:
|
|
64
|
+
|
|
65
|
+
## Domain Map
|
|
66
|
+
|
|
67
|
+
- Domain:
|
|
68
|
+
- Active Task:
|
|
69
|
+
- Latest Iteration Note:
|
|
70
|
+
- Key Decision:
|
|
71
|
+
- Contract Matrix:
|
|
72
|
+
- Audit Ledger:
|
|
73
|
+
- Durable Constraints:
|
|
74
|
+
|
|
75
|
+
## Closure Snapshot
|
|
76
|
+
|
|
77
|
+
- Active Trigger:
|
|
78
|
+
- Current Approved Slice:
|
|
79
|
+
- Latest Closed Slice:
|
|
80
|
+
- Latest Review Verdict:
|
|
81
|
+
- Key Verification Surface:
|
|
82
|
+
|
|
83
|
+
## Archive Or Completed Work
|
|
84
|
+
|
|
85
|
+
- Item:
|
|
86
|
+
- Path:
|
|
87
|
+
- Closed On:
|
|
88
|
+
- Summary:
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Audit Ledger
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- Type: Audit Ledger
|
|
6
|
+
- Horizon: Task Or Framework
|
|
7
|
+
- Domain:
|
|
8
|
+
- Status:
|
|
9
|
+
- Owner:
|
|
10
|
+
- Last Updated:
|
|
11
|
+
- Related:
|
|
12
|
+
|
|
13
|
+
## Audit Scope
|
|
14
|
+
|
|
15
|
+
## Current Baseline
|
|
16
|
+
|
|
17
|
+
## Audit Classes
|
|
18
|
+
|
|
19
|
+
- Audit Class:
|
|
20
|
+
- Why It Matters:
|
|
21
|
+
- Baseline:
|
|
22
|
+
- Owner:
|
|
23
|
+
- Trigger:
|
|
24
|
+
- Required Before Edit:
|
|
25
|
+
- Required Before Close:
|
|
26
|
+
- Latest Status:
|
|
27
|
+
|
|
28
|
+
## Slice Delta Log
|
|
29
|
+
|
|
30
|
+
- Slice ID:
|
|
31
|
+
- Audit Class:
|
|
32
|
+
- Delta:
|
|
33
|
+
- Evidence:
|
|
34
|
+
- Reviewer Note:
|
|
35
|
+
|
|
36
|
+
## Outstanding Gaps
|
|
37
|
+
|
|
38
|
+
## Next Checkpoints
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Contract Matrix
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- Type: Contract Matrix
|
|
6
|
+
- Horizon: Task Or Framework
|
|
7
|
+
- Domain:
|
|
8
|
+
- Status:
|
|
9
|
+
- Owner:
|
|
10
|
+
- Last Updated:
|
|
11
|
+
- Related:
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
## Contract Map
|
|
16
|
+
|
|
17
|
+
- Contract:
|
|
18
|
+
- Intent:
|
|
19
|
+
- Source Of Truth:
|
|
20
|
+
- Producer Or Owner:
|
|
21
|
+
- Consumer Or Borrower:
|
|
22
|
+
- Sentinel Or Allowlist:
|
|
23
|
+
- Verification Surface:
|
|
24
|
+
- Current Status:
|
|
25
|
+
- Notes:
|
|
26
|
+
|
|
27
|
+
## Open Contract Questions
|
|
28
|
+
|
|
29
|
+
## Reserved Or Future Slots
|
|
30
|
+
|
|
31
|
+
## Related Decisions And Evidence
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Decision Log Entry
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- Type: Decision Log
|
|
6
|
+
- Horizon: Decision
|
|
7
|
+
- Domain:
|
|
8
|
+
- Status:
|
|
9
|
+
- Owner:
|
|
10
|
+
- Last Updated:
|
|
11
|
+
- Related:
|
|
12
|
+
|
|
13
|
+
## Decision
|
|
14
|
+
|
|
15
|
+
## Context
|
|
16
|
+
|
|
17
|
+
## Options Considered
|
|
18
|
+
|
|
19
|
+
- Option:
|
|
20
|
+
- Benefits:
|
|
21
|
+
- Risks:
|
|
22
|
+
|
|
23
|
+
## Chosen Approach
|
|
24
|
+
|
|
25
|
+
## Consequences
|
|
26
|
+
|
|
27
|
+
## Affected Areas
|
|
28
|
+
|
|
29
|
+
## Rollback Or Recovery Notes
|
|
30
|
+
|
|
31
|
+
## Related Iteration Evidence
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Detailed Change Plan
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- Type: Detailed Change Plan
|
|
6
|
+
- Horizon: Slice
|
|
7
|
+
- Domain:
|
|
8
|
+
- Status:
|
|
9
|
+
- Owner:
|
|
10
|
+
- Last Updated:
|
|
11
|
+
- Related:
|
|
12
|
+
- Slice ID:
|
|
13
|
+
- Approval State: pending-approval
|
|
14
|
+
|
|
15
|
+
## Objective
|
|
16
|
+
|
|
17
|
+
## Trigger Linkage
|
|
18
|
+
|
|
19
|
+
## Controlling Anchor
|
|
20
|
+
|
|
21
|
+
- Entry Point:
|
|
22
|
+
- Owning Module:
|
|
23
|
+
- Why This Is The Right Start:
|
|
24
|
+
|
|
25
|
+
## Intended Files Or Modules
|
|
26
|
+
|
|
27
|
+
- File Or Module:
|
|
28
|
+
- Role:
|
|
29
|
+
- Expected Touch:
|
|
30
|
+
|
|
31
|
+
## Expected Diff Shape
|
|
32
|
+
|
|
33
|
+
## Invariants Touched
|
|
34
|
+
|
|
35
|
+
- Invariant:
|
|
36
|
+
- Why It Matters:
|
|
37
|
+
- Protection Strategy:
|
|
38
|
+
|
|
39
|
+
## Risks
|
|
40
|
+
|
|
41
|
+
- Risk:
|
|
42
|
+
- Probability:
|
|
43
|
+
- Impact:
|
|
44
|
+
- Mitigation:
|
|
45
|
+
|
|
46
|
+
## Audit Delta
|
|
47
|
+
|
|
48
|
+
- Audit Or Gate:
|
|
49
|
+
- Current Baseline:
|
|
50
|
+
- Expected Delta:
|
|
51
|
+
- How To Check:
|
|
52
|
+
|
|
53
|
+
## Environment Prerequisites
|
|
54
|
+
|
|
55
|
+
- Environment Item:
|
|
56
|
+
- Needed For:
|
|
57
|
+
- Discovery Source:
|
|
58
|
+
- Status:
|
|
59
|
+
|
|
60
|
+
## Validation Plan
|
|
61
|
+
|
|
62
|
+
- Check:
|
|
63
|
+
- Command Or Method:
|
|
64
|
+
- Success Signal:
|
|
65
|
+
|
|
66
|
+
## Documentation Impact
|
|
67
|
+
|
|
68
|
+
- Note Or Artifact:
|
|
69
|
+
- Action:
|
|
70
|
+
- Why:
|
|
71
|
+
|
|
72
|
+
## Open Questions
|
|
73
|
+
|
|
74
|
+
## Stop Conditions
|
|
75
|
+
|
|
76
|
+
## Proposed Commit Boundary
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Durable Requirement Notes
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- Type: Durable Requirement Notes
|
|
6
|
+
- Horizon: Durable
|
|
7
|
+
- Domain:
|
|
8
|
+
- Status:
|
|
9
|
+
- Owner:
|
|
10
|
+
- Last Updated:
|
|
11
|
+
- Related:
|
|
12
|
+
|
|
13
|
+
## Domain Summary
|
|
14
|
+
|
|
15
|
+
## Business Rules
|
|
16
|
+
|
|
17
|
+
## Invariants
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
## Non-Negotiable Constraints
|
|
22
|
+
|
|
23
|
+
## Accepted Exceptions
|
|
24
|
+
|
|
25
|
+
## Verification Signals
|
|
26
|
+
|
|
27
|
+
## Related Decisions
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Final QC
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- **Type:** Final QC
|
|
6
|
+
- **Horizon:** Review
|
|
7
|
+
- **Domain:**
|
|
8
|
+
- **Status:**
|
|
9
|
+
- **Owner:**
|
|
10
|
+
- **Last Updated:**
|
|
11
|
+
- **Related:**
|
|
12
|
+
- **Slice ID:**
|
|
13
|
+
- **Review Verdict:**
|
|
14
|
+
|
|
15
|
+
## Findings
|
|
16
|
+
|
|
17
|
+
- **Severity:**
|
|
18
|
+
- **Finding:**
|
|
19
|
+
- **Evidence:**
|
|
20
|
+
- **Recommended Action:**
|
|
21
|
+
|
|
22
|
+
## Plan Verdict
|
|
23
|
+
|
|
24
|
+
## Design Coverage
|
|
25
|
+
|
|
26
|
+
## Requirement Coverage
|
|
27
|
+
|
|
28
|
+
## Implementation Coverage
|
|
29
|
+
|
|
30
|
+
## Closure Coverage
|
|
31
|
+
|
|
32
|
+
## Document Sync
|
|
33
|
+
|
|
34
|
+
## Index Health
|
|
35
|
+
|
|
36
|
+
## Coordination Notes
|
|
37
|
+
|
|
38
|
+
## Verification Gaps
|
|
39
|
+
|
|
40
|
+
## Recommendation
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Iteration Notes
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- Type: Iteration Notes
|
|
6
|
+
- Horizon: Iteration
|
|
7
|
+
- Domain:
|
|
8
|
+
- Status:
|
|
9
|
+
- Owner:
|
|
10
|
+
- Last Updated:
|
|
11
|
+
- Related:
|
|
12
|
+
|
|
13
|
+
## Current Slice
|
|
14
|
+
|
|
15
|
+
- Slice ID:
|
|
16
|
+
- Approval State:
|
|
17
|
+
- Plan Ref:
|
|
18
|
+
|
|
19
|
+
## Findings Timeline
|
|
20
|
+
|
|
21
|
+
- Checkpoint:
|
|
22
|
+
- Observation:
|
|
23
|
+
- Evidence:
|
|
24
|
+
- Impact:
|
|
25
|
+
|
|
26
|
+
## Hypotheses
|
|
27
|
+
|
|
28
|
+
## Failed Attempts Or Rejected Paths
|
|
29
|
+
|
|
30
|
+
## Local Gotchas
|
|
31
|
+
|
|
32
|
+
## Validation Observations
|
|
33
|
+
|
|
34
|
+
## Audit Delta
|
|
35
|
+
|
|
36
|
+
- Audit:
|
|
37
|
+
- Baseline:
|
|
38
|
+
- Delta:
|
|
39
|
+
- Impact:
|
|
40
|
+
|
|
41
|
+
## Result Closure
|
|
42
|
+
|
|
43
|
+
- Closed Now:
|
|
44
|
+
- Still Open:
|
|
45
|
+
- Reviewer Focus:
|
|
46
|
+
|
|
47
|
+
## Follow-Ups
|
|
48
|
+
|
|
49
|
+
## Promotion Candidates
|
|
50
|
+
|
|
51
|
+
- Candidate:
|
|
52
|
+
- Promote To:
|
|
53
|
+
- Why:
|