@punks/cli 5.1.1 → 5.2.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/AGENTS.md +28 -10
- package/dist/BASELINE_CHANGELOG.md +19 -1
- package/dist/CHANGELOG.md +49 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -10
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +1 -1
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
- package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +408 -309
- 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 +206 -58
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +496 -29
- 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 +323 -0
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.test.ts +821 -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/data/scripts/sync-subagents-validator.test.ts +39 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +8 -2
- 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 +6 -7
- 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 +20 -19
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
- package/dist/baseline/scaffold-baseline/skills/phases/debugging-phase/SKILL.md +3 -4
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/debug.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/human-steering.md +25 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/context-continuity.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +9 -9
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/human-steering.md +25 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/return-route.md +6 -5
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/router.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +2 -1
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +3 -3
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/AGENTS.md +22 -5
- package/dist/data/hooks/format-edited-file.mjs +237 -325
- package/dist/data/scripts/commit-gate-runner.mjs +206 -58
- package/dist/data/scripts/managed-lint-runner.d.mts +55 -0
- package/dist/data/scripts/managed-lint-runner.mjs +323 -0
- package/dist/data/scripts/managed-lint.d.mts +97 -0
- package/dist/data/scripts/managed-lint.mjs +658 -0
- package/dist/data/scripts/sync-subagents.mjs +8 -2
- package/dist/index.js +131 -153
- package/dist/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
- package/dist/skills/agnostic/cli/hi-cli/references/commands.md +6 -7
- 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 +6 -5
- package/dist/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
- package/dist/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
- package/dist/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
- package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
- package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
- package/dist/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +1 -1
- package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
- package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
- package/dist/skills/phases/debugging-phase/SKILL.md +3 -4
- package/dist/skills/phases/delivery-phase/SKILL.md +2 -2
- package/dist/skills/phases/delivery-phase/phases/debug.md +2 -2
- package/dist/skills/phases/delivery-phase/phases/human-steering.md +25 -0
- package/dist/skills/phases/delivery-phase/phases/implement.md +2 -2
- package/dist/skills/phases/delivery-phase/phases/review.md +2 -2
- package/dist/skills/phases/delivery-phase/phases/router.md +3 -2
- package/dist/skills/phases/delivery-phase/references/context-continuity.md +1 -1
- package/dist/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
- package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +6 -6
- package/dist/skills/phases/finder-phase/SKILL.md +1 -1
- package/dist/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
- package/dist/skills/phases/finder-phase/phases/grilling.md +1 -1
- package/dist/skills/phases/finder-phase/phases/human-steering.md +25 -0
- package/dist/skills/phases/finder-phase/phases/prototype.md +1 -1
- package/dist/skills/phases/finder-phase/phases/reconcile.md +1 -1
- package/dist/skills/phases/finder-phase/phases/research.md +1 -1
- package/dist/skills/phases/finder-phase/phases/router.md +1 -1
- package/dist/skills/phases/finder-phase/references/state-graph.md +1 -1
- package/dist/skills/phases/review-phase/phases/return-route.md +6 -5
- package/dist/skills/phases/review-phase/phases/router.md +1 -1
- package/dist/skills/phases/review-phase/phases/run-review.md +2 -1
- package/dist/skills/phases/review-phase/references/state-graph.md +3 -3
- package/package.json +12 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/generic/handback/SKILL.md +0 -27
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/handback.md +0 -27
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +0 -29
- package/dist/skills/agnostic/generic/handback/SKILL.md +0 -27
- package/dist/skills/phases/delivery-phase/phases/handback.md +0 -27
- package/dist/skills/phases/finder-phase/phases/handback.md +0 -29
|
@@ -12,17 +12,17 @@ Activate `$docs-onboarding` after the command. Reconcile a generated wiki root w
|
|
|
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.
|
package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md
CHANGED
|
@@ -47,6 +47,7 @@ Then:
|
|
|
47
47
|
entrypoints and are excluded from scoped tables
|
|
48
48
|
- always link `opensrc/README.md` from scoped prompts and read it when work depends on third-party library behavior
|
|
49
49
|
- reconcile only the generated skills, prompts, lint, hooks, scripts, subagents, tools, and wiki assets in scope
|
|
50
|
+
- for lint output, complete [managed lint selection and adoption](managed-lint.md); saved owners and verified routes are the completion evidence
|
|
50
51
|
- preserve repo-owned edits and ask before changing project policy
|
|
51
52
|
- run targeted validation for the outputs reconciled
|
|
52
53
|
|
|
@@ -54,7 +55,7 @@ Do not stop merely because generated files exist.
|
|
|
54
55
|
|
|
55
56
|
### Check
|
|
56
57
|
|
|
57
|
-
Read the current summary
|
|
58
|
+
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
59
|
|
|
59
60
|
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
61
|
|
|
@@ -62,7 +63,7 @@ A clean result is complete. If drift exists, name the matching `hi update`, `hi
|
|
|
62
63
|
|
|
63
64
|
### Ensure
|
|
64
65
|
|
|
65
|
-
Verify
|
|
66
|
+
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
67
|
|
|
67
68
|
Do not inspect or mutate external tools. A settings failure is complete when its exact validation or write blocker is reported.
|
|
68
69
|
|
|
@@ -70,26 +71,26 @@ Do not inspect or mutate external tools. A settings failure is complete when its
|
|
|
70
71
|
|
|
71
72
|
Apply [Project Verifier preservation](#project-verifier-preservation) before reconciliation.
|
|
72
73
|
|
|
73
|
-
Read the command summary before any generated artifact. If it reports no diff, report
|
|
74
|
+
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
75
|
|
|
75
76
|
For a diff, inspect only paths changed or flagged by this run. Apply every matching row:
|
|
76
77
|
|
|
77
|
-
| Changed category | Required follow-through
|
|
78
|
-
| ---------------------------------------- |
|
|
79
|
-
| Settings or manifest pins only | Confirm accepted pins.
|
|
80
|
-
| Skill content; IDs unchanged | Inspect affected skills and active mirrors only.
|
|
81
|
-
| Skill added, removed, or renamed | Reconcile affected IDs and their mirrors.
|
|
82
|
-
| `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict.
|
|
83
|
-
| Missing or stale path | Confirm the named recreation or deletion and direct references.
|
|
84
|
-
| Prompt or Rule Registry input | Activate `$writing-for-agents`, then `$rule-authoring`; reconcile only affected scopes and mirrors.
|
|
85
|
-
| Subagent input | Reconcile only generated and final subagent manifests.
|
|
86
|
-
| Lint, hook, or script input |
|
|
87
|
-
| Required tools | Check only added, changed, or failed tools.
|
|
88
|
-
| Source-guide content | Inspect only affected guide files.
|
|
89
|
-
| Wiki input | Reconcile affected routes or documents, then validate them.
|
|
90
|
-
| Default or detected pack addition | Follow only categories changed by that addition.
|
|
91
|
-
| Optional/removal/policy/surface decision | Ask for the unresolved decision.
|
|
92
|
-
| First adoption or missing final output | Run applicable scaffold follow-through.
|
|
78
|
+
| Changed category | Required follow-through |
|
|
79
|
+
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
80
|
+
| Settings or manifest pins only | Confirm accepted pins; changed lint settings require scope/route reconciliation in [managed-lint.md](managed-lint.md). |
|
|
81
|
+
| Skill content; IDs unchanged | Inspect affected skills and active mirrors only. |
|
|
82
|
+
| Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
|
|
83
|
+
| `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
|
|
84
|
+
| Missing or stale path | Confirm the named recreation or deletion and direct references. |
|
|
85
|
+
| Prompt or Rule Registry input | Activate `$writing-for-agents`, then `$rule-authoring`; reconcile only affected scopes and mirrors. |
|
|
86
|
+
| Subagent input | Reconcile only generated and final subagent manifests. |
|
|
87
|
+
| Lint, hook, or script input | Follow [managed lint adoption](managed-lint.md#reconcile-lint-adoption); validate affected routes and preserve accepted project policy. |
|
|
88
|
+
| Required tools | Check only added, changed, or failed tools. |
|
|
89
|
+
| Source-guide content | Inspect only affected guide files. |
|
|
90
|
+
| Wiki input | Reconcile affected routes or documents, then validate them. |
|
|
91
|
+
| Default or detected pack addition | Follow only categories changed by that addition. |
|
|
92
|
+
| Optional/removal/policy/surface decision | Ask for the unresolved decision. |
|
|
93
|
+
| First adoption or missing final output | Run applicable scaffold follow-through. |
|
|
93
94
|
|
|
94
95
|
After write modes, run targeted validation and one fresh `hi check --json`. Rerun `hi update` once only when that check detects new CLI or baseline drift, then finish with one final `hi check --json`.
|
|
95
96
|
|
|
@@ -16,7 +16,7 @@ Select when target gates exist and their workflow-owned handoff schema, durable
|
|
|
16
16
|
- Keep route suggestions optional, advisory, and lowest authority.
|
|
17
17
|
- Require every declared completion, blocker, skip or no-op, and human-checkpoint exit to write a durable handoff when applicable.
|
|
18
18
|
- Require the [human steering terminal](../references/authoring-contract.md#human-steering-terminal)
|
|
19
|
-
to preserve the
|
|
19
|
+
to preserve the required decision and evidence for resuming.
|
|
20
20
|
|
|
21
21
|
## Checkable Completion State
|
|
22
22
|
|
|
@@ -19,7 +19,7 @@ Select when obligations are qualified and the evidence-defined state model, topo
|
|
|
19
19
|
- Every state has scope, entry guard, exit guard, and reachable next states.
|
|
20
20
|
- Every mandatory obligation is reachable and evidence-backed.
|
|
21
21
|
- Each topology form is represented or marked N/A.
|
|
22
|
-
- `human_steering_required`
|
|
22
|
+
- `human_steering_required` preserves the defined terminal and resumption conditions.
|
|
23
23
|
|
|
24
24
|
## Durable Phase Outcome
|
|
25
25
|
|
|
@@ -10,7 +10,7 @@ Select when disclosure passes and route predictions, derivations, or mismatch re
|
|
|
10
10
|
- Record each predicted route before applying the target contracts.
|
|
11
11
|
- Derive each route from current evidence, authority, guards, and precedence.
|
|
12
12
|
- Cover all ten scenarios: baseline path, branch path, repair cycle, planned
|
|
13
|
-
human checkpoint,
|
|
13
|
+
human checkpoint, human steering terminal, cold resume, stale or
|
|
14
14
|
out-of-scope or invalid artifact, contradictory suggested route losing to
|
|
15
15
|
evidence, narrower executor substitution with a stable actor-like gate
|
|
16
16
|
boundary, and premature completion rejected by the terminal guard.
|
|
@@ -21,8 +21,8 @@ Select when the target router exists and one or more executable target gates are
|
|
|
21
21
|
- Every executable gate has exactly one flat phase file.
|
|
22
22
|
- Every gate defines the normalized contract and emits only declared exits.
|
|
23
23
|
- Target root and references contain no executable gate body.
|
|
24
|
-
- Every applicable gate
|
|
25
|
-
|
|
24
|
+
- Every applicable gate records the terminal outcome and stops when its guard
|
|
25
|
+
selects human steering.
|
|
26
26
|
|
|
27
27
|
## Durable Phase Outcome
|
|
28
28
|
|
|
@@ -12,7 +12,7 @@ Select when bounds, state, and authority are complete while the target root boot
|
|
|
12
12
|
- Make cold resume independent of transcript continuity.
|
|
13
13
|
- Return exactly one selected gate, terminal, checkpoint, or blocked outcome for every legal state.
|
|
14
14
|
- Preserve the [human steering terminal](../references/authoring-contract.md#human-steering-terminal)
|
|
15
|
-
|
|
15
|
+
with its defined resumption conditions.
|
|
16
16
|
- Preserve the target's intentional invocation policy.
|
|
17
17
|
|
|
18
18
|
## Checkable Completion State
|
|
@@ -120,9 +120,9 @@ Completion criterion:
|
|
|
120
120
|
## Human Steering Terminal
|
|
121
121
|
|
|
122
122
|
Every graph includes `human_steering_required` as a terminal, non-success
|
|
123
|
-
state
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
state for actions beyond accepted scope or unresolved human decisions. The gate
|
|
124
|
+
records the blocker, evidence, proposed action, and required decision, then stops.
|
|
125
|
+
The router keeps returning the terminal until the user authorizes continuation.
|
|
126
126
|
|
|
127
127
|
## Gate Contract
|
|
128
128
|
|
|
@@ -194,7 +194,7 @@ Completion criterion:
|
|
|
194
194
|
| Branch path | | | | |
|
|
195
195
|
| Repair cycle | | | | |
|
|
196
196
|
| Human checkpoint | | | | |
|
|
197
|
-
|
|
|
197
|
+
| Human steering terminal | | | | |
|
|
198
198
|
| Cold resume | | | | |
|
|
199
199
|
| Stale, out-of-scope, or invalid artifact | | | | |
|
|
200
200
|
| Contradictory suggested route loses to evidence | | | | |
|
|
@@ -204,8 +204,8 @@ Completion criterion:
|
|
|
204
204
|
Completion criterion:
|
|
205
205
|
|
|
206
206
|
- all ten rows are filled with stale, out-of-scope, and invalid as subcases.
|
|
207
|
-
- the
|
|
208
|
-
|
|
207
|
+
- the human-steering row proves the terminal and resumption conditions defined
|
|
208
|
+
in [Human Steering Terminal](#human-steering-terminal); the planned human-checkpoint row remains distinct.
|
|
209
209
|
- repairs are present only when match is No.
|
|
210
210
|
|
|
211
211
|
## Final Audit
|
|
@@ -214,8 +214,8 @@ Completion criterion:
|
|
|
214
214
|
- Router and gates are deterministic under the authority table.
|
|
215
215
|
- Cold resume derives from current evidence, workflow-native artifacts, and committed handoffs.
|
|
216
216
|
- Every exit commits a durable handoff.
|
|
217
|
-
- `human_steering_required`
|
|
218
|
-
|
|
217
|
+
- `human_steering_required` records the outcome and preserves the
|
|
218
|
+
[terminal and resumption conditions](#human-steering-terminal).
|
|
219
219
|
- Terminal guard accounts for every mandatory obligation.
|
|
220
220
|
- The skill-protocol boundary is the set of written contracts and durable evidence.
|
|
221
221
|
- Markdown cannot enforce exclusive writers, execution ordering, or atomic persistence; require an external runtime only when one of those guarantees is a correctness requirement.
|
|
@@ -27,7 +27,7 @@ Use when:
|
|
|
27
27
|
focused tests for changed code. End this invocation without rerunning the
|
|
28
28
|
helper. A further direct pass requires formal `$review-phase` or a new
|
|
29
29
|
explicit user instruction after this result.
|
|
30
|
-
-
|
|
30
|
+
- Report repairs beyond accepted scope with the decision needed before proceeding.
|
|
31
31
|
- For security-audit suppression changes, verify accepted findings remain auditable: suppressed findings stay in structured output, active output keeps an unsuppressible suppression notice, and aggregate findings cannot hide unrelated active risk.
|
|
32
32
|
- Never switch or override the requested review engine/model. If the review hits model capacity, retry the same command a few times with the same engine/model.
|
|
33
33
|
- Be patient with large bundles. Structured review can take up to 30 minutes while the model call is active, especially with Codex tools or web search.
|
|
@@ -9,11 +9,11 @@ Build a risk-driven automated software test portfolio. `TSuite` means test suite
|
|
|
9
9
|
|
|
10
10
|
## Boundary
|
|
11
11
|
|
|
12
|
-
Production-reachable content is immutable. Writable scope is limited to automated tests and test-scoped fixtures, harnesses, seeds, artifacts, configuration, and dependencies. Inline tests or shared manifests are writable only where changed regions are mechanically isolated to test compilation or execution. Ambiguous isolation is a blocker
|
|
12
|
+
Production-reachable content is immutable. Writable scope is limited to automated tests and test-scoped fixtures, harnesses, seeds, artifacts, configuration, and dependencies. Inline tests or shared manifests are writable only where changed regions are mechanically isolated to test compilation or execution. Ambiguous isolation is a blocker. Report the uncertainty and required scope decision before editing.
|
|
13
13
|
|
|
14
14
|
Before editing, classify every allowed path or hunk as test-scoped. After editing, inspect the complete source-control diff; completion requires every changed region and dependency to remain unreachable from production behavior, artifacts, and deployable wiring.
|
|
15
15
|
|
|
16
|
-
Keep a product defect visible as a failing test with observed failure evidence, then
|
|
16
|
+
Keep a product defect visible as a failing test with observed failure evidence, then report a separate production requirement. A test-only task reaches GREEN only through test-scoped changes.
|
|
17
17
|
|
|
18
18
|
## Modes
|
|
19
19
|
|
|
@@ -5,14 +5,24 @@ description: Brainstorm a bounded system from the operating agent’s perspectiv
|
|
|
5
5
|
|
|
6
6
|
# Brainstorm
|
|
7
7
|
|
|
8
|
-
1. Bound the system,
|
|
9
|
-
|
|
10
|
-
2.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
1. Bound the system, operator, accepted constraints, and available evidence.
|
|
9
|
+
Mark every unsupported premise unknown.
|
|
10
|
+
2. Put yourself in the operating agent's seat. Ask: "What would most enable me
|
|
11
|
+
to understand the situation accurately and control it optimally, producing
|
|
12
|
+
the best and most accurate results with the least expenditure of resources?"
|
|
13
|
+
Conceptualize the project as one synthetic SYSTEM: maximally coherent,
|
|
14
|
+
cohesive, modular, interconnected; a tower of linked abstractions maximally
|
|
15
|
+
legible to an agent. Trace intake, state, control, feedback, recovery, and
|
|
16
|
+
handoff through that tower. Account for each applicable surface with
|
|
17
|
+
evidence, or record why it does not apply.
|
|
18
|
+
3. Derive the smallest changes that make the system agent-intuitive (clear
|
|
19
|
+
meaning), agent-ergonomic (efficient control), and agent-accretive (reusable
|
|
20
|
+
verified knowledge benefiting later runs). For each candidate, state
|
|
21
|
+
evidence, consequence, and unresolved tradeoff, including required
|
|
22
|
+
design-document and plan changes. Apply document or plan edits only when
|
|
23
|
+
authorized by the caller; otherwise propose them. Completion requires
|
|
24
|
+
reconciling every affected design document and plan when edits are
|
|
25
|
+
authorized, and reporting unresolved inconsistencies across abstractions.
|
|
26
|
+
4. Return evidence-grounded observations and unresolved decisions. Completion
|
|
27
|
+
requires every observation to trace to evidence or an explicit unknown.
|
|
28
|
+
Observations remain candidates until the caller accepts them.
|
|
@@ -30,7 +30,6 @@ description: >-
|
|
|
30
30
|
|
|
31
31
|
- The work is pure planning, requirements discovery, or design.
|
|
32
32
|
- The failure is already proven and only needs implementation inside an active spec plan.
|
|
33
|
-
- The next action triggers `$handback`; return human steering instead.
|
|
34
33
|
- The request is only static code review with no runtime symptom.
|
|
35
34
|
|
|
36
35
|
## Workflow
|
|
@@ -42,7 +41,8 @@ description: >-
|
|
|
42
41
|
2. **Set bounds.**
|
|
43
42
|
- Define owned files, systems, and scenarios.
|
|
44
43
|
- For delivery-internal debugging, patch only inside the active delivery scope.
|
|
45
|
-
-
|
|
44
|
+
- If the next action exceeds these bounds, retain the evidence and required
|
|
45
|
+
decision; return `human_steering_required` and stop.
|
|
46
46
|
3. **Reproduce visible behavior.**
|
|
47
47
|
- Before forming hypotheses or starting fix work, run `$verify-behavior` in
|
|
48
48
|
`reproduce` mode when the reported behavior is visibly exercisable.
|
|
@@ -71,7 +71,7 @@ description: >-
|
|
|
71
71
|
8. **Exit.**
|
|
72
72
|
- Fixed: report cause, patch, verification, and residual risk.
|
|
73
73
|
- Blocked: report the concrete blocker and the missing artifact/access/action.
|
|
74
|
-
- Human steering: return
|
|
74
|
+
- Human steering: return `human_steering_required` with the retained decision record.
|
|
75
75
|
|
|
76
76
|
## Parallel Rules
|
|
77
77
|
|
|
@@ -83,7 +83,6 @@ description: >-
|
|
|
83
83
|
- Never let parallel workers make speculative fixes against unproven hypotheses.
|
|
84
84
|
- Merge worker findings into one evidence matrix before deciding on a patch.
|
|
85
85
|
- In delivery-internal mode, parallel workers must stay inside the delivery scope unless assigned readonly investigation.
|
|
86
|
-
- A `$handback` trigger ends fix delegation.
|
|
87
86
|
|
|
88
87
|
## Output Contract
|
|
89
88
|
|
|
@@ -36,7 +36,7 @@ Within accepted bounds, full delivery grants its selected inner steps the author
|
|
|
36
36
|
- [phases/review.md](phases/review.md): prepare the explicit review handoff or
|
|
37
37
|
classify findings from a retained report.
|
|
38
38
|
- [phases/debug.md](phases/debug.md): investigate runtime-evidence failures.
|
|
39
|
-
- [phases/
|
|
39
|
+
- [phases/human-steering.md](phases/human-steering.md): return a scope or authority boundary for human steering.
|
|
40
40
|
- [phases/docs-ingest.md](phases/docs-ingest.md): ingest docs-affecting changes or record a no-op.
|
|
41
41
|
- [phases/closeout.md](phases/closeout.md): finish tracker, PR, validation, and final report state.
|
|
42
42
|
|
|
@@ -59,4 +59,4 @@ Within accepted bounds, full delivery grants its selected inner steps the author
|
|
|
59
59
|
- User explicitly requested a HITL checkpoint or one-phase mode and its resumable state was written.
|
|
60
60
|
- Router reaches closeout and final evidence is reported.
|
|
61
61
|
- Scope is ambiguous, stale, contradictory, or blocked by missing access.
|
|
62
|
-
- `human_steering_required`
|
|
62
|
+
- `human_steering_required` remains durable while its required decision is unresolved.
|
|
@@ -14,8 +14,8 @@ Load `debugging-phase` only after this phase is selected.
|
|
|
14
14
|
trace, reproduction, or review finding.
|
|
15
15
|
- Readonly parallel hypothesis research is allowed.
|
|
16
16
|
- Speculative parallel fixes are not allowed.
|
|
17
|
-
- When
|
|
18
|
-
opening another goal.
|
|
17
|
+
- When the next action exceeds accepted bounds, return the required decision
|
|
18
|
+
to the router before opening another goal.
|
|
19
19
|
- Preserve review lineage, `review_count`, `repair_count`, and the opening
|
|
20
20
|
`review_run_id` through the repair.
|
|
21
21
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Human Steering Phase
|
|
2
|
+
|
|
3
|
+
## Guard
|
|
4
|
+
|
|
5
|
+
The next action exceeds accepted bounds, changes accepted requirements, weakens
|
|
6
|
+
a gate, substantially redesigns implementation, or requires missing authority.
|
|
7
|
+
|
|
8
|
+
## Bounded Action
|
|
9
|
+
|
|
10
|
+
1. Record the blocked action, supporting evidence, and exact decision needed in
|
|
11
|
+
a durable state artifact.
|
|
12
|
+
2. Put its Context Pointer and exact blocker in the compact Delivery Handoff.
|
|
13
|
+
3. Return `human_steering_required` and stop.
|
|
14
|
+
|
|
15
|
+
## Completion Evidence
|
|
16
|
+
|
|
17
|
+
- durable decision record
|
|
18
|
+
- preserved accepted bounds and completed in-bounds artifacts
|
|
19
|
+
- expanded work awaits the required decision
|
|
20
|
+
|
|
21
|
+
## Exit
|
|
22
|
+
|
|
23
|
+
Emit the [common Phase Result](../references/context-continuity.md#common-phase-result)
|
|
24
|
+
with pointers to the decision record. In every mode, resume routing when current
|
|
25
|
+
user direction resolves the required decision.
|
|
@@ -34,8 +34,8 @@ silently renaming them.
|
|
|
34
34
|
- Use a one-worker wave only when dependencies or ownership leave one task
|
|
35
35
|
unblocked.
|
|
36
36
|
- Keep changes inside the active delivery scope.
|
|
37
|
-
- When
|
|
38
|
-
expanding worker ownership.
|
|
37
|
+
- When the next action exceeds accepted bounds, return the required decision
|
|
38
|
+
to the router before expanding worker ownership.
|
|
39
39
|
- Parent orchestration owns shared notes and final validation evidence.
|
|
40
40
|
- For UI work, require `implement-spec` to carry durable before/after links through `UI Evidence Links`; use `repo-asset-management` only through that evidence contract.
|
|
41
41
|
- If runtime evidence appears during validation, finish the phase handoff and route to debug.
|
|
@@ -72,8 +72,8 @@ After the retained report establishes the completed ordinal:
|
|
|
72
72
|
1. Recompute aggregate routing from every finding's validated `return_route`
|
|
73
73
|
with the review contract helper. Reject a mismatch with the retained routing
|
|
74
74
|
object.
|
|
75
|
-
2. For primary `human_steering_required`, preserve the returned
|
|
76
|
-
|
|
75
|
+
2. For primary `human_steering_required`, preserve the returned decision record
|
|
76
|
+
and stop. It never opens a repair state.
|
|
77
77
|
3. When `secondary_architecture_follow_up` is true, enter `debt_follow_up`
|
|
78
78
|
first and persist the primary `debugging` or `implementation` route as
|
|
79
79
|
`post_debt_route`.
|
|
@@ -5,8 +5,9 @@ Choose one next phase from current durable authority.
|
|
|
5
5
|
1. Apply [context continuity](../references/context-continuity.md): select
|
|
6
6
|
trigger-specific instructions, validate required pointers and warm/cold mode.
|
|
7
7
|
A failed resolution emits the common Phase Result and blocks its action.
|
|
8
|
-
2. Preserve terminal `human_steering_required` until
|
|
9
|
-
|
|
8
|
+
2. Preserve terminal `human_steering_required` until current user direction
|
|
9
|
+
resolves the required decision. New boundary evidence selects
|
|
10
|
+
[human-steering.md](human-steering.md).
|
|
10
11
|
3. For failed tasks or repair evidence, apply
|
|
11
12
|
[failure continuity](../references/failure-continuity.md). Independent eligible
|
|
12
13
|
work continues through the implementation owner's gates.
|
|
@@ -87,7 +87,7 @@ pointer contract above; required delta and stop fields cannot be omitted.
|
|
|
87
87
|
Keep phase-specific state, logs and detailed rationale in pointed durable
|
|
88
88
|
artifacts. `failed` records an attempted action's observed failure; `blocked`
|
|
89
89
|
records unavailable required proof or prerequisite. `skipped` requires an exact
|
|
90
|
-
no-op reason. `human_steering_required` points to the retained
|
|
90
|
+
no-op reason. `human_steering_required` points to the retained decision record.
|
|
91
91
|
A Phase Result neither accepts a Task nor replaces its Task Gate.
|
|
92
92
|
|
|
93
93
|
Full Delivery updates its packet and re-enters the router. Direct phase, explicit
|
|
@@ -17,7 +17,7 @@ contracts; these remain the sole owners of worker returns and gate outcomes.
|
|
|
17
17
|
Diagnostic Evidence. Record the observation and discriminating result before
|
|
18
18
|
retrying; repeating the same repair is not new evidence.
|
|
19
19
|
3. Stagnant repair, required scope redesign, weaker gates, changed requirements,
|
|
20
|
-
missing access or a human decision routes to [
|
|
20
|
+
missing access or a human decision routes to [human steering](../phases/human-steering.md).
|
|
21
21
|
Keep accepted bounds and scope custody intact while steering is required.
|
|
22
22
|
4. Retain the resulting phase-specific state behind a pointer and emit the common
|
|
23
23
|
[Phase Result](context-continuity.md#common-phase-result). Resume checks current
|
package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md
CHANGED
|
@@ -106,6 +106,7 @@ evidence under the transition rules in [review.md](../phases/review.md). A clean
|
|
|
106
106
|
handoff links the retained review, final changes and passing required checks.
|
|
107
107
|
Historical ordinals remain unchanged during legacy read-time normalization.
|
|
108
108
|
|
|
109
|
-
For `human_steering_required`, store the
|
|
110
|
-
pointed durable state artifact. Keep only its pointer and exact
|
|
111
|
-
Delivery Handoff. The state remains terminal until
|
|
109
|
+
For `human_steering_required`, store the blocked action, evidence, and required
|
|
110
|
+
decision in the pointed durable state artifact. Keep only its pointer and exact
|
|
111
|
+
blocker in the Delivery Handoff. The state remains terminal until current user
|
|
112
|
+
direction resolves the required decision.
|