@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
|
@@ -35,7 +35,7 @@ The router owns transitions. Each gate owns only its bounded action.
|
|
|
35
35
|
- [Prototype support](phases/prototype.md)
|
|
36
36
|
- [Optional projection reconciliation](phases/reconcile.md)
|
|
37
37
|
- [Bounded return](phases/return-target.md)
|
|
38
|
-
- [Human steering](phases/
|
|
38
|
+
- [Human steering](phases/human-steering.md)
|
|
39
39
|
|
|
40
40
|
## Runtime references
|
|
41
41
|
|
|
@@ -31,7 +31,7 @@ and relation, bounded-result state, and optional ceiling-safe projection intent.
|
|
|
31
31
|
- `support_required` -> router re-entry.
|
|
32
32
|
- `projection_requested` -> reconciliation through router re-entry.
|
|
33
33
|
- `bounded_result_ready` -> bounded return through router re-entry.
|
|
34
|
-
- `human_steering_required` ->
|
|
34
|
+
- `human_steering_required` -> human-steering.
|
|
35
35
|
- `blocked` -> stop with missing evidence.
|
|
36
36
|
|
|
37
37
|
## Durable handoff
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Human Steering Gate
|
|
2
|
+
|
|
3
|
+
## Entry guard
|
|
4
|
+
|
|
5
|
+
Fog identity, immutable lens, child relevance, support relation, evidence,
|
|
6
|
+
scope, or projection ceiling is ambiguous or conflicting under current authority.
|
|
7
|
+
|
|
8
|
+
## Bounded action
|
|
9
|
+
|
|
10
|
+
Record the exact conflict, supporting evidence, and minimum human decision.
|
|
11
|
+
Return `human_steering_required` and stop before emitting a mutation intent.
|
|
12
|
+
|
|
13
|
+
## Completion evidence
|
|
14
|
+
|
|
15
|
+
Durable decision record and evidence that the conflict caused no further mutation.
|
|
16
|
+
|
|
17
|
+
## Declared exits
|
|
18
|
+
|
|
19
|
+
- `human_steering_required` -> terminal non-success state.
|
|
20
|
+
- `decision_resolved` -> router re-entry with the resolving user direction.
|
|
21
|
+
|
|
22
|
+
## Durable handoff
|
|
23
|
+
|
|
24
|
+
Link the decision record and retain the terminal state until current user
|
|
25
|
+
direction resolves the conflict.
|
|
@@ -23,7 +23,7 @@ and human-verdict pointers, and exact child/relation readback.
|
|
|
23
23
|
## Declared exits
|
|
24
24
|
|
|
25
25
|
- `support_resolved` -> router re-entry.
|
|
26
|
-
- `human_steering_required` ->
|
|
26
|
+
- `human_steering_required` -> human-steering.
|
|
27
27
|
- `blocked` -> stop with missing retained evidence.
|
|
28
28
|
|
|
29
29
|
## Durable handoff
|
|
@@ -29,7 +29,7 @@ unresolved projection result, or a zero-write conflict result.
|
|
|
29
29
|
- `projection_reconciled` -> router re-entry.
|
|
30
30
|
- `projection_unresolved` -> bounded return through router re-entry.
|
|
31
31
|
- `approval_required` -> persist checkpoint and stop.
|
|
32
|
-
- `human_steering_required` ->
|
|
32
|
+
- `human_steering_required` -> human-steering.
|
|
33
33
|
- `blocked` -> stop with missing required readback.
|
|
34
34
|
|
|
35
35
|
## Durable handoff
|
|
@@ -24,7 +24,7 @@ immutable commit SHA and path, and exact child/relation readback.
|
|
|
24
24
|
## Declared exits
|
|
25
25
|
|
|
26
26
|
- `support_resolved` -> router re-entry.
|
|
27
|
-
- `human_steering_required` ->
|
|
27
|
+
- `human_steering_required` -> human-steering.
|
|
28
28
|
- `blocked` -> stop with missing retained evidence.
|
|
29
29
|
|
|
30
30
|
## Durable handoff
|
|
@@ -10,7 +10,7 @@ suggested route is advisory only.
|
|
|
10
10
|
1. Unsupported intake lens, explicit steering state, ambiguous Fog identity,
|
|
11
11
|
conflicting immutable-lens evidence, duplicate child identity, ambiguous child choice,
|
|
12
12
|
unsupported support kind, or projection above the wrapper ceiling ->
|
|
13
|
-
[
|
|
13
|
+
[human-steering](human-steering.md).
|
|
14
14
|
2. No exact Fog readback -> [ensure-fog](ensure-fog.md).
|
|
15
15
|
3. One unresolved Research child -> [research](research.md).
|
|
16
16
|
4. One unresolved Prototype child -> [prototype](prototype.md).
|
|
@@ -20,7 +20,7 @@ ensure-fog
|
|
|
20
20
|
-> bounded return
|
|
21
21
|
|
|
22
22
|
identity, lens, selection, or ceiling conflict
|
|
23
|
-
->
|
|
23
|
+
-> human-steering -> human_steering_required
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
One Fog retains its immutable original Business or Functional intake lens.
|
|
@@ -41,8 +41,9 @@ debug, debt, documentation, or closeout work.
|
|
|
41
41
|
4. Require the derived result to equal the retained report's `routing` object.
|
|
42
42
|
A mismatch is invalid retained routing evidence and routes to
|
|
43
43
|
`review_failed`.
|
|
44
|
-
5. If the primary route is `human_steering_required`,
|
|
45
|
-
|
|
44
|
+
5. If the primary route is `human_steering_required`, retain the blocking
|
|
45
|
+
finding, supporting evidence, and exact decision needed; return that outcome
|
|
46
|
+
and stop.
|
|
46
47
|
6. Otherwise write returned routing evidence containing the immutable report
|
|
47
48
|
identity, stable finding IDs, primary route, optional architecture follow-up,
|
|
48
49
|
and validation summary. Delivery returns `review_routed`; standalone returns
|
|
@@ -55,7 +56,7 @@ debug, debt, documentation, or closeout work.
|
|
|
55
56
|
- Human steering outranks runtime, implementation, debt, documentation, and
|
|
56
57
|
closeout.
|
|
57
58
|
- The retained report and reviewed target remain readonly.
|
|
58
|
-
- This gate writes routing or
|
|
59
|
+
- This gate writes routing or decision evidence only. Delivery owns any later
|
|
59
60
|
route mutation and every repair counter or active repair state.
|
|
60
61
|
- One return does not invoke review again, run validation again, create review
|
|
61
62
|
4, or enter repair.
|
|
@@ -74,8 +75,8 @@ debug, debt, documentation, or closeout work.
|
|
|
74
75
|
explicit delivery resume.
|
|
75
76
|
- `review_complete`: standalone routing evidence is durable and review is
|
|
76
77
|
complete.
|
|
77
|
-
- `human_steering_required`: the
|
|
78
|
-
|
|
78
|
+
- `human_steering_required`: the decision record is durable; expanded repair
|
|
79
|
+
awaits current user direction resolving the required decision.
|
|
79
80
|
- `report_retention_pending`: retained containment or blob evidence became
|
|
80
81
|
temporarily unverifiable; retry retention without rerunning lenses.
|
|
81
82
|
- `review_due`: target, bounds, or governing sources are no longer fresh for
|
|
@@ -43,7 +43,7 @@ output.
|
|
|
43
43
|
|
|
44
44
|
| Priority | Current evidence | Output |
|
|
45
45
|
| --- | --- | --- |
|
|
46
|
-
| 1 | Durable `human_steering_required`
|
|
46
|
+
| 1 | Durable `human_steering_required` with an unresolved required decision | terminal `human_steering_required` |
|
|
47
47
|
| 2 | Unsupported target, invalid accepted bounds, non-retryable contract or infrastructure failure, malformed active retention candidate, or `same_run_conflict` | terminal `review_failed` |
|
|
48
48
|
| 3 | Delivery entry is otherwise valid, recovered `review_count >= 2`, no verified human direction authorizes the next ordinal, and no already-started run has valid predecessor evidence | terminal `review_budget_exhausted` |
|
|
49
49
|
| 4 | A repository-approved retained ref is required but cannot be derived and requires an operator decision | checkpoint `retained_ref_approval_required` |
|
|
@@ -58,7 +58,8 @@ scope; the parent rejects stale, expanded, duplicated, or unverified output.
|
|
|
58
58
|
accepted finding a stable identifier, lens, severity, location, impact,
|
|
59
59
|
evidence, action, and one explicit `return_route`: `human_steering_required`,
|
|
60
60
|
`debugging`, `implementation`, `debt_follow_up`, or `docs_ingest`. Use
|
|
61
|
-
`human_steering_required` when the repair
|
|
61
|
+
`human_steering_required` when the repair exceeds accepted bounds, changes
|
|
62
|
+
requirements, weakens a gate, or substantially redesigns implementation.
|
|
62
63
|
7. Run only the smallest safe readonly validation needed to verify candidates or
|
|
63
64
|
governing acceptance evidence. Broader checks require explicit accepted spec
|
|
64
65
|
or plan authority. Record missing required RED/GREEN evidence as a finding;
|
|
@@ -24,7 +24,7 @@ and clean handoff.
|
|
|
24
24
|
| `report_retention_pending` | Retryable retention failure | Hashes fresh | Report writer | `report_retention_pending` | None | Exact retryable evidence; no authoritative pass |
|
|
25
25
|
| `report_retention_pending` | Non-retryable retention failure | Retry cannot succeed | Report writer | `review_failed` | None | Exact terminal evidence; no authoritative pass |
|
|
26
26
|
| `report_retention_pending` | Freshness changed | Target or source hash changed | `review-phase` | `review_due` | None | Stale local report; unchanged counters |
|
|
27
|
-
| `review_routed` | Human steering route | Derived primary route is `human_steering_required` | `review-phase` | `human_steering_required` | None | Retained report plus durable
|
|
27
|
+
| `review_routed` | Human steering route | Derived primary route is `human_steering_required` | `review-phase` | `human_steering_required` | None | Retained report plus durable decision record |
|
|
28
28
|
| `review_routed` | Readonly return | Standalone; primary route is not `human_steering_required` | Standalone caller | `review_complete` | None | Retained report output and route |
|
|
29
29
|
| `review_routed` | Resume debug route | Handoff already records run id, debug route, and `debug_active` | `delivery-phase` | `debug_active` | None | Existing atomic handoff; no guard fallthrough |
|
|
30
30
|
| `review_routed` | Resume implementation route | Handoff already records run id, implementation route, and `repair_active` | `delivery-phase` | `repair_active` | None | Existing atomic handoff; no guard fallthrough |
|
|
@@ -79,8 +79,8 @@ including three. Recovery preserves this authority without granting more default
|
|
|
79
79
|
passes. Historical numbered repair states normalize to the existing repair and
|
|
80
80
|
focused-validation route; their counters and report identities stay unchanged.
|
|
81
81
|
|
|
82
|
-
`human_steering_required` opens no repair. It remains terminal until
|
|
83
|
-
|
|
82
|
+
`human_steering_required` opens no repair. It remains terminal until current
|
|
83
|
+
user direction resolves the required decision.
|
|
84
84
|
|
|
85
85
|
Same-goal bounds revisions preserve delivery lineage and counters. Resume,
|
|
86
86
|
rebase, new commit, process retry, and handoff preserve them. Only an explicitly
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punks/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Harness Intelligence scaffolding CLI",
|
|
5
5
|
"homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -37,13 +37,19 @@
|
|
|
37
37
|
"release:publish:beta": "NPM_TAG=beta node ./scripts/release-dispatcher.mjs",
|
|
38
38
|
"release:publication": "cd ../.. && node ./apps/cli/scripts/run-release-publication.mjs",
|
|
39
39
|
"sync:skills": "node ./scripts/sync-skills-repo.mjs",
|
|
40
|
-
"test": "vitest run --config vitest.config.ts",
|
|
40
|
+
"test": "vitest run --config vitest.config.ts --maxWorkers=1",
|
|
41
41
|
"test:parallel": "vitest run --config vitest.config.ts --fileParallelism --maxWorkers=2",
|
|
42
42
|
"ui:catalog": "bun ./scripts/run-renderer-catalog.mjs",
|
|
43
43
|
"lint": "oxlint src scripts",
|
|
44
|
-
"format": "oxfmt --check src scripts package.json tsconfig.json vitest
|
|
45
|
-
"format:check": "oxfmt --check src scripts package.json tsconfig.json vitest
|
|
46
|
-
"check": "bun run lint && bun run format"
|
|
44
|
+
"format": "oxfmt --check src scripts package.json tsconfig.json vitest*.ts",
|
|
45
|
+
"format:check": "oxfmt --check src scripts package.json tsconfig.json vitest*.ts",
|
|
46
|
+
"check": "bun run lint && bun run format",
|
|
47
|
+
"test:source": "vitest run --config vitest.source.config.ts --maxWorkers=1",
|
|
48
|
+
"test:update": "vitest run --config vitest.update.config.ts --maxWorkers=1",
|
|
49
|
+
"test:release": "vitest run --config vitest.release.config.ts --maxWorkers=1",
|
|
50
|
+
"test:built": "vitest run --config vitest.built.config.ts --maxWorkers=1",
|
|
51
|
+
"test:recovery:historical": "bun test-fixtures/release-recovery/historical.runner.ts",
|
|
52
|
+
"test:update:diagnostic": "node ../../scripts/behavior-contract/issue-215-update-benchmark.mjs"
|
|
47
53
|
},
|
|
48
54
|
"dependencies": {
|
|
49
55
|
"react-devtools-core": "^6.1.5"
|
|
@@ -68,5 +74,5 @@
|
|
|
68
74
|
"ultracite": "7.10.7",
|
|
69
75
|
"vitest": "catalog:"
|
|
70
76
|
},
|
|
71
|
-
"packageManager": "bun@1.
|
|
77
|
+
"packageManager": "bun@1.4.0"
|
|
72
78
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: handback
|
|
3
|
-
description: Hand control back when a blocker or proposed next step crosses accepted goal bounds, changes accepted requirements, weakens a gate, or substantially redesigns implementation.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Handback
|
|
7
|
-
|
|
8
|
-
Autonomy applies only while the next action remains inside the accepted goal.
|
|
9
|
-
|
|
10
|
-
Return `human_steering_required` with:
|
|
11
|
-
|
|
12
|
-
- initial goal and accepted bounds
|
|
13
|
-
- current phase and last known-good state
|
|
14
|
-
- attempts and evidence
|
|
15
|
-
- blocker and what it prevents
|
|
16
|
-
- proposed next action
|
|
17
|
-
- why it changes scope or authority
|
|
18
|
-
- exact human decision required
|
|
19
|
-
|
|
20
|
-
Preserve completed in-bounds work, then stop. The authority guard passes only
|
|
21
|
-
on explicit human authorization for the proposed next action. A proposal is not
|
|
22
|
-
authority. “All steps”, “full
|
|
23
|
-
delivery”, “do not stop”, and equivalent persistence language apply only within
|
|
24
|
-
accepted bounds.
|
|
25
|
-
|
|
26
|
-
`human_steering_required` is a terminal, non-success outcome. Expanded design,
|
|
27
|
-
implementation, delegation, and recursive review begin only after authority.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Handback Phase
|
|
2
|
-
|
|
3
|
-
## Guard
|
|
4
|
-
|
|
5
|
-
The router selected current evidence that triggers `$handback`.
|
|
6
|
-
|
|
7
|
-
## Bounded Action
|
|
8
|
-
|
|
9
|
-
1. Invoke `$handback` with the active delivery evidence.
|
|
10
|
-
2. Retain its complete outcome in the durable state artifact; put its Context
|
|
11
|
-
Pointer and exact blocker in the compact Delivery Handoff.
|
|
12
|
-
3. Stop.
|
|
13
|
-
|
|
14
|
-
## Completion Evidence
|
|
15
|
-
|
|
16
|
-
- the durable `$handback` outcome
|
|
17
|
-
- unchanged accepted bounds and in-bounds artifacts
|
|
18
|
-
- no expanded design, implementation, delegation, or review
|
|
19
|
-
|
|
20
|
-
## Exit
|
|
21
|
-
|
|
22
|
-
Return terminal `human_steering_required`. Resume routing only after the
|
|
23
|
-
`$handback` authority guard passes.
|
|
24
|
-
|
|
25
|
-
Emit the [common Phase Result](../references/context-continuity.md#common-phase-result)
|
|
26
|
-
with pointers to this completion evidence. Stop in every mode until the
|
|
27
|
-
`$handback` authority guard passes.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Human Steering Gate
|
|
2
|
-
|
|
3
|
-
## Entry guard
|
|
4
|
-
|
|
5
|
-
Fog identity, immutable lens, child relevance, support relation, evidence,
|
|
6
|
-
scope, or projection ceiling is ambiguous or conflicting under current
|
|
7
|
-
authority.
|
|
8
|
-
|
|
9
|
-
## Bounded action
|
|
10
|
-
|
|
11
|
-
Invoke `$handback` with the exact conflict and minimum human decision. Persist
|
|
12
|
-
its complete outcome as `human_steering_required`, prove that no mutation intent
|
|
13
|
-
was emitted after detecting the conflict, and stop.
|
|
14
|
-
|
|
15
|
-
## Completion evidence
|
|
16
|
-
|
|
17
|
-
Durable `$handback` outcome, exact missing authority or decision, and zero-write
|
|
18
|
-
proof.
|
|
19
|
-
|
|
20
|
-
## Declared exits
|
|
21
|
-
|
|
22
|
-
- `human_steering_required` -> terminal non-success state.
|
|
23
|
-
- `authority_guard_passed` -> router re-entry with the new human decision.
|
|
24
|
-
|
|
25
|
-
## Durable handoff
|
|
26
|
-
|
|
27
|
-
Persist conflict evidence, minimum required decision, complete `$handback`
|
|
28
|
-
outcome, and terminal state. The router keeps returning this terminal while the
|
|
29
|
-
authority guard remains unsatisfied.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: handback
|
|
3
|
-
description: Hand control back when a blocker or proposed next step crosses accepted goal bounds, changes accepted requirements, weakens a gate, or substantially redesigns implementation.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Handback
|
|
7
|
-
|
|
8
|
-
Autonomy applies only while the next action remains inside the accepted goal.
|
|
9
|
-
|
|
10
|
-
Return `human_steering_required` with:
|
|
11
|
-
|
|
12
|
-
- initial goal and accepted bounds
|
|
13
|
-
- current phase and last known-good state
|
|
14
|
-
- attempts and evidence
|
|
15
|
-
- blocker and what it prevents
|
|
16
|
-
- proposed next action
|
|
17
|
-
- why it changes scope or authority
|
|
18
|
-
- exact human decision required
|
|
19
|
-
|
|
20
|
-
Preserve completed in-bounds work, then stop. The authority guard passes only
|
|
21
|
-
on explicit human authorization for the proposed next action. A proposal is not
|
|
22
|
-
authority. “All steps”, “full
|
|
23
|
-
delivery”, “do not stop”, and equivalent persistence language apply only within
|
|
24
|
-
accepted bounds.
|
|
25
|
-
|
|
26
|
-
`human_steering_required` is a terminal, non-success outcome. Expanded design,
|
|
27
|
-
implementation, delegation, and recursive review begin only after authority.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Handback Phase
|
|
2
|
-
|
|
3
|
-
## Guard
|
|
4
|
-
|
|
5
|
-
The router selected current evidence that triggers `$handback`.
|
|
6
|
-
|
|
7
|
-
## Bounded Action
|
|
8
|
-
|
|
9
|
-
1. Invoke `$handback` with the active delivery evidence.
|
|
10
|
-
2. Retain its complete outcome in the durable state artifact; put its Context
|
|
11
|
-
Pointer and exact blocker in the compact Delivery Handoff.
|
|
12
|
-
3. Stop.
|
|
13
|
-
|
|
14
|
-
## Completion Evidence
|
|
15
|
-
|
|
16
|
-
- the durable `$handback` outcome
|
|
17
|
-
- unchanged accepted bounds and in-bounds artifacts
|
|
18
|
-
- no expanded design, implementation, delegation, or review
|
|
19
|
-
|
|
20
|
-
## Exit
|
|
21
|
-
|
|
22
|
-
Return terminal `human_steering_required`. Resume routing only after the
|
|
23
|
-
`$handback` authority guard passes.
|
|
24
|
-
|
|
25
|
-
Emit the [common Phase Result](../references/context-continuity.md#common-phase-result)
|
|
26
|
-
with pointers to this completion evidence. Stop in every mode until the
|
|
27
|
-
`$handback` authority guard passes.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Human Steering Gate
|
|
2
|
-
|
|
3
|
-
## Entry guard
|
|
4
|
-
|
|
5
|
-
Fog identity, immutable lens, child relevance, support relation, evidence,
|
|
6
|
-
scope, or projection ceiling is ambiguous or conflicting under current
|
|
7
|
-
authority.
|
|
8
|
-
|
|
9
|
-
## Bounded action
|
|
10
|
-
|
|
11
|
-
Invoke `$handback` with the exact conflict and minimum human decision. Persist
|
|
12
|
-
its complete outcome as `human_steering_required`, prove that no mutation intent
|
|
13
|
-
was emitted after detecting the conflict, and stop.
|
|
14
|
-
|
|
15
|
-
## Completion evidence
|
|
16
|
-
|
|
17
|
-
Durable `$handback` outcome, exact missing authority or decision, and zero-write
|
|
18
|
-
proof.
|
|
19
|
-
|
|
20
|
-
## Declared exits
|
|
21
|
-
|
|
22
|
-
- `human_steering_required` -> terminal non-success state.
|
|
23
|
-
- `authority_guard_passed` -> router re-entry with the new human decision.
|
|
24
|
-
|
|
25
|
-
## Durable handoff
|
|
26
|
-
|
|
27
|
-
Persist conflict evidence, minimum required decision, complete `$handback`
|
|
28
|
-
outcome, and terminal state. The router keeps returning this terminal while the
|
|
29
|
-
authority guard remains unsatisfied.
|