@hassangameryt/freeflow 0.7.1 → 0.7.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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +28 -23
- package/capabilities/cognitive-routing/SKILL.md +94 -311
- package/command-surface.json +7 -1
- package/gemini-extension.json +1 -1
- package/package.json +4 -4
- package/pi-extension/dist/cognitive-routing-v2/budget.js +42 -0
- package/pi-extension/dist/cognitive-routing-v2/config.js +120 -0
- package/pi-extension/dist/cognitive-routing-v2/projection.js +321 -0
- package/pi-extension/dist/cognitive-routing-v2/render.js +231 -0
- package/pi-extension/dist/cognitive-routing-v2/runtime.js +1585 -0
- package/pi-extension/dist/cognitive-routing-v2/schemas.js +107 -0
- package/pi-extension/dist/cognitive-routing-v2/state.js +612 -0
- package/pi-extension/dist/cognitive-routing-v2/tools.js +91 -0
- package/pi-extension/dist/cognitive-routing-v2/types.js +44 -0
- package/pi-extension/dist/freeflow-context/tool.js +5 -0
- package/pi-extension/dist/index.js +279 -624
- package/pi-extension/dist/runtime/runtime-context.js +63 -13
- package/pi-extension/dist/session-sources/events.js +195 -0
- package/pi-extension/dist/session-sources/read-only-session.js +148 -0
- package/pi-extension/dist/session-sources/sources.js +233 -0
- package/pi-extension/dist/settings/settings-ui.js +44 -117
- package/pi-extension/src/cognitive-routing-v2/budget.ts +42 -0
- package/pi-extension/src/cognitive-routing-v2/config.ts +143 -0
- package/pi-extension/src/cognitive-routing-v2/projection.ts +365 -0
- package/pi-extension/src/cognitive-routing-v2/render.ts +256 -0
- package/pi-extension/src/cognitive-routing-v2/runtime.ts +1634 -0
- package/pi-extension/src/cognitive-routing-v2/schemas.ts +109 -0
- package/pi-extension/src/cognitive-routing-v2/state.ts +622 -0
- package/pi-extension/src/cognitive-routing-v2/tools.ts +93 -0
- package/pi-extension/src/cognitive-routing-v2/types.ts +222 -0
- package/pi-extension/src/freeflow-context/tool.ts +5 -0
- package/pi-extension/src/index.ts +285 -674
- package/pi-extension/src/runtime/runtime-context.ts +75 -14
- package/pi-extension/src/session-sources/events.ts +208 -0
- package/pi-extension/src/session-sources/read-only-session.ts +170 -0
- package/pi-extension/src/session-sources/sources.ts +263 -0
- package/pi-extension/src/settings/settings-ui.ts +54 -131
- package/pi-extension/tests/cognitive-routing-v2/communication.test.js +484 -0
- package/pi-extension/tests/cognitive-routing-v2/compaction-input.test.js +183 -0
- package/pi-extension/tests/cognitive-routing-v2/native.test.js +441 -0
- package/pi-extension/tests/cognitive-routing-v2/performance.test.js +87 -0
- package/pi-extension/tests/cognitive-routing-v2/persistence.test.js +245 -0
- package/pi-extension/tests/cognitive-routing-v2/projection.test.js +241 -0
- package/pi-extension/tests/cognitive-routing-v2/recovery.test.js +236 -0
- package/pi-extension/tests/cognitive-routing-v2/render.test.js +230 -0
- package/pi-extension/tests/cognitive-routing-v2/runtime.test.js +153 -0
- package/pi-extension/tests/cognitive-routing-v2/stabilization.test.js +521 -0
- package/pi-extension/tests/cognitive-routing-v2/state.test.js +275 -0
- package/pi-extension/tests/context-virtualization/extension.test.js +16 -0
- package/pi-extension/tests/fixtures/routing-native.js +188 -0
- package/pi-extension/tests/integration/mode-free-core.test.js +3 -2
- package/pi-extension/tests/integration/pi-extension.test.js +154 -37
- package/pi-extension/tests/integration/prompt-architecture.test.js +87 -6
- package/pi-extension/tests/integration/unaffected-regressions.test.js +77 -10
- package/plugin.json +1 -1
- package/runtime/prompts/cognitive-routing.md +4 -5
- package/runtime/prompts/core.md +51 -45
- package/runtime/prompts/interaction-contract.md +5 -5
- package/skills/action-selection/SKILL.md +57 -97
- package/skills/design-for-depth/SKILL.md +58 -193
- package/skills/design-for-depth/references/implementation-decisions.md +76 -0
- package/skills/diagnose-failure/SKILL.md +64 -196
- package/skills/discuss/SKILL.md +64 -123
- package/skills/discuss/references/discussion-continuity.md +7 -3
- package/skills/execute-work/SKILL.md +69 -88
- package/skills/execute-work/references/execute-work-edges.md +9 -3
- package/skills/handoff/SKILL.md +44 -54
- package/skills/handoff/references/handoff-templates.md +15 -6
- package/skills/review-artifact/SKILL.md +80 -127
- package/skills/review-artifact/references/independent-artifact-reviewer-contract.md +1 -1
- package/skills/review-work/SKILL.md +65 -115
- package/skills/review-work/references/independent-work-reviewer-contract.md +1 -1
- package/skills/simplify-code/SKILL.md +47 -100
- package/skills/track-work/SKILL.md +128 -119
- package/skills/track-work/references/working-record-format.md +14 -2
- package/skills/verify-work/SKILL.md +58 -62
- package/skills/verify-work/references/integration-evidence.md +4 -2
- package/skills/verify-work/references/test-design.md +89 -0
- package/skills/workflow/SKILL.md +73 -119
- package/skills/write-plan/SKILL.md +46 -77
- package/skills/write-plan/references/plan-shapes.md +5 -5
- package/skills/write-spec/SKILL.md +51 -63
- package/skills/write-spec/references/artifact-standards.md +2 -2
- package/skills/write-spec/references/decision-records.md +3 -2
- package/skills/write-spec/references/spec-shapes.md +15 -0
- package/pi-extension/dist/cognitive-routing/commands.js +0 -96
- package/pi-extension/dist/cognitive-routing/config.js +0 -232
- package/pi-extension/dist/cognitive-routing/controller.js +0 -1292
- package/pi-extension/dist/cognitive-routing/history.js +0 -451
- package/pi-extension/dist/cognitive-routing/host.js +0 -188
- package/pi-extension/dist/cognitive-routing/pi-routing-session.js +0 -414
- package/pi-extension/dist/cognitive-routing/pi-session-control.js +0 -320
- package/pi-extension/dist/cognitive-routing/runtime.js +0 -43
- package/pi-extension/dist/cognitive-routing/tool.js +0 -212
- package/pi-extension/dist/cognitive-routing/types.js +0 -6
- package/pi-extension/src/cognitive-routing/commands.ts +0 -129
- package/pi-extension/src/cognitive-routing/config.ts +0 -303
- package/pi-extension/src/cognitive-routing/controller.ts +0 -1628
- package/pi-extension/src/cognitive-routing/history.ts +0 -650
- package/pi-extension/src/cognitive-routing/host.ts +0 -266
- package/pi-extension/src/cognitive-routing/pi-routing-session.ts +0 -538
- package/pi-extension/src/cognitive-routing/pi-session-control.ts +0 -444
- package/pi-extension/src/cognitive-routing/runtime.ts +0 -57
- package/pi-extension/src/cognitive-routing/tool.ts +0 -273
- package/pi-extension/src/cognitive-routing/types.ts +0 -89
- package/pi-extension/tests/cognitive-routing/commands.test.js +0 -134
- package/pi-extension/tests/cognitive-routing/controller.test.js +0 -1128
- package/pi-extension/tests/cognitive-routing/extension-lifecycle.test.js +0 -1142
- package/pi-extension/tests/cognitive-routing/history.test.js +0 -274
- package/pi-extension/tests/cognitive-routing/host-identity.test.js +0 -63
- package/pi-extension/tests/cognitive-routing/pi-normal-lifecycle.test.js +0 -434
- package/pi-extension/tests/cognitive-routing/pi-session-control.test.js +0 -174
- package/pi-extension/tests/cognitive-routing/pi-session-history.test.js +0 -91
- package/pi-extension/tests/cognitive-routing/profile-resolution.test.js +0 -279
- package/pi-extension/tests/cognitive-routing/tool.test.js +0 -230
- package/skills/tdd/SKILL.md +0 -143
- package/skills/tdd/references/test-design.md +0 -96
- /package/pi-extension/tests/{cognitive-routing/host-fixture.js → fixtures/pi-host.js} +0 -0
|
@@ -1,105 +1,100 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: verify-work
|
|
3
|
-
description: Use when verifying work or a claim after implementation, tests, builds, runtime checks, failures, conflicting evidence, or incomplete evidence.
|
|
3
|
+
description: "Use when verifying work or a claim after implementation, tests, builds, runtime checks, failures, conflicting evidence, or incomplete evidence."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Verify Work
|
|
7
7
|
|
|
8
|
-
Determine
|
|
8
|
+
Determine what fresh direct evidence establishes about a specific claim at the boundary where it must hold.
|
|
9
9
|
|
|
10
|
-
Verification
|
|
10
|
+
Verification establishes facts, not review judgment, authority, or permission to continue. A passing command is not automatically a supported outcome. Test order is not evidence of test validity or implementation correctness.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Establish The Claim And Its Source
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Before choosing a check, identify the behavior or property, the required observing boundary, and the source of its expectation. Keep this compact when obvious; do not let an available test silently narrow a broader claim.
|
|
15
15
|
|
|
16
|
-
Claims may concern
|
|
16
|
+
Claims may concern behavior, a reported failure, structural validity, interfaces, integration, host lifecycle, installed artifacts, failure or recovery semantics, performance, or repository state.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
- build, type, lint, format, schema, or structural validity;
|
|
20
|
-
- public interfaces, integration, host lifecycle, or installed artifacts;
|
|
21
|
-
- failure, retry, recovery, degradation, or fail-closed behavior;
|
|
22
|
-
- performance or resource bounds;
|
|
23
|
-
- artifact completeness or repository state.
|
|
18
|
+
Distinguish required acceptance from an optional stronger assertion. If evidence for an optional claim is unavailable, qualify or withdraw that claim rather than automatically add implementation. A required guarantee remains unresolved until supported or explicitly changed by its owner.
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
When expected behavior is unsettled or sources conflict, return the issue through [Workflow](../../skills/workflow/SKILL.md) or [Decision Gate](../../skills/decision-gate/SKILL.md). Do not encode a guess as an expected result.
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
## Choose Sufficient Evidence
|
|
28
23
|
|
|
29
|
-
|
|
24
|
+
Use the smallest direct observation that can disagree with the claim. Before relying on an unfamiliar fixture for substantial dependent work, establish that it reaches the required observing stage and distinguishes the relevant wrong behavior. Reuse an adequate existing fixture; observer preparation is not a mandatory separate prototype.
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
For saved evidence, identify what code/artifact, check, configuration, and environment it examined, using existing outputs and source identities where available. Compare relevant subsequent changes, including new files and generated output. HEAD alone does not identify an uncommitted candidate. Reuse results whose applicability remains supported; rerun only affected evidence when authorized. Do not repeat checks merely because another activity or context began.
|
|
32
27
|
|
|
33
|
-
|
|
28
|
+
Keep two facts separate: the observation occurred, and it applies to the current state. A later edit does not erase an earlier pass; uncertain applicability does not certify the new candidate. Report missing identity or output rather than inventing a receipt or building a new evidence store.
|
|
34
29
|
|
|
35
|
-
|
|
30
|
+
Run active checks only when covered by the current agreement, including contained verification. Otherwise return the purpose, observer, expected evidence, and stop condition to Workflow and wait. A test, reproduction, benchmark, or instrumentation is active evidence generation even before production edits.
|
|
36
31
|
|
|
37
|
-
|
|
32
|
+
Use [Action Selection](../../skills/action-selection/SKILL.md) when several observers are plausible or the likely interaction is broad. It selects and bounds the interaction; Verify Work retains the claim and interprets support. An already-selected focused check needs no extra tool-selection ceremony.
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
- read [browser runtime evidence](references/browser-runtime-evidence.md) when a claim depends on rendered UI, browser behavior, accessibility, client networking, console state, visual output, or browser runtime performance;
|
|
41
|
-
- read [performance evidence](references/performance-evidence.md) when verifying latency, throughput, memory, CPU, bundle, query, rendering, capacity, or resource-regression claims.
|
|
34
|
+
Read the relevant reference before designing or selecting evidence:
|
|
42
35
|
|
|
43
|
-
|
|
36
|
+
- [Test Design](references/test-design.md) before designing or materially changing a behavior check, including regression or characterization coverage.
|
|
37
|
+
- [Integration Evidence](references/integration-evidence.md) when a claim depends on a registered callback or executor, host lifecycle, producer invocation, fallback protocol, installed package, or absence counter.
|
|
38
|
+
- [Browser Runtime Evidence](references/browser-runtime-evidence.md) for rendered UI, browser behavior, accessibility, networking, console state, visual output, or browser runtime performance.
|
|
39
|
+
- [Performance Evidence](references/performance-evidence.md) for latency, throughput, memory, CPU, bundle, query, rendering, capacity, or resource-regression claims.
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
Browser-performance claims need both browser fidelity and performance methodology. Loading a reference does not expand the required claim.
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
Passing tests do not prove behavior they do not exercise. Source inspection does not prove runtime execution; a helper call does not prove registration, native dispatch, or installed-package behavior. A happy path does not establish failure handling.
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
## Run Without Manufacturing A Signal
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
2. Read the relevant output, exit status, and lower-level evidence that can contradict a summary.
|
|
53
|
-
3. Confirm the defined assertion and intended success or failure path were exercised.
|
|
54
|
-
4. Confirm the observing boundary actually matched the claim.
|
|
55
|
-
5. Compare the observation with the exact claim and source requirement.
|
|
56
|
-
6. Preserve contradictory evidence; do not rerun until an unfavorable result disappears.
|
|
57
|
-
7. State unavailable, stale, partial, or reduced-fidelity evidence honestly.
|
|
47
|
+
Before parallel checks, compare what each may write or remove. Serialize checks that share generated directories, caches, outputs, package roots, fixture state, ports, databases, or intentionally stale artifacts. Reproduce a concurrency-induced failure under a non-overlapping schedule before attributing it to production code.
|
|
58
48
|
|
|
59
|
-
|
|
49
|
+
For each covered check:
|
|
60
50
|
|
|
61
|
-
|
|
51
|
+
1. Run the complete selected observation.
|
|
52
|
+
2. Inspect output, exit status, assertions, and lower-level evidence that could contradict its summary.
|
|
53
|
+
3. Confirm that the intended path ran and the observer matched the claim.
|
|
54
|
+
4. Compare the observation with the independent expectation and its source.
|
|
55
|
+
5. Preserve failures, contradictions, and partial or reduced-fidelity results.
|
|
62
56
|
|
|
63
|
-
|
|
57
|
+
Do not rerun until unfavorable evidence disappears or change valid tests, implementation, Specs, policy, or acceptance merely to make a signal green. Before revising a material assertion after failure, use Test Design to compare what the old and new checks establish. Repair source-backed observer or expectation errors; a weaker replacement leaves the original claim Inconclusive unless other evidence establishes it. Expose that limitation before acceptance rather than carry the stronger claim into the report.
|
|
64
58
|
|
|
65
|
-
|
|
59
|
+
Tests may be written before or after implementation as the task warrants. No formal test-first sequence is required. If using a failure to support diagnosis or regression claims, actually observe it at the relevant boundary; do not invent an earlier failing run from a later passing test.
|
|
66
60
|
|
|
67
|
-
|
|
61
|
+
## Classify Execution And Support Separately
|
|
68
62
|
|
|
69
|
-
|
|
70
|
-
- **Failed:** the check executed validly and its defined assertion did not hold.
|
|
71
|
-
- **Error:** the observing mechanism or check execution was invalid.
|
|
72
|
-
- **Unavailable:** the required check could not be attempted safely or reliably.
|
|
63
|
+
**Check result** describes the selected check's defined assertion:
|
|
73
64
|
|
|
74
|
-
|
|
65
|
+
- **Passed:** it executed validly and the assertion held.
|
|
66
|
+
- **Failed:** it executed validly and the assertion did not hold.
|
|
67
|
+
- **Error:** the observing mechanism or execution was invalid.
|
|
68
|
+
- **Unavailable:** the check could not be attempted safely or reliably.
|
|
75
69
|
|
|
76
|
-
|
|
70
|
+
A check may Pass by observing an expected rejection or failure.
|
|
77
71
|
|
|
78
|
-
|
|
72
|
+
**Claim result** describes what the evidence establishes:
|
|
73
|
+
|
|
74
|
+
- **Supported:** direct fresh evidence establishes the claim at its required boundary.
|
|
79
75
|
- **Contradicted:** evidence shows the claim is false.
|
|
80
|
-
- **Inconclusive:** evidence
|
|
81
|
-
- **Unavailable:**
|
|
76
|
+
- **Inconclusive:** available evidence cannot establish or refute it at that boundary.
|
|
77
|
+
- **Unavailable:** required evidence cannot currently be obtained safely or reliably.
|
|
82
78
|
|
|
83
|
-
A Passed check
|
|
79
|
+
A Passed check can leave the claim Inconclusive. A Failed check can expose a defect, invalid expectation, environment problem, or source conflict. Classify only the supported conclusion. Missing evidence is not zero, safe, passed, or probably correct.
|
|
84
80
|
|
|
85
|
-
|
|
81
|
+
If the user skips a check, respect that choice and leave the corresponding claim unverified. Use [Diagnose Failure](../../skills/diagnose-failure/SKILL.md) when contradictions are unexplained or failure repeats.
|
|
86
82
|
|
|
87
|
-
## Return Evidence To
|
|
83
|
+
## Return Evidence To Its Owner
|
|
88
84
|
|
|
89
|
-
|
|
85
|
+
Return the observation and its limits to the activity using the claim. Base the report on actual assertions, outputs, and the state examined—not test names or the requested work phrased as accomplishments. Distinguish implemented behavior, exercised checks, and supported claims; list missing material cases even when the suite passes. Supported verification permits judgment of the result; it does not itself establish review Pass, close a Slice, or authorize delivery.
|
|
90
86
|
|
|
91
|
-
Return the
|
|
87
|
+
When answering a review Needs evidence item, preserve its pointer, claim, required observing boundary, previous evidence limit, and why the gap mattered. Return the result to the receiving agent for adjudication:
|
|
92
88
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
- **Unavailable:** the review item remains Open and the observing limitation must remain explicit.
|
|
89
|
+
- Supported may settle the factual gap without settling the review.
|
|
90
|
+
- Contradicted may establish or invalidate a finding or expose a source conflict.
|
|
91
|
+
- Inconclusive or Unavailable leaves a material gap open.
|
|
97
92
|
|
|
98
|
-
|
|
93
|
+
Do not revise the independent report, adjudicate its findings, authorize correction, or select another review from verification.
|
|
99
94
|
|
|
100
|
-
## Report
|
|
95
|
+
## Report And Stop
|
|
101
96
|
|
|
102
|
-
For one straightforward Supported claim
|
|
97
|
+
For one straightforward Supported claim, report briefly:
|
|
103
98
|
|
|
104
99
|
```text
|
|
105
100
|
Claim @ required boundary: Supported ([check result]) by [evidence].
|
|
@@ -107,9 +102,10 @@ Proves:
|
|
|
107
102
|
Does not prove:
|
|
108
103
|
```
|
|
109
104
|
|
|
110
|
-
Use
|
|
105
|
+
Use fuller reporting when evidence is adverse, conflicting, consequential, multi-boundary, or returning to adjudication:
|
|
111
106
|
|
|
112
107
|
```text
|
|
108
|
+
Review item: [when applicable]
|
|
113
109
|
Claim:
|
|
114
110
|
Required boundary:
|
|
115
111
|
Evidence:
|
|
@@ -117,7 +113,7 @@ Check result:
|
|
|
117
113
|
Claim result:
|
|
118
114
|
Proves:
|
|
119
115
|
Does not prove:
|
|
120
|
-
Required next evidence:
|
|
116
|
+
Required next evidence: [only when unresolved]
|
|
121
117
|
```
|
|
122
118
|
|
|
123
|
-
|
|
119
|
+
Do not manufacture empty fields or proof beyond the observation. When the result changes the work's direction or reaches its boundary, return to Workflow. Stop once the claim is classified and the supported next route or missing evidence is explicit.
|
|
@@ -15,6 +15,8 @@ Evidence proves only the boundary it directly observes.
|
|
|
15
15
|
|
|
16
16
|
Name the strongest level actually observed. Do not collapse source inspection, helper execution, registered entrypoint invocation, fallback replay, native dispatch, and installed execution into one "integration passed" claim.
|
|
17
17
|
|
|
18
|
+
Before substantial work depends on an unfamiliar fixture, establish its actual entrypoint, observing stage, and how it captures the required result. A fixture named "integration" is not evidence of native dispatch. Keep a useful lower-boundary check, but do not substitute it for the required observer. Return an unavailable observer as a limitation rather than redesign production to suit the fixture.
|
|
19
|
+
|
|
18
20
|
## Observe Real Work
|
|
19
21
|
|
|
20
22
|
A counter, trace, spy, or event proves execution only when it observes inside or wraps the actual invoked boundary. Manually updating evidence beside test setup proves only that the test updated it.
|
|
@@ -26,7 +28,7 @@ A zero value proves absence only when:
|
|
|
26
28
|
- the observation window covered the complete operation;
|
|
27
29
|
- failure did not bypass or disable observation.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
Identify a relevant adversarial disproof: bypass the producer, replay an event, call the helper directly, or resolve checkout code instead of the installed root. When inspection cannot establish the observer's sensitivity, exercise one such counterexample within covered effects; the intended assertion must detect the missing boundary, not merely fail in setup. No universal fault-injection matrix is required.
|
|
30
32
|
|
|
31
33
|
## Claim Map
|
|
32
34
|
|
|
@@ -42,4 +44,4 @@ Proves:
|
|
|
42
44
|
Does not prove:
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
Qualify or split the reported claim when one mechanism cannot observe every asserted boundary. Required acceptance remains unresolved; do not silently downgrade it or treat another green lower-boundary run as its resolution.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Test Design
|
|
2
|
+
|
|
3
|
+
Read this before designing or materially changing a behavior check, including regression or characterization coverage.
|
|
4
|
+
|
|
5
|
+
Choose a real observing boundary and an independent expected result. This guidance does not prescribe test-first sequencing, a fixed unit/integration/end-to-end ratio, or a test-count target.
|
|
6
|
+
|
|
7
|
+
## Start From Accepted Behavior
|
|
8
|
+
|
|
9
|
+
Name the caller-visible result, its governing source, and the behavior a wrong implementation would exhibit. Do not derive requirements from the code or preserve accidental machinery because it already has tests.
|
|
10
|
+
|
|
11
|
+
Expected results should come from accepted source truth, a worked example, a protocol contract, or an independently calculated value. Do not compute the expected value with the same algorithm being tested; that creates agreement by construction.
|
|
12
|
+
|
|
13
|
+
For a consequential or repeatedly misunderstood property, make the distinction concrete: required behavior, one relevant wrong behavior, and the observation that separates them. Ask whether that wrong implementation could still pass; if so, strengthen the seam or assertion.
|
|
14
|
+
|
|
15
|
+
When sensitivity remains uncertain, exercise one relevant counterexample or temporary isolated defect only within covered effects. Confirm the intended assertion detects the behavioral mistake; a compilation error or fixture crash proves no such sensitivity. Restore or discard the temporary change and check the actual candidate. Adequate inspection needs no extra run, and ordinary tests need no mandatory mutation-testing cycle.
|
|
16
|
+
|
|
17
|
+
## Choose The Confidence Boundary
|
|
18
|
+
|
|
19
|
+
Start from the highest stable interface used by callers, then choose the smallest environment that still exercises the required behavior and failure path:
|
|
20
|
+
|
|
21
|
+
- **Focused behavior test:** deterministic logic or one stable public operation.
|
|
22
|
+
- **Integration test:** collaborating components, persistence, serialization, process boundaries, or a real adapter contract.
|
|
23
|
+
- **End-to-end or user-path check:** an assembled flow whose value depends on the system working together.
|
|
24
|
+
- **Characterization:** observed existing behavior that must remain unchanged during a selected refactor.
|
|
25
|
+
|
|
26
|
+
Characterization records what exists, not what should exist. Protect only accepted behavior or behavior required to remain stable for the selected transformation. Return conflicting or undefined expectations before fossilizing them as tests.
|
|
27
|
+
|
|
28
|
+
A smaller environment is not better when it mocks away the claim. A larger one is not better when extra machinery adds noise without proving more.
|
|
29
|
+
|
|
30
|
+
Prefer state, outputs, errors, persisted effects, and caller-visible behavior. Assert an internal interaction only when that interaction is itself contractual or the real effect cannot be observed safely. Keep one behavior concept per test; multiple assertions may describe one complete outcome.
|
|
31
|
+
|
|
32
|
+
## Preserve The Property When Revising A Check
|
|
33
|
+
|
|
34
|
+
When changing a material assertion or observer after failure, compare the old and new behavioral predicates: what could each accept incorrectly? Correct a wrong expectation from its governing source or repair the observer while preserving the required property. Explain a material change where the result is assessed; do not narrate routine assertion edits.
|
|
35
|
+
|
|
36
|
+
Exact position equality replaced by a non-negative-number check loses exactness. Inspecting a registration object instead of the next native request changes the observing boundary. Neither is an equivalent fixture repair.
|
|
37
|
+
|
|
38
|
+
If the replacement establishes less, leave the original claim unresolved unless other adequate evidence still establishes it at the required boundary. Return any remaining evidence limitation before acceptance. Under delegation, return it to the directing participant; changing user-owned acceptance still requires the user's decision. Do not freeze a demonstrably wrong test, or weaken a correct property because it is difficult to observe.
|
|
39
|
+
|
|
40
|
+
## Check Required Failures And Forbidden Effects
|
|
41
|
+
|
|
42
|
+
For accepted rejection, persistence, authorization, retry, cancellation, or recovery behavior, identify the dimensions that materially change the result:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
entry point
|
|
46
|
+
× valid or invalid input
|
|
47
|
+
× empty or existing accepted state
|
|
48
|
+
× pre-commit or post-commit failure
|
|
49
|
+
× first call or retry/replay
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Select only rows that can disprove the required contract. Do not expand a matrix for hypothetical completeness. For the relevant rows, check returned results, allowed and forbidden effects, prior-state preservation, and required diagnostic or recovery evidence.
|
|
53
|
+
|
|
54
|
+
When accepted conditions can coincide and interact materially, check their composition rather than assuming isolated tests commute. For example, an invalid replacement must not destroy prior accepted state merely because the rejection return value is correct.
|
|
55
|
+
|
|
56
|
+
Undefined consequential failure behavior is a decision to resolve, not a test expectation to invent.
|
|
57
|
+
|
|
58
|
+
## Use Faithful Dependencies
|
|
59
|
+
|
|
60
|
+
Prefer, where practical:
|
|
61
|
+
|
|
62
|
+
1. the real implementation when safe, controllable, and sufficiently deterministic;
|
|
63
|
+
2. a lightweight fake preserving the relevant contract;
|
|
64
|
+
3. a stub supplying fixed data needed to reach the path;
|
|
65
|
+
4. a mock or spy when the interaction itself matters.
|
|
66
|
+
|
|
67
|
+
Before replacing a dependency, identify the behavior and effects it owns, which the claim depends on, and how the double preserves them. Replace the slow, external, destructive, privileged, or nondeterministic boundary—not the higher-level behavior the test claims to prove.
|
|
68
|
+
|
|
69
|
+
External APIs, email/payment delivery, uncontrollable time or randomness, destructive infrastructure, and unavailable remote services can justify doubles. A real filesystem or database may be simpler and more faithful than imitating it.
|
|
70
|
+
|
|
71
|
+
Preserve relevant fields, invariants, errors, and downstream effects. Check a double against an existing schema, recorded contract, or shared contract tests when drift could produce false confidence. Do not build a second production implementation inside the fixture.
|
|
72
|
+
|
|
73
|
+
Keep fixture construction and cleanup in test utilities. Do not add public production methods, flags, branches, or lifecycle operations used only by tests.
|
|
74
|
+
|
|
75
|
+
## Control Time And Concurrency Honestly
|
|
76
|
+
|
|
77
|
+
Prefer existing seams for clocks, randomness, scheduling, and external events. Do not expose new public test hooks merely for convenient assertions.
|
|
78
|
+
|
|
79
|
+
Use observable synchronization, deterministic inputs, bounded eventual assertions, or the real diagnostic loop instead of arbitrary sleeps as proof. When timing or flakiness remains unexplained, use [Diagnose Failure](../../diagnose-failure/SKILL.md) before selecting a production correction.
|
|
80
|
+
|
|
81
|
+
Test order does not establish correctness. A test written after code can be valid; an earlier test can still exercise the wrong path. Preserve evidence of which observations actually ran and never claim an unobserved earlier failure.
|
|
82
|
+
|
|
83
|
+
## Question Test Machinery Before Expanding It
|
|
84
|
+
|
|
85
|
+
Reconsider the seam when setup becomes more conditional than the behavior, doubles reproduce internal orchestration, private states must be exposed, or integration fails despite isolated tests passing.
|
|
86
|
+
|
|
87
|
+
A real integration check may be simpler than many mocks. When direct evidence shows caller coordination or unclear ownership, use [Design for Depth](../../design-for-depth/SKILL.md) to assess that boundary. Do not redesign production solely to satisfy a test framework or retain machinery that only its tests require.
|
|
88
|
+
|
|
89
|
+
Stop designing checks when the required behavior has an adequate independent observer. More green tests do not justify broader requirements or stronger completion claims.
|
package/skills/workflow/SKILL.md
CHANGED
|
@@ -1,173 +1,127 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "workflow"
|
|
3
|
-
description: "Use when authority, current ownership, route changes, continuity, selected checkpoints, or Supported Exit must be coordinated across Freeflow activities."
|
|
3
|
+
description: "Use when authority, current ownership, readiness to act, route changes, continuity, selected checkpoints, or Supported Exit must be coordinated across Freeflow activities."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Workflow
|
|
7
7
|
|
|
8
|
-
Own the outer Interaction Lifecycle.
|
|
8
|
+
Own the outer Interaction Lifecycle. Establish what work is agreed, keep one current owner, require enough understanding for the next action, and continue or return at the agreed boundary.
|
|
9
9
|
|
|
10
|
-
Workflow does not
|
|
10
|
+
Workflow coordinates the agent's work; it does not supervise every tool call or require the user to plan the implementation. Skills, artifacts, evidence, and compute profiles never create authority or change ownership merely by being selected.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Establish The Work Agreement
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Interpret the whole turn through the Interaction Contract. Distinguish discussion from a request to act.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
- For discussion or a question, collaborate and inspect relevant existing evidence as needed. Do not turn shared understanding into implementation authority.
|
|
17
|
+
- For execution, establish the intended outcome, permitted scope, and user-facing return condition. The agreement may cover a plan, one correction, one Slice, or a whole task.
|
|
18
|
+
- If the request already establishes those boundaries, acknowledge them briefly and proceed. Otherwise ask only the missing material question and wait before the unsettled execution.
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
For example, after discussing several possible Slices, an ambiguous "proceed" may need: "Implement the next Slice and return, or finish the described task?" Do not ask this when the user already requested the whole task with a clear endpoint.
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
The agreement may authorize investigation and approach selection as part of accomplishing the result. It need not prescribe files, tools, or implementation details. Keep it in conversation unless continuity requires task memory; it is not a mandatory artifact or separate autonomy mode.
|
|
21
23
|
|
|
22
|
-
A
|
|
24
|
+
Interpret authority from the request and still-valid approval. A direct request covers its bounded outcome and entailed tools, checks, and reversible local choices. Classify passive observation, active evidence generation, and mutation or delivery cumulatively. Planning an experiment does not make its effects passive.
|
|
23
25
|
|
|
24
|
-
Before
|
|
26
|
+
Before an uncovered effect, explain its purpose, exact action, expected result, and stop condition; ask once and wait. Specs, Plans, Working Records, reviews, proposals, and useful evidence may constrain work but cannot authorize it.
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
## Establish Readiness For The Next Result
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Choose the narrowest discoverable owner whose job matches the current bounded activity. The categories below are common owners, not an exhaustive list.
|
|
31
|
-
|
|
32
|
-
### Understand or decide
|
|
33
|
-
|
|
34
|
-
- [Discuss](../discuss/SKILL.md) for materially open direction, alternatives, assumptions, or tradeoffs.
|
|
35
|
-
- [Decision Gate](../decision-gate/SKILL.md) for one blocking user-owned choice or source conflict.
|
|
36
|
-
|
|
37
|
-
Use [Design for Depth](../design-for-depth/SKILL.md) as a lens when direction is design-bearing. A lens does not become the current owner.
|
|
38
|
-
|
|
39
|
-
### Produce, preserve, or judge durable state
|
|
40
|
-
|
|
41
|
-
- [Track Work](../track-work/SKILL.md) for Working Record creation, recovery, reconciliation, and lifecycle.
|
|
42
|
-
- [Write Spec](../write-spec/SKILL.md) for stable accepted content or contracts.
|
|
43
|
-
- [Write Plan](../write-plan/SKILL.md) for stable ordered execution strategy.
|
|
44
|
-
- [Review Artifact](../review-artifact/SKILL.md) for judgment of a durable guiding artifact.
|
|
45
|
-
|
|
46
|
-
### Execute, investigate, verify, or judge work
|
|
47
|
-
|
|
48
|
-
- [Execute Work](../execute-work/SKILL.md) for concrete implementation, documentation, configuration, learning, or maintenance.
|
|
49
|
-
- [Migration Work](../migration-work/SKILL.md) for moving consumers, state, or traffic between paths.
|
|
50
|
-
- [Diagnose Failure](../diagnose-failure/SKILL.md) for unexplained or repeated failure.
|
|
51
|
-
- [Verify Work](../verify-work/SKILL.md) for determining what direct evidence proves.
|
|
52
|
-
- [Review Work](../review-work/SKILL.md) for implementation judgment, independent review, or adjudication.
|
|
30
|
+
Use the Feedback Loop to establish the next action's basis, not to perform a fixed sequence of ceremonies:
|
|
53
31
|
|
|
54
|
-
|
|
32
|
+
```text
|
|
33
|
+
Orient or reconstruct current state
|
|
34
|
+
-> WHAT: establish the required outcome and constraints
|
|
35
|
+
-> HOW: establish a supported approach for the next coherent unit
|
|
36
|
+
-> act through the current owner
|
|
37
|
+
-> verify what happened
|
|
38
|
+
-> self-review the supported result
|
|
39
|
+
-> continue, re-enter, ask, stop, or complete
|
|
40
|
+
```
|
|
55
41
|
|
|
56
|
-
|
|
42
|
+
These are questions to resolve, not mandatory separate reads, documents, or user turns. Reuse understanding that remains supported. One observation can answer both what and how. A factual answer or discussion can exit without implementation.
|
|
57
43
|
|
|
58
|
-
-
|
|
59
|
-
- [Handoff](../handoff/SKILL.md) for point-in-time continuation transfer.
|
|
60
|
-
- [Finish Branch](../finish-branch/SKILL.md) for integration, preservation, discard, or branch closeout.
|
|
61
|
-
- [Release Work](../release-work/SKILL.md) for versioned publication.
|
|
62
|
-
- [Launch Work](../launch-work/SKILL.md) for production exposure, rollback, or recovery.
|
|
44
|
+
Before production changes, the agent must understand the required result and have a source-backed approach, affected boundary, and check capable of disagreeing. Do not demand every future file or detail before the next unit. Do not start substantial dependent work while a premise capable of invalidating it remains unresolved.
|
|
63
45
|
|
|
64
|
-
|
|
46
|
+
Use bounded learning when exercising behavior is needed to settle that premise. Its endpoint is the question answered or the observation limit reached—not a production-ready prototype. Existing authority must cover its effects.
|
|
65
47
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
When the owner needs an environment interaction and the action or tool choice is not already obvious, use [Action Selection](../action-selection/SKILL.md). It returns the observation and state change to the same current owner.
|
|
48
|
+
## Choose And Keep One Current Owner
|
|
69
49
|
|
|
70
|
-
|
|
50
|
+
Choose the narrowest activity whose responsibility matches the current question or result.
|
|
71
51
|
|
|
72
|
-
|
|
52
|
+
- [Discuss](../discuss/SKILL.md) owns open direction, alternatives, assumptions, and collaborative outcome or approach decisions.
|
|
53
|
+
- [Decision Gate](../decision-gate/SKILL.md) resolves one known user-owned choice or material source conflict.
|
|
54
|
+
- [Execute Work](../execute-work/SKILL.md) owns concrete work, including bounded implementation preparation, execution, and in-Slice continuation.
|
|
55
|
+
- [Diagnose Failure](../diagnose-failure/SKILL.md) establishes unsupported or repeatedly failing causes before correction.
|
|
56
|
+
- [Verify Work](../verify-work/SKILL.md) establishes factual support; [Review Work](../review-work/SKILL.md) and [Review Artifact](../review-artifact/SKILL.md) judge resulting work and guiding artifacts.
|
|
57
|
+
- [Track Work](../track-work/SKILL.md) owns Working Record creation, reconstruction, reconciliation, and lifecycle.
|
|
58
|
+
- [Write Spec](../write-spec/SKILL.md) owns durable accepted content; [Write Plan](../write-plan/SKILL.md) owns a sufficiently settled ordered strategy.
|
|
59
|
+
- [Migration Work](../migration-work/SKILL.md) owns movement of consumers, state, or traffic.
|
|
60
|
+
- [Commit Work](../commit-work/SKILL.md), [Handoff](../handoff/SKILL.md), [Finish Branch](../finish-branch/SKILL.md), [Release Work](../release-work/SKILL.md), and [Launch Work](../launch-work/SKILL.md) own their selected preservation or delivery boundaries.
|
|
73
61
|
|
|
74
|
-
|
|
62
|
+
[Design for Depth](../design-for-depth/SKILL.md) supplies a lens where design matters. [Simplify Code](../simplify-code/SKILL.md) and domain guidance may supply an execution method without becoming another owner. Verify Work supplies test-design guidance when checks must be designed; a formal test-first sequence is not required. [Bypass](../bypass/SKILL.md) reduces explicitly selected optional pressure, not authority or evidence requirements.
|
|
75
63
|
|
|
76
|
-
|
|
64
|
+
When the owner needs an environment interaction and the action or tool choice is not already obvious, use [Action Selection](../action-selection/SKILL.md). It returns the observation and state change to the same owner. Read [Domain Skill Composition](references/domain-skill-composition.md) when specialized guidance is needed.
|
|
77
65
|
|
|
78
|
-
|
|
66
|
+
Keep the owner while its question, outcome, authority, and observing boundary remain coherent. Local implementation preparation does not require another discussion merely because a file or signature must be inspected. Cognitive Routing controls compute placement, not these responsibilities.
|
|
79
67
|
|
|
80
|
-
|
|
68
|
+
## Size Work By Context And Dependencies
|
|
81
69
|
|
|
82
|
-
-
|
|
83
|
-
- **Correct locally:** one clear defect preserves accepted intent and effects; return it to the producing owner, re-verify the affected boundary, and self-review the corrected state.
|
|
84
|
-
- **Broaden evidence:** the claim exceeds the current observer; use Verify Work or return the missing evidence requirement to the current owner.
|
|
85
|
-
- **Diagnose:** the cause is unclear, evidence conflicts, or correction repeats.
|
|
86
|
-
- **Discuss:** assumptions, alternatives, strategy, or direction materially changed.
|
|
87
|
-
- **Decision Gate:** one user-owned choice or source conflict blocks safe continuation.
|
|
88
|
-
- **Track:** durable task state must be created, recovered, reconciled, or changed materially.
|
|
89
|
-
- **Revise an artifact:** accepted content, strategy, decision, or transfer state changed; return to that artifact’s owner.
|
|
90
|
-
- **Review:** selected judgment is needed after factual support.
|
|
91
|
-
- **Checkpoint:** a selected boundary is due before dependent work.
|
|
92
|
-
- **Stop or defer:** no safe, authorized, and worthwhile continuation remains.
|
|
70
|
+
Use a whole-task attempt when its necessary working set, execution, checking, and likely correction remain manageable. Otherwise choose coherent outcomes in dependency order. A Slice may contain several bounded activities and delegation units; none is a tool-call quota or file batch.
|
|
93
71
|
|
|
94
|
-
|
|
72
|
+
Keep the task horizon directional: outcome, major dependencies, and proposed remaining Slices. Make the current unit concrete enough to execute. Do not research all later work now or promise an exact token forecast.
|
|
95
73
|
|
|
96
|
-
Do not
|
|
74
|
+
Split when distinct dependencies, uncertainty, outcome boundaries, or context requirements make one attempt unreliable. Do not split every bug, test, review, or implementation stage mechanically. A context cycle can contain several Slices, and one Slice can span context cycles.
|
|
97
75
|
|
|
98
|
-
|
|
76
|
+
When continuity matters, use Track Work to preserve the current understanding and useful provisional Future Work. Proposed order is revisable and not authority. Before the next Slice, check that prerequisites actually hold and choose only the additional context it needs.
|
|
99
77
|
|
|
100
|
-
|
|
78
|
+
## Re-enter Only What Changed
|
|
101
79
|
|
|
102
|
-
|
|
80
|
+
Route from the consequence of evidence:
|
|
103
81
|
|
|
104
|
-
|
|
82
|
+
- Clear defect with a supported remedy -> return to its producer, correct within authority, then recheck the affected result.
|
|
83
|
+
- Outcome settled, implementation approach invalidated -> re-establish how through Execute Work, or Discuss when material alternatives require reconsideration.
|
|
84
|
+
- Cause unsupported, contradictory, or repeatedly failing -> Diagnose Failure.
|
|
85
|
+
- Outcome, expected behavior, or acceptance unsettled -> Discuss or Decision Gate.
|
|
86
|
+
- Required claim exceeds its evidence -> distinguish unavailable/stale evidence, an inadequate observer, and a demonstrated defect. Recover or establish the missing observation through Verify Work before commissioning a guessed fix; do not silently narrow acceptance.
|
|
87
|
+
- Optional stronger claim lacks evidence -> qualify or withdraw that claim rather than automatically expand implementation.
|
|
88
|
+
- Accepted content or strategy changed -> reconcile affected task memory and return affected artifacts to their owners before dependent use.
|
|
89
|
+
- No useful covered continuation -> stop, defer, or ask.
|
|
105
90
|
|
|
106
|
-
|
|
107
|
-
2. compare recovered memory with the current user turn and relevant live state;
|
|
108
|
-
3. return to the owner whose activity actually continues.
|
|
91
|
+
Before adding a prerequisite, ask: does it serve an accepted requirement, or only preserve the chosen approach or add an optional guarantee? Seek the smallest supported remedy that preserves the outcome. One failed mechanism is not proof that every in-scope approach is impossible.
|
|
109
92
|
|
|
110
|
-
|
|
93
|
+
If a remedy changes behavior, compatibility, host ownership, scope, or another user-owned boundary, explain the concrete consequence and realistic alternatives before adopting it. Do not make an expansive recommendation appear necessary by describing only its technical mechanism.
|
|
111
94
|
|
|
112
|
-
|
|
95
|
+
Preserve valid work and contrary evidence. Before requiring more correction or proof, identify the accepted requirement it protects; supervisory preference must not become a stronger obligation. When a mismatch repeats, isolate what remains unresolved and identify a changed basis for the next attempt rather than repeat the same assignment more forcefully.
|
|
113
96
|
|
|
114
|
-
A
|
|
97
|
+
A new question does not authorize another prototype; a successful prototype does not authorize production promotion. Ordinary local adaptation remains covered when the agreement is unchanged.
|
|
115
98
|
|
|
116
|
-
##
|
|
99
|
+
## Preserve Continuity Without Restarting
|
|
117
100
|
|
|
118
|
-
|
|
101
|
+
Use Track Work when losing decisions, the current result, dependencies, evidence, blockers, or the next action could misalign continuation. Do not create a record for a short disposable result merely because work occurred.
|
|
119
102
|
|
|
120
|
-
|
|
103
|
+
Before a known context boundary, preserve material changed understanding, partial effects, relevant failed approaches, remaining dependencies, and the next useful action through Track Work. Keep the intended outcome and user-facing return condition distinct from the current implementation approach. Do not wait for artificial completion or write a command log.
|
|
121
104
|
|
|
122
|
-
|
|
123
|
-
- selected independent review;
|
|
124
|
-
- a local commit;
|
|
125
|
-
- continuity transfer;
|
|
126
|
-
- branch integration;
|
|
127
|
-
- release;
|
|
128
|
-
- launch.
|
|
105
|
+
After context loss or uncertain continuity, follow core recovery guidance and read the complete Working Record through Track Work's `full` view. Reconcile its current sections and relevant History with current user direction, defining artifacts, and live state; confirm that the recovered agreement still authorizes the next action and its prerequisites hold. If full recovery is unavailable or incomplete, report the limit before task work. Reload the owner's exact method if absent. Inspect additional sources only where they change the next action, rather than replaying the investigation.
|
|
129
106
|
|
|
130
|
-
|
|
107
|
+
With intact context, use `resume` or targeted record reads when current-state readback is useful. Do not trigger full reconstruction merely because another turn or ordinary pause occurred.
|
|
131
108
|
|
|
132
|
-
|
|
109
|
+
A record, summary, or other conversation branch can preserve approval evidence but cannot create current authority or settle compute-routing state.
|
|
133
110
|
|
|
134
|
-
|
|
111
|
+
## Continue To The Agreed Return Boundary
|
|
135
112
|
|
|
136
|
-
|
|
113
|
+
Continue across covered actions and Slices without asking for another "continue" when the agreement covers the remaining task. Starting a new Slice still requires Track Work's lifecycle operation when a record exists; closure alone does not select it.
|
|
137
114
|
|
|
138
|
-
|
|
115
|
+
A method change, Standard handback, passing check, or context reconstruction is not automatically a user-facing return. Resume covered work after required recovery. Respect fresh user direction and stop when the agreed endpoint, a genuine blocker, or an uncovered consequential choice is reached.
|
|
139
116
|
|
|
140
|
-
|
|
117
|
+
Select checkpoints only when they protect a meaningful dependency, decision, rollback, transfer, integration, or delivery boundary. Their owners perform them; Track Work preserves them when needed. Self-review is ordinary feedback, not a checkpoint.
|
|
141
118
|
|
|
142
|
-
|
|
119
|
+
Independent review must be selected and covered. Findings do not authorize correction or another review. Reuse adequate evidence and affected self-review; do not create an automatic review-fix-review loop. Commit, push, integration, release, launch, and other separately controlled effects remain excluded unless explicitly covered.
|
|
143
120
|
|
|
144
121
|
## Reach A Supported Exit
|
|
145
122
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Claim completion only when:
|
|
149
|
-
|
|
150
|
-
- fresh evidence supports the accepted outcome at the required boundary;
|
|
151
|
-
- every completed bounded activity received required self-review with no unresolved material issue;
|
|
152
|
-
- selected reviews and checkpoints are resolved;
|
|
153
|
-
- task memory and required artifacts accurately describe the supported state;
|
|
154
|
-
- no material contradiction, source conflict, blocker, or user-owned decision remains hidden;
|
|
155
|
-
- no separately controlled action is being implied as complete.
|
|
156
|
-
|
|
157
|
-
Report proportionately:
|
|
158
|
-
|
|
159
|
-
- the supported outcome;
|
|
160
|
-
- strongest evidence and proof limits;
|
|
161
|
-
- material unresolved or deferred state;
|
|
162
|
-
- the current route when work continues or waits.
|
|
163
|
-
|
|
164
|
-
A recommendation for a next action does not authorize it.
|
|
165
|
-
|
|
166
|
-
## Stop
|
|
167
|
-
|
|
168
|
-
Stop Workflow when:
|
|
123
|
+
Claim completion only when the agreed outcome is supported by fresh evidence, required self-review is complete, selected independent reviews are adjudicated, selected checkpoints are resolved, and required task memory and artifacts describe the result accurately. No material contradiction, source conflict, blocker, or user-owned decision may be hidden.
|
|
169
124
|
|
|
170
|
-
|
|
171
|
-
- one current owner can continue without an unresolved authority, ownership, checkpoint, continuity, or route question.
|
|
125
|
+
Report the result, strongest evidence and limits, unresolved or deferred work, and the return boundary reached. Do not imply that an unperformed delivery action occurred or that optional improvements are unfinished obligations.
|
|
172
126
|
|
|
173
|
-
|
|
127
|
+
Stop Workflow when a Supported Exit is reached or one current owner can continue without an unresolved coordination question. Re-enter only when evidence or direction changes that responsibility.
|