@hassangameryt/freeflow 0.7.3 → 0.8.0
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/NOTICE +14 -0
- package/README.md +26 -31
- package/capabilities/cognitive-routing/SKILL.md +106 -161
- package/capabilities/cognitive-routing/references/both-mode.md +36 -0
- package/capabilities/cognitive-routing/references/executor-mode.md +48 -0
- package/capabilities/cognitive-routing/references/helper-mode.md +47 -0
- package/capabilities/compaction/SKILL.md +49 -0
- package/capabilities/compaction/references/summary-format.md +239 -0
- package/command-surface.json +4 -0
- package/gemini-extension.json +1 -1
- package/hooks/shared/runtime-context.mjs +28 -30
- package/licenses/Apache-2.0.txt +55 -0
- package/package.json +22 -9
- package/pi-extension/README.md +41 -0
- package/pi-extension/dist/cognitive-routing/assembler.js +393 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/config.js +5 -2
- package/pi-extension/dist/cognitive-routing/economics.js +45 -0
- package/pi-extension/dist/cognitive-routing/event-schema.js +388 -0
- package/pi-extension/dist/{session-sources/events.js → cognitive-routing/event-store.js} +103 -40
- package/pi-extension/dist/cognitive-routing/gate.js +241 -0
- package/pi-extension/dist/cognitive-routing/handlers.js +899 -0
- package/pi-extension/dist/cognitive-routing/handoffs.js +350 -0
- package/pi-extension/dist/cognitive-routing/model-control.js +467 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/projection.js +229 -56
- package/pi-extension/dist/cognitive-routing/provenance.js +81 -0
- package/pi-extension/dist/cognitive-routing/runtime.js +396 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/schemas.js +43 -7
- package/pi-extension/dist/cognitive-routing/session.js +221 -0
- package/pi-extension/dist/{session-sources → cognitive-routing}/sources.js +99 -85
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/state.js +37 -378
- package/pi-extension/dist/cognitive-routing/status.js +80 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/tools.js +12 -12
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/types.js +5 -11
- package/pi-extension/dist/compaction/carry.js +191 -0
- package/pi-extension/dist/compaction/config.js +22 -0
- package/pi-extension/dist/compaction/controller.js +471 -0
- package/pi-extension/dist/compaction/harness.js +77 -0
- package/pi-extension/dist/compaction/results.js +158 -0
- package/pi-extension/dist/compaction/thresholds.js +35 -0
- package/pi-extension/dist/compaction/tool.js +57 -0
- package/pi-extension/dist/host/branch.js +13 -0
- package/pi-extension/dist/host/canonical.js +12 -0
- package/pi-extension/dist/host/catalog.js +77 -0
- package/pi-extension/dist/host/config.js +374 -0
- package/pi-extension/dist/host/projection-tags.js +60 -0
- package/pi-extension/dist/host/prompts.js +82 -0
- package/pi-extension/dist/{session-sources → host}/read-only-session.js +112 -1
- package/pi-extension/dist/{runtime → host}/request-history.js +121 -39
- package/pi-extension/dist/host/runtime-state.js +189 -0
- package/pi-extension/dist/{settings/settings-ui.js → host/settings/freeflow-command.js} +620 -410
- package/pi-extension/dist/{settings/settings-tui.js → host/settings/settings-view.js} +186 -73
- package/pi-extension/dist/host/staging.js +28 -0
- package/pi-extension/dist/host/status.js +101 -0
- package/pi-extension/dist/index.js +423 -173
- package/pi-extension/dist/provider-support/cache/anchor.js +21 -0
- package/pi-extension/dist/provider-support/cache/anthropic.js +102 -0
- package/pi-extension/dist/provider-support/cache/health.js +73 -0
- package/pi-extension/dist/provider-support/cache/index.js +58 -0
- package/pi-extension/dist/provider-support/cache/keepalive.js +210 -0
- package/pi-extension/dist/provider-support/cache/monitor.js +17 -0
- package/pi-extension/dist/provider-support/cache/openai-responses.js +48 -0
- package/pi-extension/dist/provider-support/effort.js +13 -0
- package/pi-extension/dist/provider-support/index.js +44 -3
- package/pi-extension/dist/provider-support/{astra → openai}/adapter.js +46 -29
- package/pi-extension/dist/provider-support/{astra → openai}/history.js +10 -8
- package/pi-extension/dist/provider-support/{astra → openai}/index.js +8 -4
- package/pi-extension/dist/provider-support/{astra → openai}/session-state.js +29 -38
- package/pi-extension/dist/provider-support/routes.js +17 -0
- package/pi-extension/dist/tool-execution/apply-patch/grammar.js +23 -0
- package/pi-extension/dist/tool-execution/apply-patch/match.js +38 -0
- package/pi-extension/dist/tool-execution/apply-patch/parser.js +177 -0
- package/pi-extension/dist/tool-execution/apply-patch/plan.js +201 -0
- package/pi-extension/dist/tool-execution/apply-patch/tool.js +84 -0
- package/pi-extension/dist/tool-execution/background.js +238 -0
- package/pi-extension/dist/tool-execution/bash-guard.js +23 -0
- package/pi-extension/dist/tool-execution/config.js +22 -0
- package/pi-extension/dist/tool-execution/edit-messages.js +120 -0
- package/pi-extension/dist/tool-execution/file-state.js +138 -0
- package/pi-extension/dist/tool-execution/file-tracking.js +143 -0
- package/pi-extension/dist/tool-execution/prompt.js +54 -0
- package/pi-extension/dist/tool-execution/tools.js +16 -0
- package/pi-extension/freeflow/README.md +9 -0
- package/plugin.json +1 -1
- package/runtime/prompts/cognitive-routing.md +4 -4
- package/runtime/prompts/core.md +22 -75
- package/runtime/prompts/interaction-contract.md +15 -8
- package/runtime/prompts/tool-execution.md +38 -0
- package/runtime/prompts/working-method.md +108 -0
- package/skills/action-selection/SKILL.md +39 -47
- package/skills/action-selection/references/trajectory-stalls.md +2 -0
- package/skills/bypass/SKILL.md +2 -2
- package/skills/commit-work/SKILL.md +31 -83
- package/skills/commit-work/references/git-state-edges.md +1 -1
- package/skills/commit-work/references/simple-push.md +2 -0
- package/skills/commit-work/references/staging-decisions.md +1 -1
- package/skills/decision-gate/SKILL.md +31 -50
- package/skills/design-for-depth/SKILL.md +44 -53
- package/skills/design-for-depth/references/design-pressure-signals.md +46 -144
- package/skills/design-for-depth/references/implementation-decisions.md +1 -1
- package/skills/design-for-depth/references/interface-design-loop.md +5 -36
- package/skills/design-for-depth/references/module-and-dependency-design.md +2 -32
- package/skills/design-for-depth/references/state-and-failure-boundaries.md +2 -13
- package/skills/diagnose-failure/SKILL.md +39 -24
- package/skills/diagnose-failure/references/diagnostic-loop-catalog.md +2 -0
- package/skills/diagnose-failure/references/flaky-and-performance-diagnosis.md +2 -2
- package/skills/discuss/SKILL.md +35 -11
- package/skills/discuss/references/discussion-continuity.md +7 -27
- package/skills/evaluate-skill/SKILL.md +49 -80
- package/skills/evaluate-skill/references/evaluation-definition-schema.md +35 -5
- package/skills/evaluate-skill/references/evaluation-design.md +14 -14
- package/skills/evaluate-skill/references/execution-and-evidence.md +26 -5
- package/skills/evaluate-skill/references/review-and-revision.md +3 -1
- package/skills/evaluate-skill/scripts/lib/definitions.mjs +49 -8
- package/skills/evaluate-skill/scripts/lib/pi.mjs +14 -7
- package/skills/evaluate-skill/scripts/lib/review.mjs +196 -0
- package/skills/evaluate-skill/scripts/lib/runner.mjs +45 -8
- package/skills/evaluate-skill/scripts/lib/sandbox.mjs +2 -0
- package/skills/evaluate-skill/scripts/lib/trials.mjs +103 -0
- package/skills/evaluate-skill/scripts/lib/view.mjs +67 -1
- package/skills/evaluate-skill/scripts/pi-command-tool.mjs +144 -0
- package/skills/evaluate-skill/scripts/pi-guard.mjs +30 -13
- package/skills/evaluate-skill/scripts/skill-eval.mjs +114 -34
- package/skills/execute-work/SKILL.md +41 -9
- package/skills/execute-work/references/code-practices.md +2 -0
- package/skills/execute-work/references/execute-work-edges.md +11 -1
- package/skills/handoff/SKILL.md +1 -1
- package/skills/handoff/references/handoff-templates.md +1 -1
- package/skills/review-artifact/SKILL.md +42 -41
- package/skills/review-artifact/references/adjudicate-artifact-review.md +1 -1
- package/skills/review-artifact/references/independent-artifact-reviewer-contract.md +1 -1
- package/skills/review-work/SKILL.md +38 -32
- package/skills/review-work/references/adjudicate-work-review.md +1 -1
- package/skills/review-work/references/independent-work-reviewer-contract.md +1 -1
- package/skills/review-work/references/security-risk-lens.md +2 -4
- package/skills/setup-freeflow/SKILL.md +3 -1
- package/skills/setup-freeflow/references/activation-contract.md +7 -13
- package/skills/setup-freeflow/references/host-setup.md +3 -3
- package/skills/track-work/SKILL.md +113 -161
- package/skills/track-work/references/working-record-format.md +189 -350
- package/skills/track-work/scripts/lib/document.mjs +62 -6
- package/skills/track-work/scripts/lib/format.mjs +16 -1
- package/skills/track-work/scripts/lib/store.mjs +9 -8
- package/skills/track-work/scripts/lib/transitions.mjs +79 -4
- package/skills/track-work/scripts/working-record.mjs +34 -12
- package/skills/verify-work/SKILL.md +29 -20
- package/skills/verify-work/references/browser-runtime-evidence.md +1 -5
- package/skills/verify-work/references/integration-evidence.md +2 -0
- package/skills/verify-work/references/performance-evidence.md +3 -1
- package/skills/verify-work/references/test-design.md +3 -1
- package/skills/workflow/SKILL.md +65 -21
- package/skills/workflow/references/domain-skill-composition.md +5 -3
- package/skills/write-docs/SKILL.md +83 -0
- package/skills/write-docs/references/documentation-shapes.md +119 -0
- package/skills/write-docs/scripts/docs-check.mjs +139 -0
- package/skills/write-plan/SKILL.md +40 -40
- package/skills/write-plan/references/plan-shapes.md +1 -1
- package/skills/write-skill/SKILL.md +107 -147
- package/skills/write-skill/references/activation-boundaries.md +2 -0
- package/skills/write-skill/references/agent-first-instructions.md +22 -10
- package/skills/write-skill/references/progressive-disclosure.md +4 -2
- package/skills/write-skill/references/skill-dependency-graphs.md +2 -0
- package/skills/write-skill/scripts/lib/similarity.mjs +56 -0
- package/skills/write-skill/scripts/skill-author.mjs +18 -2
- package/skills/write-spec/SKILL.md +34 -41
- package/skills/write-spec/references/artifact-standards.md +1 -1
- package/skills/write-spec/references/decision-records.md +2 -0
- package/skills/write-spec/references/spec-shapes.md +1 -1
- package/capabilities/context-virtualization/SKILL.md +0 -103
- package/capabilities/conversation-history/SKILL.md +0 -53
- package/hooks/tests/check-host-adapters.test.mjs +0 -82
- package/hooks/tests/check-runtime-context-hook.sh +0 -212
- package/pi-extension/dist/cognitive-routing-v2/runtime.js +0 -2181
- package/pi-extension/dist/context-virtualization/commands.js +0 -89
- package/pi-extension/dist/context-virtualization/projector.js +0 -42
- package/pi-extension/dist/context-virtualization/runtime.js +0 -378
- package/pi-extension/dist/context-virtualization/state.js +0 -57
- package/pi-extension/dist/context-virtualization/types.js +0 -10
- package/pi-extension/dist/conversation-history/passages.js +0 -66
- package/pi-extension/dist/conversation-history/ranking.js +0 -105
- package/pi-extension/dist/conversation-history/runtime.js +0 -226
- package/pi-extension/dist/conversation-history/search.js +0 -56
- package/pi-extension/dist/conversation-history/types.js +0 -1
- package/pi-extension/dist/freeflow-context/resolver.js +0 -120
- package/pi-extension/dist/freeflow-context/runtime.js +0 -80
- package/pi-extension/dist/freeflow-context/source-projector.js +0 -95
- package/pi-extension/dist/freeflow-context/tool.js +0 -314
- package/pi-extension/dist/freeflow-context/types.js +0 -12
- package/pi-extension/dist/freeflow-context/visibility.js +0 -28
- package/pi-extension/dist/integrations/mcp-config.js +0 -29
- package/pi-extension/dist/runtime/runtime-context.js +0 -754
- package/pi-extension/dist/runtime/runtime-identity.js +0 -5
- package/pi-extension/dist/session-sources/provenance.js +0 -32
- package/pi-extension/dist/ui/text-component.js +0 -57
- package/pi-extension/src/cognitive-routing-v2/budget.ts +0 -42
- package/pi-extension/src/cognitive-routing-v2/config.ts +0 -173
- package/pi-extension/src/cognitive-routing-v2/projection.ts +0 -375
- package/pi-extension/src/cognitive-routing-v2/render.ts +0 -277
- package/pi-extension/src/cognitive-routing-v2/runtime.ts +0 -2241
- package/pi-extension/src/cognitive-routing-v2/schemas.ts +0 -180
- package/pi-extension/src/cognitive-routing-v2/state.ts +0 -839
- package/pi-extension/src/cognitive-routing-v2/tools.ts +0 -62
- package/pi-extension/src/cognitive-routing-v2/types.ts +0 -254
- package/pi-extension/src/context-virtualization/commands.ts +0 -111
- package/pi-extension/src/context-virtualization/projector.ts +0 -62
- package/pi-extension/src/context-virtualization/runtime.ts +0 -428
- package/pi-extension/src/context-virtualization/state.ts +0 -79
- package/pi-extension/src/context-virtualization/types.ts +0 -92
- package/pi-extension/src/conversation-history/passages.ts +0 -81
- package/pi-extension/src/conversation-history/ranking.ts +0 -155
- package/pi-extension/src/conversation-history/runtime.ts +0 -250
- package/pi-extension/src/conversation-history/search.ts +0 -79
- package/pi-extension/src/conversation-history/types.ts +0 -31
- package/pi-extension/src/freeflow-context/resolver.ts +0 -139
- package/pi-extension/src/freeflow-context/runtime.ts +0 -100
- package/pi-extension/src/freeflow-context/source-projector.ts +0 -106
- package/pi-extension/src/freeflow-context/tool.ts +0 -366
- package/pi-extension/src/freeflow-context/types.ts +0 -70
- package/pi-extension/src/freeflow-context/visibility.ts +0 -53
- package/pi-extension/src/index.ts +0 -390
- package/pi-extension/src/integrations/mcp-config.ts +0 -32
- package/pi-extension/src/provider-support/astra/adapter.ts +0 -108
- package/pi-extension/src/provider-support/astra/history.ts +0 -145
- package/pi-extension/src/provider-support/astra/index.ts +0 -12
- package/pi-extension/src/provider-support/astra/session-state.ts +0 -113
- package/pi-extension/src/provider-support/index.ts +0 -5
- package/pi-extension/src/runtime/request-history.ts +0 -243
- package/pi-extension/src/runtime/runtime-context.ts +0 -860
- package/pi-extension/src/runtime/runtime-identity.ts +0 -8
- package/pi-extension/src/session-sources/events.ts +0 -230
- package/pi-extension/src/session-sources/provenance.ts +0 -39
- package/pi-extension/src/session-sources/read-only-session.ts +0 -170
- package/pi-extension/src/session-sources/sources.ts +0 -334
- package/pi-extension/src/settings/settings-tui.ts +0 -501
- package/pi-extension/src/settings/settings-ui.ts +0 -1652
- package/pi-extension/src/ui/text-component.ts +0 -66
- package/pi-extension/tests/cache-reuse/history.test.js +0 -117
- package/pi-extension/tests/cache-reuse/native.test.js +0 -91
- package/pi-extension/tests/cache-reuse/settings.test.js +0 -211
- package/pi-extension/tests/cognitive-routing-v2/communication.test.js +0 -577
- package/pi-extension/tests/cognitive-routing-v2/compaction-input.test.js +0 -183
- package/pi-extension/tests/cognitive-routing-v2/delegation.test.js +0 -557
- package/pi-extension/tests/cognitive-routing-v2/native.test.js +0 -474
- package/pi-extension/tests/cognitive-routing-v2/performance.test.js +0 -87
- package/pi-extension/tests/cognitive-routing-v2/persistence.test.js +0 -300
- package/pi-extension/tests/cognitive-routing-v2/projection.test.js +0 -241
- package/pi-extension/tests/cognitive-routing-v2/recovery.test.js +0 -1034
- package/pi-extension/tests/cognitive-routing-v2/render.test.js +0 -244
- package/pi-extension/tests/cognitive-routing-v2/runtime.test.js +0 -423
- package/pi-extension/tests/cognitive-routing-v2/stabilization.test.js +0 -521
- package/pi-extension/tests/cognitive-routing-v2/state.test.js +0 -586
- package/pi-extension/tests/context-virtualization/extension.test.js +0 -775
- package/pi-extension/tests/context-virtualization/projector.test.js +0 -110
- package/pi-extension/tests/context-virtualization/runtime.test.js +0 -230
- package/pi-extension/tests/conversation-history/runtime.test.js +0 -98
- package/pi-extension/tests/conversation-history/search.test.js +0 -97
- package/pi-extension/tests/fixtures/pi-host.js +0 -4
- package/pi-extension/tests/fixtures/routing-native.js +0 -191
- package/pi-extension/tests/integration/mode-free-core.test.js +0 -220
- package/pi-extension/tests/integration/pi-extension.test.js +0 -1447
- package/pi-extension/tests/integration/prompt-architecture.test.js +0 -447
- package/pi-extension/tests/integration/unaffected-regressions.test.js +0 -478
- package/pi-extension/tests/provider-support/astra-boundaries.test.js +0 -75
- package/pi-extension/tests/provider-support/astra.test.js +0 -306
- package/pi-extension/tests/provider-support/cli.test.js +0 -92
- package/pi-extension/tests/provider-support/native.test.js +0 -183
- package/pi-extension/tests/settings/settings-tui.test.js +0 -243
- package/pi-extension/tsconfig.json +0 -16
- package/runtime/prompts/context-virtualization.md +0 -3
- package/runtime/prompts/conversation-history.md +0 -3
- package/skills/design-for-depth/references/software-design-philosophy.md +0 -202
- /package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/budget.js +0 -0
- /package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/render.js +0 -0
|
@@ -9,47 +9,55 @@ Judge whether the complete artifact faithfully represents accepted intent and is
|
|
|
9
9
|
|
|
10
10
|
[Verify Work](../../skills/verify-work/SKILL.md) establishes factual support where claims need verification. Review judges fitness without creating evidence, settling owner decisions, or authorizing revisions.
|
|
11
11
|
|
|
12
|
+
The **Rules** below are binding; if one cannot be met, stop and say why. Everything else is **judgment**: follow its stated goal, and adapt when a different choice serves that goal better.
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
- Writing or revising a Spec or Plan does not require independent review. Select it only when requested, or justified and authorized, to protect a concrete boundary; loading this skill or switching compute profiles creates no independence.
|
|
17
|
+
- An independent reviewer reports and stops: no edits, owner decisions, selection among materially different revisions, adjudication, or further dispatch, and no continuing until Pass. It runs a missing active check only when review authority covers that exact check; otherwise it reports Needs evidence.
|
|
18
|
+
- Findings do not authorize revisions. Derive the judgment from your dispositions rather than adopting the reviewer's conclusion.
|
|
19
|
+
- Never settle a user decision or revise upstream intent, accepted content, or owner decisions merely to make an artifact consistent or to obtain Pass. Never review until Pass.
|
|
20
|
+
- Never request Review 4. A different reviewer, renamed use, or local revision does not reset the review budget.
|
|
21
|
+
- Never present artifact fitness as acceptance, implementation, or execution authority.
|
|
22
|
+
|
|
12
23
|
## Choose The Role And Intended Use
|
|
13
24
|
|
|
25
|
+
Goal: review the whole artifact, for the use it must actually serve.
|
|
26
|
+
|
|
14
27
|
- **Self-review:** the author checks its own artifact before accepting or using it. This is the normal required route.
|
|
15
28
|
- **Independent review:** a separately selected reviewer judges a state it did not produce, from a separate context.
|
|
16
29
|
- **Adjudication:** the receiving agent evaluates a completed independent report.
|
|
17
30
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
An independent reviewer reports and stops; it cannot adjudicate its own findings or become the revising agent within that role.
|
|
21
|
-
|
|
22
|
-
Identify the artifact's exact state, type, intended use, accepted outcome and amendments, non-goals, governing format, source basis, unresolved questions, dependencies, and evidence gaps. Inspect the complete artifact and relevant sources directly—not only its author's narrative.
|
|
31
|
+
Identify the artifact's exact state, type, intended use, accepted outcome and amendments, non-goals, governing format, source basis, unresolved questions, dependencies, and evidence gaps. Inspect the complete artifact and relevant sources directly, not only its author's narrative.
|
|
23
32
|
|
|
24
33
|
## Establish Which Sources Govern
|
|
25
34
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Distinguish accepted behavior from the suggested implementation mechanism. Check both directions:
|
|
35
|
+
Goal: judge against current accepted intent, not the artifact's own baseline.
|
|
29
36
|
|
|
30
|
-
|
|
31
|
-
- Has it omitted accepted changes or retained a superseded implementation baseline?
|
|
37
|
+
Check current intent and accepted upstream requirements before dependent artifacts. Follow material amendments, supersession, and deliberately selected experimental findings. Do not infer acceptance from a proposal, a review label, a passing test, or an unexplained "user approved" summary.
|
|
32
38
|
|
|
33
|
-
An experiment can establish a fact without selecting it for production
|
|
39
|
+
Distinguish accepted behavior from the suggested implementation mechanism, and check both directions: has the artifact introduced stronger obligations than the accepted outcome needs, and has it omitted accepted changes or kept a superseded baseline? An experiment can establish a fact without selecting it for production; an implementation Plan cannot ignore later accepted learning because its older version was reviewed.
|
|
34
40
|
|
|
35
|
-
If upstream content is unresolved or contradictory, mark dependent material contingent
|
|
41
|
+
If upstream content is unresolved or contradictory, mark dependent material contingent rather than generating exhaustive downstream findings against an unsettled premise.
|
|
36
42
|
|
|
37
43
|
Read [Track Work](../../skills/track-work/SKILL.md) before reviewing a Working Record. Use [Action Selection](../../skills/action-selection/SKILL.md) when source inspection could branch broadly; skip it for an obvious artifact or dependency read.
|
|
38
44
|
|
|
39
45
|
## Judge The Artifact By Its Job
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
Goal: ask of each artifact only what its job requires.
|
|
48
|
+
|
|
49
|
+
- **Working Record:** accurate current task memory, recoverable decisions and work, evidence limits, provisional remaining route, defining artifacts and Recovery sources sufficient for a fresh context to resume, and one next useful action.
|
|
42
50
|
- **Spec or content contract:** the accepted behavior, boundaries, evidence, and uncertainty needed for its intended use.
|
|
43
51
|
- **Plan:** a supported ordered strategy, dependencies, assumptions, checks, and invalidation conditions.
|
|
44
52
|
- **Decision record or ADR:** the choice, owner, source, alternatives, rationale, consequences, and revisit or supersession conditions.
|
|
45
53
|
- **Handoff:** enough truthful point-in-time context for safe continuation without replacing the live record.
|
|
46
54
|
- **Other artifact:** its declared purpose without taking over another artifact's job.
|
|
47
55
|
|
|
48
|
-
A proposal can be fit for discussion without being implementation-ready. Do not block on an open question
|
|
56
|
+
A proposal can be fit for discussion without being implementation-ready. Do not block on an open question the artifact intentionally preserves and whose answer its current use does not need.
|
|
49
57
|
|
|
50
58
|
## Apply The Shared Kernel
|
|
51
59
|
|
|
52
|
-
|
|
60
|
+
Goal: use only the lenses that can change fitness.
|
|
53
61
|
|
|
54
62
|
- **Source alignment:** accepted requirements, amendments, decisions, and live facts agree with the artifact.
|
|
55
63
|
- **Sufficiency:** it contains enough for its use without implying every future question is settled.
|
|
@@ -58,12 +66,14 @@ Use only lenses capable of changing fitness:
|
|
|
58
66
|
- **Behavior and failure:** consequential states, forbidden outcomes, observers, and recovery are defined where required.
|
|
59
67
|
- **Dependency integrity:** relevant upstream and downstream sources agree, or their contingency is explicit.
|
|
60
68
|
- **Scope and minimality:** requirements and process are justified rather than speculative or mechanically exhaustive.
|
|
61
|
-
- **Clarity and continuity:** a future reader can use the artifact without reconstructing the author's private reasoning or full transcript.
|
|
69
|
+
- **Clarity and continuity:** a future reader can use the artifact without reconstructing the author's private reasoning or the full transcript.
|
|
62
70
|
|
|
63
71
|
Do not demand implementation detail from a PRD, progress history from a Plan, or universal guarantees from a bounded prototype report. Finding no material issue is valid.
|
|
64
72
|
|
|
65
73
|
## Classify Material Findings
|
|
66
74
|
|
|
75
|
+
Goal: every reported item is supported and names the right kind of problem.
|
|
76
|
+
|
|
67
77
|
Ask in order:
|
|
68
78
|
|
|
69
79
|
1. Does intended-use fitness depend on unsettled content or an owner choice? Report a **Question**.
|
|
@@ -71,72 +81,63 @@ Ask in order:
|
|
|
71
81
|
3. Is there a supported defect requiring revision for this use? Report a **Blocking Issue** if the boundary cannot safely be crossed, or a **Non-blocking Issue** if revision can safely be deferred.
|
|
72
82
|
4. Would it only improve a different or broader use? Omit it by default, or identify an **Improvement** when materially relevant or requested.
|
|
73
83
|
|
|
74
|
-
An Issue identifies the exact location or dependency, violated source or artifact responsibility, evidence, and concrete consequence
|
|
84
|
+
An Issue identifies the exact location or dependency, violated source or artifact responsibility, evidence, and concrete consequence; explain why a Blocking Issue prevents the intended use. Recommend a specific revision only when source intent and dependency consequences support it.
|
|
75
85
|
|
|
76
|
-
Needs evidence identifies the load-bearing claim, required observer, existing evidence and limits, why the gap matters, and the smallest observation that could disagree. Establish that the claim is required before recommending more proof; optional stronger claims may be qualified rather than expanding the task. Distinguish missing evidence from a demonstrated
|
|
86
|
+
Needs evidence identifies the load-bearing claim, required observer, existing evidence and limits, why the gap matters, and the smallest observation that could disagree. Establish that the claim is required before recommending more proof; optional stronger claims may be qualified rather than expanding the task. Distinguish missing evidence from a demonstrated defect, and check which source or check state a reported pass examined and whether later changes reduced acceptance or invalidated it; a newer report cannot repair that mismatch.
|
|
77
87
|
|
|
78
88
|
Do not classify wording preference, exhaustive edge cases, intentional deferrals, or polished presentation as defects.
|
|
79
89
|
|
|
80
90
|
## Self-Review Once
|
|
81
91
|
|
|
82
|
-
|
|
92
|
+
Goal: make the artifact fit for its use without turning review into open-ended rewriting.
|
|
83
93
|
|
|
84
|
-
|
|
94
|
+
Apply the kernel silently to the artifact you produced once its load-bearing facts have adequate support; do not create formal review items, a numbered review, or an independent judgment for this route.
|
|
85
95
|
|
|
86
|
-
|
|
87
|
-
2. reconcile affected dependencies within authority;
|
|
88
|
-
3. re-verify affected factual claims;
|
|
89
|
-
4. repeat source alignment and affected review lenses once.
|
|
96
|
+
For a clear covered defect whose revision basis is settled: return to the authoring activity and revise it, reconcile affected dependencies within authority, re-verify affected factual claims, and repeat source alignment and the affected lenses once.
|
|
90
97
|
|
|
91
|
-
|
|
98
|
+
Use [Discuss](../../skills/discuss/SKILL.md) for changed direction or strategy, [Decision Gate](../../skills/decision-gate/SKILL.md) for a blocking owner choice or source conflict, and [Diagnose Failure](../../skills/diagnose-failure/SKILL.md) for unsupported or repeated causal claims. Return material coordination changes through [Workflow](../../skills/workflow/SKILL.md).
|
|
92
99
|
|
|
93
|
-
Stop when the artifact is fit for its agreed use or a material unresolved issue is routed. Self-review is not a reason to add independent review
|
|
100
|
+
Stop when the artifact is fit for its agreed use or a material unresolved issue is routed. Self-review is not a reason to add independent review.
|
|
94
101
|
|
|
95
102
|
## Perform A Selected Independent Review
|
|
96
103
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Use available evidence. Run a missing active check only when review authority covers that exact check; otherwise report Needs evidence. Apply Verify Work to covered checks while retaining ownership of the fitness judgment.
|
|
104
|
+
Goal: a separate context judges the artifact from the evidence and reports once.
|
|
100
105
|
|
|
101
|
-
|
|
106
|
+
Before preparing or performing it, read [Independent Artifact Reviewer Contract](references/independent-artifact-reviewer-contract.md). Use available evidence and apply Verify Work to covered checks while keeping ownership of the fitness judgment. The review ends with its report:
|
|
102
107
|
|
|
103
108
|
- **Blocking:** at least one Blocking Issue.
|
|
104
109
|
- **Inconclusive:** no Blocking Issue, but a material Question or Needs evidence prevents judgment.
|
|
105
110
|
- **Non-blocking:** only Non-blocking Issues remain.
|
|
106
111
|
- **Pass:** no Issues or material unresolved items remain.
|
|
107
112
|
|
|
108
|
-
Improvements do not change the judgment or authorize revision.
|
|
113
|
+
Improvements do not change the judgment or authorize revision.
|
|
109
114
|
|
|
110
115
|
## Adjudicate Without Inheriting The Verdict
|
|
111
116
|
|
|
112
|
-
|
|
117
|
+
Goal: decide what the report actually establishes before acting on it.
|
|
113
118
|
|
|
114
|
-
Assess each material item against the actual artifact, source truth, dependencies, and evidence:
|
|
119
|
+
Read [Adjudicate Artifact Review](references/adjudicate-artifact-review.md) before adjudicating. Assess each material item against the actual artifact, source truth, dependencies, and evidence:
|
|
115
120
|
|
|
116
121
|
- **Accepted:** supported and applicable.
|
|
117
122
|
- **Rejected:** unsupported, stale, resolved, duplicate, preference-only, outside the artifact's job, or a source misread.
|
|
118
123
|
- **Open:** evidence or an owner decision is missing.
|
|
119
124
|
|
|
120
|
-
Derive the overall judgment from those dispositions rather than separately accepting the reviewer's conclusion. Findings do not authorize revisions.
|
|
121
|
-
|
|
122
125
|
Pass permits the intended use. Non-blocking permits it with explicit deferrals. Inconclusive requires the missing evidence or decision. Blocking prevents the disputed use and returns the narrowest supported revision or reconsideration to its owner through Workflow.
|
|
123
126
|
|
|
124
127
|
When revision is ready, state the supported problem, revision basis, rationale, dependency impact, observing boundary, authority, and whether focused independent follow-up remains justified.
|
|
125
128
|
|
|
126
129
|
## Preserve The Independent Review Budget
|
|
127
130
|
|
|
131
|
+
Goal: independent judgment is spent where it changes the outcome.
|
|
132
|
+
|
|
128
133
|
For one reviewed state and intended-use boundary:
|
|
129
134
|
|
|
130
135
|
- **Review 1:** first selected independent review, broad by default.
|
|
131
136
|
- **Review 2:** separately selected focused follow-up when accepted revisions, affected dependencies, new evidence, or remaining risk warrant it.
|
|
132
137
|
- **Review 3:** exceptional, separately authorized, and final, after the revision basis and dependency boundary are understood.
|
|
133
138
|
|
|
134
|
-
A revision does not
|
|
135
|
-
|
|
136
|
-
Do not request Review 4. A different reviewer, renamed use, or local revision does not reset the budget. Workflow may establish a new cycle only for a materially new artifact state and intended-use boundary. Self-review does not consume the budget.
|
|
139
|
+
A revision does not authorize another review. If Review 2 remains Blocking, diagnose repeated or unclear causes; return an independent clear local defect to its owner when diagnosis adds no value, rather than revise and dispatch Review 3 automatically. Workflow may start a new cycle only for a materially new artifact state and intended-use boundary. Self-review does not consume the budget.
|
|
137
140
|
|
|
138
141
|
## Stop
|
|
139
142
|
|
|
140
|
-
Self-review ends with supported fitness or a routed issue. Independent review ends with its report. Adjudication ends with material dispositions and an explicit next route.
|
|
141
|
-
|
|
142
|
-
Do not review until Pass, turn optional improvement into unfinished work, or present artifact fitness as acceptance, implementation, or execution authority.
|
|
143
|
+
Self-review ends with supported fitness or a routed issue. Independent review ends with its report. Adjudication ends with material dispositions and an explicit next route. Do not turn optional improvement into unfinished work.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read this after an independent artifact review returns and before selecting what follows from its report.
|
|
4
4
|
|
|
5
|
-
Adjudication belongs to the receiving active agent. It tests the report against the artifact, source truth, dependencies, and evidence. It is not independent review and does not inherit the reviewer's authority or judgment.
|
|
5
|
+
This reference is judgment; Review Artifact's Rules still bind. Adjudication belongs to the receiving active agent. It tests the report against the artifact, source truth, dependencies, and evidence. It is not independent review and does not inherit the reviewer's authority or judgment.
|
|
6
6
|
|
|
7
7
|
## Dispose Each Material Item
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read this before preparing or performing a separately selected independent review of a durable artifact.
|
|
4
4
|
|
|
5
|
-
The reviewer did not produce the reviewed artifact state. Give them the complete artifact, source truth, dependencies, and evidence needed to judge it directly. Do not provide only the producer's summary, reasoning, or change description.
|
|
5
|
+
This reference is a contract: the required context and the reviewer prompt are binding as written. The reviewer did not produce the reviewed artifact state. Give them the complete artifact, source truth, dependencies, and evidence needed to judge it directly. Do not provide only the producer's summary, reasoning, or change description.
|
|
6
6
|
|
|
7
7
|
## Required Context
|
|
8
8
|
|
|
@@ -9,29 +9,39 @@ Judge whether the actual work satisfies the accepted outcome, remains proportion
|
|
|
9
9
|
|
|
10
10
|
[Verify Work](../../skills/verify-work/SKILL.md) establishes what observations prove. Review judges their sufficiency and the resulting work; it does not replace verification, choose user-owned behavior, or authorize corrections.
|
|
11
11
|
|
|
12
|
+
The **Rules** below are binding; if one cannot be met, stop and say why. Everything else is **judgment**: follow its stated goal, and adapt when a different choice serves that goal better.
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
- Independent review is never automatic after implementation or self-review. Select it through [Workflow](../../skills/workflow/SKILL.md) only when requested, or justified and authorized, to protect a concrete risk, dependency, integration, or delivery boundary. A review budget permits no dispatch by itself, and switching models or loading this skill does not create independence.
|
|
17
|
+
- An independent reviewer reports and stops: no edits, no choosing among materially different remedies, no adjudication, no further dispatch, and no continuing until Pass. It runs a missing active check only when review authority covers that exact check; otherwise it reports Needs evidence.
|
|
18
|
+
- Findings are evidence, not commands or correction authority. Derive the judgment from your dispositions; never adopt the reviewer's verdict wholesale. Actual correction belongs to [Execute Work](../../skills/execute-work/SKILL.md) under covered authority.
|
|
19
|
+
- Never lower acceptance or change tests, Specs, policies, or source truth to obtain Pass, and never review until Pass.
|
|
20
|
+
- Never request Review 4. Renaming scope, changing reviewers, or making a local correction does not reset the review budget.
|
|
21
|
+
|
|
12
22
|
## Choose The Review Role
|
|
13
23
|
|
|
24
|
+
Goal: the review done is the one the boundary needs.
|
|
25
|
+
|
|
14
26
|
- **Self-review:** the producer checks its own supported result before accepting or reusing it. This is the normal required route.
|
|
15
27
|
- **Independent review:** a separately selected reviewer judges a state it did not produce, from a separate context.
|
|
16
28
|
- **Adjudication:** the receiving agent checks a returned independent report and decides what its findings establish.
|
|
17
29
|
|
|
18
|
-
An independent reviewer reports and stops. It does not adjudicate its own findings or become the fixing agent. Switching models or loading this skill does not create independence.
|
|
19
|
-
|
|
20
|
-
Independent review is not automatic after implementation or self-review. Select it through Workflow only when requested or justified and authorized to protect a concrete risk, dependency, integration, or delivery boundary. A review budget permits no dispatch by itself.
|
|
21
|
-
|
|
22
30
|
## Establish What The Review Protects
|
|
23
31
|
|
|
32
|
+
Goal: judge the actual state against its real sources, not the producer's account of it.
|
|
33
|
+
|
|
24
34
|
Identify the exact code, diff, commit, or integrated state; its accepted outcome, non-goals, relevant requirements and amendments; the future action being protected; and the verification evidence and gaps.
|
|
25
35
|
|
|
26
|
-
Inspect the actual state and governing sources
|
|
36
|
+
Inspect the actual state and governing sources, not just the producer's summary or explanation. A detailed execution contract can itself have been mistaken; check the user outcome before judging compliance with the suggested implementation steps.
|
|
27
37
|
|
|
28
38
|
Before reviewing changes to trust boundaries, authentication, authorization, permissions, untrusted input, secrets, sensitive data, security-relevant dependencies, code execution, or security-sensitive failure behavior, read [Security Risk Lens](references/security-risk-lens.md).
|
|
29
39
|
|
|
30
|
-
Use [Action Selection](../../skills/action-selection/SKILL.md) for uncertain or broad inspection
|
|
40
|
+
Use [Action Selection](../../skills/action-selection/SKILL.md) for uncertain or broad inspection; an obvious diff or source read needs no selection exercise.
|
|
31
41
|
|
|
32
42
|
## Apply The Same Technical Kernel
|
|
33
43
|
|
|
34
|
-
|
|
44
|
+
Goal: use only the lenses that can change the boundary judgment.
|
|
35
45
|
|
|
36
46
|
- **Alignment:** required behavior and accepted amendments are implemented without omission or invented obligations.
|
|
37
47
|
- **Correctness and integration:** reachable paths, affected callers, and components work together without regressions.
|
|
@@ -40,12 +50,12 @@ Use lenses that can change the boundary judgment:
|
|
|
40
50
|
- **Design and minimality:** complexity and coordination serve requirements or demonstrated needs rather than optional stronger guarantees.
|
|
41
51
|
- **Maintainability:** behavior and failure paths remain understandable and changeable.
|
|
42
52
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
If the implementation follows an artifact whose baseline conflicts with a later accepted change, expose that source mismatch. Do not choose whichever source makes the work pass or treat every unselected experiment as a production obligation.
|
|
53
|
+
More implementation is not better: check both missing accepted work and unnecessary additions. A prototype result is not production acceptance, and a test protecting a mechanism does not make that mechanism required. If the implementation follows an artifact whose baseline conflicts with a later accepted change, expose that source mismatch rather than choose whichever source makes the work pass.
|
|
46
54
|
|
|
47
55
|
## Classify Before Calling Something A Defect
|
|
48
56
|
|
|
57
|
+
Goal: every reported item is supported and names the right kind of problem.
|
|
58
|
+
|
|
49
59
|
Ask in order:
|
|
50
60
|
|
|
51
61
|
1. Is the relevant behavior or source truth settled? If not, report a **Question** when it affects the boundary.
|
|
@@ -53,29 +63,29 @@ Ask in order:
|
|
|
53
63
|
3. Does this boundary require correction? If it cannot safely be crossed, report a **Blocking Issue**. If correction is required but safely deferrable, report a **Non-blocking Issue**.
|
|
54
64
|
4. Is it merely useful beyond this boundary? Omit it by default, or identify an **Improvement** when materially relevant or explicitly requested.
|
|
55
65
|
|
|
56
|
-
An Issue needs an exact location or path, violated requirement or invariant, supporting evidence, and concrete consequence
|
|
66
|
+
An Issue needs an exact location or path, the violated requirement or invariant, supporting evidence, and a concrete consequence; a Blocking Issue must explain why the protected boundary cannot be crossed.
|
|
57
67
|
|
|
58
|
-
Needs evidence
|
|
68
|
+
Needs evidence identifies the claim, required observer, existing evidence and its limit, why the gap matters, and the smallest observation that could disagree. First establish that the stronger claim is required; missing proof of an optional guarantee does not justify more work. Check whether supplied observations apply to the reviewed candidate and whether material assertion changes preserved the required property. A missing or stale result is not itself a code defect: recover evidence or establish the observer before prescribing a fix.
|
|
59
69
|
|
|
60
70
|
Do not turn preferences, imagined edge cases, intentional deferrals, or hypothetical completeness into Issues. Finding no material issue is valid.
|
|
61
71
|
|
|
62
72
|
## Self-Review And Re-enter Narrowly
|
|
63
73
|
|
|
64
|
-
|
|
74
|
+
Goal: catch real defects in your own result without turning review into an open-ended editing loop.
|
|
75
|
+
|
|
76
|
+
Apply the kernel silently after evidence initially supports the produced result; do not create formal review items, a numbered review cycle, or an independent-review judgment for self-review.
|
|
65
77
|
|
|
66
|
-
For one clear covered defect, return to the producer, correct it, re-verify the affected boundary, and repeat only affected
|
|
78
|
+
For one clear covered defect, return to the producer, correct it, re-verify the affected boundary, and repeat only the affected lenses once. Do not restart every check or add a reviewer because a local correction occurred.
|
|
67
79
|
|
|
68
|
-
When the outcome remains settled but the approach is invalidated, return for implementation preparation. Use [Diagnose Failure](../../skills/diagnose-failure/SKILL.md) for unclear or repeatedly failing causes,
|
|
80
|
+
When the outcome remains settled but the approach is invalidated, return for implementation preparation. Use [Diagnose Failure](../../skills/diagnose-failure/SKILL.md) for unclear or repeatedly failing causes, [Decision Gate](../../skills/decision-gate/SKILL.md) for unsettled accepted behavior or a user-owned choice, and Workflow for coordination or scope changes.
|
|
69
81
|
|
|
70
82
|
Stop self-review when the supported state is accepted or a material issue has a clear next route. Optional polish is not permission to continue editing.
|
|
71
83
|
|
|
72
84
|
## Perform A Selected Independent Review
|
|
73
85
|
|
|
74
|
-
|
|
86
|
+
Goal: a separate context judges the state from the evidence and reports once.
|
|
75
87
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Inspect and report without edits, choosing among materially different remedies, adjudication, another review dispatch, or continuing until Pass. Recommend a specific correction only when supported rather than merely plausible.
|
|
88
|
+
Before preparing or performing it, read [Independent Work Reviewer Contract](references/independent-work-reviewer-contract.md). Use supplied and available evidence; a covered active check uses Verify Work's check-result and claim-result semantics without changing review ownership. Recommend a specific correction only when supported rather than merely plausible.
|
|
79
89
|
|
|
80
90
|
The independent judgment is:
|
|
81
91
|
|
|
@@ -88,34 +98,30 @@ Improvements do not change the judgment or authorize implementation. Every judgm
|
|
|
88
98
|
|
|
89
99
|
## Adjudicate The Returned Report
|
|
90
100
|
|
|
91
|
-
|
|
101
|
+
Goal: decide what the report actually establishes before acting on it.
|
|
92
102
|
|
|
93
|
-
Check each material finding against the actual reviewed state, sources, and evidence:
|
|
103
|
+
Read [Adjudicate Work Review](references/adjudicate-work-review.md) before adjudicating. Check each material finding against the actual reviewed state, sources, and evidence:
|
|
94
104
|
|
|
95
105
|
- **Accepted:** supported and applicable.
|
|
96
106
|
- **Rejected:** unsupported, stale, already resolved, duplicate, preference-only, out of scope, or based on a source misread.
|
|
97
107
|
- **Open:** evidence or a decision is missing.
|
|
98
108
|
|
|
99
|
-
Derive the overall judgment from those dispositions; do not separately accept the reviewer's verdict. Findings are evidence, not commands or correction authority.
|
|
100
|
-
|
|
101
109
|
Pass permits proceeding at the reviewed boundary. Non-blocking permits proceeding with explicit deferrals. Inconclusive requires the missing evidence or decision. Blocking prevents crossing the boundary and returns the smallest supported correction or reconsideration to its owner.
|
|
102
110
|
|
|
103
|
-
When correction is ready, state the supported problem, remedy, rationale, verification boundary, authority, and whether independent follow-up is still warranted.
|
|
111
|
+
When correction is ready, state the supported problem, remedy, rationale, verification boundary, authority, and whether independent follow-up is still warranted.
|
|
104
112
|
|
|
105
113
|
## Bound Independent Review
|
|
106
114
|
|
|
107
|
-
|
|
115
|
+
Goal: independent judgment is spent where it changes the outcome.
|
|
116
|
+
|
|
117
|
+
For the same state and boundary:
|
|
108
118
|
|
|
109
119
|
- **Review 1:** first selected independent review, broad by default.
|
|
110
120
|
- **Review 2:** separately selected focused follow-up when corrections, affected interactions, new evidence, or remaining risk still require independent judgment.
|
|
111
|
-
- **Review 3:** exceptional, separately authorized, and final;
|
|
112
|
-
|
|
113
|
-
A fix does not automatically require another review. If Review 2 remains Blocking, diagnose a repeated, extending, or unclear cause; return an unrelated clear local defect to its owner when diagnosis would add no information. Do not automatically fix and dispatch Review 3.
|
|
121
|
+
- **Review 3:** exceptional, separately authorized, and final; only after the cause and correction boundary are understood.
|
|
114
122
|
|
|
115
|
-
|
|
123
|
+
A fix does not automatically require another review. If Review 2 remains Blocking, diagnose a repeated, extending, or unclear cause; return an unrelated clear local defect to its owner when diagnosis would add no information, rather than fix and dispatch Review 3 automatically. Workflow may start a new cycle only for a materially new reviewed state and boundary. Self-review does not consume this budget.
|
|
116
124
|
|
|
117
125
|
## Stop At The Selected Result
|
|
118
126
|
|
|
119
|
-
Self-review ends with acceptance or a routed issue. Independent review ends with its report. Adjudication ends with dispositions and an explicit next route.
|
|
120
|
-
|
|
121
|
-
Do not review until Pass, lower acceptance to obtain it, or turn optional improvement into unfinished work. Preserve the agreed user-facing return boundary and any unresolved limits.
|
|
127
|
+
Self-review ends with acceptance or a routed issue. Independent review ends with its report. Adjudication ends with dispositions and an explicit next route. Do not turn optional improvement into unfinished work; preserve the agreed user-facing return boundary and any unresolved limits.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read this after an independent work review returns and before selecting what follows from its report.
|
|
4
4
|
|
|
5
|
-
Adjudication belongs to the receiving active agent. It tests the report against the reviewed state, source truth, and evidence. It is not independent review and does not inherit the reviewer's authority or judgment.
|
|
5
|
+
This reference is judgment; Review Work's Rules still bind. Adjudication belongs to the receiving active agent. It tests the report against the reviewed state, source truth, and evidence. It is not independent review and does not inherit the reviewer's authority or judgment.
|
|
6
6
|
|
|
7
7
|
## Dispose Each Material Item
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read this before preparing or performing a separately selected independent review of implementation or integrated work.
|
|
4
4
|
|
|
5
|
-
The reviewer did not produce the reviewed state. Give them the work product, source truth, and evidence needed to judge it directly. Do not provide only the producer's summary, reasoning, or claimed result.
|
|
5
|
+
This reference is a contract: the required context and the reviewer prompt are binding as written. The reviewer did not produce the reviewed state. Give them the work product, source truth, and evidence needed to judge it directly. Do not provide only the producer's summary, reasoning, or claimed result.
|
|
6
6
|
|
|
7
7
|
## Required Context
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read this before reviewing work that changes trust boundaries, authentication, authorization, permissions, untrusted input, secrets, sensitive data, security-relevant dependencies or external integrations, code-execution boundaries, or failure behavior with security consequences.
|
|
4
4
|
|
|
5
|
-
This
|
|
5
|
+
This reference is judgment, with two Rules: security-sensitive product behavior stays user-owned, so never invent access, retention, logging, or fail-open or fail-closed policy during review; and never copy secrets, credentials, unrestricted personal data, or sensitive payloads into review context. It helps frame review and does not replace repository security policy, threat modeling, specialist review, or stack-specific hardening guidance.
|
|
6
6
|
|
|
7
7
|
## Establish Authority
|
|
8
8
|
|
|
@@ -14,8 +14,6 @@ Identify:
|
|
|
14
14
|
- accepted security and privacy policy and threat model;
|
|
15
15
|
- compatibility and failure behavior that security controls must preserve.
|
|
16
16
|
|
|
17
|
-
Security-sensitive product behavior remains user-owned. Do not invent access, retention, logging, or fail-open or fail-closed policy during review.
|
|
18
|
-
|
|
19
17
|
## Trace The Paths
|
|
20
18
|
|
|
21
19
|
Review the affected path from boundary to effect:
|
|
@@ -45,7 +43,7 @@ Prefer evidence at the real boundary:
|
|
|
45
43
|
|
|
46
44
|
A generic scanner pass cannot prove authorization logic or policy correctness. A unit test cannot prove deployed headers, identity configuration, or infrastructure permissions.
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
Use the smallest sanitized evidence that supports the item.
|
|
49
47
|
|
|
50
48
|
## Calibrate Items
|
|
51
49
|
|
|
@@ -54,7 +54,9 @@ Do not create or append Freeflow instructions in `AGENTS.md`, `CLAUDE.md`, `.cla
|
|
|
54
54
|
|
|
55
55
|
## Add Personal Overrides Only When Requested
|
|
56
56
|
|
|
57
|
-
Use `.freeflow/local.json` for an explicitly selected per-checkout override of `enabled
|
|
57
|
+
Use `.freeflow/local.json` for an explicitly selected per-checkout override of `enabled`. Omitted values inherit from repository config and built-in defaults. Configure optional Cognitive Routing values only through its explicit settings surface.
|
|
58
|
+
|
|
59
|
+
The legacy context keys `contextVirtualization` and `conversationHistory` are no longer supported. Delete either key from `.freeflow/config.json` or `.freeflow/local.json` wherever present; the containing file is invalid until repaired. Setup never removes them automatically.
|
|
58
60
|
|
|
59
61
|
In Pi, `/freeflow settings` edits personal overrides and `/freeflow settings repo` edits shared settings. Prefer those controls when available.
|
|
60
62
|
|
|
@@ -10,13 +10,9 @@ Freeflow uses layered checkout configuration. Shared repository activation, pers
|
|
|
10
10
|
{}
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Missing core keys use built-in
|
|
13
|
+
Missing core keys use the built-in default `enabled: true`.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
- `contextVirtualization: false`
|
|
17
|
-
- `conversationHistory: false`
|
|
18
|
-
|
|
19
|
-
Optional capability configuration is explicit and remains independently gated. The legacy `defaultMode`, `interactionContract`, and `skills` keys are unsupported and make the configuration invalid.
|
|
15
|
+
Optional Cognitive Routing and Tool Execution configuration is explicit and remains independently gated. The legacy `defaultMode`, `interactionContract`, and `skills` keys are unsupported and make the configuration invalid. The removed `contextVirtualization` and `conversationHistory` keys are also unsupported in either config layer; delete them manually wherever present before Freeflow can activate. Setup does not migrate or remove them automatically.
|
|
20
16
|
|
|
21
17
|
Do not add task state, phase, file inventories, plans, version metadata, activation paths, empty optional sections, host instruction copies, or generated workflow text.
|
|
22
18
|
|
|
@@ -26,17 +22,15 @@ Missing or invalid repository config means repository activation is absent. A va
|
|
|
26
22
|
|
|
27
23
|
`.freeflow/local.json` is optional per-checkout state. It cannot activate Freeflow without a valid repository config.
|
|
28
24
|
|
|
29
|
-
It may override
|
|
25
|
+
It may override the core enablement value:
|
|
30
26
|
|
|
31
27
|
```json
|
|
32
28
|
{
|
|
33
|
-
"enabled": false
|
|
34
|
-
"contextVirtualization": true,
|
|
35
|
-
"conversationHistory": true
|
|
29
|
+
"enabled": false
|
|
36
30
|
}
|
|
37
31
|
```
|
|
38
32
|
|
|
39
|
-
|
|
33
|
+
The field is optional. Omission inherits the repository value, then the built-in default. Local core precedence is property-level, not whole-file replacement.
|
|
40
34
|
|
|
41
35
|
Keep local config untracked and ignored. In a Git checkout, prefer `.git/info/exclude` or an existing ignore rule over an unsolicited shared `.gitignore` edit. Refuse to write personal overrides to a tracked local file.
|
|
42
36
|
|
|
@@ -50,7 +44,7 @@ Resolve remaining configurable values in this order:
|
|
|
50
44
|
host session override -> personal override -> repository value -> built-in default
|
|
51
45
|
```
|
|
52
46
|
|
|
53
|
-
Host session overrides are host state, not config, and cannot bypass missing or invalid repository activation. Pi may temporarily override Freeflow enablement
|
|
47
|
+
Host session overrides are host state, not config, and cannot bypass missing or invalid repository activation. Pi may temporarily override Freeflow enablement. Cognitive Routing has its own host-managed session control.
|
|
54
48
|
|
|
55
49
|
Effective Freeflow requires:
|
|
56
50
|
|
|
@@ -59,7 +53,7 @@ Effective Freeflow requires:
|
|
|
59
53
|
3. session-resolved `enabled: true`;
|
|
60
54
|
4. the mandatory `core.md` and `interaction-contract.md` prompt files.
|
|
61
55
|
|
|
62
|
-
The core prompt and Interaction Contract are always delivered together when Freeflow is enabled. Base Freeflow skills are exposed with that core surface.
|
|
56
|
+
The core prompt and Interaction Contract are always delivered together when Freeflow is enabled. Base Freeflow skills are exposed with that core surface. Cognitive Routing and Tool Execution remain independently gated capabilities; Context Virtualization and Conversation History are removed.
|
|
63
57
|
|
|
64
58
|
## Mutation Authority By State
|
|
65
59
|
|
|
@@ -28,15 +28,15 @@ Pi provides these settings scopes:
|
|
|
28
28
|
|
|
29
29
|
```text
|
|
30
30
|
/freeflow settings personal overrides
|
|
31
|
-
/freeflow settings session temporary
|
|
31
|
+
/freeflow settings session temporary Freeflow and Cognitive Routing session controls
|
|
32
32
|
/freeflow settings repo shared repository settings
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Session settings can temporarily inherit, enable, or disable Freeflow
|
|
35
|
+
Session settings can temporarily inherit, enable, or disable Freeflow and override Cognitive Routing profiles/delegation. One reset action clears those session overrides. They persist in the active Pi session branch JSONL, never write `.freeflow/config.json` or `.freeflow/local.json`, and cannot bypass missing or invalid repository activation. Master changes reload Pi resources when supported.
|
|
36
36
|
|
|
37
37
|
Personal settings use omission to inherit. The settings path refuses to overwrite invalid or tracked local config and establishes local Git exclusion when needed. These are user-operated host controls; they update state before the next model turn. Agent-performed file edits still follow Setup Freeflow's mutation-authority rules.
|
|
38
38
|
|
|
39
|
-
When effective, Pi's `before_agent_start` path preserves the existing system prompt and composes the mandatory `core.md` and `interaction-contract.md` fragments plus
|
|
39
|
+
When effective, Pi's `before_agent_start` path preserves the existing system prompt and composes the mandatory `core.md` and `interaction-contract.md` fragments plus the Cognitive Routing prompt when effective. Runtime State is refreshed at session start, after context reconstruction or loss, and when displayed state changes; unchanged state remains in the provider context. Base skill bodies and capability bodies remain discoverable rather than hidden persistent messages. The former Context Virtualization and Conversation History settings, prompts, and tool operations are removed.
|
|
40
40
|
|
|
41
41
|
A config written during setup is visible to the available Pi adapter on the next agent turn. After first activation, tell the user to run `/reload` so Pi refreshes skills and resources fully. Without reload, the adapter can load core runtime context on the next agent turn, but resource discovery waits for reload. For the remainder of the setup turn, read newly effective context directly after verification instead of claiming that another `before_agent_start` invocation already occurred.
|
|
42
42
|
|