@hassangameryt/freeflow 0.7.3 → 0.9.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/.agents/plugins/marketplace.json +2 -2
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +3 -3
- package/.cursor-plugin/plugin.json +1 -1
- package/NOTICE +14 -0
- package/README.md +101 -159
- package/capabilities/cognitive-routing/SKILL.md +47 -210
- package/capabilities/cognitive-routing/references/coordinator.md +163 -0
- package/capabilities/cognitive-routing/references/worker.md +38 -0
- package/capabilities/compaction/SKILL.md +49 -0
- package/capabilities/compaction/references/summary-format.md +250 -0
- package/capabilities/messaging/SKILL.md +49 -0
- package/capabilities/task-memory/SKILL.md +87 -0
- package/command-surface.json +8 -52
- package/gemini-extension.json +1 -1
- package/hooks/claude/hooks.json +13 -3
- package/hooks/codex/hooks.json +2 -1
- package/hooks/shared/runtime-context.mjs +73 -83
- package/licenses/Apache-2.0.txt +55 -0
- package/package.json +42 -12
- package/pi-extension/README.md +41 -0
- package/pi-extension/dist/ask-user/ask.js +108 -0
- package/pi-extension/dist/ask-user/form.js +250 -0
- package/pi-extension/dist/ask-user/questions.js +66 -0
- package/pi-extension/dist/ask-user/tool.js +124 -0
- package/pi-extension/dist/cognitive-routing/assembler.js +417 -0
- package/pi-extension/dist/cognitive-routing/bootstrap.js +90 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/config.js +8 -6
- 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} +107 -41
- package/pi-extension/dist/cognitive-routing/gate.js +256 -0
- package/pi-extension/dist/cognitive-routing/handlers.js +901 -0
- package/pi-extension/dist/cognitive-routing/handoffs.js +350 -0
- package/pi-extension/dist/cognitive-routing/model-control.js +476 -0
- package/pi-extension/dist/cognitive-routing/projection.js +520 -0
- package/pi-extension/dist/cognitive-routing/provenance.js +83 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/render.js +15 -15
- package/pi-extension/dist/cognitive-routing/runtime.js +398 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/schemas.js +47 -11
- package/pi-extension/dist/cognitive-routing/session.js +223 -0
- package/pi-extension/dist/{session-sources → cognitive-routing}/sources.js +126 -87
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/state.js +55 -386
- package/pi-extension/dist/cognitive-routing/status.js +81 -0
- package/pi-extension/dist/cognitive-routing/tools.js +74 -0
- package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/types.js +14 -11
- package/pi-extension/dist/compaction/carry.js +205 -0
- package/pi-extension/dist/compaction/config.js +24 -0
- package/pi-extension/dist/compaction/controller.js +494 -0
- package/pi-extension/dist/compaction/harness.js +93 -0
- package/pi-extension/dist/compaction/results.js +159 -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 +62 -0
- package/pi-extension/dist/host/config-validation.js +233 -0
- package/pi-extension/dist/host/config.js +361 -0
- package/pi-extension/dist/host/inbound.js +142 -0
- package/pi-extension/dist/host/projection-tags.js +60 -0
- package/pi-extension/dist/host/prompts.js +93 -0
- package/pi-extension/dist/{session-sources → host}/read-only-session.js +117 -1
- package/pi-extension/dist/{runtime → host}/request-history.js +125 -39
- package/pi-extension/dist/host/rows.js +25 -0
- package/pi-extension/dist/host/runtime-state.js +204 -0
- package/pi-extension/dist/host/section-keeper.js +85 -0
- package/pi-extension/dist/host/settings/freeflow-command.js +2323 -0
- package/pi-extension/dist/{settings/settings-tui.js → host/settings/settings-view.js} +205 -73
- package/pi-extension/dist/host/staging.js +28 -0
- package/pi-extension/dist/host/status.js +115 -0
- package/pi-extension/dist/index.js +1004 -188
- package/pi-extension/dist/messaging/config.js +27 -0
- package/pi-extension/dist/messaging/messaging.js +398 -0
- package/pi-extension/dist/messaging/registry.js +57 -0
- package/pi-extension/dist/messaging/render.js +90 -0
- package/pi-extension/dist/messaging/tools.js +109 -0
- package/pi-extension/dist/messaging/transport.js +101 -0
- 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 +222 -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/task-memory/config.js +49 -0
- package/pi-extension/dist/task-memory/registry.js +119 -0
- package/pi-extension/dist/task-memory/render.js +107 -0
- package/pi-extension/dist/task-memory/runtime.js +994 -0
- package/pi-extension/dist/task-memory/tool.js +233 -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 +430 -0
- package/pi-extension/dist/tool-execution/bash-guard.js +23 -0
- package/pi-extension/dist/tool-execution/config.js +33 -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 +163 -0
- package/pi-extension/dist/tool-execution/guidance-notices.js +124 -0
- package/pi-extension/dist/tool-execution/prompt.js +54 -0
- package/pi-extension/dist/tool-execution/skill-reads.js +143 -0
- package/pi-extension/dist/tool-execution/tools.js +16 -0
- package/pi-extension/freeflow/README.md +9 -0
- package/runtime/prompts/cognitive-routing.md +4 -4
- package/runtime/prompts/core.md +29 -72
- package/runtime/prompts/interaction-contract.md +18 -8
- package/runtime/prompts/tool-execution.md +25 -0
- package/runtime/prompts/working-method.md +25 -0
- package/skills/deliver-work/SKILL.md +76 -0
- package/skills/deliver-work/references/branch-closeout.md +134 -0
- package/skills/deliver-work/references/commit.md +83 -0
- package/skills/deliver-work/references/launch.md +94 -0
- package/skills/deliver-work/references/release.md +85 -0
- package/skills/deliver-work/scripts/commit-state.mjs +139 -0
- package/skills/deliver-work/scripts/delivery-state.mjs +107 -0
- package/skills/deliver-work/scripts/lib/git-state.mjs +178 -0
- package/skills/deliver-work/scripts/push-route.mjs +122 -0
- package/skills/deliver-work/scripts/release-preflight.mjs +177 -0
- package/skills/discuss-work/SKILL.md +148 -0
- package/skills/{discuss → discuss-work}/references/discussion-continuity.md +13 -50
- package/skills/discuss-work/references/learning-action.md +36 -0
- package/skills/discuss-work/scripts/choices.mjs +101 -0
- package/skills/discuss-work/scripts/lib/choices.mjs +159 -0
- package/skills/evaluate-behavior/SKILL.md +107 -0
- package/skills/evaluate-behavior/references/authoring.md +381 -0
- package/skills/evaluate-behavior/references/coding-tasks.md +145 -0
- package/skills/evaluate-behavior/references/conversations-pipelines-judges.md +177 -0
- package/skills/evaluate-behavior/references/design-and-measurement.md +273 -0
- package/skills/evaluate-behavior/references/running-and-evidence.md +245 -0
- package/skills/evaluate-behavior/scripts/claude-guard.mjs +76 -0
- package/skills/evaluate-behavior/scripts/guard-rules.mjs +309 -0
- package/skills/evaluate-behavior/scripts/lib/agreement.mjs +90 -0
- package/skills/evaluate-behavior/scripts/lib/arms.mjs +55 -0
- package/skills/evaluate-behavior/scripts/lib/budget.mjs +87 -0
- package/skills/evaluate-behavior/scripts/lib/build-source.mjs +287 -0
- package/skills/evaluate-behavior/scripts/lib/clear.mjs +74 -0
- package/skills/evaluate-behavior/scripts/lib/container.mjs +395 -0
- package/skills/evaluate-behavior/scripts/lib/decision.mjs +418 -0
- package/skills/evaluate-behavior/scripts/lib/definitions.mjs +1072 -0
- package/skills/evaluate-behavior/scripts/lib/freeflow.mjs +103 -0
- package/skills/evaluate-behavior/scripts/lib/grade-command.mjs +591 -0
- package/skills/evaluate-behavior/scripts/lib/grade-comparison.mjs +90 -0
- package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/grade-interaction.mjs +19 -18
- package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/grade-support.mjs +32 -5
- package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/grade-workspace.mjs +28 -12
- package/skills/evaluate-behavior/scripts/lib/grade.mjs +101 -0
- package/skills/evaluate-behavior/scripts/lib/hooks.mjs +98 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/confinement.mjs +196 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/constraints.mjs +111 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/index.mjs +48 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/isolation.mjs +74 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/launch.mjs +123 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/model-call.mjs +73 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/recorder.mjs +178 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/session.mjs +494 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/claude-code/skills.mjs +81 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/index.mjs +31 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/names.mjs +3 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/pi/confinement.mjs +173 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/pi/host.mjs +148 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/pi/index.mjs +70 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/pi/isolation.mjs +81 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/pi/model-call.mjs +79 -0
- package/skills/evaluate-behavior/scripts/lib/hosts/pi/process.mjs +241 -0
- package/skills/{evaluate-skill/scripts/lib → evaluate-behavior/scripts/lib/hosts/pi}/rpc.mjs +144 -26
- package/skills/evaluate-behavior/scripts/lib/identity.mjs +82 -0
- package/skills/evaluate-behavior/scripts/lib/judge.mjs +688 -0
- package/skills/evaluate-behavior/scripts/lib/metrics.mjs +332 -0
- package/skills/evaluate-behavior/scripts/lib/model-call.mjs +17 -0
- package/skills/evaluate-behavior/scripts/lib/participants.mjs +616 -0
- package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/process.mjs +22 -0
- package/skills/evaluate-behavior/scripts/lib/queue.mjs +54 -0
- package/skills/evaluate-behavior/scripts/lib/reference.mjs +343 -0
- package/skills/evaluate-behavior/scripts/lib/reuse.mjs +277 -0
- package/skills/evaluate-behavior/scripts/lib/review.mjs +933 -0
- package/skills/evaluate-behavior/scripts/lib/runner.mjs +732 -0
- package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/sandbox.mjs +121 -14
- package/skills/evaluate-behavior/scripts/lib/scan-shell.mjs +457 -0
- package/skills/evaluate-behavior/scripts/lib/scan.mjs +479 -0
- package/skills/evaluate-behavior/scripts/lib/seal.mjs +91 -0
- package/skills/evaluate-behavior/scripts/lib/shell.mjs +560 -0
- package/skills/evaluate-behavior/scripts/lib/source-override.mjs +64 -0
- package/skills/evaluate-behavior/scripts/lib/subject-file.mjs +88 -0
- package/skills/{evaluate-skill/scripts/lib/pi.mjs → evaluate-behavior/scripts/lib/subject.mjs} +239 -262
- package/skills/evaluate-behavior/scripts/lib/task-copy.mjs +124 -0
- package/skills/evaluate-behavior/scripts/lib/trials.mjs +524 -0
- package/skills/evaluate-behavior/scripts/lib/validity.mjs +68 -0
- package/skills/evaluate-behavior/scripts/lib/view-html.mjs +454 -0
- package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/view.mjs +218 -11
- package/skills/evaluate-behavior/scripts/pi-command-tool.mjs +159 -0
- package/skills/evaluate-behavior/scripts/pi-container-route.mjs +23 -0
- package/skills/evaluate-behavior/scripts/pi-guard.mjs +77 -0
- package/skills/evaluate-behavior/scripts/pi-login-refresh.mjs +31 -0
- package/skills/evaluate-behavior/scripts/skill-eval.mjs +586 -0
- package/skills/execute-work/SKILL.md +96 -72
- package/skills/execute-work/references/code-practices.md +27 -49
- package/skills/execute-work/references/design.md +271 -0
- package/skills/execute-work/references/diagnose.md +117 -0
- package/skills/execute-work/references/migration.md +108 -0
- package/skills/execute-work/references/simplify.md +65 -0
- package/skills/execute-work/scripts/self-review.mjs +422 -0
- package/skills/execute-work/scripts/touch-map.mjs +290 -0
- package/skills/review-work/SKILL.md +94 -64
- package/skills/review-work/references/adjudication.md +94 -0
- package/skills/review-work/references/artifact.md +198 -0
- package/skills/review-work/references/evals-and-judges.md +66 -0
- package/skills/review-work/references/work.md +177 -0
- package/skills/review-work/scripts/check-brief.mjs +128 -0
- package/skills/review-work/scripts/review-packet.mjs +233 -0
- package/skills/setup-freeflow/SKILL.md +69 -16
- package/skills/track-work/SKILL.md +135 -151
- package/skills/track-work/references/handoff.md +190 -0
- package/skills/track-work/references/projects.md +51 -0
- package/skills/track-work/references/working-record-format.md +201 -344
- package/skills/track-work/scripts/lib/document.mjs +79 -19
- package/skills/track-work/scripts/lib/format.mjs +18 -1
- package/skills/track-work/scripts/lib/recover.mjs +254 -0
- package/skills/track-work/scripts/lib/registry.mjs +656 -0
- package/skills/track-work/scripts/lib/search.mjs +40 -0
- package/skills/track-work/scripts/lib/store.mjs +53 -21
- package/skills/track-work/scripts/lib/transitions.mjs +79 -4
- package/skills/track-work/scripts/lib/views.mjs +50 -1
- package/skills/track-work/scripts/working-record.mjs +263 -22
- package/skills/verify-work/SKILL.md +64 -47
- package/skills/verify-work/references/feature-map.md +120 -0
- package/skills/verify-work/references/runtime-evidence.md +203 -0
- package/skills/verify-work/references/test-design.md +27 -6
- package/skills/verify-work/scripts/test-changes.mjs +246 -0
- package/skills/write-docs/SKILL.md +171 -0
- package/skills/write-docs/references/documentation-shapes.md +184 -0
- package/skills/write-docs/references/spec-and-plan-shapes.md +308 -0
- package/skills/write-docs/scripts/artifact-check.mjs +148 -0
- package/skills/write-docs/scripts/docs-check.mjs +229 -0
- package/skills/write-docs/scripts/plan-lint.mjs +123 -0
- package/skills/write-skill/SKILL.md +165 -165
- package/skills/write-skill/references/activation-and-wording.md +143 -0
- package/skills/write-skill/references/placement-and-dependencies.md +154 -0
- package/skills/write-skill/scripts/lib/compare.mjs +701 -0
- package/skills/write-skill/scripts/lib/similarity.mjs +56 -0
- package/skills/write-skill/scripts/lib/skill-author.mjs +197 -3
- package/skills/write-skill/scripts/skill-author.mjs +67 -8
- 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/projection.js +0 -330
- package/pi-extension/dist/cognitive-routing-v2/runtime.js +0 -2181
- package/pi-extension/dist/cognitive-routing-v2/tools.js +0 -60
- 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/settings/settings-ui.js +0 -1360
- 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/plugin.json +0 -33
- package/runtime/prompts/context-virtualization.md +0 -3
- package/runtime/prompts/conversation-history.md +0 -3
- package/skills/action-selection/SKILL.md +0 -100
- package/skills/action-selection/references/trajectory-stalls.md +0 -71
- package/skills/bypass/SKILL.md +0 -153
- package/skills/commit-work/SKILL.md +0 -145
- package/skills/commit-work/references/git-state-edges.md +0 -94
- package/skills/commit-work/references/simple-push.md +0 -92
- package/skills/commit-work/references/staging-decisions.md +0 -106
- package/skills/decision-gate/SKILL.md +0 -106
- package/skills/design-for-depth/SKILL.md +0 -117
- package/skills/design-for-depth/references/design-pressure-signals.md +0 -182
- package/skills/design-for-depth/references/implementation-decisions.md +0 -76
- package/skills/design-for-depth/references/interface-design-loop.md +0 -136
- package/skills/design-for-depth/references/module-and-dependency-design.md +0 -147
- package/skills/design-for-depth/references/software-design-philosophy.md +0 -202
- package/skills/design-for-depth/references/state-and-failure-boundaries.md +0 -136
- package/skills/diagnose-failure/SKILL.md +0 -125
- package/skills/diagnose-failure/references/diagnostic-loop-catalog.md +0 -48
- package/skills/diagnose-failure/references/flaky-and-performance-diagnosis.md +0 -51
- package/skills/discuss/SKILL.md +0 -116
- package/skills/evaluate-skill/SKILL.md +0 -219
- package/skills/evaluate-skill/references/evaluation-definition-schema.md +0 -385
- package/skills/evaluate-skill/references/evaluation-design.md +0 -112
- package/skills/evaluate-skill/references/execution-and-evidence.md +0 -90
- package/skills/evaluate-skill/references/review-and-revision.md +0 -92
- package/skills/evaluate-skill/scripts/lib/definitions.mjs +0 -407
- package/skills/evaluate-skill/scripts/lib/grade-comparison.mjs +0 -60
- package/skills/evaluate-skill/scripts/lib/grade.mjs +0 -64
- package/skills/evaluate-skill/scripts/lib/runner.mjs +0 -368
- package/skills/evaluate-skill/scripts/pi-guard.mjs +0 -164
- package/skills/evaluate-skill/scripts/skill-eval.mjs +0 -102
- package/skills/execute-work/references/execute-work-edges.md +0 -68
- package/skills/finish-branch/SKILL.md +0 -117
- package/skills/finish-branch/references/integration-options.md +0 -80
- package/skills/handoff/SKILL.md +0 -82
- package/skills/handoff/references/handoff-templates.md +0 -150
- package/skills/launch-work/SKILL.md +0 -116
- package/skills/launch-work/references/launch-readiness.md +0 -85
- package/skills/migration-work/SKILL.md +0 -115
- package/skills/migration-work/references/migration-lifecycle.md +0 -82
- package/skills/release-work/SKILL.md +0 -118
- package/skills/release-work/references/release-evidence.md +0 -78
- package/skills/review-artifact/SKILL.md +0 -142
- package/skills/review-artifact/references/adjudicate-artifact-review.md +0 -101
- package/skills/review-artifact/references/independent-artifact-reviewer-contract.md +0 -159
- package/skills/review-work/references/adjudicate-work-review.md +0 -97
- package/skills/review-work/references/independent-work-reviewer-contract.md +0 -139
- package/skills/review-work/references/security-risk-lens.md +0 -69
- package/skills/setup-freeflow/references/activation-contract.md +0 -109
- package/skills/setup-freeflow/references/host-setup.md +0 -67
- package/skills/simplify-code/SKILL.md +0 -85
- package/skills/simplify-code/references/simplification-patterns.md +0 -70
- package/skills/verify-work/references/browser-runtime-evidence.md +0 -55
- package/skills/verify-work/references/integration-evidence.md +0 -47
- package/skills/verify-work/references/performance-evidence.md +0 -57
- package/skills/workflow/SKILL.md +0 -127
- package/skills/workflow/references/domain-skill-composition.md +0 -43
- package/skills/write-plan/SKILL.md +0 -92
- package/skills/write-plan/references/plan-shapes.md +0 -156
- package/skills/write-skill/references/activation-boundaries.md +0 -104
- package/skills/write-skill/references/agent-first-instructions.md +0 -121
- package/skills/write-skill/references/progressive-disclosure.md +0 -127
- package/skills/write-skill/references/skill-dependency-graphs.md +0 -190
- package/skills/write-spec/SKILL.md +0 -92
- package/skills/write-spec/references/artifact-standards.md +0 -86
- package/skills/write-spec/references/decision-records.md +0 -78
- package/skills/write-spec/references/spec-shapes.md +0 -143
- /package/pi-extension/dist/{cognitive-routing-v2 → cognitive-routing}/budget.js +0 -0
- /package/skills/{evaluate-skill → evaluate-behavior}/scripts/lib/evidence.mjs +0 -0
- /package/skills/{evaluate-skill → evaluate-behavior}/scripts/pi-observer.mjs +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
# Adjudicate Artifact Review
|
|
2
|
-
|
|
3
|
-
Read this after an independent artifact review returns and before selecting what follows from its report.
|
|
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.
|
|
6
|
-
|
|
7
|
-
## Dispose Each Material Item
|
|
8
|
-
|
|
9
|
-
For every material item, choose one disposition.
|
|
10
|
-
|
|
11
|
-
### Accepted
|
|
12
|
-
|
|
13
|
-
State:
|
|
14
|
-
|
|
15
|
-
- the supported artifact problem;
|
|
16
|
-
- its consequence for the intended use;
|
|
17
|
-
- whether it is Blocking or Non-blocking;
|
|
18
|
-
- whether the revision basis is supported or uncertain;
|
|
19
|
-
- which dependencies or contingent material it affects.
|
|
20
|
-
|
|
21
|
-
### Rejected
|
|
22
|
-
|
|
23
|
-
State the concrete reason: unsupported, stale, resolved, duplicate, preference-only, outside the artifact's job, or based on a source or dependency misread.
|
|
24
|
-
|
|
25
|
-
### Open
|
|
26
|
-
|
|
27
|
-
State:
|
|
28
|
-
|
|
29
|
-
- the unresolved content, claim, or dependency concern;
|
|
30
|
-
- its potential consequence for the intended use;
|
|
31
|
-
- the missing evidence or owner decision.
|
|
32
|
-
|
|
33
|
-
When factual evidence is missing, restate the item as a Verify Work input: load-bearing claim or condition, required observing boundary, available evidence and its limit, and the smallest evidence that could disagree.
|
|
34
|
-
|
|
35
|
-
A suggested revision may help explain a finding, but it does not settle source intent, select among material alternatives, or authorize revision.
|
|
36
|
-
|
|
37
|
-
After disposing the items, derive the adjudicated judgment. Do not separately accept the reviewer's overall judgment.
|
|
38
|
-
|
|
39
|
-
- **Pass:** no accepted Issues or material Open items remain.
|
|
40
|
-
- **Non-blocking:** only accepted Non-blocking Issues remain.
|
|
41
|
-
- **Inconclusive:** a material Open item prevents judgment.
|
|
42
|
-
- **Blocking:** at least one accepted Blocking Issue remains.
|
|
43
|
-
|
|
44
|
-
## Use Verification Results
|
|
45
|
-
|
|
46
|
-
Route a known material evidence gap through [Workflow](../../../skills/workflow/SKILL.md) to [Verify Work](../../../skills/verify-work/SKILL.md). Verification produces factual evidence; it does not revise the reviewer's report or determine the review judgment.
|
|
47
|
-
|
|
48
|
-
- **Supported:** re-adjudicate the evidence gap. Do not infer Pass.
|
|
49
|
-
- **Contradicted:** re-adjudicate against source truth; the result may establish an Issue, invalidate one, or expose a source conflict.
|
|
50
|
-
- **Inconclusive:** keep the item Open. The adjudicated review remains Inconclusive when the gap is material.
|
|
51
|
-
- **Unavailable:** keep the item Open and state why the required boundary cannot currently be observed.
|
|
52
|
-
|
|
53
|
-
Select focused independent follow-up only when the new evidence still requires judgment from a separate context.
|
|
54
|
-
|
|
55
|
-
## Decide Whether Revision Is Ready
|
|
56
|
-
|
|
57
|
-
Revision is ready when:
|
|
58
|
-
|
|
59
|
-
- the artifact's job and intended use are settled;
|
|
60
|
-
- the artifact problem and consequence are supported;
|
|
61
|
-
- sufficient source or decision basis exists to bound the revision;
|
|
62
|
-
- affected upstream and downstream dependencies are known sufficiently;
|
|
63
|
-
- the revision will not silently alter accepted content or an owner decision;
|
|
64
|
-
- no material alternative or user-owned choice remains.
|
|
65
|
-
|
|
66
|
-
When revision is ready, state:
|
|
67
|
-
|
|
68
|
-
- the proposed revision and rationale;
|
|
69
|
-
- affected locations and dependencies;
|
|
70
|
-
- required reconciliation or ordering;
|
|
71
|
-
- evidence or acceptance checks;
|
|
72
|
-
- whether focused independent follow-up remains justified;
|
|
73
|
-
- the authority state.
|
|
74
|
-
|
|
75
|
-
Use existing revision authority only when it covers that result and dependency impact. Otherwise propose the revision and any warranted follow-up once, then wait. A finding, adjudication, or selected review does not authorize mutation.
|
|
76
|
-
|
|
77
|
-
Actual revision returns through [Workflow](../../../skills/workflow/SKILL.md) to the artifact's owning skill. Use [Track Work](../../../skills/track-work/SKILL.md) for a Working Record, [Write Spec](../../../skills/write-spec/SKILL.md) for stable content or decision artifacts, [Write Plan](../../../skills/write-plan/SKILL.md) for a Plan, and [Handoff](../../../skills/handoff/SKILL.md) for a Handoff.
|
|
78
|
-
|
|
79
|
-
Do not revise upstream authority, accepted intent, or owner decisions merely to satisfy a reviewer or obtain Pass.
|
|
80
|
-
|
|
81
|
-
## Route When Revision Is Not Ready
|
|
82
|
-
|
|
83
|
-
- unsettled content, strategy, or materially different revisions: [Discuss](../../../skills/discuss/SKILL.md);
|
|
84
|
-
- user-owned choice or source conflict: [Decision Gate](../../../skills/decision-gate/SKILL.md);
|
|
85
|
-
- unsupported or repeated failure cause: [Diagnose Failure](../../../skills/diagnose-failure/SKILL.md);
|
|
86
|
-
- missing factual support: route the named claim through [Workflow](../../../skills/workflow/SKILL.md) to [Verify Work](../../../skills/verify-work/SKILL.md);
|
|
87
|
-
- uncovered revision or dependency update: propose the bounded change and wait.
|
|
88
|
-
|
|
89
|
-
When findings interact, upstream authority is challenged, dependency effects remain uncertain, or user input could change the revision, report a problem checkpoint and stop before selecting or executing it.
|
|
90
|
-
|
|
91
|
-
## After Authorized Revision
|
|
92
|
-
|
|
93
|
-
Re-verify affected load-bearing factual claims at their required observing boundaries. Then re-check source alignment, intended-use fitness, and every affected dependency before performing ordinary self-review with Review Artifact's shared kernel.
|
|
94
|
-
|
|
95
|
-
Select focused independent follow-up only when accepted revisions, affected dependencies, new evidence, or remaining risk still require judgment from a separate context. Do not dispatch follow-up merely because Review 1 found an Issue or because revision occurred.
|
|
96
|
-
|
|
97
|
-
If Review 2 remains Blocking, adjudicate it before acting again. Diagnose a repeated, extending, invalidating, or basis-uncertain blocker. Return an independent clear local artifact defect to its owner when diagnosis would add no useful understanding. Review 3 remains exceptional, separately authorized, and final.
|
|
98
|
-
|
|
99
|
-
## Stop
|
|
100
|
-
|
|
101
|
-
Stop when every material item is Accepted, Rejected, or Open; the adjudicated judgment is supported; affected dependencies and contingent material are explicit; and the next route and authority state are clear.
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
# Independent Artifact Reviewer Contract
|
|
2
|
-
|
|
3
|
-
Read this before preparing or performing a separately selected independent review of a durable artifact.
|
|
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.
|
|
6
|
-
|
|
7
|
-
## Required Context
|
|
8
|
-
|
|
9
|
-
Provide:
|
|
10
|
-
|
|
11
|
-
- artifact path, type, exact reviewed state, and intended use;
|
|
12
|
-
- accepted outcome, requirements, non-goals, and owner decisions;
|
|
13
|
-
- unresolved questions and known evidence gaps;
|
|
14
|
-
- the artifact-specific schema or format contract when one exists;
|
|
15
|
-
- relevant code, tests, policies, ADRs, and established behavior;
|
|
16
|
-
- upstream and downstream artifacts in dependency order;
|
|
17
|
-
- only the review lenses material to the intended use;
|
|
18
|
-
- active evidence authority: none, or each exact covered check with its expected evidence and stop condition;
|
|
19
|
-
- review number and, for follow-up, prior items, adjudication, revisions, and new evidence.
|
|
20
|
-
|
|
21
|
-
For an artifact package, identify upstream authority and which material remains provisional or contingent.
|
|
22
|
-
|
|
23
|
-
## Reviewer Prompt
|
|
24
|
-
|
|
25
|
-
```md
|
|
26
|
-
# Independent Artifact Review
|
|
27
|
-
|
|
28
|
-
Review an artifact state you did not produce. Inspect the complete artifact, source truth, dependencies, and evidence directly. Report without editing. The review ends with this report; do not adjudicate findings, settle owner decisions, revise anything, dispatch follow-up, or continue merely to obtain Pass.
|
|
29
|
-
|
|
30
|
-
A pass is valid. Use a high evidence bar, not a high item count. Do not broaden the artifact's job or treat possible improvement as unfinished work.
|
|
31
|
-
|
|
32
|
-
Use supplied and already available evidence. Do not start a missing active check unless the review contract explicitly authorizes that exact check. Otherwise report **Needs evidence** with the load-bearing claim and required observing boundary. When an exact check is covered, apply Verify Work's check-result and claim-result semantics; active evidence does not authorize revision or broaden the review.
|
|
33
|
-
|
|
34
|
-
## Artifact And Intended Use
|
|
35
|
-
|
|
36
|
-
- Artifact: [path]
|
|
37
|
-
- Type: [working record | spec | PRD | issue | API contract | technical design | migration contract | plan | decision record | ADR | handoff | other]
|
|
38
|
-
- Reviewed state: [revision, hash, or other exact identity]
|
|
39
|
-
- Intended use: [decision or future action this artifact must support]
|
|
40
|
-
- Dependency order: [upstream -> downstream, or standalone]
|
|
41
|
-
|
|
42
|
-
## Accepted Outcome And Non-Goals
|
|
43
|
-
|
|
44
|
-
- Outcome: [accepted outcome]
|
|
45
|
-
- Requirements: [accepted requirements]
|
|
46
|
-
- Non-goals: [intentional exclusions]
|
|
47
|
-
- Owner decisions: [settled decisions or none]
|
|
48
|
-
- Unresolved questions: [questions or none]
|
|
49
|
-
|
|
50
|
-
## Source Truth
|
|
51
|
-
|
|
52
|
-
- [code, tests, policies, ADRs, established behavior, upstream artifacts]
|
|
53
|
-
|
|
54
|
-
## Evidence And Known Gaps
|
|
55
|
-
|
|
56
|
-
- Supporting evidence: [evidence or none]
|
|
57
|
-
- Known gaps: [gaps or none]
|
|
58
|
-
|
|
59
|
-
## Review Scope
|
|
60
|
-
|
|
61
|
-
- Review number: [1 | 2 | 3]
|
|
62
|
-
- Material lenses: [source alignment | fitness and sufficiency | decision clarity | evidence and acceptance | behavior and failure contract | dependency integrity | scope and minimality | clarity and continuity]
|
|
63
|
-
- Active evidence authority: [none | exact covered check, expected evidence, and stop condition]
|
|
64
|
-
|
|
65
|
-
For Review 2 or 3:
|
|
66
|
-
|
|
67
|
-
- Prior items and adjudication: [Accepted | Rejected | Open]
|
|
68
|
-
- Revisions and new evidence: [bounded changes and evidence]
|
|
69
|
-
- Affected dependencies: [dependencies or none]
|
|
70
|
-
- Remaining risk: [narrow unresolved scope]
|
|
71
|
-
|
|
72
|
-
## Judge The Artifact By Its Job
|
|
73
|
-
|
|
74
|
-
- **Working Record:** accurate living task memory with recoverable slices and decisions, compact evidence pointers, and one next useful action.
|
|
75
|
-
- **Spec or durable content artifact:** accepted content, behavior, boundaries, evidence, and uncertainty needed for its stated use.
|
|
76
|
-
- **Plan:** an inspectable ordered strategy with scope, dependencies, assumptions, checks, and stop conditions.
|
|
77
|
-
- **Decision record or ADR:** the decision, owner, alternatives, rationale, consequences, and revisit or supersession conditions.
|
|
78
|
-
- **Handoff:** a point-in-time continuation package that preserves what its recipient needs without replacing live task memory.
|
|
79
|
-
- **Other artifact:** its stated purpose without taking over another artifact's job.
|
|
80
|
-
|
|
81
|
-
Do not require one artifact to perform another artifact's job.
|
|
82
|
-
|
|
83
|
-
## Check
|
|
84
|
-
|
|
85
|
-
Apply only the selected lenses:
|
|
86
|
-
|
|
87
|
-
- the artifact agrees with accepted requirements, owner decisions, and live facts;
|
|
88
|
-
- it contains enough for its intended use without pretending every future question is settled;
|
|
89
|
-
- required, tentative, open, deferred, and superseded information cannot be confused;
|
|
90
|
-
- load-bearing claims and acceptance conditions have suitable supporting or falsifying mechanisms;
|
|
91
|
-
- consequential behavior, failure states, forbidden outcomes, observers, and recovery are explicit where required;
|
|
92
|
-
- upstream and downstream artifacts remain consistent and provisional material is identified honestly;
|
|
93
|
-
- it avoids speculative scope, unnecessary process, and duplicated information owned elsewhere;
|
|
94
|
-
- a future reader can use it without transcript memory or volatile copied context.
|
|
95
|
-
|
|
96
|
-
Review upstream authority before dependent artifacts. When an upstream problem invalidates downstream assumptions, mark affected material contingent rather than generating exhaustive downstream findings against an unsettled basis.
|
|
97
|
-
|
|
98
|
-
Before calling something an Issue, ask:
|
|
99
|
-
|
|
100
|
-
1. Does fitness for the intended use depend on content, source truth, or an owner decision that remains unsettled? If yes, use **Question**.
|
|
101
|
-
2. Does fitness depend on a load-bearing claim or condition that available evidence cannot establish? If yes, use **Needs evidence**.
|
|
102
|
-
3. Is there a supported artifact defect requiring revision for the intended use? Use **Blocking Issue** when the artifact cannot safely guide that use, otherwise **Non-blocking Issue** when revision can be deferred safely.
|
|
103
|
-
4. Is the change merely useful beyond the intended use? Omit it by default; use **Improvement** only when materially relevant or requested.
|
|
104
|
-
|
|
105
|
-
A **Needs evidence** item must identify the load-bearing claim or condition, required observing boundary, available evidence and its limit, why the gap affects intended-use fitness, and the smallest evidence that could disagree. Establish that the claim is required. Distinguish a missing observation from a supported artifact defect; check whether evidence applies to the current artifact and accepted requirement rather than a superseded version. Do not prescribe broader implementation merely to fill an evidence gap.
|
|
106
|
-
|
|
107
|
-
A Blocking Issue must identify the exact location or dependency, violated source truth or artifact responsibility, evidence, concrete consequence for intended use, and revision constraints or owning activity to re-enter. Recommend a specific revision only when source intent and dependency effects support it.
|
|
108
|
-
|
|
109
|
-
For Review 2 or 3, inspect only accepted revisions, affected dependencies, new evidence, and remaining risk. Do not reopen Rejected items without contradictory evidence. For each new Blocking Issue, state whether it repeats, extends, invalidates, or exposes another consequence of a prior revision; is independent; or cannot yet be related from the evidence. Report a related pattern rather than proposing another revision. Review 3 is final; do not recommend Review 4.
|
|
110
|
-
|
|
111
|
-
## Determine The Judgment
|
|
112
|
-
|
|
113
|
-
1. **Blocking:** at least one Blocking Issue exists.
|
|
114
|
-
2. **Inconclusive:** no Blocking Issue exists, but a material Question or Needs evidence item prevents judgment.
|
|
115
|
-
3. **Non-blocking:** only Non-blocking Issues remain.
|
|
116
|
-
4. **Pass:** no Issues or material unresolved items remain.
|
|
117
|
-
|
|
118
|
-
Improvements do not change the judgment.
|
|
119
|
-
|
|
120
|
-
## Output
|
|
121
|
-
|
|
122
|
-
Omit empty groups. Do not include Improvements unless they are materially relevant or explicitly requested.
|
|
123
|
-
|
|
124
|
-
Review type: independent
|
|
125
|
-
Review number: [1 | 2 | 3]
|
|
126
|
-
Artifact: [reviewed artifact]
|
|
127
|
-
Intended use: [reviewed boundary]
|
|
128
|
-
Reviewed state: [state identity]
|
|
129
|
-
Judgment: Pass | Non-blocking | Inconclusive | Blocking
|
|
130
|
-
Reasoning: [concise evidence-backed judgment]
|
|
131
|
-
Relationship to prior items (Review 2 or 3 only): [related consequence | independent defect | unclear, with evidence]
|
|
132
|
-
|
|
133
|
-
### Review Items
|
|
134
|
-
|
|
135
|
-
#### Issues — Blocking
|
|
136
|
-
- [location or dependency, issue, violated source or responsibility, evidence, consequence, revision constraints or owning activity]
|
|
137
|
-
|
|
138
|
-
#### Issues — Non-blocking
|
|
139
|
-
- [location or dependency, issue, evidence, why it can be deferred]
|
|
140
|
-
|
|
141
|
-
#### Unresolved — Questions
|
|
142
|
-
- [question, effect on judgment, required answer]
|
|
143
|
-
|
|
144
|
-
#### Unresolved — Needs evidence
|
|
145
|
-
- [load-bearing claim or condition, required observing boundary, available evidence and limit, effect on intended-use fitness, smallest evidence that could disagree]
|
|
146
|
-
|
|
147
|
-
#### Improvements
|
|
148
|
-
- [only when materially relevant or requested: improvement, benefit, evidence]
|
|
149
|
-
|
|
150
|
-
Dependencies affected: [dependencies or none]
|
|
151
|
-
Contingent material: [material and upstream condition, or none]
|
|
152
|
-
Evidence gaps: [unproved claims or none]
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
## Calibration
|
|
156
|
-
|
|
157
|
-
Lead with the few items that can change fitness for the intended use. Prior review, artifact length, polished language, or producer confidence does not establish fitness.
|
|
158
|
-
|
|
159
|
-
The report is evidence for adjudication. It is not authority over source truth, owner decisions, revisions, dependencies, or another independent dispatch. Pass, Non-blocking, Inconclusive, and Blocking are all valid exits.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# Adjudicate Work Review
|
|
2
|
-
|
|
3
|
-
Read this after an independent work review returns and before selecting what follows from its report.
|
|
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.
|
|
6
|
-
|
|
7
|
-
## Dispose Each Material Item
|
|
8
|
-
|
|
9
|
-
For every material item, choose one disposition.
|
|
10
|
-
|
|
11
|
-
### Accepted
|
|
12
|
-
|
|
13
|
-
State:
|
|
14
|
-
|
|
15
|
-
- the supported implementation problem;
|
|
16
|
-
- its consequence for the reviewed boundary;
|
|
17
|
-
- whether it is Blocking or Non-blocking;
|
|
18
|
-
- whether its cause is supported, unnecessary to select a clear local correction, or uncertain.
|
|
19
|
-
|
|
20
|
-
### Rejected
|
|
21
|
-
|
|
22
|
-
State the concrete reason: unsupported, stale, resolved, duplicate, preference-only, out of scope, or based on a source misread.
|
|
23
|
-
|
|
24
|
-
### Open
|
|
25
|
-
|
|
26
|
-
State:
|
|
27
|
-
|
|
28
|
-
- the unresolved concern;
|
|
29
|
-
- its potential boundary consequence;
|
|
30
|
-
- the missing evidence or owner decision.
|
|
31
|
-
|
|
32
|
-
When factual evidence is missing, restate the item as a Verify Work input: claim, required observing boundary, available evidence and its limit, and the smallest evidence that could disagree.
|
|
33
|
-
|
|
34
|
-
A suggested correction may help explain a finding, but it does not establish cause, select the remedy, or authorize implementation.
|
|
35
|
-
|
|
36
|
-
After disposing the items, derive the adjudicated judgment. Do not separately accept the reviewer's overall judgment.
|
|
37
|
-
|
|
38
|
-
- **Pass:** no accepted Issues or material Open items remain.
|
|
39
|
-
- **Non-blocking:** only accepted Non-blocking Issues remain.
|
|
40
|
-
- **Inconclusive:** a material Open item prevents judgment.
|
|
41
|
-
- **Blocking:** at least one accepted Blocking Issue remains.
|
|
42
|
-
|
|
43
|
-
## Use Verification Results
|
|
44
|
-
|
|
45
|
-
Route a known material evidence gap through [Workflow](../../../skills/workflow/SKILL.md) to [Verify Work](../../../skills/verify-work/SKILL.md). Verification produces factual evidence; it does not revise the reviewer's report or determine the review judgment.
|
|
46
|
-
|
|
47
|
-
- **Supported:** re-adjudicate the evidence gap. Do not infer Pass.
|
|
48
|
-
- **Contradicted:** re-adjudicate against source truth; the result may establish an Issue, invalidate one, or expose a source conflict.
|
|
49
|
-
- **Inconclusive:** keep the item Open. The adjudicated review remains Inconclusive when the gap is material.
|
|
50
|
-
- **Unavailable:** keep the item Open and state why the required boundary cannot currently be observed.
|
|
51
|
-
|
|
52
|
-
Select focused independent follow-up only when the new evidence still requires judgment from a separate context.
|
|
53
|
-
|
|
54
|
-
## Decide Whether Remediation Is Ready
|
|
55
|
-
|
|
56
|
-
Remediation is ready when:
|
|
57
|
-
|
|
58
|
-
- required behavior is settled;
|
|
59
|
-
- the problem and boundary consequence are supported;
|
|
60
|
-
- enough cause or decision basis exists to bound a correction;
|
|
61
|
-
- affected interactions and dependencies are known sufficiently;
|
|
62
|
-
- no material alternative or user-owned choice remains.
|
|
63
|
-
|
|
64
|
-
When remediation is ready, state:
|
|
65
|
-
|
|
66
|
-
- the proposed correction and rationale;
|
|
67
|
-
- affected behavior and locations;
|
|
68
|
-
- required ordering or constraints;
|
|
69
|
-
- regression evidence and verification boundary;
|
|
70
|
-
- whether focused independent follow-up remains justified;
|
|
71
|
-
- the authority state.
|
|
72
|
-
|
|
73
|
-
Use existing correction authority only when it covers that result. Otherwise propose the correction and any warranted follow-up once, then wait. A finding, adjudication, or selected review does not authorize mutation.
|
|
74
|
-
|
|
75
|
-
Actual correction returns to [Execute Work](../../../skills/execute-work/SKILL.md). Preserve the accepted behavior; do not change tests, Specs, policies, or source truth merely to satisfy a reviewer or obtain Pass.
|
|
76
|
-
|
|
77
|
-
## Route When Remediation Is Not Ready
|
|
78
|
-
|
|
79
|
-
- unclear or repeated cause: [Diagnose Failure](../../../skills/diagnose-failure/SKILL.md);
|
|
80
|
-
- unsettled direction or materially different remedies: [Discuss](../../../skills/discuss/SKILL.md);
|
|
81
|
-
- user-owned choice or source conflict: [Decision Gate](../../../skills/decision-gate/SKILL.md);
|
|
82
|
-
- missing factual support: route the named claim through [Workflow](../../../skills/workflow/SKILL.md) to [Verify Work](../../../skills/verify-work/SKILL.md);
|
|
83
|
-
- uncovered correction: propose the bounded correction and wait.
|
|
84
|
-
|
|
85
|
-
When findings interact, assumptions are challenged, or user input could change the remedy, report a problem checkpoint and stop before selecting or executing a correction.
|
|
86
|
-
|
|
87
|
-
## After Authorized Correction
|
|
88
|
-
|
|
89
|
-
Verify the affected boundary and perform ordinary self-review.
|
|
90
|
-
|
|
91
|
-
Select focused independent follow-up only when accepted corrections, affected interactions, new evidence, or remaining risk still require judgment from a separate context. Do not dispatch follow-up merely because Review 1 found an Issue or because remediation occurred.
|
|
92
|
-
|
|
93
|
-
If Review 2 remains Blocking, adjudicate it before acting again. Diagnose a repeated, extending, invalidating, or causally uncertain blocker. Return an independent clear local defect to its owner when diagnosis would add no useful understanding. Review 3 remains exceptional, separately authorized, and final.
|
|
94
|
-
|
|
95
|
-
## Stop
|
|
96
|
-
|
|
97
|
-
Stop when every material item is Accepted, Rejected, or Open; the adjudicated judgment is supported; and the next route and authority state are explicit.
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# Independent Work Reviewer Contract
|
|
2
|
-
|
|
3
|
-
Read this before preparing or performing a separately selected independent review of implementation or integrated work.
|
|
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.
|
|
6
|
-
|
|
7
|
-
## Required Context
|
|
8
|
-
|
|
9
|
-
Provide:
|
|
10
|
-
|
|
11
|
-
- the work and future action covered by the review;
|
|
12
|
-
- accepted outcome, requirements, and non-goals;
|
|
13
|
-
- relevant Specs, Plans, tests, policies, ADRs, and established behavior;
|
|
14
|
-
- the implementation, changed files, or diff range;
|
|
15
|
-
- verification evidence and known gaps;
|
|
16
|
-
- only the review lenses material to this boundary;
|
|
17
|
-
- active evidence authority: none, or each exact covered check with its expected evidence and stop condition;
|
|
18
|
-
- review number and, for follow-up, prior items, adjudication, corrections, and new evidence.
|
|
19
|
-
|
|
20
|
-
When state transitions or proof integrity matter, also provide the invariant or state owner, affecting paths, observing mechanism, forbidden mutations, prior-state requirements, adversarial disproof, mutation footprint, and fidelity limits.
|
|
21
|
-
|
|
22
|
-
## Reviewer Prompt
|
|
23
|
-
|
|
24
|
-
```md
|
|
25
|
-
# Independent Work Review
|
|
26
|
-
|
|
27
|
-
Review work you did not produce. Inspect the supplied work, source truth, and evidence directly. Report without editing. The review ends with this report; do not adjudicate findings, fix items, dispatch follow-up, or continue merely to obtain Pass.
|
|
28
|
-
|
|
29
|
-
A pass is valid. Use a high evidence bar, not a high item count. Do not broaden scope or treat possible improvement as unfinished work.
|
|
30
|
-
|
|
31
|
-
Use supplied and already available evidence. Do not start a missing active check unless the review contract explicitly authorizes that exact check. Otherwise report **Needs evidence** with the claim and required observing boundary. When an exact check is covered, apply Verify Work's check-result and claim-result semantics; active evidence does not authorize editing or broaden the review.
|
|
32
|
-
|
|
33
|
-
## Boundary
|
|
34
|
-
|
|
35
|
-
- Protected future action: [boundary]
|
|
36
|
-
- Reviewed state: [commit, tree, diff, or other exact identity]
|
|
37
|
-
- Work: [diff range, changed files, implementation, or integrated result]
|
|
38
|
-
|
|
39
|
-
## Accepted Outcome And Non-Goals
|
|
40
|
-
|
|
41
|
-
- Outcome: [required result]
|
|
42
|
-
- Requirements: [accepted requirements]
|
|
43
|
-
- Non-goals: [intentional exclusions]
|
|
44
|
-
|
|
45
|
-
## Source Truth
|
|
46
|
-
|
|
47
|
-
- [Specs, Plans, tests, policies, ADRs, and established behavior]
|
|
48
|
-
|
|
49
|
-
## Verification Evidence
|
|
50
|
-
|
|
51
|
-
- Checks and results: [commands, observations, and results]
|
|
52
|
-
- Known gaps: [gaps or none]
|
|
53
|
-
- When relevant: [state owner, affecting paths, observer, forbidden mutations, prior-state requirements, adversarial disproof, mutation footprint, fidelity limits]
|
|
54
|
-
|
|
55
|
-
## Review Scope
|
|
56
|
-
|
|
57
|
-
- Review number: [1 | 2 | 3]
|
|
58
|
-
- Material lenses: [alignment and correctness | regression and integration | failure and risk | evidence | design and minimality | maintainability]
|
|
59
|
-
- Active evidence authority: [none | exact covered check, expected evidence, and stop condition]
|
|
60
|
-
|
|
61
|
-
For Review 2 or 3:
|
|
62
|
-
|
|
63
|
-
- Prior items and adjudication: [Accepted | Rejected | Open]
|
|
64
|
-
- Clarifications: [settled decisions or none]
|
|
65
|
-
- Corrections and new evidence: [changes and verification]
|
|
66
|
-
- Remaining risk: [narrow unresolved scope]
|
|
67
|
-
|
|
68
|
-
## Check
|
|
69
|
-
|
|
70
|
-
Apply only the selected lenses:
|
|
71
|
-
|
|
72
|
-
- accepted behavior is implemented without invention or omission;
|
|
73
|
-
- affected callers, states, and components remain correct together;
|
|
74
|
-
- material failure paths and risks are handled safely;
|
|
75
|
-
- verification supports the claims at the required boundary;
|
|
76
|
-
- complexity and coordination are justified;
|
|
77
|
-
- the work remains understandable without hidden policy or fragile coupling.
|
|
78
|
-
|
|
79
|
-
Do not search for unrelated issues. Report an out-of-scope issue only when it materially affects whether this boundary may be crossed.
|
|
80
|
-
|
|
81
|
-
Before calling something an Issue, ask:
|
|
82
|
-
|
|
83
|
-
1. Is required behavior or source truth settled? If not, use **Question**.
|
|
84
|
-
2. Are reachability and material consequence supported? If not, use **Needs evidence**.
|
|
85
|
-
3. Does the boundary require correction? Use **Blocking Issue** when it cannot be crossed safely, otherwise **Non-blocking Issue** when correction can be deferred safely.
|
|
86
|
-
4. Is the change merely useful beyond this boundary? Omit it by default; use **Improvement** only when materially relevant or requested.
|
|
87
|
-
|
|
88
|
-
A **Needs evidence** item must identify the claim, required observing boundary, available evidence and its limit, why the gap affects judgment, and the smallest evidence that could disagree. Establish that the claim is required. Check the candidate examined and any later code/test changes; a weakened assertion or superseded capture cannot establish current acceptance. Missing evidence does not by itself justify an implementation fix or a stronger requirement.
|
|
89
|
-
|
|
90
|
-
A Blocking Issue must identify the exact location, violated requirement or source truth, evidence, concrete boundary consequence, and correction constraints or owning activity to re-enter. Recommend a specific correction only when directly supported.
|
|
91
|
-
|
|
92
|
-
For Review 2 or 3, inspect only accepted corrections, affected interactions, new evidence, and remaining risk. Do not reopen Rejected items without contradictory evidence. For each new Blocking Issue, state whether it repeats, extends, invalidates, or exposes another consequence of a prior correction; is independent; or cannot yet be related from the evidence. Report a related pattern rather than proposing another patch. Review 3 is final; do not recommend Review 4.
|
|
93
|
-
|
|
94
|
-
## Determine The Judgment
|
|
95
|
-
|
|
96
|
-
1. **Blocking:** at least one Blocking Issue exists.
|
|
97
|
-
2. **Inconclusive:** no Blocking Issue exists, but a material Question or Needs evidence item prevents judgment.
|
|
98
|
-
3. **Non-blocking:** only Non-blocking Issues remain.
|
|
99
|
-
4. **Pass:** no Issues or material unresolved items remain.
|
|
100
|
-
|
|
101
|
-
Improvements do not change the judgment.
|
|
102
|
-
|
|
103
|
-
## Output
|
|
104
|
-
|
|
105
|
-
Omit empty groups. Do not include Improvements unless they are materially relevant or explicitly requested.
|
|
106
|
-
|
|
107
|
-
Review type: independent
|
|
108
|
-
Review number: [1 | 2 | 3]
|
|
109
|
-
Boundary: [reviewed work and protected future action]
|
|
110
|
-
Reviewed state: [state identity]
|
|
111
|
-
Judgment: Pass | Non-blocking | Inconclusive | Blocking
|
|
112
|
-
Reasoning: [concise evidence-backed judgment]
|
|
113
|
-
Relationship to prior items (Review 2 or 3 only): [related consequence | independent defect | unclear, with evidence]
|
|
114
|
-
|
|
115
|
-
### Review Items
|
|
116
|
-
|
|
117
|
-
#### Issues — Blocking
|
|
118
|
-
- [location, issue, violated source, evidence, consequence, correction constraints or owning activity]
|
|
119
|
-
|
|
120
|
-
#### Issues — Non-blocking
|
|
121
|
-
- [location, issue, evidence, why it can be deferred]
|
|
122
|
-
|
|
123
|
-
#### Unresolved — Questions
|
|
124
|
-
- [question, effect on judgment, required answer]
|
|
125
|
-
|
|
126
|
-
#### Unresolved — Needs evidence
|
|
127
|
-
- [claim, required observing boundary, available evidence and limit, why the gap affects judgment, smallest evidence that could disagree]
|
|
128
|
-
|
|
129
|
-
#### Improvements
|
|
130
|
-
- [only when materially relevant or requested: improvement, benefit, evidence]
|
|
131
|
-
|
|
132
|
-
Evidence gaps: [unproved claims or none]
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
## Calibration
|
|
136
|
-
|
|
137
|
-
Lead with the few items that can change the boundary judgment. Prior review, urgency, implementation effort, or producer confidence does not establish correctness.
|
|
138
|
-
|
|
139
|
-
The report is evidence for adjudication. It is not authority over source truth, owner decisions, corrections, or another independent dispatch. Pass, Non-blocking, Inconclusive, and Blocking are all valid exits.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# Security Risk Lens
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
This lens helps frame review. It does not replace repository security policy, threat modeling, specialist review, or stack-specific hardening guidance.
|
|
6
|
-
|
|
7
|
-
## Establish Authority
|
|
8
|
-
|
|
9
|
-
Identify:
|
|
10
|
-
|
|
11
|
-
- assets and data requiring protection;
|
|
12
|
-
- actors, roles, tenants, and privilege levels;
|
|
13
|
-
- trust boundaries and external systems;
|
|
14
|
-
- accepted security and privacy policy and threat model;
|
|
15
|
-
- compatibility and failure behavior that security controls must preserve.
|
|
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
|
-
## Trace The Paths
|
|
20
|
-
|
|
21
|
-
Review the affected path from boundary to effect:
|
|
22
|
-
|
|
23
|
-
- authentication: who or what is this actor;
|
|
24
|
-
- authorization: may this actor perform this operation on this resource;
|
|
25
|
-
- input: validation, canonicalization, size, encoding, and injection surfaces;
|
|
26
|
-
- output: escaping, disclosure, error detail, and side channels;
|
|
27
|
-
- data: collection, transport, storage, isolation, retention, deletion, and audit;
|
|
28
|
-
- secrets: source, scope, rotation, exposure, and logging;
|
|
29
|
-
- execution: shell, file, URL, template, deserialization, plugin, or code-loading boundaries;
|
|
30
|
-
- dependencies: provenance, permissions, known risk, update impact, and transitive behavior;
|
|
31
|
-
- failure: partial state, retries, lockout, rate limits, rollback, and fail-open or fail-closed behavior.
|
|
32
|
-
|
|
33
|
-
Look for confused-deputy and cross-tenant paths, not only malformed input.
|
|
34
|
-
|
|
35
|
-
## Require Boundary-Matched Evidence
|
|
36
|
-
|
|
37
|
-
Prefer evidence at the real boundary:
|
|
38
|
-
|
|
39
|
-
- tests proving allowed and denied roles and resources;
|
|
40
|
-
- negative input and injection cases;
|
|
41
|
-
- dependency or configuration inspection tied to the shipped artifact;
|
|
42
|
-
- logs or traces demonstrating no secret or sensitive leakage;
|
|
43
|
-
- failure-path tests for partial authorization, retry, and recovery;
|
|
44
|
-
- specialist analysis for cryptography, sandboxing, identity protocols, or high-impact threats.
|
|
45
|
-
|
|
46
|
-
A generic scanner pass cannot prove authorization logic or policy correctness. A unit test cannot prove deployed headers, identity configuration, or infrastructure permissions.
|
|
47
|
-
|
|
48
|
-
Do not copy secrets, credentials, unrestricted personal data, or sensitive payloads into review context. Use the smallest sanitized evidence that supports the item.
|
|
49
|
-
|
|
50
|
-
## Calibrate Items
|
|
51
|
-
|
|
52
|
-
Treat supported exploitable behavior, policy violation, unintended privilege or data exposure, unsafe failure semantics, secret leakage, or a missing required control as an Issue.
|
|
53
|
-
|
|
54
|
-
Classify it against accepted security policy and the reviewed boundary:
|
|
55
|
-
|
|
56
|
-
- **Blocking:** crossing the boundary would remain unsafe, non-compliant, or contrary to a required control.
|
|
57
|
-
- **Non-blocking:** the issue is real but can be deferred safely without violating the accepted boundary.
|
|
58
|
-
|
|
59
|
-
Use **Question** when security behavior or accepted risk remains undecided. Use **Needs evidence** when a control may exist but the available test or environment cannot establish it.
|
|
60
|
-
|
|
61
|
-
Treat materially useful defense in depth beyond the accepted boundary as an Improvement. Omit theoretical hardening, preference, or hypothetical completeness.
|
|
62
|
-
|
|
63
|
-
Do not omit an observed security issue because the selected lenses were narrower. Name the asset, path, precondition, consequence, evidence, and source requirement.
|
|
64
|
-
|
|
65
|
-
## Return Through The Selected Role
|
|
66
|
-
|
|
67
|
-
For self-review, return a route-changing security concern to [Workflow](../../../skills/workflow/SKILL.md). Use [Diagnose Failure](../../../skills/diagnose-failure/SKILL.md) for unknown exploitability or cause, [Decision Gate](../../../skills/decision-gate/SKILL.md) for missing policy or accepted-risk decisions, [Design For Depth](../../../skills/design-for-depth/SKILL.md) when trust decisions spread across callers, and [Launch Work](../../../skills/launch-work/SKILL.md) when the concern affects production rollout.
|
|
68
|
-
|
|
69
|
-
For independent review, classify the concern in the review report and stop. Do not route, correct, or dispatch follow-up. The receiving agent adjudicates the report and selects what follows.
|