@punks/cli 5.2.0 → 5.2.2
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/README.md +2 -2
- package/dist/BASELINE_CHANGELOG.md +46 -1
- package/dist/CHANGELOG.md +37 -0
- package/dist/baseline/scaffold-baseline/baseline.json +15 -5
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -0
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +16 -0
- package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +459 -318
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +98 -27
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +156 -8
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.d.mts +55 -0
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.mjs +329 -0
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.test.ts +864 -0
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.d.mts +97 -0
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.mjs +658 -0
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.test.ts +614 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/commands.md +8 -9
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/managed-lint.md +165 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +28 -24
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/wiki-structure.md +16 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +21 -16
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +16 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-architecture/SKILL.md +65 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-architecture/assets/ARCHITECTURE-TEMPLATE.md +119 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-architecture/references/artifact-contract.md +200 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +11 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/architecture-convergence.md +19 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +17 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +38 -20
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +11 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +8 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +4 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +10 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +23 -10
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +22 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +6 -3
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +4 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +5 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +15 -9
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +13 -26
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +39 -1
- package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +31 -14
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +12 -4
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/hooks/format-edited-file.d.mts +5 -0
- package/dist/data/hooks/format-edited-file.mjs +282 -333
- package/dist/data/scripts/commit-gate-runner.mjs +98 -27
- package/dist/data/scripts/managed-lint-runner.d.mts +55 -0
- package/dist/data/scripts/managed-lint-runner.mjs +329 -0
- package/dist/data/scripts/managed-lint.d.mts +97 -0
- package/dist/data/scripts/managed-lint.mjs +658 -0
- package/dist/index.js +86 -1184
- package/dist/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
- package/dist/skills/agnostic/cli/hi-cli/references/commands.md +8 -9
- package/dist/skills/agnostic/cli/hi-cli/references/managed-lint.md +165 -0
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +15 -11
- package/dist/skills/agnostic/cli/hi-cli/references/wiki-structure.md +16 -0
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +21 -16
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +16 -4
- package/dist/skills/agnostic/planning/create-architecture/SKILL.md +65 -0
- package/dist/skills/agnostic/planning/create-architecture/assets/ARCHITECTURE-TEMPLATE.md +119 -0
- package/dist/skills/agnostic/planning/create-architecture/references/artifact-contract.md +200 -0
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +11 -3
- package/dist/skills/agnostic/planning/create-plan/references/architecture-convergence.md +19 -4
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +17 -3
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +38 -20
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +11 -0
- package/dist/skills/agnostic/planning/create-spec/references/readiness.md +40 -0
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +8 -0
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +4 -2
- package/dist/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +10 -6
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +23 -10
- package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +22 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +3 -2
- package/dist/skills/phases/delivery-phase/SKILL.md +6 -3
- package/dist/skills/phases/delivery-phase/phases/plan.md +4 -2
- package/dist/skills/phases/delivery-phase/phases/review.md +5 -1
- package/dist/skills/phases/delivery-phase/phases/router.md +15 -9
- package/dist/skills/phases/delivery-phase/phases/spec.md +13 -26
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +39 -1
- package/dist/skills/phases/requirements-phase/SKILL.md +31 -14
- package/dist/skills/phases/review-phase/phases/prepare-review.md +12 -4
- package/package.json +3 -2
|
@@ -27,6 +27,8 @@ Read [references/commands.md](references/commands.md) when choosing or explainin
|
|
|
27
27
|
|
|
28
28
|
## Workflow
|
|
29
29
|
|
|
30
|
+
For managed lint setup, scope changes, policy migration, conflicting commands, or stale-policy findings, read [references/managed-lint.md](references/managed-lint.md). Complete explicit scope selection before dependent lint adoption; `--yes` does not supply that decision.
|
|
31
|
+
|
|
30
32
|
1. Run the bounded command requested by the user.
|
|
31
33
|
2. Classify its result as init, scaffold, check, ensure, update, tools ensure, report, upgrade, or operator.
|
|
32
34
|
3. Follow only that branch in [references/post-command-flow.md](references/post-command-flow.md).
|
|
@@ -4,25 +4,25 @@ The command is `hi`; `hint` is an alias. The npm package remains `@punks/cli`.
|
|
|
4
4
|
|
|
5
5
|
## `hi init`
|
|
6
6
|
|
|
7
|
-
Use before repo-aware setup. It seeds docs onboarding
|
|
7
|
+
Use before repo-aware setup. It seeds docs onboarding and requirements/backlog/spec skills.
|
|
8
8
|
|
|
9
|
-
Activate `$docs-onboarding` after the command.
|
|
9
|
+
Activate `$docs-onboarding` after the command. Follow the [existing wiki structure check](wiki-structure.md) before writing durable specs or routed docs. Wiki structure is project-owned; CLI commands do not create or update it.
|
|
10
10
|
|
|
11
11
|
## `hi scaffold`
|
|
12
12
|
|
|
13
13
|
Use for repo-aware AI setup. It detects the repository, resolves packs, and writes managed `.agents/`, `.devpunks/`, skill, prompt, lint, subagent, tool, and scaffold-manifest assets.
|
|
14
14
|
|
|
15
|
-
The command does not finish repo-specific authoring. Reconcile its generated instructions with the real repository. Use `hi scaffold --yes` only when a non-interactive harness must accept the resolved default pack selection; it does not select optional packs or resolve policy choices.
|
|
15
|
+
The command does not finish repo-specific authoring. Reconcile its generated instructions with the real repository. Use `hi scaffold --yes` only when a non-interactive harness must accept the resolved default pack selection; it does not select optional packs or resolve policy choices. Managed lint requires saved `lint.scopes`; missing selection is actionable work, while `[]` deliberately selects none. Follow [managed-lint.md](managed-lint.md) for candidate inventory, settings authoring, and policy reconciliation.
|
|
16
16
|
|
|
17
17
|
## `hi check`
|
|
18
18
|
|
|
19
|
-
Use as the preferred read-only drift command. It checks managed scaffold, baseline, and
|
|
19
|
+
Use as the preferred read-only drift command. It checks managed scaffold, baseline, CLI, and managed lint selection/route health without writing files. An installed baseline identity alone does not establish correct live lint policy.
|
|
20
20
|
|
|
21
|
-
Report the current findings. A clean result needs no update follow-through.
|
|
21
|
+
Report the current findings. For missing selection, stale policy, or command/config conflicts, use the matching next action in [managed-lint.md](managed-lint.md#interpret-the-result). A clean result needs no update follow-through; basic health inspection is not a whole-repository lint run.
|
|
22
22
|
|
|
23
23
|
## `hi ensure`
|
|
24
24
|
|
|
25
|
-
Use to reconfigure repository manager, backlog provider, asset provider,
|
|
25
|
+
Use to reconfigure repository manager, backlog provider, asset provider, backlog project URL, and managed lint ownership in an existing Harness setup. The managed lint choice keeps saved selection or accepts JSON arrays of exact Software Scopes and Excluded Paths. Inventory candidates through [managed-lint.md](managed-lint.md#select-software-scopes) before entering those arrays; preserve unrelated settings.
|
|
26
26
|
|
|
27
27
|
It does not install, repair, validate, or refresh external tools. Use `hi tools ensure` for tools.
|
|
28
28
|
|
|
@@ -30,11 +30,10 @@ It does not install, repair, validate, or refresh external tools. Use `hi tools
|
|
|
30
30
|
|
|
31
31
|
Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.json`.
|
|
32
32
|
|
|
33
|
-
- `--write`
|
|
34
|
-
- `--yes` applies them non-interactively.
|
|
33
|
+
- Normal `hi update` applies updates; `--write` and `--yes` are compatibility apply aliases.
|
|
35
34
|
- `--check` remains a supported compatibility preview, but prefer `hi check` for read-only drift inspection.
|
|
36
35
|
|
|
37
|
-
After a write, follow only the changed categories in [post-command-flow.md](post-command-flow.md).
|
|
36
|
+
For lint changes, follow [managed-lint.md](managed-lint.md#reconcile-lint-adoption): preview the complete dependent change, preserve project policy, and distinguish source findings from failures that block activation. After a write, follow only the changed categories in [post-command-flow.md](post-command-flow.md).
|
|
38
37
|
|
|
39
38
|
## `hi tools ensure`
|
|
40
39
|
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# Managed lint
|
|
2
|
+
|
|
3
|
+
Use this flow for lint setup, changed software ownership, policy migration, or a
|
|
4
|
+
lint selection/route finding from scaffold, update, or check. Keep the work within
|
|
5
|
+
the current command's scope. Existing accepted decisions remain authoritative.
|
|
6
|
+
|
|
7
|
+
## Select Software Scopes
|
|
8
|
+
|
|
9
|
+
1. Inventory shallow `apps/*` and `packages/*` packages, declared workspaces,
|
|
10
|
+
and any deliberately selected root or custom package layout. Inspect each
|
|
11
|
+
candidate's manifest, source, and command/install context. Candidates are
|
|
12
|
+
evidence; a workspace glob or recursively found manifest is not permission to
|
|
13
|
+
lint a project. Record which candidates own application/library software and
|
|
14
|
+
which are documentation or embedded example/fixture projects.
|
|
15
|
+
2. Save exact repository-relative package roots in `.devpunks/settings.json`
|
|
16
|
+
under `lint.scopes`, with repository-relative file/directory glob exclusions
|
|
17
|
+
under `lint.exclude`. Use the existing init/ensure settings flow or authorized
|
|
18
|
+
settings authoring, preserving unrelated fields. `hi ensure` accepts JSON
|
|
19
|
+
arrays for both. Complete this step when every selected owner has a contained
|
|
20
|
+
`package.json` and a supported JavaScript/TypeScript command/install context.
|
|
21
|
+
3. Validate the selection through the normal scaffold/update/check flow. Resolve
|
|
22
|
+
invalid, missing, moved, escaping, or aliased owners before dependent lint
|
|
23
|
+
activation. `--yes` supplies neither a missing selection nor permission to
|
|
24
|
+
select all candidates. Keep derived framework and route data out of settings.
|
|
25
|
+
|
|
26
|
+
Merge the `lint` object into existing settings; this is an example, not a default
|
|
27
|
+
selection:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"lint": {
|
|
32
|
+
"scopes": ["apps/api", "apps/web", "packages/core"],
|
|
33
|
+
"exclude": ["apps/api/fixtures/embedded/**", "examples/demo/**"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
| Setting or layout | Meaning |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| Missing `lint` or `lint.scopes` | Selection is required; do not infer an empty list or recursive enrollment. |
|
|
41
|
+
| `"scopes": []` | Intentionally no managed JavaScript/TypeScript ownership; existing Python/Ruff routing remains independent. |
|
|
42
|
+
| Omitted `lint.exclude` | Empty exclusion list; hard boundaries still apply. |
|
|
43
|
+
| `"scopes": ["."]` | Root application explicitly owns eligible root software. Root tooling dependencies alone do not justify this choice. |
|
|
44
|
+
| `"scopes": ["app/backend/core"]` | Exact custom package root; execution is not limited to conventional layouts. |
|
|
45
|
+
| No root `package.json` | Select supported nested packages; do not create a root package just to qualify. |
|
|
46
|
+
|
|
47
|
+
Use normalized paths with deterministic ordering and deduplication. Absolute or
|
|
48
|
+
escaping paths, unresolved manifest roots, and canonical aliases that escape or
|
|
49
|
+
duplicate an owner are invalid.
|
|
50
|
+
|
|
51
|
+
`wiki`, `app/wiki`, and `apps/wiki`, including descendants, are hard exclusions.
|
|
52
|
+
Selecting one is invalid even when a workspace declaration includes it. Save
|
|
53
|
+
other documentation and embedded project exclusions explicitly. An unselected
|
|
54
|
+
nested package/project boundary is outside its ancestor's source ownership;
|
|
55
|
+
enumerating boundaries for exclusion does not enroll or analyze those projects.
|
|
56
|
+
Ordinary `test`, `tests`, `.test`, and `.spec` source stays eligible. A directory
|
|
57
|
+
name containing `wiki` or `test` is not by itself a universal exclusion.
|
|
58
|
+
|
|
59
|
+
Each eligible file belongs to the most-specific selected owner once. A selected
|
|
60
|
+
`.` excludes nested boundaries and more-specific owners; an unselected root only
|
|
61
|
+
dispatches. Persistent exclusions win over selections and rule overrides. New
|
|
62
|
+
source within an owner is covered; new packages require deliberate selection.
|
|
63
|
+
|
|
64
|
+
## Preserve Project Lint Policy
|
|
65
|
+
|
|
66
|
+
Inventory existing configs, explicit script config arguments, parent policy,
|
|
67
|
+
renamed shared inputs such as `oxlint.base.json`, and transitive `extends`.
|
|
68
|
+
Retain compatible authored JSON/JSONC at its original project-owned path and
|
|
69
|
+
compose it as an explicit input. `oxlint.project.json` is the convention for
|
|
70
|
+
**new** policy, not a mandatory rename or a generated copy of existing policy.
|
|
71
|
+
|
|
72
|
+
One `<scope>/oxlint.config.ts` is the owner's effective execution target. It
|
|
73
|
+
composes applicable Harness defaults and local framework assets, then deliberate
|
|
74
|
+
project choices. The resulting rules, settings, exclusions, and failure semantics
|
|
75
|
+
are the Effective Lint Policy. Shared policy remains reusable input. Preserve severities and
|
|
76
|
+
options, categories, overrides, ignores, environments, globals, plugin/settings
|
|
77
|
+
references, and applicable typed settings throughout the inherited chain.
|
|
78
|
+
Relative extends, globs, and plugin paths must retain their meaning; copying
|
|
79
|
+
bytes to a new directory is insufficient. Preview added defaults and semantic
|
|
80
|
+
differences. Preserve opaque/dynamic policy and report a migration conflict when
|
|
81
|
+
composition cannot be verified safely.
|
|
82
|
+
|
|
83
|
+
Framework lint needs owner-local evidence: manifest, source usage, framework/test
|
|
84
|
+
config, or an explicit command relationship to shared tooling. Root installation,
|
|
85
|
+
hoisted/transitive dependencies, a frontend-like name, and broad agent guidance
|
|
86
|
+
packs do not authorize execution. React email use may justify React without
|
|
87
|
+
Next/TanStack; Jest does not establish Vitest. Keep reasons in derived selection
|
|
88
|
+
evidence, not a second settings registry.
|
|
89
|
+
|
|
90
|
+
## Verify Lint Routes
|
|
91
|
+
|
|
92
|
+
Read the affected derived routes in `.devpunks/specs/lint/selection.json` alongside the
|
|
93
|
+
command's evidence. Each Lint Route binds owner, cwd, explicit effective config,
|
|
94
|
+
project-local supported tool/version, exclusions, and failure threshold.
|
|
95
|
+
Regenerate through normal reconciliation; do not hand-author these routes.
|
|
96
|
+
|
|
97
|
+
Package scripts, root dispatch, CI invoking those scripts, Lefthook, edited-file
|
|
98
|
+
verification, and update validation must consume the same route. Managed Oxlint
|
|
99
|
+
uses the explicit config with nested discovery disabled. Root dispatch adds no
|
|
100
|
+
second `.` or recursive lint pass. Resolve tool failures in the named local
|
|
101
|
+
context; never substitute a global or freshly downloaded latest binary.
|
|
102
|
+
|
|
103
|
+
Compare verification on identical bytes, file sets, toolchain, and check mode.
|
|
104
|
+
Edited-file formatting and safe fixes can change bytes, so compare the subsequent
|
|
105
|
+
verification stage. Diagnostic severity and failure threshold are separate:
|
|
106
|
+
new generated lint retains `--max-warnings 0`; represented project thresholds
|
|
107
|
+
must agree across routes. An unrepresentable threshold is a migration conflict.
|
|
108
|
+
Keep precommit format checks read-only and edited-file safety/retry limits intact.
|
|
109
|
+
|
|
110
|
+
Apply exclusions before coverage or empty-work detection. Excluded-only changes
|
|
111
|
+
run no managed lint or formatter; mixed changes check eligible work once per
|
|
112
|
+
owner and check kind. Renames affect both endpoints; deletion checks use the
|
|
113
|
+
owner without passing nonexistent files. Shared settings, policy, routing, and
|
|
114
|
+
toolchain inputs trigger their dependent owners even outside owned source.
|
|
115
|
+
Existing Python tooling keeps its own routing while honoring shared exclusions.
|
|
116
|
+
|
|
117
|
+
## Reconcile Lint Adoption
|
|
118
|
+
|
|
119
|
+
1. Preview selected scopes/exclusions, preserved policy inputs, effective configs,
|
|
120
|
+
scripts/hooks, dependency changes, and proposed retirements together. Inventory
|
|
121
|
+
known lint/check aliases, repository checks, and CI commands. Keep compatible
|
|
122
|
+
custom commands only when their canonical route and threshold are verified;
|
|
123
|
+
preserve incompatible or opaque commands and report the exact conflict.
|
|
124
|
+
2. Validate the complete isolated candidate through the route intended for live
|
|
125
|
+
use. Configuration, local-tool, process, authority, containment, or incomplete
|
|
126
|
+
candidate failures block dependent activation. Source lint findings remain
|
|
127
|
+
preview findings; they neither prove broken configuration nor authorize bulk
|
|
128
|
+
autofixes. Independent completed work retains its own truthful receipt.
|
|
129
|
+
3. Apply through normal scaffold/update reconciliation and recovery. Retire only
|
|
130
|
+
receipt-owned, unmodified obsolete assets or owned script fragments after
|
|
131
|
+
verifying preserved project policy. Exclusion alone never authorizes deletion.
|
|
132
|
+
Keep modified and unowned policy intact. Preserve `commitGate: "disabled"`,
|
|
133
|
+
consumer hooks, and other hook-manager coexistence decisions.
|
|
134
|
+
4. Run affected validation and a fresh read-only `hi check --json`. Record actual
|
|
135
|
+
adoption and remaining conflicts; candidate success or planned writes alone
|
|
136
|
+
are insufficient. Check repeat reconciliation for recreated wiki/fixture lint
|
|
137
|
+
output. Follow the bounded update retry rule in
|
|
138
|
+
[post-command-flow.md](post-command-flow.md#update).
|
|
139
|
+
|
|
140
|
+
Proof depends on scopes/exclusions, routes, transitive policy, generated configs,
|
|
141
|
+
presets/plugins, lockfile/toolchain, and relevant source/typed/runtime inputs.
|
|
142
|
+
Changed inputs invalidate affected proof. Installation reuse does not establish
|
|
143
|
+
validation reuse; incomplete reuse identity requires fresh validation.
|
|
144
|
+
|
|
145
|
+
## Interpret the result
|
|
146
|
+
|
|
147
|
+
| State | Next action |
|
|
148
|
+
| --- | --- |
|
|
149
|
+
| Missing selection | Inventory candidates and save the deliberate scopes/exclusions; dependent lint activation stays pending. |
|
|
150
|
+
| Invalid/moved owner or stale route | Correct the named settings/path issue and reconcile derived output; preserve unsupported content. |
|
|
151
|
+
| Intentional exclusion or no eligible work | Report the excluded path or empty work; this is not proof of repository-wide cleanliness. |
|
|
152
|
+
| Explicit `lint.scopes: []` | Report disabled JavaScript/TypeScript ownership; preserve independent Python/Ruff routing. |
|
|
153
|
+
| Stale Project Lint Policy | Retain the changed input paths; use normal reconciliation to recompile before route execution. Do not edit derived hashes or revert policy merely to pass. |
|
|
154
|
+
| Lint findings | Retain file/rule/severity/location and threshold; repair only authorized source targets. Preview findings do not mean adoption failed operationally. |
|
|
155
|
+
| Config/tool/process failure | Report exact owner, cwd, config, tool/version, command, and diagnostics; repair that boundary before dependent adoption. |
|
|
156
|
+
| Command/policy/ownership conflict | Preserve the named command or file, explain competing authority, and resolve only the outstanding decision within existing authorization. |
|
|
157
|
+
| Healthy routes | Report the observed health scope. Matching installed baseline identity alone is insufficient, and lightweight health is not full lint proof. |
|
|
158
|
+
|
|
159
|
+
`hi check` stays read-only: report the smallest next action and affected paths.
|
|
160
|
+
Run mutations only within the user's authorization. Keep actual diagnostics and
|
|
161
|
+
execution context so the next agent can continue without guessing configs.
|
|
162
|
+
|
|
163
|
+
For a process failure, retain the original exit status, signal, and bounded stdout/stderr alongside the route context. A recognized empty-source JSON report is empty work; malformed output, output overflow, and config/tool failures require repair before dependent adoption.
|
|
164
|
+
|
|
165
|
+
In rootless repositories, assess lint-route health separately from outstanding prompt-authoring findings. A valid selected nested owner does not erase another incomplete scaffold obligation.
|
|
@@ -10,9 +10,11 @@ Existing `.devpunks/` artifacts describe project state. Read an artifact only wh
|
|
|
10
10
|
|
|
11
11
|
### Init
|
|
12
12
|
|
|
13
|
-
- inspect the generated docs-onboarding
|
|
14
|
-
-
|
|
15
|
-
-
|
|
13
|
+
- inspect the generated docs-onboarding and requirements/backlog/spec skills
|
|
14
|
+
- complete the [existing wiki structure check](wiki-structure.md)
|
|
15
|
+
- when the check reports `pass` for an existing wiki root, activate `$docs-onboarding` against that root
|
|
16
|
+
- when the check reports `not-applicable`, defer onboarding and hand off project-owned wiki creation or selection; resume onboarding after an authorized setup produces an existing wiki that passes the check
|
|
17
|
+
- when the check reports `fail` or a blocker, report the required correction before onboarding can proceed
|
|
16
18
|
- reconcile pre-existing skills only when the command reports relevant evidence
|
|
17
19
|
- do not start requirements discovery unless the user asks for it
|
|
18
20
|
- run `hi scaffold` only when the repository is ready for repo-aware setup
|
|
@@ -46,7 +48,9 @@ Then:
|
|
|
46
48
|
- keep root `AGENTS.md` table-free; phase wrappers remain global orchestration
|
|
47
49
|
entrypoints and are excluded from scoped tables
|
|
48
50
|
- always link `opensrc/README.md` from scoped prompts and read it when work depends on third-party library behavior
|
|
49
|
-
- reconcile only the generated skills, prompts, lint, hooks, scripts, subagents,
|
|
51
|
+
- reconcile only the generated skills, prompts, lint, hooks, scripts, subagents, and tools in scope
|
|
52
|
+
- complete the [existing wiki structure check](wiki-structure.md)
|
|
53
|
+
- for lint output, complete [managed lint selection and adoption](managed-lint.md); saved owners and verified routes are the completion evidence
|
|
50
54
|
- preserve repo-owned edits and ask before changing project policy
|
|
51
55
|
- run targeted validation for the outputs reconciled
|
|
52
56
|
|
|
@@ -54,7 +58,7 @@ Do not stop merely because generated files exist.
|
|
|
54
58
|
|
|
55
59
|
### Check
|
|
56
60
|
|
|
57
|
-
Read the current summary
|
|
61
|
+
Read the current summary. Report CLI, baseline, managed-file, settings, pack, tool, or managed lint route drift without writing. For lint selection, policy, or command conflicts, follow [result interpretation](managed-lint.md#interpret-the-result) and retain the named owner, paths, and execution context.
|
|
58
62
|
|
|
59
63
|
A clean result is complete. If drift exists, name the matching `hi update`, `hi ensure`, `hi tools ensure`, or `hi upgrade` action without running a mutation unless authorized.
|
|
60
64
|
|
|
@@ -62,7 +66,7 @@ A clean result is complete. If drift exists, name the matching `hi update`, `hi
|
|
|
62
66
|
|
|
63
67
|
### Ensure
|
|
64
68
|
|
|
65
|
-
Verify
|
|
69
|
+
Verify the repository manager, backlog provider, asset provider, backlog project URL, and resulting settings summary. When managed lint ownership is in scope, confirm the exact `lint.scopes` and `lint.exclude` arrays using [scope selection](managed-lint.md#select-software-scopes). Saving settings is not evidence that dependent lint routes have been adopted.
|
|
66
70
|
|
|
67
71
|
Do not inspect or mutate external tools. A settings failure is complete when its exact validation or write blocker is reported.
|
|
68
72
|
|
|
@@ -70,23 +74,23 @@ Do not inspect or mutate external tools. A settings failure is complete when its
|
|
|
70
74
|
|
|
71
75
|
Apply [Project Verifier preservation](#project-verifier-preservation) before reconciliation.
|
|
72
76
|
|
|
73
|
-
Read the command summary before any generated artifact. If it reports no diff, report
|
|
77
|
+
Read the command summary before any generated artifact. If it reports no diff and no unresolved health or adoption finding, report that result and stop. A matching baseline pin or empty changed-file list alone does not prove live route health.
|
|
74
78
|
|
|
75
79
|
For a diff, inspect only paths changed or flagged by this run. Apply every matching row:
|
|
76
80
|
|
|
77
81
|
| Changed category | Required follow-through |
|
|
78
82
|
| --- | --- |
|
|
79
|
-
| Settings or manifest pins only | Confirm accepted pins. |
|
|
83
|
+
| Settings or manifest pins only | Confirm accepted pins; changed lint settings require scope/route reconciliation in [managed-lint.md](managed-lint.md). |
|
|
80
84
|
| Skill content; IDs unchanged | Inspect affected skills and active mirrors only. |
|
|
81
85
|
| Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
|
|
82
86
|
| `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
|
|
83
87
|
| Missing or stale path | Confirm the named recreation or deletion and direct references. |
|
|
84
88
|
| Prompt or Rule Registry input | Activate `$writing-for-agents`, then `$rule-authoring`; reconcile only affected scopes and mirrors. |
|
|
85
89
|
| Subagent input | Reconcile only generated and final subagent manifests. |
|
|
86
|
-
| Lint, hook, or script input |
|
|
90
|
+
| Lint, hook, or script input | Follow [managed lint adoption](managed-lint.md#reconcile-lint-adoption); validate affected routes and preserve accepted project policy. |
|
|
87
91
|
| Required tools | Check only added, changed, or failed tools. |
|
|
88
92
|
| Source-guide content | Inspect only affected guide files. |
|
|
89
|
-
| Wiki
|
|
93
|
+
| Wiki guidance, routes, content schema, source documents, or sync inputs | Complete the [existing wiki structure check](wiki-structure.md) for the affected paths and their routed copies. |
|
|
90
94
|
| Default or detected pack addition | Follow only categories changed by that addition. |
|
|
91
95
|
| Optional/removal/policy/surface decision | Ask for the unresolved decision. |
|
|
92
96
|
| First adoption or missing final output | Run applicable scaffold follow-through. |
|
|
@@ -145,7 +149,7 @@ Before completing reconciliation, compare existing project-owned paths and bytes
|
|
|
145
149
|
|
|
146
150
|
## 3. Complete the Branch
|
|
147
151
|
|
|
148
|
-
- init: generated
|
|
152
|
+
- init: generated skills and existing wiki check are reported; onboarding runs only after a passing check, otherwise the wiki setup or correction handoff is clear
|
|
149
153
|
- scaffold: applicable generated instructions are reconciled, targeted validation ran, and unresolved policy choices are named
|
|
150
154
|
- check: current drift is reported without writes
|
|
151
155
|
- ensure: settings were reconfigured or the exact blocker is reported
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Existing Wiki Structure Check
|
|
2
|
+
|
|
3
|
+
Run after `hi init` and `hi scaffold`. After `hi update`, run when changed or flagged paths affect wiki guidance, routes, content schema, canonical source documents, or content synchronization. Limit update checks to those paths and their routed copies.
|
|
4
|
+
|
|
5
|
+
1. Resolve the existing wiki root from project guidance and the repository. If no wiki exists, report `not-applicable`; creating a wiki is separate project work.
|
|
6
|
+
2. Read the nearest `AGENTS.md`, matching Rule Registry entries, and the project's docs/wiki runbook. Use its current content configuration and sync script to resolve source ownership. These project standards define the expected structure; a baseline template does not.
|
|
7
|
+
3. Check the applicable standards:
|
|
8
|
+
- routed pages belong to the project's accepted article tree and navigation metadata;
|
|
9
|
+
- pages have schema-valid frontmatter and resolved links;
|
|
10
|
+
- source specifications, raw inputs, and ingest bookkeeping use their declared locations;
|
|
11
|
+
- canonical documentation and generated wiki copies have clear ownership and remain synchronized;
|
|
12
|
+
- deliberate project/domain routes and authored content remain intact.
|
|
13
|
+
4. Run the project's documented checks for content, links, navigation, and source synchronization. Use a check or dry-run mode for sync scripts. Inspect the proposed diff for loss of durable pages before any separately authorized synchronization.
|
|
14
|
+
5. Report `pass`, `fail`, or `not-applicable`, the wiki root, standards consulted, commands and results, and each concrete mismatch with its path and required correction. If a required check cannot run, report the exact blocker; do not call the structure verified.
|
|
15
|
+
|
|
16
|
+
This handoff inspects project-owned wiki structure. Preserve its files, route decisions, and framework configuration unless the current task already authorizes a specific repair. CLI scaffold/update ownership does not extend to wiki creation, replacement, or cleanup.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: docs-onboarding
|
|
3
|
-
description: Onboard an existing project into
|
|
3
|
+
description: Onboard an existing project into the scaffolded Harness wiki by inspecting code, docs and backlog, closing reconstruction decisions, then compiling architecture/spec pairs through requirements-phase. Use after hi init or when initial wiki/spec context must be reconstructed.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Docs Onboarding
|
|
@@ -14,8 +14,9 @@ routed `requirements-grill` status artifact. Preserve its canonical terms;
|
|
|
14
14
|
route proposed terminology changes through `requirements-grill` instead of
|
|
15
15
|
silently renaming them.
|
|
16
16
|
|
|
17
|
-
1. Read repo guidance and the
|
|
18
|
-
2. Read
|
|
17
|
+
1. Read repo guidance and the existing project-owned wiki guidance.
|
|
18
|
+
2. Read any existing backlog provider and wiki framework decisions. Resolve
|
|
19
|
+
their locations from project guidance; `hi init` does not generate those files.
|
|
19
20
|
3. Discover backlog context:
|
|
20
21
|
- Probe the pinned remote backlog provider first when connector/tool/auth access exists.
|
|
21
22
|
- Inspect local backlog clues after that: existing specs, issue matrices, backlog markdown, project docs, and `.devpunks` metadata.
|
|
@@ -28,16 +29,17 @@ silently renaming them.
|
|
|
28
29
|
Product/Backlog Root, Product Areas, Initiatives, `V*` context, and saved
|
|
29
30
|
views from accepted wiki and provider evidence.
|
|
30
31
|
7. For every candidate existing flow accepted by the onboarding grill, invoke
|
|
31
|
-
`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
`requirements-phase` with its confirmed status/log and Project Map evidence.
|
|
33
|
+
Require `create-architecture` before `create-spec`, then record the retained
|
|
34
|
+
pair and its readiness result. Pass the onboarding projection boundary:
|
|
35
|
+
an agent-ready spec and its mapped architecture may reach `write-backlog`
|
|
36
|
+
only when reconstructed evidence already supplies the exact existing Epic/Story
|
|
37
|
+
and accepted projection authority required by that branch. Otherwise record
|
|
38
|
+
the missing authority and exact human Finder invocation; retain the compiled
|
|
39
|
+
pair and return a blocked backlog delta without provider mutation. Onboarding
|
|
40
|
+
never invokes a Finder implicitly and does not create higher-level placement.
|
|
41
|
+
8. Update onboarding navigation and indexes using
|
|
42
|
+
[references/artifact-contract.md](references/artifact-contract.md).
|
|
41
43
|
|
|
42
44
|
## Discovery Depth
|
|
43
45
|
|
|
@@ -47,9 +49,12 @@ Do not deep-read every implementation file by default. Deep-read implementation
|
|
|
47
49
|
|
|
48
50
|
## Targeted Grill
|
|
49
51
|
|
|
50
|
-
Grill contradictions, missing backlog location, unclear feature ownership
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
Grill contradictions, missing backlog location, unclear feature ownership and
|
|
53
|
+
inferred requirements before either compiler runs. Observed code-only facts may
|
|
54
|
+
remain `Inferred` in the Project Map as evidence; they become accepted requirements
|
|
55
|
+
or design choices only through confirmed intent and the recorded grill decisions.
|
|
56
|
+
Pass unresolved material decisions back to `requirements-phase`; an inferred
|
|
57
|
+
current implementation is not permission to choose architecture or requirements.
|
|
53
58
|
|
|
54
59
|
## Resumability
|
|
55
60
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Docs Onboarding"
|
|
3
3
|
short_description: "Reconstruct project wiki/spec context"
|
|
4
|
-
default_prompt: "Use $docs-onboarding to inspect code, docs, and backlog context, build the Project Map, close the targeted requirements grill,
|
|
4
|
+
default_prompt: "Use $docs-onboarding to inspect code, docs, and backlog context, build the Project Map, close the targeted requirements grill, pass confirmed sources through requirements-phase for create-architecture then create-spec, then project written specs with write-backlog within accepted onboarding placement authority."
|
|
@@ -46,7 +46,7 @@ The targeted grill can close when every blocking contradiction, missing backlog
|
|
|
46
46
|
|
|
47
47
|
Do not grill every low-risk current-state fact. Carry those into the reconstruction record as `Inferred`, but do not claim agent readiness while a required product decision remains inferred.
|
|
48
48
|
|
|
49
|
-
## Reconstructed
|
|
49
|
+
## Reconstructed Architecture/SPEC Pairs
|
|
50
50
|
|
|
51
51
|
Group reconstructed specs:
|
|
52
52
|
|
|
@@ -64,6 +64,18 @@ Evidence levels:
|
|
|
64
64
|
- `Contradicted`: source evidence conflicts and needs resolution before the spec can be trusted.
|
|
65
65
|
- `Missing`: expected context was not found, and the spec must ask a follow-up.
|
|
66
66
|
|
|
67
|
-
Reconstructed
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
Reconstructed architecture/spec pairs must link back to relevant Project Map sections and onboarding grill decisions.
|
|
68
|
+
|
|
69
|
+
Pass confirmed candidates to `requirements-phase`, which compiles architecture
|
|
70
|
+
before spec and completes the canonical spec-to-architecture-to-question mapping.
|
|
71
|
+
Retain both immutable artifact URLs, the final architecture identity in the spec,
|
|
72
|
+
and links to the relevant Project Map evidence and exact grill question entries.
|
|
73
|
+
`Inferred` facts remain attributed evidence, not accepted design or requirements.
|
|
74
|
+
`Contradicted` or `Missing` material inputs block compilation until resolved.
|
|
75
|
+
|
|
76
|
+
Only specs that pass `create-spec` readiness, resolve their complete architecture
|
|
77
|
+
mapping and return a verified stable blob URL may be projected by `write-backlog`,
|
|
78
|
+
within onboarding's existing placement authority. Missing authority blocks only
|
|
79
|
+
projection; retain the compiled pair and name the exact human Finder invocation.
|
|
80
|
+
An `architecture-not-ready` or `spec-not-ready` result returns its named gaps to
|
|
81
|
+
onboarding; it produces neither partial canonical artifacts nor backlog mutations.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-architecture
|
|
3
|
+
description: Compile closed requirements-grill decisions into ARCHITECTURE.md before create-spec. Use for a new delivery or to refresh architecture after its sources change.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Create Architecture
|
|
7
|
+
|
|
8
|
+
Compile a source-attributed explanation of the whole system. Every delivery
|
|
9
|
+
needs this artifact. The flow is `requirements-grill -> create-architecture ->
|
|
10
|
+
create-spec -> write-backlog`; `SPEC.md` need not exist to run this compiler.
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
1. Read [artifact-contract.md](references/artifact-contract.md) for source
|
|
15
|
+
readiness, authority, freshness, retention, and handoff. Read the grill status
|
|
16
|
+
first, then the durable log. Reconcile stable question IDs, explicit
|
|
17
|
+
supersession, and the current glossary. Read referenced evidence and routed
|
|
18
|
+
learnings needed to establish the accepted scope. Stop with the contract's
|
|
19
|
+
atomic `architecture-not-ready` result when material inputs are unresolved.
|
|
20
|
+
2. Resolve the planning surface and capability folder through
|
|
21
|
+
[create-spec's folder-naming.md](../create-spec/references/folder-naming.md).
|
|
22
|
+
Use `ARCHITECTURE.md` in that folder, applying the same identity and collision
|
|
23
|
+
rules. Reserve the future sibling `SPEC.md` path without requiring or
|
|
24
|
+
fabricating the file. Reuse an existing artifact only for the same capability.
|
|
25
|
+
3. Resolve and invoke the installed `$brainstorm` skill on the accepted
|
|
26
|
+
bounded flow from the operating agent's perspective. Trace intake, state,
|
|
27
|
+
control, feedback, recovery, and handoff across linked abstraction levels.
|
|
28
|
+
Account for every lens in its **Flow failure lenses** with evidence, an
|
|
29
|
+
explicit unknown, or a justified not-applicable result. Its suggestions remain
|
|
30
|
+
candidates. Route material gaps through the contract; compilation cannot
|
|
31
|
+
accept a new mechanism or guarantee.
|
|
32
|
+
4. Compile a complete candidate using
|
|
33
|
+
[ARCHITECTURE-TEMPLATE.md](assets/ARCHITECTURE-TEMPLATE.md). Start with actors,
|
|
34
|
+
purpose, capability boundary, and canonical terms. Connect owners,
|
|
35
|
+
authoritative state, entrypoints, critical flows, interfaces, dependencies,
|
|
36
|
+
recovery, and observable completion across levels. Preserve every accepted
|
|
37
|
+
detail through the contract's decision coverage. Assign stable block and flow
|
|
38
|
+
selectors under its **Spec traceability** rules; preserve exact grill entry
|
|
39
|
+
anchors. Before SPEC exists, leave spec-code mapping explicitly pending.
|
|
40
|
+
Explain how each low-level choice supports a system constraint; keep unknowns
|
|
41
|
+
and parked work visible.
|
|
42
|
+
5. Resolve and invoke the installed `$show-me` skill to put the smallest useful
|
|
43
|
+
views **inside the document**: a system map and applicable flow, state, or
|
|
44
|
+
sequence views, each answering a distinct question. Use Mermaid for component,
|
|
45
|
+
data, and control relationships; use pseudocode or shallow call/file trees
|
|
46
|
+
when clearer. Place a short causal conclusion and question/evidence anchors
|
|
47
|
+
beside each view. Preserve source labels, uncertainty, ownership, and order.
|
|
48
|
+
Write context before detail in ASD-STE100 Simplified Technical English, keeping
|
|
49
|
+
exact accepted glossary terms and technical identifiers.
|
|
50
|
+
6. Check the complete candidate against the contract before replacing the
|
|
51
|
+
canonical artifact. Resolve relative links and selectors, cover every accepted
|
|
52
|
+
detail, and check each visual against its sources. Validate Mermaid with an available
|
|
53
|
+
parser or renderer; record what ran and any unavailable check. A syntax defect
|
|
54
|
+
needs correction; unavailable rendering must remain a stated limitation.
|
|
55
|
+
Remove template instructions and empty optional sections.
|
|
56
|
+
7. Save the complete artifact and apply
|
|
57
|
+
[create-spec's wiki-bookkeeping.md](../create-spec/references/wiki-bookkeeping.md)
|
|
58
|
+
to this artifact: use the architecture title, `ARCHITECTURE.md` path, and
|
|
59
|
+
`Compiled` status in the existing planning indexes, applicable metadata, and
|
|
60
|
+
maintained log. Before a spec exists, record only the architecture link.
|
|
61
|
+
Preserve existing spec entries and unrelated work.
|
|
62
|
+
8. Follow the contract's path-limited retention and byte-verification procedure.
|
|
63
|
+
Return its handoff only after retention succeeds. `create-spec` consumes that
|
|
64
|
+
handoff next and completes spec-code mapping under the same contract before
|
|
65
|
+
retaining the final pair. This skill performs no backlog/provider writes.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "[Title]"
|
|
3
|
+
domain: "[Domain]"
|
|
4
|
+
type: architecture
|
|
5
|
+
status: compiled
|
|
6
|
+
readiness: agent-ready
|
|
7
|
+
links: []
|
|
8
|
+
created: YYYY-MM-DD
|
|
9
|
+
updated: YYYY-MM-DD
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Architecture: [Title]
|
|
13
|
+
|
|
14
|
+
<!-- Fill under ../references/artifact-contract.md. Remove instructions and
|
|
15
|
+
unused optional rows/sections. Keep source, disposition, coverage, and validation
|
|
16
|
+
records. Frontmatter is compiler state; retention proof belongs in the handoff. -->
|
|
17
|
+
|
|
18
|
+
## Context and Scope
|
|
19
|
+
|
|
20
|
+
- Capability identity: [Resolved folder and accepted capability boundary]
|
|
21
|
+
- Actors and outcome: [Who needs what, and why]
|
|
22
|
+
- In scope / non-goals: [Accepted boundaries and constraints; source Q anchors]
|
|
23
|
+
- Spec: [Sibling path; link only if its target exists in the retained tree]
|
|
24
|
+
|
|
25
|
+
## Canonical Terms
|
|
26
|
+
|
|
27
|
+
[Exact accepted terms, definitions, relationships, and axioms used below.
|
|
28
|
+
Link the current glossary and its question anchors.]
|
|
29
|
+
|
|
30
|
+
## Sources
|
|
31
|
+
|
|
32
|
+
| Source | Role | Exact location and anchor | Immutable revision or content hash |
|
|
33
|
+
| --- | --- | --- | --- |
|
|
34
|
+
| S1 | Grill status and closure | [Path; current round/branch anchors] | [Identity] |
|
|
35
|
+
| S2 | Durable grill log | [Path; Q entry anchors] | [Identity] |
|
|
36
|
+
| S3 | Current glossary | [Status glossary or separate path/anchor] | [Identity] |
|
|
37
|
+
| S4 | Referenced evidence | [Path:symbol or URL/anchor; current behavior or accepted design] | [Identity] |
|
|
38
|
+
|
|
39
|
+
## Source Disposition
|
|
40
|
+
|
|
41
|
+
| Question / entry | Disposition | Accepted detail, replacement, or unresolved point | Evidence | Parked owner / resume trigger |
|
|
42
|
+
| --- | --- | --- | --- | --- |
|
|
43
|
+
| [Q ID + entry anchor] | [accepted / superseded / parked / unknown] | [Exact source claim; superseding entry if any] | [S ID + anchor] | [When parked] |
|
|
44
|
+
|
|
45
|
+
## Whole System
|
|
46
|
+
|
|
47
|
+
[Explain how actors, entrypoints, components, owners, and authoritative state
|
|
48
|
+
connect. Place a source-labelled system map here. Show accepted design and
|
|
49
|
+
observed current behavior distinctly; mark unknowns.]
|
|
50
|
+
|
|
51
|
+
[Beside the map: question/evidence anchors and a short causal conclusion.]
|
|
52
|
+
|
|
53
|
+
| Block selector / component / level | Owner | State and authority | Interface / dependency | Supported constraint and source |
|
|
54
|
+
| --- | --- | --- | --- | --- |
|
|
55
|
+
| [ARC code + explicit anchor; name] | [Owner] | [Authority and mutation rights] | [Exact accepted boundary] | [Constraint; Q/evidence] |
|
|
56
|
+
|
|
57
|
+
## Critical Flows and Boundaries
|
|
58
|
+
|
|
59
|
+
[Assign stable FLOW codes and addressed STEP codes with explicit anchors. Show
|
|
60
|
+
those selectors beside the represented steps. Connect system intent to concrete
|
|
61
|
+
calls, state changes, and implementation choices. Use applicable flow/state/sequence views or pseudocode/call/file trees;
|
|
62
|
+
each must answer a different question. Preserve accepted order, branches, waits,
|
|
63
|
+
transaction/side-effect boundaries, recovery, and observable completion.]
|
|
64
|
+
|
|
65
|
+
[Beside each view: question/evidence anchors and a causal plain-language
|
|
66
|
+
conclusion. Include accepted dependency/lifecycle constraints where they apply.]
|
|
67
|
+
|
|
68
|
+
## Accepted Detail Coverage
|
|
69
|
+
|
|
70
|
+
| Question + exact entry/evidence anchor | Exact accepted choice and supplied detail | Provided rationale / alternatives | Architecture selector + applicable visual | System constraint served |
|
|
71
|
+
| --- | --- | --- | --- | --- |
|
|
72
|
+
| [Q; exact accepted log entry; S:anchor] | [Library/version, helper/API/path, algorithm/config/protocol, order/limit as supplied] | [Provided text or not recorded] | [ARC / FLOW-STEP / optional DEC selector] | [Why this matters across levels] |
|
|
73
|
+
|
|
74
|
+
## Spec Traceability
|
|
75
|
+
|
|
76
|
+
- State: [pending-spec-ids before SPEC; complete only after every current OUT/AC
|
|
77
|
+
has a validated mapping under the artifact contract]
|
|
78
|
+
|
|
79
|
+
[Before SPEC exists, keep selectors and Q evidence ready and record that spec
|
|
80
|
+
codes are pending. When create-spec drafts real codes, it replaces this notice
|
|
81
|
+
with the completed mapping. Codes and section selectors are lookup keys; link
|
|
82
|
+
only to targets present in the retained tree. Pair URLs belong in the handoff.]
|
|
83
|
+
|
|
84
|
+
| Spec code / section selector | Architecture selectors | Accepted grill Q / exact log-entry and evidence anchors | Coverage explanation |
|
|
85
|
+
| --- | --- | --- | --- |
|
|
86
|
+
| [Real OUT or AC code; pending until assigned by create-spec] | [One or more ARC / FLOW-STEP / DEC links, or justified not applicable] | [Q; exact accepted entry; S:anchor] | [Constraint mapped, or reason no structural counterpart applies] |
|
|
87
|
+
|
|
88
|
+
### Retired or Superseded Selectors
|
|
89
|
+
|
|
90
|
+
| Selector | Disposition | Replacement / reason | Source |
|
|
91
|
+
| --- | --- | --- | --- |
|
|
92
|
+
| [Previously published architecture selector or spec mapping] | [retired / superseded] | [Replacement link or accepted removal] | [Q/evidence] |
|
|
93
|
+
|
|
94
|
+
## Flow Failure Coverage
|
|
95
|
+
|
|
96
|
+
[Use every exact lens label from brainstorm's Flow failure lenses; the list is
|
|
97
|
+
owned there. Reference accepted guarantees and their evidence.]
|
|
98
|
+
|
|
99
|
+
| Lens | Evidence / unknown / justified not applicable | Guarantee at stake | Material unresolved gap |
|
|
100
|
+
| --- | --- | --- | --- |
|
|
101
|
+
| [Canonical lens label] | [Q/evidence or explicit reason] | [Accepted constraint] | [None, or return architecture-not-ready] |
|
|
102
|
+
|
|
103
|
+
## Parked Work and Non-material Unknowns
|
|
104
|
+
|
|
105
|
+
| Question / source | Disposition and scope consequence | Owner / resume trigger | Why current guarantees remain closed |
|
|
106
|
+
| --- | --- | --- | --- |
|
|
107
|
+
| [Anchor] | [Parked work or unknown; candidates stay unaccepted] | [Required for parked work] | [Evidence-grounded reason] |
|
|
108
|
+
|
|
109
|
+
## Validation
|
|
110
|
+
|
|
111
|
+
- Decision/source/glossary reconciliation: [Evidence and result]
|
|
112
|
+
- Exact-detail and cross-level coverage: [Evidence and result]
|
|
113
|
+
- Relative links, selector targets, and visual source/order checks: [Result]
|
|
114
|
+
- Spec-code -> architecture -> grill coverage: [Complete OUT/AC coverage with
|
|
115
|
+
exact accepted entry anchors, or pending-spec-ids for initial compilation]
|
|
116
|
+
- Mermaid parsing/rendering: [Actual tool/result or explicit unavailable limit]
|
|
117
|
+
- Existing spec agreement: [Result, exact superseded constraints to refresh, or
|
|
118
|
+
absent: architecture precedes spec]
|
|
119
|
+
- Remaining limits: [Non-material unknowns or validation limits; no approval stamp]
|