@hiroshi.inoue/agent-spectrum-kernel 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.ja.md +158 -0
- package/README.md +18 -2
- package/bin/ask.mjs +9 -0
- package/dist/AGENTS.md +266 -0
- package/dist/CHANGELOG.md +110 -0
- package/dist/CUSTOM_INSTRUCTIONS.md +72 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +19 -0
- package/dist/adapters/claude-code/README.md +185 -0
- package/dist/adapters/claude-code/github-actions/README.md +45 -0
- package/dist/adapters/claude-code/github-actions/claude-review-on-mention.yml +151 -0
- package/dist/adapters/claude-code/plugin/.claude-plugin/plugin.json +15 -0
- package/dist/adapters/claude-code/plugin/README.md +48 -0
- package/dist/adapters/claude-code/plugin/bin/ai-skills-metrics-record +18 -0
- package/dist/adapters/claude-code/plugin/contracts/claim-evidence-status-contract.md +60 -0
- package/dist/adapters/claude-code/plugin/contracts/execution-envelope-contract.md +105 -0
- package/dist/adapters/claude-code/plugin/contracts/lifecycle-traceability-contract.md +169 -0
- package/dist/adapters/claude-code/plugin/contracts/review-signal-gate-map.json +128 -0
- package/dist/adapters/claude-code/plugin/hooks/hooks.json +25 -0
- package/dist/adapters/claude-code/plugin/schemas/claim-evidence-status.schema.json +85 -0
- package/dist/adapters/claude-code/plugin/schemas/codex-risk-action.schema.json +58 -0
- package/dist/adapters/claude-code/plugin/schemas/codex-risk-approval-request.schema.json +204 -0
- package/dist/adapters/claude-code/plugin/schemas/execution-envelope.schema.json +127 -0
- package/dist/adapters/claude-code/plugin/schemas/metrics-event.schema.json +395 -0
- package/dist/adapters/claude-code/plugin/scripts/claim-evidence-status.mjs +162 -0
- package/dist/adapters/claude-code/plugin/skills/adoption-report/SKILL.md +19 -0
- package/dist/adapters/claude-code/plugin/skills/evidence-ledger/SKILL.md +96 -0
- package/dist/adapters/claude-code/plugin/skills/handoff/SKILL.md +36 -0
- package/dist/adapters/claude-code/plugin/skills/implement/SKILL.md +41 -0
- package/dist/adapters/claude-code/plugin/skills/implementation-context-check/SKILL.md +21 -0
- package/dist/adapters/claude-code/plugin/skills/investigate/SKILL.md +40 -0
- package/dist/adapters/claude-code/plugin/skills/ledger-refresh/SKILL.md +22 -0
- package/dist/adapters/claude-code/plugin/skills/review-pr/SKILL.md +54 -0
- package/dist/adapters/claude-code/plugin/skills/verify/SKILL.md +44 -0
- package/dist/adapters/claude-code/plugin/templates/handoff.md +30 -0
- package/dist/adapters/claude-code/plugin/templates/implement.md +35 -0
- package/dist/adapters/claude-code/plugin/templates/investigate.md +34 -0
- package/dist/adapters/claude-code/plugin/templates/review-pr.md +48 -0
- package/dist/adapters/claude-code/plugin/templates/verify.md +38 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-handoff.md +27 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-implement.md +32 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-investigate.md +29 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-ledger-refresh.md +22 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-report.md +17 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-review.md +43 -0
- package/dist/adapters/claude-code/project/.claude/commands/skill-verify.md +37 -0
- package/dist/adapters/claude-code/project/.claude/hooks/hooks.json +52 -0
- package/dist/adapters/claude-code/project/.claude/skills/README.md +11 -0
- package/dist/adapters/codex/README.md +128 -0
- package/dist/adapters/codex/commands/codex-exec.md +69 -0
- package/dist/adapters/codex/project/.agents/skills/README.md +36 -0
- package/dist/adapters/codex/prompts/skill-handoff.md +23 -0
- package/dist/adapters/codex/prompts/skill-implement.md +28 -0
- package/dist/adapters/codex/prompts/skill-investigate.md +27 -0
- package/dist/adapters/codex/prompts/skill-review.md +44 -0
- package/dist/adapters/codex/prompts/skill-verify.md +28 -0
- package/dist/benchmarks/README.md +125 -0
- package/dist/benchmarks/adaptive-portfolio.config.json +439 -0
- package/dist/benchmarks/admission-decision-overlay.md +72 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/common/operation-and-observation.md +35 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/TASK.md +15 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/acceptance.md +29 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/business-decisions.md +21 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/contract.md +37 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/delivery-provider.md +7 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/fixture-format.md +13 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/fixtures/example.json +237 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/goal-pr.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/nonfunctional.md +3 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/prompt.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/roles.md +24 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch02-report-operations/workflows.md +35 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/TASK.md +15 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/acceptance.md +30 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/business-decisions.md +23 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/contract.md +45 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/fixture-format.md +15 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/fixtures/campaign-stores.json +284 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/fixtures/example.json +299 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/goal-pr.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/nonfunctional.md +3 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/prompt.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/roles.md +28 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch03-price-rollout/workflows.md +35 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/TASK.md +15 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/acceptance.md +30 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/business-decisions.md +23 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/contract.md +39 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/fixture-format.md +11 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/fixtures/dossier-delivery.json +325 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/fixtures/example.json +289 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/goal-pr.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/nonfunctional.md +3 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/prompt.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/roles.md +27 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch04-document-access/workflows.md +35 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/TASK.md +15 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/acceptance.md +30 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/business-decisions.md +27 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/contract.md +39 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/fixture-format.md +11 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/fixtures/example.json +276 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/goal-pr.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/nonfunctional.md +3 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/prompt.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/roles.md +27 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch05-sales-reconciliation/workflows.md +35 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/TASK.md +15 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/acceptance.md +30 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/business-decisions.md +23 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/compiler-provider.md +9 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/contract.md +39 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/fixture-format.md +11 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/fixtures/example.json +292 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/goal-pr.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/nonfunctional.md +3 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/prompt.txt +5 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/roles.md +25 -0
- package/dist/benchmarks/challenge-candidates/business-five-v3-decisions/public/tasks/ch06-build-operations/workflows.md +35 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/evaluation-protocol.md +58 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/LICENSE +21 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/PROVENANCE.md +9 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/README-ja.md +29 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/README.md +47 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/adr/001-local-storage.md +6 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/adr/007-shared-boundary.md +9 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/adr/009-retention-draft.md +4 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/architecture.md +29 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/contracts.md +14 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/library-policy.md +16 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/open-decisions.md +10 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/release.md +32 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/brief/spec-index.md +17 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/docs/design.md +1624 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/docs/requirements.md +1194 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/eslint.config.mjs +23 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/ci-summary.json +11 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/operational-observations.md +11 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/approval-history.csv +6 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/batches.csv +21 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/bookings.csv +6 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/clearance.csv +6 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/desk-ledger.csv +13 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/service-agreement.md +11 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/pilot-desk/signoffs.csv +12 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/evidence/previous-readiness-note.md +7 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/package.json +26 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/package.json +21 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/action-log.test.ts +32 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/artifact-store.test.ts +64 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/command-catalog.test.ts +89 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/config-store.test.ts +28 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/core-info.test.ts +13 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/cycle-meta.test.ts +491 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/field-report.test.ts +107 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/fix-flow.test.ts +289 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/flow-manifest.test.ts +126 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/flow-run.test.ts +44 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/knowledge-capture.test.ts +288 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/meta-status.test.ts +109 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/p0-readiness.test.ts +192 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/project-context.test.ts +172 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/project-init.test.ts +82 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/prompt-renderer.test.ts +87 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/prompt-template.test.ts +55 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/response-import.test.ts +40 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/response-normalize.test.ts +59 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/review-resolution.test.ts +187 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/review-work-metrics.test.ts +173 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/runtime-ports.test.ts +118 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/__tests__/skill-evidence.test.ts +101 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/actions/action-log.ts +48 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/application/project-context.ts +291 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/application/project-init.ts +224 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/artifacts/artifact-store.ts +2 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/artifacts/open-artifact.ts +21 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/config/config-store.ts +73 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/cycles/state.ts +799 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/domain/artifacts.ts +20 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/domain/diff-classification.ts +65 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/flows/manifest.ts +1648 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/flows/run.ts +77 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/index.ts +48 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/infrastructure/fs/artifact-store.ts +60 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/infrastructure/fs/runtime.ts +22 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/infrastructure/fs/workspace-store.ts +107 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/infrastructure/memory/runtime.ts +185 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/knowledge/capture.ts +666 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/meta/command-catalog.ts +909 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/meta/readiness.ts +519 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/meta/status.ts +58 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/metrics/review-work.ts +317 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/ports/artifact-store.ts +16 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/ports/runtime.ts +56 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/project/context.ts +46 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/project/init.ts +20 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/prompts/render.ts +369 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/prompts/templates.ts +153 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/reports/field-report.ts +230 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/responses/import.ts +127 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/responses/normalize.ts +389 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/reviews/action-plan-understanding.ts +136 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/reviews/comment-resolution.ts +605 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/reviews/fix-flow.ts +863 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/serialization/json.ts +18 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/serialization/paths.ts +27 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/serialization/yaml.ts +20 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/skill/evidence.ts +207 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/src/types.ts +634 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/core/tsconfig.json +10 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/README.md +18 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/package.json +13 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/public/app.js +357 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/public/index.html +35 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/public/styles.css +172 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/API.md +41 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/access.mjs +17 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/app.mjs +320 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/artifacts.mjs +81 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/core-bridge.mjs +48 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/errors.mjs +9 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/fixtures.mjs +75 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/index.mjs +14 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/jobs.mjs +93 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/journal.mjs +46 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/provider.mjs +59 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/reviews.mjs +80 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/server/store.mjs +105 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/test/helpers/review-fixture.mjs +9 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/test/persistence.test.mjs +60 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/portal/test/portal.test.mjs +364 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/package.json +21 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/src/__tests__/github.test.ts +335 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/src/__tests__/local-git.test.ts +98 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/src/__tests__/provider-boundary.test.ts +18 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/src/github.ts +643 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/src/index.ts +54 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/src/local-git.ts +520 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/providers/tsconfig.json +15 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/l10n/bundle.l10n.ja.json +868 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/l10n/bundle.l10n.json +868 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/package.json +474 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/package.nls.ja.json +38 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/package.nls.json +38 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/resources/reviewops-activitybar.svg +12 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/resources/reviewops-command-dark.svg +12 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/resources/reviewops-command-light.svg +12 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/resources/reviewops_guard_icon_128.png +0 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/artifact-browser.ts +380 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/artifact-loader.ts +460 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/command-center-renderer.ts +1341 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/command-center-results.ts +183 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/command-center.ts +819 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/extension-runtime.ts +2670 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/extension.ts +1 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/localization.ts +19 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/publish-draft-artifacts.ts +58 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/review-targets.ts +178 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/review-work-artifacts.ts +200 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/run-id.ts +3 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/scoped-cycle-prompt.ts +119 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/tree-views.ts +243 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/src/webview-renderers.ts +184 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/packages/vscode-extension/tsconfig.json +18 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/pnpm-lock.yaml +1708 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/pnpm-workspace.yaml +2 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/scripts/check-policy.mjs +14 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/scripts/generate-vsix.command +226 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/scripts/pilot-board.mjs +20 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/scripts/policy-checker.mjs +145 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/scripts/smoke-vsix.command +129 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/task.md +11 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/tests/policy/ai-network-guard.test.ts +9 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/tests/vscode-extension-activation.test.ts +474 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/tests/vscode-extension-artifacts.test.ts +2087 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/tests/vscode-extension-package.test.ts +336 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/tests/vsix-smoke-command.test.ts +32 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/tsconfig.base.json +15 -0
- package/dist/benchmarks/challenge-candidates/review-ceiling-v1/workspace/vitest.config.ts +11 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/README.md +66 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/brief/data-contract.md +51 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/brief/rubric.json +756 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/brief/scenarios.json +333 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/brief/spec.md +35 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/assessment-valid.json +53 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/assessment-wrong-evidence.json +53 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/backup-dangling.json +565 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/career-valid.json +51 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/plan-over-limit.json +61 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/plan-valid.json +61 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/plan-wrong-request.json +61 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/fixtures/seed.json +565 -0
- package/dist/benchmarks/challenge-candidates/ui-reconstruction-v1/workspace/task.md +29 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/bundle.json +270 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/examples/mutants.mjs +129 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/examples/reference.mjs +150 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/cases.mjs +261 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/contract.test.mjs +5 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-baseline/src/errors.mjs +17 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-baseline/src/index.mjs +3 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-baseline/src/rule-service.mjs +27 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-baseline/src/rule-store.mjs +38 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-baseline/src/validation.mjs +20 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-case-ids.json +458 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-results.mjs +37 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy-verifier.v1.2.mjs +115 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/legacy.test.mjs +4 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r1.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r10.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r2.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r3.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r4.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r5.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r6.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r7.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r8.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/fixed/r9.test.mjs +10 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/history.json +27 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/requirements.json +547 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/docs/rule-batch.schema.json +27 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/docs/rule-batches.md +140 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/package.json +7 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/src/errors.mjs +17 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/src/index.mjs +3 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/src/rule-service.mjs +27 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/src/rule-store.mjs +38 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/src/validation.mjs +20 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/seed/test/rule-service.test.mjs +34 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/spec.md +140 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/task.md +35 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/verification-contract.md +56 -0
- package/dist/benchmarks/contracts/rule-batch/2.0.0/verification.json +100 -0
- package/dist/benchmarks/evaluation-tasks.json +1645 -0
- package/dist/benchmarks/evaluator-boundary.md +107 -0
- package/dist/benchmarks/portfolio-admission-policy.json +1171 -0
- package/dist/benchmarks/portfolio-catalog.json +837 -0
- package/dist/benchmarks/portfolio-design-admission-manifest.json +170 -0
- package/dist/benchmarks/portfolio-design-admission-records/hi-authorization-exception.json +99 -0
- package/dist/benchmarks/portfolio-design-admission-records/hi-external-action-approval.json +105 -0
- package/dist/benchmarks/portfolio-design-admission-records/hi-financial-state-integrity.json +105 -0
- package/dist/benchmarks/portfolio-design-admission-records/hi-versioned-migration-safety.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mn-build-option-update.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mn-client-compatibility-fix.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mn-doc-config-correction.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mn-focused-regression-test.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mn-frontend-default-fix.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mn-schema-field-alignment.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mp-accessibility-interaction-review.json +103 -0
- package/dist/benchmarks/portfolio-design-admission-records/mp-ci-evidence-gap.json +103 -0
- package/dist/benchmarks/portfolio-design-admission-records/mp-data-migration-handoff.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/mp-frontend-state-review.json +103 -0
- package/dist/benchmarks/portfolio-design-admission-records/mp-iac-rollback-design.json +106 -0
- package/dist/benchmarks/portfolio-design-admission-records/mp-performance-investigation.json +106 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-api-pagination-behavior.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-ci-cache-flake.json +106 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-data-schema-evolution.json +105 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-frontend-async-state.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-library-compat-upgrade.json +105 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-observability-redaction.json +99 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-performance-regression.json +108 -0
- package/dist/benchmarks/portfolio-design-admission-records/pf-review-error-contract.json +103 -0
- package/dist/benchmarks/portfolio-design-independent-review.json +1666 -0
- package/dist/benchmarks/portfolio-design-review-package.json +249 -0
- package/dist/benchmarks/portfolio-design-reviewed-state.json +152 -0
- package/dist/benchmarks/portfolio-high-impact-sensitivity-policy.json +40 -0
- package/dist/benchmarks/portfolio-lineage-policy.json +213 -0
- package/dist/benchmarks/portfolio-policy-manifest.json +32 -0
- package/dist/benchmarks/portfolio-scoring-policy.json +589 -0
- package/dist/benchmarks/portfolio-similarity.json +2222 -0
- package/dist/benchmarks/prompt-v2-preregistration.json +411 -0
- package/dist/benchmarks/protocol-adaptive.md +487 -0
- package/dist/benchmarks/protocol-b2.md +113 -0
- package/dist/benchmarks/protocol-prompt-v2.md +108 -0
- package/dist/benchmarks/protocol.md +122 -0
- package/dist/benchmarks/report-template.md +61 -0
- package/dist/benchmarks/schemas/adaptive-selection-input.schema.json +82 -0
- package/dist/benchmarks/schemas/adaptive-selection-state.schema.json +45 -0
- package/dist/benchmarks/schemas/adaptive-selection.schema.json +137 -0
- package/dist/benchmarks/schemas/agent-output.schema.json +66 -0
- package/dist/benchmarks/schemas/core-evaluator-result-envelope.schema.json +708 -0
- package/dist/benchmarks/schemas/core-native-compatibility-provenance.schema.json +130 -0
- package/dist/benchmarks/schemas/core-normalized-portfolio-result.schema.json +945 -0
- package/dist/benchmarks/schemas/core-normalized-portfolio-run.schema.json +676 -0
- package/dist/benchmarks/schemas/core-original-workspace-authority.schema.json +315 -0
- package/dist/benchmarks/schemas/core-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/core-portfolio-engineering-result.schema.json +1187 -0
- package/dist/benchmarks/schemas/core-portfolio-terminal-workspace-authority.schema.json +395 -0
- package/dist/benchmarks/schemas/core-repository-diff-artifact.schema.json +253 -0
- package/dist/benchmarks/schemas/evaluation-input-failure-artifact.schema.json +36 -0
- package/dist/benchmarks/schemas/evaluator-authority-manifest.schema.json +63 -0
- package/dist/benchmarks/schemas/evaluator-check-artifact.schema.json +35 -0
- package/dist/benchmarks/schemas/evaluator-reference.schema.json +129 -0
- package/dist/benchmarks/schemas/evaluator-result-envelope.schema.json +261 -0
- package/dist/benchmarks/schemas/execution-plan.schema.json +121 -0
- package/dist/benchmarks/schemas/materialization-manifest.schema.json +187 -0
- package/dist/benchmarks/schemas/normalized-portfolio-result.schema.json +379 -0
- package/dist/benchmarks/schemas/normalized-portfolio-root.schema.json +49 -0
- package/dist/benchmarks/schemas/normalized-portfolio-run.schema.json +289 -0
- package/dist/benchmarks/schemas/original-workspace-authority.schema.json +99 -0
- package/dist/benchmarks/schemas/portfolio-adapter-identity.schema.json +148 -0
- package/dist/benchmarks/schemas/portfolio-admission-decision.schema.json +140 -0
- package/dist/benchmarks/schemas/portfolio-admission-policy.schema.json +347 -0
- package/dist/benchmarks/schemas/portfolio-admission-review-authority.schema.json +60 -0
- package/dist/benchmarks/schemas/portfolio-aggregate-result-v2.schema.json +1107 -0
- package/dist/benchmarks/schemas/portfolio-aggregate-result.schema.json +140 -0
- package/dist/benchmarks/schemas/portfolio-attempt-commit.schema.json +30 -0
- package/dist/benchmarks/schemas/portfolio-attempt-request.schema.json +134 -0
- package/dist/benchmarks/schemas/portfolio-attempt-result.schema.json +256 -0
- package/dist/benchmarks/schemas/portfolio-case-state.schema.json +38 -0
- package/dist/benchmarks/schemas/portfolio-catalog.schema.json +122 -0
- package/dist/benchmarks/schemas/portfolio-claim.schema.json +72 -0
- package/dist/benchmarks/schemas/portfolio-classification-record.schema.json +46 -0
- package/dist/benchmarks/schemas/portfolio-command-evidence.schema.json +122 -0
- package/dist/benchmarks/schemas/portfolio-config.schema.json +138 -0
- package/dist/benchmarks/schemas/portfolio-consumer-report.schema.json +289 -0
- package/dist/benchmarks/schemas/portfolio-design-admission-manifest.schema.json +76 -0
- package/dist/benchmarks/schemas/portfolio-design-admission-record.schema.json +205 -0
- package/dist/benchmarks/schemas/portfolio-design-independent-review.schema.json +264 -0
- package/dist/benchmarks/schemas/portfolio-design-review-package.schema.json +96 -0
- package/dist/benchmarks/schemas/portfolio-design-reviewed-state.schema.json +99 -0
- package/dist/benchmarks/schemas/portfolio-directional-outcome-report.schema.json +164 -0
- package/dist/benchmarks/schemas/portfolio-engineering-result-set.schema.json +222 -0
- package/dist/benchmarks/schemas/portfolio-engineering-result-source-manifest.schema.json +93 -0
- package/dist/benchmarks/schemas/portfolio-engineering-result.schema.json +515 -0
- package/dist/benchmarks/schemas/portfolio-evolution-binding.schema.json +71 -0
- package/dist/benchmarks/schemas/portfolio-final-admission-record.schema.json +125 -0
- package/dist/benchmarks/schemas/portfolio-high-impact-sensitivity-policy.schema.json +44 -0
- package/dist/benchmarks/schemas/portfolio-high-impact-sensitivity-registration.schema.json +136 -0
- package/dist/benchmarks/schemas/portfolio-high-impact-sensitivity-report.schema.json +384 -0
- package/dist/benchmarks/schemas/portfolio-legacy-calibration-migration.schema.json +308 -0
- package/dist/benchmarks/schemas/portfolio-lineage-policy.schema.json +180 -0
- package/dist/benchmarks/schemas/portfolio-lineage-record.schema.json +52 -0
- package/dist/benchmarks/schemas/portfolio-mechanism-scorecard.schema.json +197 -0
- package/dist/benchmarks/schemas/portfolio-output-contract.schema.json +52 -0
- package/dist/benchmarks/schemas/portfolio-paired-comparison-report.schema.json +346 -0
- package/dist/benchmarks/schemas/portfolio-policy-manifest.schema.json +85 -0
- package/dist/benchmarks/schemas/portfolio-repetition-report.schema.json +204 -0
- package/dist/benchmarks/schemas/portfolio-requirement-record.schema.json +72 -0
- package/dist/benchmarks/schemas/portfolio-run-identity.schema.json +58 -0
- package/dist/benchmarks/schemas/portfolio-runtime-config.schema.json +147 -0
- package/dist/benchmarks/schemas/portfolio-scoring-policy.schema.json +497 -0
- package/dist/benchmarks/schemas/portfolio-similarity.schema.json +64 -0
- package/dist/benchmarks/schemas/portfolio-terminal-workspace-authority.schema.json +134 -0
- package/dist/benchmarks/schemas/portfolio-verification-command-contract.schema.json +69 -0
- package/dist/benchmarks/schemas/primary-evaluator-result-envelope.schema.json +708 -0
- package/dist/benchmarks/schemas/primary-k2-evaluator-result-envelope.schema.json +708 -0
- package/dist/benchmarks/schemas/primary-k2-normalized-portfolio-result.schema.json +945 -0
- package/dist/benchmarks/schemas/primary-k2-normalized-portfolio-run.schema.json +676 -0
- package/dist/benchmarks/schemas/primary-k2-original-workspace-authority.schema.json +315 -0
- package/dist/benchmarks/schemas/primary-k2-portfolio-command-evidence.schema.json +554 -0
- package/dist/benchmarks/schemas/primary-k2-portfolio-engineering-result.schema.json +1187 -0
- package/dist/benchmarks/schemas/primary-k2-portfolio-terminal-workspace-authority.schema.json +395 -0
- package/dist/benchmarks/schemas/primary-k2-repository-diff-artifact.schema.json +253 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v10-evaluator-result-envelope.schema.json +3604 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v10-normalized-portfolio-result.schema.json +3804 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v10-portfolio-command-evidence.schema.json +3531 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v10-portfolio-engineering-result.schema.json +4126 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v2-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v3-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v4-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v5-portfolio-command-evidence.schema.json +558 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v6-portfolio-command-evidence.schema.json +668 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v7-evaluator-result-envelope.schema.json +708 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v7-portfolio-command-evidence.schema.json +676 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v8-evaluator-result-envelope.schema.json +760 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v8-normalized-portfolio-result.schema.json +960 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v8-portfolio-command-evidence.schema.json +687 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v8-portfolio-engineering-result.schema.json +1282 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v9-evaluator-result-envelope.schema.json +760 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v9-normalized-portfolio-result.schema.json +960 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v9-portfolio-command-evidence.schema.json +687 -0
- package/dist/benchmarks/schemas/primary-k2-saved-v9-portfolio-engineering-result.schema.json +1282 -0
- package/dist/benchmarks/schemas/primary-normalized-portfolio-result.schema.json +945 -0
- package/dist/benchmarks/schemas/primary-normalized-portfolio-run.schema.json +676 -0
- package/dist/benchmarks/schemas/primary-original-workspace-authority.schema.json +315 -0
- package/dist/benchmarks/schemas/primary-portfolio-command-evidence.schema.json +554 -0
- package/dist/benchmarks/schemas/primary-portfolio-engineering-result.schema.json +1187 -0
- package/dist/benchmarks/schemas/primary-portfolio-terminal-workspace-authority.schema.json +395 -0
- package/dist/benchmarks/schemas/primary-public-capability-selection-v2.schema.json +31 -0
- package/dist/benchmarks/schemas/primary-repository-diff-artifact.schema.json +253 -0
- package/dist/benchmarks/schemas/primary-runtime-v10-binding.schema.json +2843 -0
- package/dist/benchmarks/schemas/primary-saved-v10-evaluator-result-envelope.schema.json +3604 -0
- package/dist/benchmarks/schemas/primary-saved-v10-normalized-portfolio-result.schema.json +3804 -0
- package/dist/benchmarks/schemas/primary-saved-v10-portfolio-command-evidence.schema.json +3531 -0
- package/dist/benchmarks/schemas/primary-saved-v10-portfolio-engineering-result.schema.json +4126 -0
- package/dist/benchmarks/schemas/primary-saved-v2-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/primary-saved-v3-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/primary-saved-v4-portfolio-command-evidence.schema.json +548 -0
- package/dist/benchmarks/schemas/primary-saved-v5-portfolio-command-evidence.schema.json +558 -0
- package/dist/benchmarks/schemas/primary-saved-v6-portfolio-command-evidence.schema.json +668 -0
- package/dist/benchmarks/schemas/primary-saved-v7-evaluator-result-envelope.schema.json +708 -0
- package/dist/benchmarks/schemas/primary-saved-v7-portfolio-command-evidence.schema.json +676 -0
- package/dist/benchmarks/schemas/primary-saved-v8-evaluator-result-envelope.schema.json +760 -0
- package/dist/benchmarks/schemas/primary-saved-v8-normalized-portfolio-result.schema.json +960 -0
- package/dist/benchmarks/schemas/primary-saved-v8-portfolio-command-evidence.schema.json +687 -0
- package/dist/benchmarks/schemas/primary-saved-v8-portfolio-engineering-result.schema.json +1282 -0
- package/dist/benchmarks/schemas/primary-saved-v9-evaluator-result-envelope.schema.json +760 -0
- package/dist/benchmarks/schemas/primary-saved-v9-normalized-portfolio-result.schema.json +960 -0
- package/dist/benchmarks/schemas/primary-saved-v9-portfolio-command-evidence.schema.json +687 -0
- package/dist/benchmarks/schemas/primary-saved-v9-portfolio-engineering-result.schema.json +1282 -0
- package/dist/benchmarks/schemas/private-evaluation-record.schema.json +311 -0
- package/dist/benchmarks/schemas/private-evaluator-bundle.schema.json +224 -0
- package/dist/benchmarks/schemas/private-evaluator-fragment.schema.json +140 -0
- package/dist/benchmarks/schemas/private-evaluator-independence-statement.schema.json +168 -0
- package/dist/benchmarks/schemas/prompt-v2-comparison-report.schema.json +94 -0
- package/dist/benchmarks/schemas/prompt-v2-execution-plan.schema.json +115 -0
- package/dist/benchmarks/schemas/prompt-v2-materialization-manifest.schema.json +58 -0
- package/dist/benchmarks/schemas/prompt-v2-normalized-result.schema.json +109 -0
- package/dist/benchmarks/schemas/prompt-v2-preregistration.schema.json +266 -0
- package/dist/benchmarks/schemas/prompt-v2-resume-state.schema.json +60 -0
- package/dist/benchmarks/schemas/repository-diff-artifact.schema.json +78 -0
- package/dist/benchmarks/schemas/result.schema.json +292 -0
- package/dist/benchmarks/schemas/runtime-observation-carrier.schema.json +480 -0
- package/dist/benchmarks/schemas/scoring-input-freeze-manifest.schema.json +77 -0
- package/dist/benchmarks/task-revisions/ch01-inventory-reservation-logistics/rubric.json +41 -0
- package/dist/benchmarks/task-revisions/ch02-report-operations/input-manifest.json +141 -0
- package/dist/benchmarks/task-revisions/ch02-report-operations/rubric.json +40 -0
- package/dist/benchmarks/task-revisions/ch03-price-rollout/input-manifest.json +141 -0
- package/dist/benchmarks/task-revisions/ch03-price-rollout/rubric.json +49 -0
- package/dist/benchmarks/task-revisions/ch04-document-access/input-manifest.json +141 -0
- package/dist/benchmarks/task-revisions/ch04-document-access/rubric.json +49 -0
- package/dist/benchmarks/task-revisions/ch05-sales-reconciliation/input-manifest.json +131 -0
- package/dist/benchmarks/task-revisions/ch05-sales-reconciliation/rubric.json +49 -0
- package/dist/benchmarks/task-revisions/ch06-build-operations/input-manifest.json +141 -0
- package/dist/benchmarks/task-revisions/ch06-build-operations/rubric.json +49 -0
- package/dist/benchmarks/task-revisions/ch08-growth-workspace/input-manifest.json +78 -0
- package/dist/benchmarks/task-revisions/ch08-growth-workspace/rubric.json +49 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/input-manifest.json +72 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/rubric.json +52 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/task.md +17 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/base/authorization.mjs +6 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/data/access-cases.json +251 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/docs/ownership-contract.md +11 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/package.json +13 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/pr.diff +12 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/review.schema.json +175 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/scripts/trace-access.mjs +14 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/scripts/validate-review.mjs +12 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/src/authorization.mjs +6 -0
- package/dist/benchmarks/task-revisions/hi-authorization-exception/workspace/test/access-subset.test.mjs +1 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/input-manifest.json +87 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/task.md +7 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/data/approval-receipts.json +162 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/data/operation-cases.json +257 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/data/review-attestations.json +257 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/data/state.json +1 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/docs/action-contract.md +15 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/operation-plan.json +5 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/package.json +13 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/plan.schema.json +127 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/scripts/controller.mjs +45 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/scripts/dry-run.mjs +1 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/scripts/validate-plan.mjs +1 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/scripts/validate-shape.mjs +16 -0
- package/dist/benchmarks/task-revisions/hi-external-action-approval/workspace/test/approval.test.mjs +55 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/input-manifest.json +52 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/task.md +17 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/workspace/data/incident.json +19 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/workspace/data/initial-state.json +9 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/workspace/docs/ledger-contract.md +9 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/workspace/package.json +11 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/workspace/src/ledger.mjs +11 -0
- package/dist/benchmarks/task-revisions/hi-financial-state-integrity/workspace/test/ledger.test.mjs +15 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/input-manifest.json +87 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/task.md +7 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/data/mixed-state.json +17 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/data/rollback-cases.json +84 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/data/schema-phases.json +54 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/data/timeline.json +52 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/docs/migration-contract.md +17 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/migration-plan.json +10 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/package.json +13 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/plan.schema.json +110 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/scripts/compatibility.mjs +51 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/scripts/dry-run.mjs +1 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/scripts/validate-plan.mjs +1 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/scripts/validate-shape.mjs +16 -0
- package/dist/benchmarks/task-revisions/hi-versioned-migration-safety/workspace/test/mixed-version.test.mjs +61 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/input-manifest.json +85 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/rubric.json +34 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/task.md +5 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/data/incident.json +8 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/data/initial-state.json +21 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/data/service-save.json +160 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/docs/bank-interchange.md +37 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/docs/close-instructions.md +27 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/docs/ledger-contract.md +21 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/package.json +11 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/src/archive.mjs +46 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/src/clearing.mjs +47 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/src/ledger.mjs +36 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/src/money.mjs +11 -0
- package/dist/benchmarks/task-revisions/implementation-clearing-cutover/workspace/test/ledger.test.mjs +50 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/input-manifest.json +52 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/task.md +5 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/workspace/docs/archive-operations.md +13 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/workspace/docs/interchange.md +16 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/workspace/docs/statement-interface.md +9 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/workspace/package.json +8 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/workspace/src/event-lookup.mjs +39 -0
- package/dist/benchmarks/task-revisions/implementation-timeline-restore/workspace/test/client.test.mjs +38 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/input-manifest.json +94 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/rubric.json +84 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/task.md +5 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/docs/dispatch.md +25 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/docs/installed-clients.md +35 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/docs/returned-sheets.md +15 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/package.json +8 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/release/console.mjs +2 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/release/database.mjs +52 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/release/desk.mjs +24 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/release/kiosk.mjs +47 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/release/operator.mjs +17 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/release/printer.mjs +63 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/src/delivery.mjs +28 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/src/reconcile.mjs +16 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/src/workspace.mjs +44 -0
- package/dist/benchmarks/task-revisions/implementation-workspace-upgrade/workspace/test/desk.test.mjs +34 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/input-manifest.json +52 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/rubric.json +38 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/task.md +5 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/workspace/build.config.json +14 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/workspace/ci/release-build.log +7 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/workspace/docs/build-options.md +12 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/workspace/package.json +9 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/workspace/scripts/validate-build-config.mjs +11 -0
- package/dist/benchmarks/task-revisions/mn-build-option-update/workspace/test/build-config.test.mjs +15 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/input-manifest.json +48 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/rubric.json +29 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/task.md +5 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/workspace/docs/client-support.md +12 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/workspace/docs/preferences.md +5 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/workspace/package.json +6 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/workspace/src/preferences.mjs +3 -0
- package/dist/benchmarks/task-revisions/mn-client-compatibility-fix/workspace/test/preferences.test.mjs +20 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/input-manifest.json +42 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/rubric.json +37 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/task.md +3 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/workspace/config/retry-policy.json +6 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/workspace/docs/worker-retries.md +12 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/workspace/package.json +8 -0
- package/dist/benchmarks/task-revisions/mn-doc-config-correction/workspace/test/worker-retries.test.mjs +16 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/input-manifest.json +42 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/rubric.json +37 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/task.md +5 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/workspace/package.json +9 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/workspace/spec/session-key.md +7 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/workspace/src/session-key.mjs +12 -0
- package/dist/benchmarks/task-revisions/mn-focused-regression-test/workspace/test/session-key.test.mjs +11 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/input-manifest.json +48 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/task.md +5 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/workspace/package.json +7 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/workspace/spec/default-state.md +14 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/workspace/src/display-controls.mjs +6 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/workspace/src/display-preferences.mjs +18 -0
- package/dist/benchmarks/task-revisions/mn-frontend-default-fix/workspace/test/display-preferences.test.mjs +54 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/input-manifest.json +58 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/task.md +5 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/package.json +7 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/schemas/member.schema.json +12 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/spec/member-contract.md +13 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/spec/schema-alignment-plan.md +5 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/src/member-export.mjs +3 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/src/member-import.mjs +23 -0
- package/dist/benchmarks/task-revisions/mn-schema-field-alignment/workspace/test/member-record.test.mjs +36 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/input-manifest.json +82 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/rubric.json +52 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/task.md +7 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/docs/interaction-notes.md +11 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/notice-editor.html +31 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/package-lock.json +15 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/package.json +14 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/pr.diff +83 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/review.schema.json +57 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/scripts/validate-review.mjs +40 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/src/format-toolbar.html +10 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/src/format-toolbar.mjs +42 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/test/helpers/toolbar-fixture.mjs +19 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/test/integration/format-toolbar.test.mjs +16 -0
- package/dist/benchmarks/task-revisions/mp-accessibility-interaction-review/workspace/test/unit/format-toolbar.test.mjs +23 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/input-manifest.json +87 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/rubric.json +52 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/task.md +5 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/.github/workflows/pull-request.yml +23 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/ci/pull-request-314.log +22 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/docs/verification.md +9 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/package-lock.json +13 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/package.json +14 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/pr.diff +49 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/review.schema.json +61 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/scripts/upload-diagnostics.mjs +4 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/scripts/validate-review.mjs +40 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/src/checkout.mjs +6 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/src/quote-order.mjs +13 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/test/checkout/quote-order-contract.test.mjs +12 -0
- package/dist/benchmarks/task-revisions/mp-ci-evidence-gap/workspace/test/unit/quote-order.test.mjs +23 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/input-manifest.json +97 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/task.md +7 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/docs/migration-plan.md +21 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/docs/rollback-runbook.md +3 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/evidence/checkpoint-journal.ndjson +10 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/evidence/comparisons.ndjson +6 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/evidence/compatibility.json +25 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/evidence/outbox.ndjson +4 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/handoff.schema.json +216 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/operations/commands.json +71 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/operations/pages.json +134 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/operations/work-orders.json +39 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/package-lock.json +13 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/package.json +11 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/scripts/validate-handoff.mjs +63 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/state/grants.ndjson +5 -0
- package/dist/benchmarks/task-revisions/mp-data-migration-handoff/workspace/state/routing.json +22 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/input-manifest.json +77 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/task.md +5 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/docs/state-contract.md +14 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/package-lock.json +15 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/package.json +14 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/pr.diff +116 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/review.schema.json +57 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/scripts/validate-review.mjs +40 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/src/inbox-state.mjs +47 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/src/inbox-view.mjs +19 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/test/helpers/inbox-fixture.mjs +8 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/test/integration/inbox-view.test.mjs +32 -0
- package/dist/benchmarks/task-revisions/mp-frontend-state-review/workspace/test/unit/inbox-state.test.mjs +20 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/input-manifest.json +87 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/rubric.json +52 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/task.md +7 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/change-plan.schema.json +186 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/docs/change-request.md +9 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/docs/knowledge-policy.md +6 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/docs/rollback-policy.md +8 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/infra/alias.tf +11 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/infra/iam.tf +12 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/operations/commands.json +46 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/package-lock.json +15 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/package.json +12 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/plans/candidate-plan.json +15 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/plans/pre-apply-records.json +117 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/scripts/validate-change-plan.mjs +138 -0
- package/dist/benchmarks/task-revisions/mp-iac-rollback-design/workspace/state/current-state.json +23 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/input-manifest.json +97 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/task.md +7 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/docs/investigation-contract.md +14 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/investigation.schema.json +92 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/observability/cache-samples.csv +7 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/observability/release-events.json +14 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/observability/request-windows.csv +4 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/observability/runtime-profile.json +25 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/package-lock.json +15 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/package.json +15 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/scripts/replay-summary.mjs +12 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/scripts/validate-investigation.mjs +84 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/src/cache-key.mjs +6 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/src/summary-replay.mjs +42 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/src/summary-service.mjs +9 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/test/integration/summary-replay.test.mjs +11 -0
- package/dist/benchmarks/task-revisions/mp-performance-investigation/workspace/test/unit/cache-key.test.mjs +9 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/input-manifest.json +53 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/task.md +7 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/workspace/package.json +6 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/workspace/spec/pagination-contract.md +9 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/workspace/src/api-pages.mjs +16 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/workspace/src/catalog-consumer.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/workspace/src/pagination.mjs +19 -0
- package/dist/benchmarks/task-revisions/pf-api-pagination-behavior/workspace/test/pagination.test.mjs +76 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/input-manifest.json +77 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/task.md +11 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/ci/build-config.json +11 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/ci/build-history.log +6 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/ci/scenarios.json +38 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/docs/investigation-contract.md +19 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/investigation.schema.json +503 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/package.json +14 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/scripts/reproduce-cache.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/scripts/validate-report.mjs +31 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/src/cache-model.mjs +9 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/test/cache-observation.test.mjs +33 -0
- package/dist/benchmarks/task-revisions/pf-ci-cache-flake/workspace/test/report-structure.test.mjs +2 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/input-manifest.json +68 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/task.md +11 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/data/legacy-customers.json +17 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/migrations/v1-v2.plan.json +11 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/package.json +12 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/schemas/customer-v1.schema.json +27 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/schemas/customer-v2.schema.json +25 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/spec/evolution-contract.md +8 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/src/readers.mjs +3 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/src/schema-contract.mjs +7 -0
- package/dist/benchmarks/task-revisions/pf-data-schema-evolution/workspace/test/schema-evolution.test.mjs +15 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/input-manifest.json +47 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/rubric.json +37 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/task.md +7 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/workspace/package.json +1 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/workspace/spec/search-state-contract.md +6 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/workspace/src/search-controller.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/workspace/src/search-view.mjs +3 -0
- package/dist/benchmarks/task-revisions/pf-frontend-async-state/workspace/test/search-state.test.mjs +14 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/input-manifest.json +90 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/rubric.json +42 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/task.md +9 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/config/migration-settings.json +5 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/data/compatibility-matrix.json +44 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/docs/migration-contract.md +13 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/package.json +13 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/scripts/check-rollback.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/scripts/validate-migration.mjs +2 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/src/archive-compat.mjs +2 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/src/download-export.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/src/scheduled-export.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/test/application-callers.test.mjs +19 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/test/archive-compat.test.mjs +13 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/vendor/archive-v1.mjs +3 -0
- package/dist/benchmarks/task-revisions/pf-library-compat-upgrade/workspace/vendor/archive-v2.mjs +3 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/input-manifest.json +88 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/task.md +11 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/base/projection-policy.json +14 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/config/field-contract.json +24 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/config/projection-policy.json +18 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/config/proposed-policy.json +18 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/data/events.json +80 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/docs/projection-contract.md +11 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/package.json +13 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/pr.diff +19 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/review.schema.json +120 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/scripts/trace-policy.mjs +1 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/scripts/validate-review.mjs +12 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/src/project-event.mjs +7 -0
- package/dist/benchmarks/task-revisions/pf-observability-redaction/workspace/test/project-event.test.mjs +3 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/input-manifest.json +62 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/rubric.json +45 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/task.md +11 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/data/measurement-config.json +21 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/docs/lookup-contract.md +11 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/package.json +12 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/reference/scan-lookup.mjs +7 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/scripts/generate-data.mjs +5 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/scripts/measure-lookup.mjs +103 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/src/event-lookup.mjs +7 -0
- package/dist/benchmarks/task-revisions/pf-performance-regression/workspace/test/event-lookup.test.mjs +17 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/input-manifest.json +87 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/rubric.json +44 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/task.md +11 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/base/response-adapter.mjs +10 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/comparisons/option-a.diff +10 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/comparisons/option-b.diff +11 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/data/cases.json +65 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/docs/error-contract.md +10 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/package.json +10 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/pr.diff +13 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/review.schema.json +407 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/scripts/trace-cases.mjs +7 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/scripts/validate-review.mjs +12 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/src/client-policy.mjs +8 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/src/response-adapter.mjs +10 -0
- package/dist/benchmarks/task-revisions/pf-review-error-contract/workspace/test/api-error.test.mjs +6 -0
- package/dist/benchmarks/task-revisions/rc01-shared-review-platform/input-manifest.json +808 -0
- package/dist/benchmarks/task-revisions/rc01-shared-review-platform/rubric.json +40 -0
- package/dist/bin/ask.mjs +9 -0
- package/dist/docs/README.md +81 -0
- package/dist/docs/adapter-capability-matrix.md +75 -0
- package/dist/docs/adapter-conformance-contract.md +81 -0
- package/dist/docs/adapter-cross-conformance-report.md +43 -0
- package/dist/docs/adapter-deployment-governance.md +110 -0
- package/dist/docs/adapter-runtime-boundary-contract.md +211 -0
- package/dist/docs/adapter-runtime-migration.md +130 -0
- package/dist/docs/adoption-apply.md +97 -0
- package/dist/docs/adoption-setup.md +150 -0
- package/dist/docs/adr/0001-verification-evidence-trust-boundary.md +100 -0
- package/dist/docs/adr/0002-epic-admission-work-package-plan-authority.md +76 -0
- package/dist/docs/adr/0003-asset-registry-authority-boundary.md +120 -0
- package/dist/docs/adr/0004-portfolio-activation-authority-boundary.md +290 -0
- package/dist/docs/adr/0005-evolution-authority-boundary.md +195 -0
- package/dist/docs/adr/0006-claim-evidence-status-boundary.md +57 -0
- package/dist/docs/adr/0007-runner-owned-execution-envelope-record.md +28 -0
- package/dist/docs/adr/0008-monotonic-verification-proof-path.md +122 -0
- package/dist/docs/adr/0009-baseline-semantic-review-authority.md +74 -0
- package/dist/docs/adr/0010-one-task-effectiveness-authority-boundary.md +143 -0
- package/dist/docs/adr/0011-prompt-v2-result-blind-canary-authority.md +155 -0
- package/dist/docs/adr/0025-discarded-evaluation-result-use.md +31 -0
- package/dist/docs/agent-session-state-contract.md +67 -0
- package/dist/docs/ai/adoption-report-template.md +179 -0
- package/dist/docs/ai/architecture-decision-memory.md +83 -0
- package/dist/docs/ai/documentation-knowledge-ledger.md +85 -0
- package/dist/docs/ai/domain-rule-ledger.md +115 -0
- package/dist/docs/ai/engineering-capability-ledger.md +90 -0
- package/dist/docs/ai/engineering-pattern-ledger.md +81 -0
- package/dist/docs/ai/implementation-context.md +158 -0
- package/dist/docs/ai/improvement-ledger.md +212 -0
- package/dist/docs/ai/metrics/README.md +9 -0
- package/dist/docs/ai/metrics/fixtures/stakeholder-readiness-events.jsonl +3 -0
- package/dist/docs/ai/observability-config.yml +54 -0
- package/dist/docs/ai/reports/README.md +5 -0
- package/dist/docs/ai/reports/examples/ai-promotion-readiness-sample.md +43 -0
- package/dist/docs/ai/reports/examples/business-unit-client-value-readiness-sample.md +37 -0
- package/dist/docs/ai/reports/examples/development-manager-readiness-sample.md +41 -0
- package/dist/docs/ai/reports/examples/senior-engineer-readiness-sample.md +42 -0
- package/dist/docs/ai/review-context.md +127 -0
- package/dist/docs/ai/review-rule-ledger.md +78 -0
- package/dist/docs/ai/skill-adoption-metrics.md +251 -0
- package/dist/docs/ai/stakeholder-readiness-report-template.md +139 -0
- package/dist/docs/ai/verification-pattern-ledger.md +83 -0
- package/dist/docs/ask-autonomous-development.md +237 -0
- package/dist/docs/ask-core-bundle-implementation.md +155 -0
- package/dist/docs/asset-registry-contract.md +392 -0
- package/dist/docs/bounded-target-snapshot.md +90 -0
- package/dist/docs/claim-evidence-status-contract.md +60 -0
- package/dist/docs/claude-github-review-setup.md +65 -0
- package/dist/docs/codex-metrics-collector.md +149 -0
- package/dist/docs/cross-runtime-environment-loop.md +345 -0
- package/dist/docs/customization-guide.md +175 -0
- package/dist/docs/debt-lifecycle-contract.md +134 -0
- package/dist/docs/demos/personal-loop-saved-demo-ja.md +38 -0
- package/dist/docs/epic-admission-work-package-plan-contract.md +239 -0
- package/dist/docs/evaluation-task-catalog.md +107 -0
- package/dist/docs/evolution-loop-contract.md +395 -0
- package/dist/docs/evolution-loop-sample-prompt-candidate.md +15 -0
- package/dist/docs/execution-envelope-contract.md +105 -0
- package/dist/docs/finding-intake.md +165 -0
- package/dist/docs/first-workflow-mac-codex-ja.md +132 -0
- package/dist/docs/fixtures/adapter-cross-conformance.json +272 -0
- package/dist/docs/fixtures/adapter-runtime-bundle.json +867 -0
- package/dist/docs/fixtures/adapter-runtime-evidence.json +111 -0
- package/dist/docs/fixtures/adapter-runtime-profiles.json +2055 -0
- package/dist/docs/fixtures/asset-registry/reference.json +89 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/06/cacaea5b7b84bb2a9f6a6e849f1e561967637cfc0c28bd60675b665f090a54.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/0a/1bf5ec027954e2def2bf6591655365258e4ed6c3e58a151ea242b961591dcc.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/12/4a398892b63295e43b894776bea049625e3847010acd2dce61880a207cf1da.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/33/d26707d82e68099085b91f60b26b6bea6ea17af802a493dd70ee4629dfc72b.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/34/a511af596bc1317941241135f053153d9862ff7552a243c0231fc079c4edba.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/39/f30afcc78d50c1ff2cf85d4c18d546b47811c370146193535af08cc030cc65.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/43/e18c25bca6279ab7b333b5e4ce3bfdc8ada01023bfe47d0889d61e71872c56.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/5b/50712f43feecf82d532178310cf2e0fe2fe709e0d951eb797a3876ff0cf92d.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/5c/c2ab9ca47824d2d13438f7f4460b71db1a6f939cfce1b0f84291e3e5935be5.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/62/1237eed65b92d996a11b259d7ef8854357c9fd1e7170071d59c4f50f4e7b3e.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/9b/fd6af3c3768f8760fb1fe8b8ab98e6d4753d4802e38f7604b446dc7b14a95a.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/be/c5d5f8f9ee2f8fdab1902f73888b251eb9e62e55bef3529542ab0deb8a48e2.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/c6/19c6c426da2f6fac9185c2426908ea83ff1598e5e9af7add61f509678a5853.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/d6/e6ac3acac3ee396987fd0333b6193c809156c88eb343b43c9e0b0c72fbe1c5.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/d9/6f3131c5d6556d2fa74665befef66c0d279dd1177dc6d41f232f2844eafba6.json +1 -0
- package/dist/docs/fixtures/asset-registry/store/objects/sha256/f4/6abf273daaaf13cc96c10e54d2de72ba8cd269a58d1ea047331c38ba13dc18.json +1 -0
- package/dist/docs/fixtures/claude-fixed-entry-route-baseline.json +36 -0
- package/dist/docs/fixtures/claude-pre-fixed-commands/skill-handoff.md +32 -0
- package/dist/docs/fixtures/claude-pre-fixed-commands/skill-implement.md +30 -0
- package/dist/docs/fixtures/claude-pre-fixed-commands/skill-investigate.md +25 -0
- package/dist/docs/fixtures/claude-pre-fixed-commands/skill-review.md +54 -0
- package/dist/docs/fixtures/claude-pre-fixed-commands/skill-verify.md +36 -0
- package/dist/docs/fixtures/codex-compact-route-baseline.json +42 -0
- package/dist/docs/fixtures/codex-pre-compact-prompts/skill-handoff.md +43 -0
- package/dist/docs/fixtures/codex-pre-compact-prompts/skill-implement.md +55 -0
- package/dist/docs/fixtures/codex-pre-compact-prompts/skill-investigate.md +55 -0
- package/dist/docs/fixtures/codex-pre-compact-prompts/skill-review.md +68 -0
- package/dist/docs/fixtures/codex-pre-compact-prompts/skill-verify.md +55 -0
- package/dist/docs/fixtures/epic-admission-policy.json +50 -0
- package/dist/docs/fixtures/epic-admission-work-package-plan-cases.json +766 -0
- package/dist/docs/fixtures/evolution-loop/reference.json +551 -0
- package/dist/docs/fixtures/first-workflow-315/bypass-input-ja.md +2 -0
- package/dist/docs/fixtures/first-workflow-315/implementation-input-ja.md +15 -0
- package/dist/docs/fixtures/issue-275-slice-1-epic-admission-decision.json +86 -0
- package/dist/docs/fixtures/issue-275-slice-1-work-package-plan-r1.json +1053 -0
- package/dist/docs/fixtures/issue-275-slice-1-work-package-plan-r2.json +1078 -0
- package/dist/docs/fixtures/issue-275-slice-1-work-package-plan-validation-context-r1.json +81 -0
- package/dist/docs/fixtures/issue-275-slice-1-work-package-plan-validation-context-r2.json +117 -0
- package/dist/docs/fixtures/issue-275-slice-1-work-package-plan-validation-context.json +117 -0
- package/dist/docs/fixtures/issue-275-slice-1-work-package-plan.json +1126 -0
- package/dist/docs/fixtures/kernel-principles-source-5f36081.md +266 -0
- package/dist/docs/fixtures/lifecycle-artifact-chains.json +108 -0
- package/dist/docs/fixtures/lifecycle-traceability-chains.json +356 -0
- package/dist/docs/fixtures/portfolio-manager/reference.json +70 -0
- package/dist/docs/fixtures/pragmatic-evaluation/notes-template.json +39 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/binding.json +170 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/reference.json +397 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/claude_code/skill-handoff.md +32 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/claude_code/skill-implement.md +38 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/claude_code/skill-investigate.md +35 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/claude_code/skill-review.md +49 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/claude_code/skill-verify.md +43 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/codex/skill-handoff.md +29 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/codex/skill-implement.md +34 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/codex/skill-investigate.md +33 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/codex/skill-review.md +50 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/codex/skill-verify.md +34 -0
- package/dist/docs/fixtures/prompt-v2-preregistration/rendered/reference.json +94 -0
- package/dist/docs/fixtures/release-evidence-gate/current-main-756c72-claim-matrix.json +74 -0
- package/dist/docs/fixtures/release-evidence-gate/current-main-756c72-evidence.json +30 -0
- package/dist/docs/fixtures/release-evidence-gate/current-main-d4ad39-claim-matrix.json +389 -0
- package/dist/docs/fixtures/release-evidence-gate/current-main-d4ad39-evidence.json +1024 -0
- package/dist/docs/fixtures/release-evidence-gate/current-main-d4ad39-independent-review.md +95 -0
- package/dist/docs/fixtures/release-evidence-gate/current-main-d4ad39-observations.json +87 -0
- package/dist/docs/fixtures/release-evidence-gate/mac-install-recovery-candidate.json +232 -0
- package/dist/docs/fixtures/release-evidence-gate/mac-install-recovery-review.md +112 -0
- package/dist/docs/fixtures/review-route-cases.json +830 -0
- package/dist/docs/fixtures/skill-effectiveness-outcome-cases.json +549 -0
- package/dist/docs/fixtures/sufficient-change-scope/stage-1.md +51 -0
- package/dist/docs/fixtures/sufficient-change-scope/stage-2.md +30 -0
- package/dist/docs/fixtures/ui-ux-design/README.md +36 -0
- package/dist/docs/fixtures/ui-ux-design/fixture-state.mjs +140 -0
- package/dist/docs/fixtures/ui-ux-design/fixture-state.test.mjs +171 -0
- package/dist/docs/fixtures/ui-ux-design/fixture.mjs +154 -0
- package/dist/docs/fixtures/verification-proof-formal-baseline.md +14 -0
- package/dist/docs/fixtures/verification-proof-policy-cases.json +906 -0
- package/dist/docs/glossary-ja.md +433 -0
- package/dist/docs/instruction-improvement-continuity.md +237 -0
- package/dist/docs/instruction-improvement-delivery.md +130 -0
- package/dist/docs/instruction-improvement-learning-context.md +118 -0
- package/dist/docs/instruction-improvement-readiness.md +116 -0
- package/dist/docs/instruction-loop-failed-preparation.md +45 -0
- package/dist/docs/instruction-loop-fixed-reference-scoring.md +57 -0
- package/dist/docs/instruction-loop-host-authoring.md +83 -0
- package/dist/docs/instruction-loop-reference-evidence.md +185 -0
- package/dist/docs/instruction-loop-retained-authoring.md +115 -0
- package/dist/docs/instruction-loop-source-application.md +110 -0
- package/dist/docs/instruction-loop-source-validation.md +65 -0
- package/dist/docs/instruction-loop-standard-execution.md +101 -0
- package/dist/docs/kernel-principles-candidate-v2.md +124 -0
- package/dist/docs/kernel-principles-comparison.md +135 -0
- package/dist/docs/kernel-principles-v2-adoption.md +118 -0
- package/dist/docs/kernel-standalone-design-proposal.md +198 -0
- package/dist/docs/kernel-standalone-instruction-draft.md +206 -0
- package/dist/docs/lifecycle-artifact-contract.md +274 -0
- package/dist/docs/lifecycle-traceability-contract.md +169 -0
- package/dist/docs/local-codex-admission.md +177 -0
- package/dist/docs/local-codex-connection.md +60 -0
- package/dist/docs/local-codex-read-policy.md +210 -0
- package/dist/docs/local-codex-single-sandbox-design.md +73 -0
- package/dist/docs/local-eval-distribution.md +222 -0
- package/dist/docs/local-full-static-preparation.md +137 -0
- package/dist/docs/local-three-arm-comparison.md +142 -0
- package/dist/docs/local-three-arm-qualification.md +89 -0
- package/dist/docs/mac-ask-full-reference-supplement.json +249 -0
- package/dist/docs/mac-ask-full-static-inventory.json +1488 -0
- package/dist/docs/mac-kernel-value-screening.md +253 -0
- package/dist/docs/measured-review-adoption.md +88 -0
- package/dist/docs/metrics-event-contract.md +252 -0
- package/dist/docs/npm-distribution-ja.md +135 -0
- package/dist/docs/npm-distribution.md +299 -0
- package/dist/docs/npm-loop-spec-example.mjs +34 -0
- package/dist/docs/observability-runtime-contract.md +164 -0
- package/dist/docs/operation-automation-contract.md +89 -0
- package/dist/docs/personal-evolution-bridge.md +33 -0
- package/dist/docs/personal-evolution-cli.md +238 -0
- package/dist/docs/personal-evolution-codex-generation.md +166 -0
- package/dist/docs/personal-evolution-driver.md +15 -0
- package/dist/docs/personal-evolution-generation-connector.md +139 -0
- package/dist/docs/personal-evolution-generation-status.md +86 -0
- package/dist/docs/personal-evolution-generation.md +31 -0
- package/dist/docs/personal-evolution-primary-loop.md +241 -0
- package/dist/docs/personal-evolution-primary-pair-contract.md +72 -0
- package/dist/docs/personal-evolution-saved-results.md +31 -0
- package/dist/docs/personal-evolution-source-reviewer.md +84 -0
- package/dist/docs/personal-evolution-unattended.md +169 -0
- package/dist/docs/personal-loop-quickstart-ja.md +79 -0
- package/dist/docs/personal-v1-release-preparation-ja.md +41 -0
- package/dist/docs/portfolio-manager-contract.md +596 -0
- package/dist/docs/practical-challenge-evaluation.md +273 -0
- package/dist/docs/practical-evaluation-recovery.md +487 -0
- package/dist/docs/practical-grade-supplement.md +193 -0
- package/dist/docs/practical-partial-grading.md +121 -0
- package/dist/docs/practical-quality-observations.md +69 -0
- package/dist/docs/practical-retained-grade-report.md +106 -0
- package/dist/docs/pragmatic-evaluation.md +149 -0
- package/dist/docs/primary-24-practical-review.md +281 -0
- package/dist/docs/primary-24-practical-revision.md +256 -0
- package/dist/docs/primary-24-private-v2.md +28 -0
- package/dist/docs/primary-24-task-assembly.md +276 -0
- package/dist/docs/primary-24-unsafe-action-v8.md +28 -0
- package/dist/docs/primary-evaluation-correctness-v7.md +188 -0
- package/dist/docs/primary-principles-v2-connection.md +88 -0
- package/dist/docs/project-overlay-template.md +152 -0
- package/dist/docs/prompt-recipes-ja.md +955 -0
- package/dist/docs/prompt-v2-execution-handoff.md +81 -0
- package/dist/docs/quality-rubric.md +145 -0
- package/dist/docs/quickstart-ja.md +388 -0
- package/dist/docs/quickstart-mac-codex-ja.md +160 -0
- package/dist/docs/references.md +18 -0
- package/dist/docs/release-evidence-gate-contract.md +198 -0
- package/dist/docs/release-package-2026-10.md +129 -0
- package/dist/docs/review-finding-contract.md +54 -0
- package/dist/docs/review-rule-lifecycle.md +205 -0
- package/dist/docs/routing-model.md +274 -0
- package/dist/docs/rule-batch-prospective-comparison.md +88 -0
- package/dist/docs/skill-effectiveness-evaluation-contract.md +146 -0
- package/dist/docs/skill-matrix.md +190 -0
- package/dist/docs/stack-implementation-overlay-contract.md +122 -0
- package/dist/docs/sufficient-change-scope-evaluation.md +120 -0
- package/dist/docs/supervised-instruction-loop.md +464 -0
- package/dist/docs/unattended-user-comparison-contract.md +90 -0
- package/dist/docs/usage-ja.md +501 -0
- package/dist/docs/user-comparison-contract.md +75 -0
- package/dist/docs/user-repository-comparison-mac-codex-ja.md +571 -0
- package/dist/docs/validation-report.md +756 -0
- package/dist/docs/verification-evidence-contract.md +175 -0
- package/dist/docs/verification-proof-policy-contract.md +177 -0
- package/dist/docs/verification-reuse-completion-contract.md +129 -0
- package/dist/docs/verification-reuse-measurement.md +130 -0
- package/dist/docs/workflow-examples.md +539 -0
- package/dist/examples/01-small-change.md +32 -0
- package/dist/examples/02-new-feature.md +53 -0
- package/dist/examples/03-bug-fix.md +39 -0
- package/dist/examples/04-design-grill.md +40 -0
- package/dist/examples/05-pr-review.md +43 -0
- package/dist/examples/06-handoff-to-agent.md +49 -0
- package/dist/examples/07-mr-readme.md +32 -0
- package/dist/examples/08-code-health-review.md +50 -0
- package/dist/examples/09-improvement-ledger-update.md +90 -0
- package/dist/examples/10-safe-refactor.md +76 -0
- package/dist/examples/11-prevention-rule-feedback.md +104 -0
- package/dist/examples/12-claude-adapter-adoption.md +36 -0
- package/dist/manifest.json +804 -0
- package/dist/npm-runtime-inventory.json +7774 -0
- package/dist/package.json +38 -0
- package/dist/products/ask-core-bundle/AGENTS.md +195 -0
- package/dist/products/ask-core-bundle/capabilities.json +65 -0
- package/dist/products/ask-core-bundle/manifest.json +2738 -0
- package/dist/schemas/adapter-runtime-event.schema.json +169 -0
- package/dist/schemas/adapter-runtime-evidence.schema.json +60 -0
- package/dist/schemas/adapter-runtime-profile.schema.json +281 -0
- package/dist/schemas/adoption-apply-result.schema.json +215 -0
- package/dist/schemas/adoption-plan.schema.json +366 -0
- package/dist/schemas/adoption-report.schema.json +252 -0
- package/dist/schemas/architecture-decision-memory-entry.schema.json +56 -0
- package/dist/schemas/asset-content.schema.json +107 -0
- package/dist/schemas/asset-lifecycle-authority-context.schema.json +69 -0
- package/dist/schemas/asset-record.schema.json +362 -0
- package/dist/schemas/asset-registry-snapshot.schema.json +59 -0
- package/dist/schemas/claim-evidence-status.schema.json +85 -0
- package/dist/schemas/codex-risk-action.schema.json +58 -0
- package/dist/schemas/codex-risk-approval-request.schema.json +204 -0
- package/dist/schemas/codex-risk-approval.schema.json +15 -0
- package/dist/schemas/codex-runner-result.schema.json +41 -0
- package/dist/schemas/compact-profile-control-map.json +154 -0
- package/dist/schemas/context-rollover.schema.json +726 -0
- package/dist/schemas/documentation-knowledge-ledger-entry.schema.json +49 -0
- package/dist/schemas/domain-rule-ledger-entry.schema.json +93 -0
- package/dist/schemas/effectiveness-decision-vocabulary.schema.json +24 -0
- package/dist/schemas/engineering-capability-ledger-entry.schema.json +50 -0
- package/dist/schemas/engineering-pattern-ledger-entry.schema.json +48 -0
- package/dist/schemas/epic-admission-decision.schema.json +196 -0
- package/dist/schemas/epic-admission-policy.schema.json +153 -0
- package/dist/schemas/evolution-action-proposal.schema.json +183 -0
- package/dist/schemas/evolution-application-receipt.schema.json +263 -0
- package/dist/schemas/evolution-candidate.schema.json +269 -0
- package/dist/schemas/evolution-experiment.schema.json +368 -0
- package/dist/schemas/evolution-human-decision.schema.json +79 -0
- package/dist/schemas/evolution-recommendation.schema.json +211 -0
- package/dist/schemas/execution-envelope-record.schema.json +127 -0
- package/dist/schemas/execution-envelope.schema.json +127 -0
- package/dist/schemas/fixed-entry-profile-registry.json +44 -0
- package/dist/schemas/improvement-ledger-entry.schema.json +98 -0
- package/dist/schemas/instruction-asset-package.schema.json +343 -0
- package/dist/schemas/metrics-event.schema.json +395 -0
- package/dist/schemas/normalized-event-schema-registry.json +13 -0
- package/dist/schemas/portfolio-authority-context.schema.json +151 -0
- package/dist/schemas/portfolio-lock.schema.json +99 -0
- package/dist/schemas/portfolio-manifest.schema.json +414 -0
- package/dist/schemas/portfolio-selection-context.schema.json +101 -0
- package/dist/schemas/portfolio-selection.schema.json +266 -0
- package/dist/schemas/release-assessment.schema.json +64 -0
- package/dist/schemas/release-claim-matrix.schema.json +89 -0
- package/dist/schemas/release-evidence-catalog.schema.json +154 -0
- package/dist/schemas/repository-snapshot.schema.json +244 -0
- package/dist/schemas/review-finding.schema.json +110 -0
- package/dist/schemas/review-rule-ledger-entry.schema.json +52 -0
- package/dist/schemas/review-signal-gate-map.json +128 -0
- package/dist/schemas/rollover-evaluation.schema.json +397 -0
- package/dist/schemas/session-checkpoint.schema.json +206 -0
- package/dist/schemas/skill-effectiveness-outcome.schema.json +490 -0
- package/dist/schemas/verification-completion-policy.schema.json +79 -0
- package/dist/schemas/verification-evidence-transfer.schema.json +67 -0
- package/dist/schemas/verification-evidence.schema.json +352 -0
- package/dist/schemas/verification-pattern-ledger-entry.schema.json +52 -0
- package/dist/schemas/verification-proof-policy.schema.json +326 -0
- package/dist/schemas/verification-reuse-measurement.schema.json +370 -0
- package/dist/schemas/verification-reuse-plan.schema.json +239 -0
- package/dist/schemas/verification-scoped-reuse.schema.json +484 -0
- package/dist/schemas/work-package-plan-validation-context.schema.json +244 -0
- package/dist/schemas/work-package-plan.schema.json +495 -0
- package/dist/scripts/adapter-cross-conformance.mjs +431 -0
- package/dist/scripts/adapter-runtime-bundle.mjs +452 -0
- package/dist/scripts/adapter-runtime-event.mjs +233 -0
- package/dist/scripts/adapter-runtime-inventory.mjs +69 -0
- package/dist/scripts/adapter-runtime-smoke.mjs +372 -0
- package/dist/scripts/ai-ledger-refresh.mjs +387 -0
- package/dist/scripts/ai-metrics-record.mjs +1318 -0
- package/dist/scripts/ai-metrics-summarize.mjs +1085 -0
- package/dist/scripts/ask-benchmark-admission-decision.mjs +675 -0
- package/dist/scripts/ask-benchmark-atomic-publication.mjs +85 -0
- package/dist/scripts/ask-benchmark-calibration-source.mjs +49 -0
- package/dist/scripts/ask-benchmark-command-evidence.mjs +1048 -0
- package/dist/scripts/ask-benchmark-design-admission.mjs +524 -0
- package/dist/scripts/ask-benchmark-design-review.mjs +387 -0
- package/dist/scripts/ask-benchmark-duplicate-key-json.mjs +133 -0
- package/dist/scripts/ask-benchmark-evaluator-boundary.mjs +3869 -0
- package/dist/scripts/ask-benchmark-execution.mjs +2442 -0
- package/dist/scripts/ask-benchmark-materialize.mjs +582 -0
- package/dist/scripts/ask-benchmark-mn-build-option-update.mjs +506 -0
- package/dist/scripts/ask-benchmark-mn-client-probe-v2.mjs +185 -0
- package/dist/scripts/ask-benchmark-mn-focused-probe-v2.mjs +318 -0
- package/dist/scripts/ask-benchmark-mn-focused-regression-test.mjs +168 -0
- package/dist/scripts/ask-benchmark-mp-ci-evidence-gap.mjs +167 -0
- package/dist/scripts/ask-benchmark-normalized-results.mjs +884 -0
- package/dist/scripts/ask-benchmark-pf-performance-probe.mjs +342 -0
- package/dist/scripts/ask-benchmark-pf-performance-source.mjs +248 -0
- package/dist/scripts/ask-benchmark-plan.mjs +284 -0
- package/dist/scripts/ask-benchmark-portfolio-aggregate-result-v2.mjs +929 -0
- package/dist/scripts/ask-benchmark-portfolio-aggregate-result.mjs +354 -0
- package/dist/scripts/ask-benchmark-portfolio-catalog.mjs +378 -0
- package/dist/scripts/ask-benchmark-portfolio-consumer-report.mjs +193 -0
- package/dist/scripts/ask-benchmark-portfolio-directional-outcome-report.mjs +274 -0
- package/dist/scripts/ask-benchmark-portfolio-evolution-evidence.mjs +169 -0
- package/dist/scripts/ask-benchmark-portfolio-high-impact-sensitivity.mjs +209 -0
- package/dist/scripts/ask-benchmark-portfolio-legacy-calibration-migration.mjs +383 -0
- package/dist/scripts/ask-benchmark-portfolio-mechanism-scorecard.mjs +382 -0
- package/dist/scripts/ask-benchmark-portfolio-paired-comparison-report.mjs +460 -0
- package/dist/scripts/ask-benchmark-portfolio-policy.mjs +1809 -0
- package/dist/scripts/ask-benchmark-portfolio-repetition-report.mjs +314 -0
- package/dist/scripts/ask-benchmark-portfolio-result-set.mjs +664 -0
- package/dist/scripts/ask-benchmark-portfolio-score.mjs +541 -0
- package/dist/scripts/ask-benchmark-private-evaluator-runner.mjs +615 -0
- package/dist/scripts/ask-benchmark-prompt-successor-bridge.mjs +234 -0
- package/dist/scripts/ask-benchmark-prompt-successor-check.mjs +68 -0
- package/dist/scripts/ask-benchmark-prompt-successor-collection.mjs +113 -0
- package/dist/scripts/ask-benchmark-prompt-successor-control.mjs +115 -0
- package/dist/scripts/ask-benchmark-prompt-successor-delivery.mjs +270 -0
- package/dist/scripts/ask-benchmark-prompt-successor-measured-authority.mjs +249 -0
- package/dist/scripts/ask-benchmark-prompt-successor-measured-execution.mjs +733 -0
- package/dist/scripts/ask-benchmark-prompt-successor-native.mjs +137 -0
- package/dist/scripts/ask-benchmark-prompt-successor-provenance.mjs +191 -0
- package/dist/scripts/ask-benchmark-prompt-successor-report.mjs +256 -0
- package/dist/scripts/ask-benchmark-prompt-successor-repository.mjs +107 -0
- package/dist/scripts/ask-benchmark-prompt-successor-scoring-inputs.mjs +218 -0
- package/dist/scripts/ask-benchmark-prompt-successor-usage.mjs +174 -0
- package/dist/scripts/ask-benchmark-prompt-successor.mjs +263 -0
- package/dist/scripts/ask-benchmark-prompt-v2.mjs +1332 -0
- package/dist/scripts/ask-benchmark-runtime-observation.mjs +235 -0
- package/dist/scripts/ask-benchmark-schema.mjs +29 -0
- package/dist/scripts/ask-benchmark-scoring-contract.mjs +802 -0
- package/dist/scripts/ask-benchmark-selection.mjs +387 -0
- package/dist/scripts/ask-benchmark-source-session.mjs +70 -0
- package/dist/scripts/ask-benchmark-stable-file.mjs +89 -0
- package/dist/scripts/ask-benchmark-terminal-candidate.mjs +432 -0
- package/dist/scripts/ask-benchmark-terminal-workspace.mjs +427 -0
- package/dist/scripts/ask-comparison-conditions.mjs +8 -0
- package/dist/scripts/ask-core-bundle-product.mjs +93 -0
- package/dist/scripts/ask-core-capabilities.mjs +40 -0
- package/dist/scripts/ask-core-capture-producer.mjs +298 -0
- package/dist/scripts/ask-core-codex-native-contract.mjs +61 -0
- package/dist/scripts/ask-core-connected-normalizer.mjs +173 -0
- package/dist/scripts/ask-core-controller-attribution.mjs +74 -0
- package/dist/scripts/ask-core-controller-records.mjs +49 -0
- package/dist/scripts/ask-core-grading-authority.mjs +161 -0
- package/dist/scripts/ask-core-native-authority.mjs +42 -0
- package/dist/scripts/ask-core-native-compatibility-provenance.mjs +77 -0
- package/dist/scripts/ask-core-native-connection.mjs +76 -0
- package/dist/scripts/ask-core-native-files.mjs +16 -0
- package/dist/scripts/ask-core-native-preparation.mjs +61 -0
- package/dist/scripts/ask-core-native-receiver.mjs +91 -0
- package/dist/scripts/ask-core-producer-scope.mjs +38 -0
- package/dist/scripts/ask-core-runner-contract.mjs +65 -0
- package/dist/scripts/ask-core-scored-replay.mjs +12 -0
- package/dist/scripts/ask-core-task-admission.mjs +53 -0
- package/dist/scripts/ask-doctor.mjs +1037 -0
- package/dist/scripts/ask-local-codex-boundaries.mjs +141 -0
- package/dist/scripts/ask-local-codex-time-budget.mjs +119 -0
- package/dist/scripts/ask-local-codex-time-policy.mjs +4 -0
- package/dist/scripts/ask-local-codex-timing.mjs +46 -0
- package/dist/scripts/ask-local-codex.mjs +653 -0
- package/dist/scripts/ask-local-eval.mjs +101 -0
- package/dist/scripts/ask-package-cli.mjs +64 -0
- package/dist/scripts/ask-package-environment.mjs +10 -0
- package/dist/scripts/ask-package-loop-prepare.mjs +87 -0
- package/dist/scripts/ask-package-workspace.mjs +55 -0
- package/dist/scripts/ask-personal-evolution-alignment.mjs +126 -0
- package/dist/scripts/ask-personal-evolution-codex-generation.mjs +224 -0
- package/dist/scripts/ask-personal-evolution-driver.mjs +139 -0
- package/dist/scripts/ask-personal-evolution-generation-connector.mjs +316 -0
- package/dist/scripts/ask-personal-evolution-generation.mjs +122 -0
- package/dist/scripts/ask-personal-evolution-observation.mjs +71 -0
- package/dist/scripts/ask-personal-evolution-primary-pair.mjs +474 -0
- package/dist/scripts/ask-personal-evolution-saved-results.mjs +112 -0
- package/dist/scripts/ask-personal-evolution-source-reviewer.mjs +139 -0
- package/dist/scripts/ask-personal-evolution-unattended.mjs +206 -0
- package/dist/scripts/ask-personal-evolution.mjs +142 -0
- package/dist/scripts/ask-personal-prompt-adoption-materialization.mjs +126 -0
- package/dist/scripts/ask-personal-prompt-materialization.mjs +104 -0
- package/dist/scripts/ask-personal-prompt-repetition-binding.mjs +16 -0
- package/dist/scripts/ask-personal-prompt-repetition-evaluation.mjs +163 -0
- package/dist/scripts/ask-personal-prompt-repetition-statistics.mjs +53 -0
- package/dist/scripts/ask-personal-prompt-target-lock.mjs +34 -0
- package/dist/scripts/ask-pragmatic-evaluation-report.mjs +120 -0
- package/dist/scripts/ask-preparation-git-diagnostic.mjs +14 -0
- package/dist/scripts/ask-primary-client-focused-controller.mjs +119 -0
- package/dist/scripts/ask-primary-discovery-grammar-v9.mjs +105 -0
- package/dist/scripts/ask-primary-engineering-safety.mjs +147 -0
- package/dist/scripts/ask-primary-evaluation-batch.mjs +318 -0
- package/dist/scripts/ask-primary-evaluation-grading.mjs +451 -0
- package/dist/scripts/ask-primary-evaluation-private-grading.mjs +270 -0
- package/dist/scripts/ask-primary-evaluation-producer.mjs +549 -0
- package/dist/scripts/ask-primary-evaluation-profile.mjs +29 -0
- package/dist/scripts/ask-primary-evaluation-scope.mjs +531 -0
- package/dist/scripts/ask-primary-evaluation-start.mjs +34 -0
- package/dist/scripts/ask-primary-execution-input.mjs +299 -0
- package/dist/scripts/ask-primary-fixture-recipe.mjs +102 -0
- package/dist/scripts/ask-primary-fixture-registry.mjs +3 -0
- package/dist/scripts/ask-primary-metadata-task-contract.mjs +31 -0
- package/dist/scripts/ask-primary-native-probe-lifetime.mjs +233 -0
- package/dist/scripts/ask-primary-public-catalog-registry.mjs +13 -0
- package/dist/scripts/ask-primary-runtime-collection-support.mjs +5 -0
- package/dist/scripts/ask-primary-runtime-lineage.mjs +420 -0
- package/dist/scripts/ask-primary-runtime-v10.mjs +59 -0
- package/dist/scripts/ask-primary-scoring-version.mjs +269 -0
- package/dist/scripts/ask-primary-unsafe-action-contract.mjs +86 -0
- package/dist/scripts/ask-review-target-requirement.mjs +118 -0
- package/dist/scripts/ask-rule-batch-bundle.mjs +191 -0
- package/dist/scripts/ask-sensors.mjs +978 -0
- package/dist/scripts/ask-setup-apply-state.mjs +359 -0
- package/dist/scripts/ask-setup-apply.mjs +257 -0
- package/dist/scripts/ask-setup-diagnostics.mjs +45 -0
- package/dist/scripts/ask-setup-doctor-inputs.mjs +78 -0
- package/dist/scripts/ask-setup-git.mjs +130 -0
- package/dist/scripts/ask-setup-inputs.mjs +181 -0
- package/dist/scripts/ask-setup.mjs +762 -0
- package/dist/scripts/ask-shared.mjs +627 -0
- package/dist/scripts/ask-synthetic-json-pilot.mjs +561 -0
- package/dist/scripts/ask-user-comparison-logs.mjs +74 -0
- package/dist/scripts/ask-user-comparison-prepare.mjs +846 -0
- package/dist/scripts/ask-user-comparison-state.mjs +329 -0
- package/dist/scripts/ask-user-comparison-test-reporter.mjs +22 -0
- package/dist/scripts/ask-user-comparison.mjs +1087 -0
- package/dist/scripts/asset-registry.mjs +1002 -0
- package/dist/scripts/claim-evidence-status.mjs +162 -0
- package/dist/scripts/claude-fixed-entry-profile.mjs +218 -0
- package/dist/scripts/claude-native-runtime.mjs +108 -0
- package/dist/scripts/claude-plugin-fixed-entries.mjs +53 -0
- package/dist/scripts/codex-exec-runner.mjs +1479 -0
- package/dist/scripts/codex-metrics-collector.mjs +188 -0
- package/dist/scripts/codex-risk-approval.mjs +477 -0
- package/dist/scripts/codex-risk-workspace.mjs +585 -0
- package/dist/scripts/codex-runtime-profile.mjs +153 -0
- package/dist/scripts/content-addressed-store.mjs +379 -0
- package/dist/scripts/environment-evaluation.mjs +69 -0
- package/dist/scripts/environment-evolution-binding.mjs +66 -0
- package/dist/scripts/environment-saved-results.mjs +122 -0
- package/dist/scripts/environment-target-owner.mjs +103 -0
- package/dist/scripts/environment-target.mjs +260 -0
- package/dist/scripts/epic-admission-work-package-plan.mjs +2009 -0
- package/dist/scripts/evaluation-task-catalog.mjs +268 -0
- package/dist/scripts/evaluation-task-inputs.mjs +166 -0
- package/dist/scripts/evaluation-task-scoring.mjs +237 -0
- package/dist/scripts/evolution-loop.mjs +1773 -0
- package/dist/scripts/execution-envelope.mjs +293 -0
- package/dist/scripts/finding-intake.mjs +114 -0
- package/dist/scripts/fixed-entry-profile.mjs +239 -0
- package/dist/scripts/fixtures/ask-core-receiver-child.mjs +35 -0
- package/dist/scripts/fixtures/instruction-loop/fake-codex.py +6 -0
- package/dist/scripts/generate-ask-core-bundle.mjs +41 -0
- package/dist/scripts/generate-ask-core-grading-schemas.mjs +9 -0
- package/dist/scripts/generate-ask-primary-grading-schemas.mjs +226 -0
- package/dist/scripts/install-ask-core-bundle.mjs +117 -0
- package/dist/scripts/install-claude-adapter.mjs +1444 -0
- package/dist/scripts/install-codex-adapter.mjs +1578 -0
- package/dist/scripts/install-kernel.mjs +408 -0
- package/dist/scripts/installer-lifecycle.mjs +698 -0
- package/dist/scripts/instruction-asset-package.mjs +252 -0
- package/dist/scripts/instruction-composition.mjs +62 -0
- package/dist/scripts/instruction-environment-authoring.mjs +265 -0
- package/dist/scripts/instruction-environment-cli.mjs +129 -0
- package/dist/scripts/instruction-environment-compiler.mjs +92 -0
- package/dist/scripts/instruction-environment.mjs +148 -0
- package/dist/scripts/instruction-evaluation-recovery.mjs +86 -0
- package/dist/scripts/instruction-loop-artifact.mjs +6 -0
- package/dist/scripts/instruction-loop-assets.mjs +67 -0
- package/dist/scripts/instruction-loop-case-selection.mjs +31 -0
- package/dist/scripts/instruction-loop-command-runtime.mjs +108 -0
- package/dist/scripts/instruction-loop-component-candidate.mjs +116 -0
- package/dist/scripts/instruction-loop-component-continuation.mjs +61 -0
- package/dist/scripts/instruction-loop-component-runtime.mjs +151 -0
- package/dist/scripts/instruction-loop-environment-approval.mjs +51 -0
- package/dist/scripts/instruction-loop-failed-preparation.mjs +243 -0
- package/dist/scripts/instruction-loop-feedback.mjs +226 -0
- package/dist/scripts/instruction-loop-fixed-scoring.mjs +39 -0
- package/dist/scripts/instruction-loop-fixed-scoring.py +98 -0
- package/dist/scripts/instruction-loop-full-candidate.mjs +351 -0
- package/dist/scripts/instruction-loop-host-authoring.mjs +66 -0
- package/dist/scripts/instruction-loop-host-scoring.mjs +110 -0
- package/dist/scripts/instruction-loop-measured-adoption.mjs +106 -0
- package/dist/scripts/instruction-loop-native-configuration.mjs +150 -0
- package/dist/scripts/instruction-loop-native-host.mjs +229 -0
- package/dist/scripts/instruction-loop-native-prepare.py +107 -0
- package/dist/scripts/instruction-loop-native-public-inputs.mjs +52 -0
- package/dist/scripts/instruction-loop-native-worker.mjs +10 -0
- package/dist/scripts/instruction-loop-normal-owner-worker.mjs +97 -0
- package/dist/scripts/instruction-loop-operation.mjs +108 -0
- package/dist/scripts/instruction-loop-practical-runtime.mjs +188 -0
- package/dist/scripts/instruction-loop-provider-policy.mjs +23 -0
- package/dist/scripts/instruction-loop-reference-evidence.mjs +95 -0
- package/dist/scripts/instruction-loop-reference-preparation.mjs +138 -0
- package/dist/scripts/instruction-loop-reference-report.mjs +84 -0
- package/dist/scripts/instruction-loop-reference-scoring-runtime.mjs +48 -0
- package/dist/scripts/instruction-loop-result-disposition.mjs +26 -0
- package/dist/scripts/instruction-loop-retained-authoring.mjs +125 -0
- package/dist/scripts/instruction-loop-runtime.mjs +8 -0
- package/dist/scripts/instruction-loop-source-application.mjs +106 -0
- package/dist/scripts/instruction-loop-source-binding.mjs +37 -0
- package/dist/scripts/instruction-projection-paths.mjs +16 -0
- package/dist/scripts/instruction-run-journal.mjs +45 -0
- package/dist/scripts/instruction-source-version.mjs +104 -0
- package/dist/scripts/json-schema-validation.mjs +419 -0
- package/dist/scripts/kernel-principles-candidate-v2.mjs +71 -0
- package/dist/scripts/kernel-principles-v2-catalog24.mjs +86 -0
- package/dist/scripts/kernel-principles-v2.mjs +122 -0
- package/dist/scripts/kernel-principles.mjs +81 -0
- package/dist/scripts/local-codex-probe-worker.mjs +143 -0
- package/dist/scripts/observability-paths.mjs +31 -0
- package/dist/scripts/portfolio-manager.mjs +1870 -0
- package/dist/scripts/practical-challenge-evaluation.mjs +194 -0
- package/dist/scripts/practical-challenge-worker.mjs +126 -0
- package/dist/scripts/practical-codex-adapter.mjs +107 -0
- package/dist/scripts/practical-evaluation-assessor.mjs +92 -0
- package/dist/scripts/practical-evaluation-cli.mjs +134 -0
- package/dist/scripts/practical-evaluation-runner.mjs +261 -0
- package/dist/scripts/practical-evaluation-worker.mjs +193 -0
- package/dist/scripts/practical-grade-report-revision.mjs +12 -0
- package/dist/scripts/practical-grade-source-binding.mjs +53 -0
- package/dist/scripts/practical-grade-supplement.mjs +457 -0
- package/dist/scripts/practical-host-reporting-policy.mjs +85 -0
- package/dist/scripts/practical-initialization-clearance.mjs +143 -0
- package/dist/scripts/practical-initialization-recovery-cli.mjs +44 -0
- package/dist/scripts/practical-isolated-grade-continuation-cli.mjs +19 -0
- package/dist/scripts/practical-isolated-grade-continuation.mjs +179 -0
- package/dist/scripts/practical-primary-grading.mjs +130 -0
- package/dist/scripts/practical-quality-observation.mjs +61 -0
- package/dist/scripts/practical-reporting-grader.mjs +160 -0
- package/dist/scripts/practical-reporting-policy.mjs +126 -0
- package/dist/scripts/practical-retained-grade-report-cli.mjs +19 -0
- package/dist/scripts/practical-retained-grade-report.mjs +80 -0
- package/dist/scripts/practical-saved-command-observation.mjs +159 -0
- package/dist/scripts/practical-session-usage.mjs +73 -0
- package/dist/scripts/prepare-historical-full-test-root.mjs +155 -0
- package/dist/scripts/prompt-v2-historical-renderer.mjs +61 -0
- package/dist/scripts/prompt-v2-preregistration-samples.mjs +1410 -0
- package/dist/scripts/release-evidence-gate.mjs +421 -0
- package/dist/scripts/retained-instruction-comparison.mjs +154 -0
- package/dist/scripts/retained-instruction-layout.mjs +103 -0
- package/dist/scripts/review-route-contract.mjs +135 -0
- package/dist/scripts/review-rule-lifecycle.mjs +171 -0
- package/dist/scripts/saved-instruction-pair-evidence.mjs +37 -0
- package/dist/scripts/skill-assets.mjs +48 -0
- package/dist/scripts/skill-effectiveness-outcome.mjs +501 -0
- package/dist/scripts/skill-usage-evidence.mjs +80 -0
- package/dist/scripts/supervised-instruction-loop-cli.mjs +180 -0
- package/dist/scripts/supervised-instruction-loop.mjs +392 -0
- package/dist/scripts/verification-decision-core.mjs +248 -0
- package/dist/scripts/verification-evidence.mjs +754 -0
- package/dist/scripts/verification-host-provider.mjs +61 -0
- package/dist/scripts/verification-proof-policy.mjs +318 -0
- package/dist/scripts/verification-reuse-completion.mjs +338 -0
- package/dist/scripts/verification-review-dispatch.mjs +144 -0
- package/dist/scripts/verification-scoped-reuse.mjs +993 -0
- package/dist/skills/adr-review/SKILL.md +108 -0
- package/dist/skills/angular-implementation-architecture/SKILL.md +187 -0
- package/dist/skills/application-boundary-architecture/SKILL.md +412 -0
- package/dist/skills/architecture-decision-memory/SKILL.md +102 -0
- package/dist/skills/code-visualization/SKILL.md +24 -0
- package/dist/skills/code-visualization/references/examples/pr497.json +328 -0
- package/dist/skills/code-visualization/references/examples/skill-assets.json +257 -0
- package/dist/skills/code-visualization/references/guide-input.md +48 -0
- package/dist/skills/code-visualization/references/render-guide.mjs +238 -0
- package/dist/skills/code-visualization/references/scene-model.mjs +96 -0
- package/dist/skills/code-visualization/references/visual-player.js +346 -0
- package/dist/skills/code-visualization/references/visual-surface.css +15 -0
- package/dist/skills/controlled-implementation/SKILL.md +195 -0
- package/dist/skills/documentation-knowledge-compiler/SKILL.md +100 -0
- package/dist/skills/domain-rule-ledger/SKILL.md +109 -0
- package/dist/skills/doubt-driven-development/SKILL.md +101 -0
- package/dist/skills/engineering-capability-evaluation/SKILL.md +103 -0
- package/dist/skills/engineering-pattern-ledger/SKILL.md +110 -0
- package/dist/skills/evidence-ledger/SKILL.md +96 -0
- package/dist/skills/grill-design/SKILL.md +92 -0
- package/dist/skills/grill-with-docs/SKILL.md +89 -0
- package/dist/skills/handoff-generation/SKILL.md +99 -0
- package/dist/skills/implementation-context-generation/SKILL.md +185 -0
- package/dist/skills/improvement-ledger/SKILL.md +206 -0
- package/dist/skills/mr-readme-generation/SKILL.md +201 -0
- package/dist/skills/next-best-change-finder/SKILL.md +112 -0
- package/dist/skills/operating-mode-router/SKILL.md +141 -0
- package/dist/skills/planning-with-files/SKILL.md +81 -0
- package/dist/skills/project-adoption-pack-generation/SKILL.md +113 -0
- package/dist/skills/refactor-implementation/SKILL.md +142 -0
- package/dist/skills/release-readiness-gate/SKILL.md +161 -0
- package/dist/skills/repository-orientation/SKILL.md +94 -0
- package/dist/skills/requirement-grill/SKILL.md +137 -0
- package/dist/skills/review-adversarial-risk/SKILL.md +117 -0
- package/dist/skills/review-ai-quality/SKILL.md +127 -0
- package/dist/skills/review-architecture-impact/SKILL.md +144 -0
- package/dist/skills/review-automated-gate/SKILL.md +84 -0
- package/dist/skills/review-code-health/SKILL.md +140 -0
- package/dist/skills/review-context-generation/SKILL.md +175 -0
- package/dist/skills/review-domain-impact/SKILL.md +182 -0
- package/dist/skills/review-final-merge-gate/SKILL.md +120 -0
- package/dist/skills/review-finding-compiler/SKILL.md +96 -0
- package/dist/skills/review-output-quality/SKILL.md +167 -0
- package/dist/skills/review-router/SKILL.md +161 -0
- package/dist/skills/review-to-rule-compiler/SKILL.md +91 -0
- package/dist/skills/risk-gate/SKILL.md +94 -0
- package/dist/skills/scope-control/SKILL.md +97 -0
- package/dist/skills/skill-adoption-metrics/SKILL.md +210 -0
- package/dist/skills/skill-effectiveness-evaluation/SKILL.md +248 -0
- package/dist/skills/skill-effectiveness-evaluation/references/practical-evaluation.md +204 -0
- package/dist/skills/skill-router/SKILL.md +205 -0
- package/dist/skills/spec-driven-development/SKILL.md +136 -0
- package/dist/skills/spec-driven-development/references/context-retrieval.md +40 -0
- package/dist/skills/spec-driven-development/references/decision-led-test-strategy.md +46 -0
- package/dist/skills/spec-driven-development/references/examples/domain-context.md +20 -0
- package/dist/skills/spec-driven-development/references/examples/javascript/reservation.cases.mjs +26 -0
- package/dist/skills/spec-driven-development/references/examples/javascript/reservation.mjs +11 -0
- package/dist/skills/spec-driven-development/references/examples/javascript/reservation.test.mjs +65 -0
- package/dist/skills/spec-driven-development/references/examples/javascript/scenario-observer.mjs +47 -0
- package/dist/skills/spec-driven-development/references/examples/javascript/scenario-player.html +109 -0
- package/dist/skills/spec-driven-development/references/examples/javascript/scenario-review.mjs +166 -0
- package/dist/skills/spec-driven-development/references/examples/python/reservation.py +10 -0
- package/dist/skills/spec-driven-development/references/examples/python/test_reservation.py +40 -0
- package/dist/skills/spec-driven-development/references/examples/quote-reissue/confirmed-quote.mjs +16 -0
- package/dist/skills/spec-driven-development/references/examples/quote-reissue/confirmed-quote.test.mjs +19 -0
- package/dist/skills/spec-driven-development/references/examples/quote-reissue/decision-record.md +25 -0
- package/dist/skills/spec-driven-development/references/examples/quote-reissue/quote-reissue.mjs +28 -0
- package/dist/skills/spec-driven-development/references/examples/quote-reissue/quote-reissue.test.mjs +69 -0
- package/dist/skills/spec-driven-development/references/executable-spec-workflow.md +52 -0
- package/dist/skills/spec-driven-development/references/project-templates.md +92 -0
- package/dist/skills/spec-driven-development/references/quote-reissue-decision.md +35 -0
- package/dist/skills/spec-driven-development/references/scenario-visual-review.md +92 -0
- package/dist/skills/spec-driven-development/references/spec-index.md +51 -0
- package/dist/skills/spec-driven-development/references/spec-writing-conventions.md +52 -0
- package/dist/skills/spec-driven-development/references/verification-selection.md +44 -0
- package/dist/skills/test-first-verification/SKILL.md +170 -0
- package/dist/skills/ui-ux-design/SKILL.md +98 -0
- package/dist/skills/ui-ux-design/references/anti-patterns.md +51 -0
- package/dist/skills/ui-ux-design/references/decision-patterns.md +213 -0
- package/dist/skills/ui-ux-design/references/principles.md +55 -0
- package/dist/skills/ui-ux-design/references/ui-capability-contract.md +70 -0
- package/dist/skills/ui-ux-design/references/working-state.md +52 -0
- package/dist/skills/verification-pattern-ledger/SKILL.md +96 -0
- package/dist/skills/work-package-compiler/SKILL.md +129 -0
- package/package.json +36 -4
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import * as assertStrict from "node:assert/strict";
|
|
2
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
+
import * as childProcess from "node:child_process";
|
|
4
|
+
import * as crypto from "node:crypto";
|
|
5
|
+
import * as fs from "node:fs";
|
|
6
|
+
import * as http from "node:http";
|
|
7
|
+
import * as https from "node:https";
|
|
8
|
+
import * as net from "node:net";
|
|
9
|
+
import { isBuiltin } from "node:module";
|
|
10
|
+
import * as os from "node:os";
|
|
11
|
+
import * as path from "node:path";
|
|
12
|
+
import * as url from "node:url";
|
|
13
|
+
import * as vm from "node:vm";
|
|
14
|
+
|
|
15
|
+
const VIRTUAL_ROOT = "/ask-verified-authority";
|
|
16
|
+
const PRIVATE_MODULE_PATH = "private/hidden-evaluator.mjs";
|
|
17
|
+
const PRIVATE_DATA_MODULE_PREFIX = "data:text/javascript;base64,";
|
|
18
|
+
const MAX_PRIVATE_DATA_MODULE_BYTES = 1024 * 1024;
|
|
19
|
+
const SEALED_FILE_MODE = 0o444;
|
|
20
|
+
const SEALED_DIRECTORY_MODE = 0o555;
|
|
21
|
+
const completedBarriers = new Set();
|
|
22
|
+
const ALLOWED_BUILTINS = new Map([
|
|
23
|
+
["node:assert/strict", assertStrict],
|
|
24
|
+
["node:async_hooks", Object.freeze({ AsyncLocalStorage })],
|
|
25
|
+
["node:child_process", childProcess],
|
|
26
|
+
["node:crypto", crypto],
|
|
27
|
+
["node:fs", fs],
|
|
28
|
+
["node:http", http],
|
|
29
|
+
["node:https", https],
|
|
30
|
+
["node:net", net],
|
|
31
|
+
["node:module", Object.freeze({ isBuiltin })],
|
|
32
|
+
["node:os", os],
|
|
33
|
+
["node:path", path],
|
|
34
|
+
["node:perf_hooks", Object.freeze({ performance: Object.freeze({ now: performance.now.bind(performance) }) })],
|
|
35
|
+
["node:url", url],
|
|
36
|
+
]);
|
|
37
|
+
|
|
38
|
+
function sha256(bytes) {
|
|
39
|
+
return `sha256:${crypto.createHash("sha256").update(bytes).digest("hex")}`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function stableCanonicalJson(value) {
|
|
43
|
+
if (Array.isArray(value)) return `[${value.map(stableCanonicalJson).join(",")}]`;
|
|
44
|
+
if (value && typeof value === "object") return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${stableCanonicalJson(value[key])}`).join(",")}}`;
|
|
45
|
+
return JSON.stringify(value);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function canonicalDigest(value) {
|
|
49
|
+
return sha256(Buffer.from(stableCanonicalJson(value)));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function decodeModuleSource(bytes) {
|
|
53
|
+
try {
|
|
54
|
+
return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
55
|
+
} catch {
|
|
56
|
+
fail("private evaluator module bytes are not valid UTF-8");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function parsePrivateDataModule(specifier) {
|
|
61
|
+
if (typeof specifier !== "string" || !specifier.startsWith(PRIVATE_DATA_MODULE_PREFIX)) fail("private evaluator data module URL is invalid");
|
|
62
|
+
const separator = specifier.lastIndexOf("#");
|
|
63
|
+
if (separator <= PRIVATE_DATA_MODULE_PREFIX.length) fail("private evaluator data module digest is missing");
|
|
64
|
+
const encoded = specifier.slice(PRIVATE_DATA_MODULE_PREFIX.length, separator);
|
|
65
|
+
const expectedDigest = specifier.slice(separator + 1);
|
|
66
|
+
if (!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u.test(encoded)) fail("private evaluator data module encoding is invalid");
|
|
67
|
+
const bytes = Buffer.from(encoded, "base64");
|
|
68
|
+
if (bytes.length === 0 || bytes.length > MAX_PRIVATE_DATA_MODULE_BYTES || bytes.toString("base64") !== encoded) fail("private evaluator data module encoding is invalid");
|
|
69
|
+
if (expectedDigest !== sha256(bytes)) fail("private evaluator data module digest is invalid");
|
|
70
|
+
return { source: decodeModuleSource(bytes), identifier: specifier };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function fail(message, code = "ERR_VERIFIED_AUTHORITY") {
|
|
74
|
+
const error = new Error(message);
|
|
75
|
+
error.code = code;
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function portablePath(value, label) {
|
|
80
|
+
const segments = typeof value === "string" ? value.split("/") : [];
|
|
81
|
+
if (typeof value !== "string" || value.length === 0 || value.includes("\\") || value.includes(":") || value.includes("\0") || path.posix.isAbsolute(value) || path.win32.isAbsolute(value) || path.posix.normalize(value) !== value || segments.some((segment) => segment === "" || segment === "." || segment === "..")) fail(`${label} is not a portable relative path`);
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function waitForFile(file, label, timeoutMs = 10_000) {
|
|
86
|
+
const deadline = Date.now() + timeoutMs;
|
|
87
|
+
const waitArray = new Int32Array(new SharedArrayBuffer(4));
|
|
88
|
+
while (!fs.existsSync(file)) {
|
|
89
|
+
if (Date.now() >= deadline) fail(`${label} timed out`, "ERR_AUTHORITY_BARRIER_TIMEOUT");
|
|
90
|
+
Atomics.wait(waitArray, 0, 0, 5);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function barrierMatches(barrier, stage, kind, relativePath) {
|
|
95
|
+
return barrier
|
|
96
|
+
&& barrier.run_index === barrier.current_run_index
|
|
97
|
+
&& barrier.stage === stage
|
|
98
|
+
&& barrier.authority_kind === kind
|
|
99
|
+
&& barrier.path === relativePath;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function withBarrier(barrier, stage, kind, relativePath, operation) {
|
|
103
|
+
if (!barrierMatches(barrier, stage, kind, relativePath)) return operation();
|
|
104
|
+
const prefix = path.resolve(barrier.directory, `${barrier.run_index}-${stage}-${kind}-${sha256(Buffer.from(relativePath)).slice(7, 19)}`);
|
|
105
|
+
if (completedBarriers.has(prefix)) return operation();
|
|
106
|
+
completedBarriers.add(prefix);
|
|
107
|
+
fs.writeFileSync(`${prefix}.ready`, "ready\n", { flag: "wx" });
|
|
108
|
+
waitForFile(`${prefix}.continue`, "authority race continue barrier");
|
|
109
|
+
const result = operation();
|
|
110
|
+
fs.writeFileSync(`${prefix}.observed`, "observed\n", { flag: "wx" });
|
|
111
|
+
waitForFile(`${prefix}.restored`, "authority race restore barrier");
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function parsePayload() {
|
|
116
|
+
const bytes = fs.readFileSync(0);
|
|
117
|
+
if (bytes.length === 0 || bytes.length > 256 * 1024 * 1024) fail("verified authority payload size is invalid");
|
|
118
|
+
let payload;
|
|
119
|
+
try { payload = JSON.parse(bytes.toString("utf8")); }
|
|
120
|
+
catch { fail("verified authority payload is invalid JSON"); }
|
|
121
|
+
if (payload?.schema_version !== "1.0.0" || payload?.program !== "adaptive_ask_in_memory_evaluator_authority") fail("verified authority payload contract is invalid");
|
|
122
|
+
if (payload.payload_digest !== canonicalDigest(Object.fromEntries(Object.entries(payload).filter(([key]) => key !== "payload_digest")))) fail("verified authority payload digest is invalid");
|
|
123
|
+
return payload;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function virtualRootFor(kind) {
|
|
127
|
+
return `${VIRTUAL_ROOT}/${kind.replaceAll("_", "-")}`;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function buildVirtualAuthority(payload) {
|
|
131
|
+
const nodes = new Map();
|
|
132
|
+
const roots = new Map();
|
|
133
|
+
const inodeByPath = new Map();
|
|
134
|
+
let nextInode = 10_000;
|
|
135
|
+
const addNode = (absolute, node) => {
|
|
136
|
+
if (nodes.has(absolute)) fail(`duplicate virtual authority path: ${absolute}`);
|
|
137
|
+
nodes.set(absolute, node);
|
|
138
|
+
inodeByPath.set(absolute, nextInode++);
|
|
139
|
+
};
|
|
140
|
+
for (const authority of payload.authority_roots ?? []) {
|
|
141
|
+
if (!/^[a-z][a-z0-9_]*$/u.test(authority.kind ?? "")) fail("virtual authority kind is invalid");
|
|
142
|
+
const root = virtualRootFor(authority.kind);
|
|
143
|
+
if (roots.has(authority.kind)) fail(`duplicate virtual authority root: ${authority.kind}`);
|
|
144
|
+
roots.set(authority.kind, { virtual: root, helper: authority.helper_root ?? null });
|
|
145
|
+
if (authority.root_mode !== SEALED_DIRECTORY_MODE) fail(`${authority.kind} authority root mode is not sealed`);
|
|
146
|
+
addNode(root, { kind: authority.kind, relativePath: "", file_type: "directory", mode: authority.root_mode, bytes: null, sha256: null, content: null });
|
|
147
|
+
const paths = [];
|
|
148
|
+
for (const entry of authority.entries ?? []) {
|
|
149
|
+
portablePath(entry.path, `${authority.kind} authority path`);
|
|
150
|
+
paths.push(entry.path);
|
|
151
|
+
const absolute = path.resolve(root, entry.path);
|
|
152
|
+
if (absolute !== root && !absolute.startsWith(`${root}${path.sep}`)) fail(`${authority.kind} authority path escapes the virtual root`);
|
|
153
|
+
let content = null;
|
|
154
|
+
if (entry.file_type === "file") {
|
|
155
|
+
content = Buffer.from(entry.content_base64 ?? "", "base64");
|
|
156
|
+
if (entry.mode !== SEALED_FILE_MODE || content.toString("base64") !== entry.content_base64) fail(`${authority.kind} authority file contract is invalid: ${entry.path}`);
|
|
157
|
+
withBarrier(payload.barrier, "before_authority_map_validation", authority.kind, entry.path, () => {
|
|
158
|
+
if (content.length !== entry.bytes || sha256(content) !== entry.sha256) fail(`${authority.kind} authority bytes are invalid: ${entry.path}`);
|
|
159
|
+
});
|
|
160
|
+
} else if (entry.file_type !== "directory" || entry.mode !== SEALED_DIRECTORY_MODE || entry.bytes !== null || entry.sha256 !== null || entry.content_base64 !== undefined) fail(`${authority.kind} authority entry is invalid: ${entry.path}`);
|
|
161
|
+
addNode(absolute, { ...entry, kind: authority.kind, relativePath: entry.path, content });
|
|
162
|
+
}
|
|
163
|
+
if (new Set(paths).size !== paths.length || stableCanonicalJson(paths) !== stableCanonicalJson([...paths].sort())) fail(`${authority.kind} authority inventory is not ordered and unique`);
|
|
164
|
+
for (const relativePath of paths) {
|
|
165
|
+
const parent = path.dirname(path.resolve(root, relativePath));
|
|
166
|
+
const parentNode = nodes.get(parent);
|
|
167
|
+
if (!parentNode || parentNode.kind !== authority.kind || parentNode.file_type !== "directory") fail(`${authority.kind} authority path has no sealed parent: ${relativePath}`);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return { nodes, roots, inodeByPath };
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function normalizeFsPath(value) {
|
|
174
|
+
if (value instanceof URL) return url.fileURLToPath(value);
|
|
175
|
+
if (Buffer.isBuffer(value)) return value.toString();
|
|
176
|
+
return typeof value === "string" ? path.resolve(value) : value;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function virtualNode(authority, value) {
|
|
180
|
+
const normalized = normalizeFsPath(value);
|
|
181
|
+
return typeof normalized === "string" ? authority.nodes.get(normalized) ?? null : null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function virtualStats(authority, absolute, node) {
|
|
185
|
+
const file = node.file_type === "file";
|
|
186
|
+
const observableMode = node.original_mode ?? node.mode;
|
|
187
|
+
return {
|
|
188
|
+
dev: 1,
|
|
189
|
+
ino: authority.inodeByPath.get(absolute),
|
|
190
|
+
mode: (file ? 0o100000 : 0o040000) | observableMode,
|
|
191
|
+
nlink: 1,
|
|
192
|
+
size: file ? node.bytes : 0,
|
|
193
|
+
mtimeMs: 0,
|
|
194
|
+
ctimeMs: 0,
|
|
195
|
+
isFile: () => file,
|
|
196
|
+
isDirectory: () => !file,
|
|
197
|
+
isSymbolicLink: () => false,
|
|
198
|
+
isFIFO: () => false,
|
|
199
|
+
isSocket: () => false,
|
|
200
|
+
isBlockDevice: () => false,
|
|
201
|
+
isCharacterDevice: () => false,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function installOriginalWorkspaceModes(authority) {
|
|
206
|
+
const originalRoot = authority.roots.get("original_workspace_authority")?.virtual;
|
|
207
|
+
if (!originalRoot) fail("original workspace authority root is missing");
|
|
208
|
+
const authorityNode = authority.nodes.get(path.resolve(originalRoot, "original-workspace-authority.json"));
|
|
209
|
+
const diffNode = authority.nodes.get(path.resolve(originalRoot, "repository-diff-artifact.json"));
|
|
210
|
+
if (!authorityNode?.content || !diffNode?.content) fail("original workspace authority artifacts are missing");
|
|
211
|
+
let originalWorkspaceAuthority;
|
|
212
|
+
let repositoryDiffArtifact;
|
|
213
|
+
try {
|
|
214
|
+
originalWorkspaceAuthority = JSON.parse(authorityNode.content.toString("utf8"));
|
|
215
|
+
repositoryDiffArtifact = JSON.parse(diffNode.content.toString("utf8"));
|
|
216
|
+
} catch { fail("original workspace authority payload is invalid JSON"); }
|
|
217
|
+
|
|
218
|
+
const { authority_digest: authorityDigest, authority_bytes: authorityBytes, ...authorityClosure } = originalWorkspaceAuthority;
|
|
219
|
+
if (authorityDigest !== canonicalDigest(authorityClosure) || authorityBytes !== (Buffer.byteLength(stableCanonicalJson(authorityClosure)) || 1)) fail("original workspace authority identity is invalid");
|
|
220
|
+
if (repositoryDiffArtifact.artifact_digest !== canonicalDigest(repositoryDiffArtifact.diff_entries)
|
|
221
|
+
|| repositoryDiffArtifact.artifact_bytes !== (Buffer.byteLength(stableCanonicalJson(repositoryDiffArtifact.diff_entries)) || 1)
|
|
222
|
+
|| stableCanonicalJson(repositoryDiffArtifact.diff_entries) !== stableCanonicalJson(originalWorkspaceAuthority.diff_entries)
|
|
223
|
+
|| originalWorkspaceAuthority.repository_diff_artifact?.digest !== repositoryDiffArtifact.artifact_digest
|
|
224
|
+
|| originalWorkspaceAuthority.repository_diff_artifact?.bytes !== repositoryDiffArtifact.artifact_bytes) fail("repository diff artifact identity is invalid");
|
|
225
|
+
|
|
226
|
+
for (const [kind, inventoryField, digestField] of [
|
|
227
|
+
["frozen", "frozen_inventory", "frozen_workspace_portable_digest"],
|
|
228
|
+
["candidate", "candidate_inventory", "candidate_workspace_portable_digest"],
|
|
229
|
+
]) {
|
|
230
|
+
const root = authority.roots.get(kind)?.virtual;
|
|
231
|
+
const inventory = originalWorkspaceAuthority[inventoryField];
|
|
232
|
+
if (!root || !Array.isArray(inventory) || originalWorkspaceAuthority[digestField] !== canonicalDigest(inventory)) fail(`${kind} original workspace inventory identity is invalid`);
|
|
233
|
+
const sourceNodes = [...authority.nodes.values()].filter((node) => node.kind === kind && node.relativePath !== "");
|
|
234
|
+
if (sourceNodes.length !== inventory.length) fail(`${kind} original workspace inventory is not closed`);
|
|
235
|
+
const seen = new Set();
|
|
236
|
+
for (const entry of inventory) {
|
|
237
|
+
const relativePath = portablePath(entry.path, `${kind} original workspace path`);
|
|
238
|
+
if (seen.has(relativePath) || !Number.isInteger(entry.mode) || entry.mode < 0 || entry.mode > 0o777) fail(`${kind} original workspace mode authority is invalid`);
|
|
239
|
+
seen.add(relativePath);
|
|
240
|
+
const node = authority.nodes.get(path.resolve(root, relativePath));
|
|
241
|
+
if (!node || node.kind !== kind || node.relativePath !== relativePath || node.file_type !== entry.file_type || node.bytes !== entry.bytes || node.sha256 !== entry.sha256) fail(`${kind} original workspace inventory is detached at ${relativePath}`);
|
|
242
|
+
node.original_mode = entry.mode;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return { originalWorkspaceAuthority, repositoryDiffArtifact };
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function readEncoding(options) {
|
|
249
|
+
if (typeof options === "string") return options;
|
|
250
|
+
return options?.encoding ?? null;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function virtualFsNamespace(authority, barrier) {
|
|
254
|
+
const descriptors = new Map();
|
|
255
|
+
let nextDescriptor = 50_000;
|
|
256
|
+
const ensureVirtualRead = (value, label) => {
|
|
257
|
+
const absolute = normalizeFsPath(value);
|
|
258
|
+
const node = virtualNode(authority, absolute);
|
|
259
|
+
if (!node || node.file_type !== "file") fail(`${label} is not a virtual regular file: ${absolute}`, "ENOENT");
|
|
260
|
+
return { absolute, node };
|
|
261
|
+
};
|
|
262
|
+
const overrides = {
|
|
263
|
+
existsSync(value) {
|
|
264
|
+
const normalized = normalizeFsPath(value);
|
|
265
|
+
if (typeof normalized === "string" && normalized.startsWith(VIRTUAL_ROOT)) return authority.nodes.has(normalized);
|
|
266
|
+
return fs.existsSync(value);
|
|
267
|
+
},
|
|
268
|
+
lstatSync(value) {
|
|
269
|
+
const absolute = normalizeFsPath(value);
|
|
270
|
+
const node = virtualNode(authority, absolute);
|
|
271
|
+
if (node) return virtualStats(authority, absolute, node);
|
|
272
|
+
if (typeof absolute === "string" && absolute.startsWith(VIRTUAL_ROOT)) fail(`virtual authority path is missing: ${absolute}`, "ENOENT");
|
|
273
|
+
return fs.lstatSync(value);
|
|
274
|
+
},
|
|
275
|
+
statSync(value) { return overrides.lstatSync(value); },
|
|
276
|
+
realpathSync(value, options) {
|
|
277
|
+
const absolute = normalizeFsPath(value);
|
|
278
|
+
if (typeof absolute === "string" && absolute.startsWith(VIRTUAL_ROOT)) {
|
|
279
|
+
if (!authority.nodes.has(absolute)) fail(`virtual authority path is missing: ${absolute}`, "ENOENT");
|
|
280
|
+
return readEncoding(options) === "buffer" ? Buffer.from(absolute) : absolute;
|
|
281
|
+
}
|
|
282
|
+
return fs.realpathSync(value, options);
|
|
283
|
+
},
|
|
284
|
+
readdirSync(value, options) {
|
|
285
|
+
const absolute = normalizeFsPath(value);
|
|
286
|
+
const node = virtualNode(authority, absolute);
|
|
287
|
+
if (node) {
|
|
288
|
+
if (node.file_type !== "directory") fail(`virtual authority path is not a directory: ${absolute}`, "ENOTDIR");
|
|
289
|
+
const prefix = `${absolute}${path.sep}`;
|
|
290
|
+
const children = [...authority.nodes.entries()].filter(([candidate]) => candidate.startsWith(prefix) && !candidate.slice(prefix.length).includes(path.sep)).sort(([left], [right]) => left.localeCompare(right));
|
|
291
|
+
if (options?.withFileTypes) return children.map(([candidate, child]) => ({ name: path.basename(candidate), isFile: () => child.file_type === "file", isDirectory: () => child.file_type === "directory", isSymbolicLink: () => false }));
|
|
292
|
+
return children.map(([candidate]) => path.basename(candidate));
|
|
293
|
+
}
|
|
294
|
+
if (typeof absolute === "string" && absolute.startsWith(VIRTUAL_ROOT)) fail(`virtual authority directory is missing: ${absolute}`, "ENOENT");
|
|
295
|
+
return fs.readdirSync(value, options);
|
|
296
|
+
},
|
|
297
|
+
readFileSync(value, options) {
|
|
298
|
+
if (typeof value === "number" && descriptors.has(value)) {
|
|
299
|
+
const bytes = Buffer.from(descriptors.get(value).node.content);
|
|
300
|
+
const encoding = readEncoding(options);
|
|
301
|
+
return encoding ? bytes.toString(encoding) : bytes;
|
|
302
|
+
}
|
|
303
|
+
const absolute = normalizeFsPath(value);
|
|
304
|
+
const node = virtualNode(authority, absolute);
|
|
305
|
+
if (node) {
|
|
306
|
+
if (node.file_type !== "file") fail(`virtual authority path is not a file: ${absolute}`, "EISDIR");
|
|
307
|
+
const bytes = withBarrier(barrier, "before_authority_read", node.kind, node.relativePath, () => Buffer.from(node.content));
|
|
308
|
+
const encoding = readEncoding(options);
|
|
309
|
+
return encoding ? bytes.toString(encoding) : bytes;
|
|
310
|
+
}
|
|
311
|
+
if (typeof absolute === "string" && absolute.startsWith(VIRTUAL_ROOT)) fail(`virtual authority file is missing: ${absolute}`, "ENOENT");
|
|
312
|
+
return fs.readFileSync(value, options);
|
|
313
|
+
},
|
|
314
|
+
openSync(value, flags, mode) {
|
|
315
|
+
const absolute = normalizeFsPath(value);
|
|
316
|
+
const node = virtualNode(authority, absolute);
|
|
317
|
+
if (node) {
|
|
318
|
+
const flagText = typeof flags === "string" ? flags : null;
|
|
319
|
+
const writeMask = fs.constants.O_WRONLY | fs.constants.O_RDWR | fs.constants.O_CREAT | fs.constants.O_TRUNC | fs.constants.O_APPEND;
|
|
320
|
+
if (node.file_type !== "file" || (flagText ? flagText !== "r" && flagText !== "rs" : (flags & writeMask) !== 0)) fail(`virtual authority is read-only: ${absolute}`, "EROFS");
|
|
321
|
+
const descriptor = nextDescriptor++;
|
|
322
|
+
descriptors.set(descriptor, { absolute, node, offset: 0 });
|
|
323
|
+
return descriptor;
|
|
324
|
+
}
|
|
325
|
+
if (typeof absolute === "string" && absolute.startsWith(VIRTUAL_ROOT)) fail(`virtual authority file is missing: ${absolute}`, "ENOENT");
|
|
326
|
+
return fs.openSync(value, flags, mode);
|
|
327
|
+
},
|
|
328
|
+
fstatSync(descriptor) {
|
|
329
|
+
const opened = descriptors.get(descriptor);
|
|
330
|
+
return opened ? virtualStats(authority, opened.absolute, opened.node) : fs.fstatSync(descriptor);
|
|
331
|
+
},
|
|
332
|
+
readSync(descriptor, buffer, offset, length, position) {
|
|
333
|
+
const opened = descriptors.get(descriptor);
|
|
334
|
+
if (!opened) return fs.readSync(descriptor, buffer, offset, length, position);
|
|
335
|
+
const start = position === null || position === undefined ? opened.offset : position;
|
|
336
|
+
const count = Math.max(0, Math.min(length, opened.node.content.length - start));
|
|
337
|
+
opened.node.content.copy(buffer, offset, start, start + count);
|
|
338
|
+
if (position === null || position === undefined) opened.offset += count;
|
|
339
|
+
return count;
|
|
340
|
+
},
|
|
341
|
+
closeSync(descriptor) {
|
|
342
|
+
if (descriptors.delete(descriptor)) return;
|
|
343
|
+
return fs.closeSync(descriptor);
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
for (const name of ["writeFileSync", "appendFileSync", "renameSync", "rmSync", "rmdirSync", "unlinkSync", "mkdirSync", "chmodSync", "chownSync", "truncateSync", "copyFileSync", "cpSync", "symlinkSync", "linkSync"]) {
|
|
347
|
+
overrides[name] = (...args) => {
|
|
348
|
+
const target = normalizeFsPath(args[0]);
|
|
349
|
+
if (typeof target === "string" && target.startsWith(VIRTUAL_ROOT)) fail(`virtual authority is read-only: ${target}`, "EROFS");
|
|
350
|
+
return fs[name](...args);
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
overrides.realpathSync.native = overrides.realpathSync;
|
|
354
|
+
return { ...fs, ...overrides, default: { ...(fs.default ?? fs), ...overrides } };
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function virtualChildProcessNamespace(authority) {
|
|
358
|
+
const translateOptions = (args) => {
|
|
359
|
+
const copied = [...args];
|
|
360
|
+
const index = copied.length - 1;
|
|
361
|
+
const options = copied[index] && typeof copied[index] === "object" && !Array.isArray(copied[index]) ? { ...copied[index] } : null;
|
|
362
|
+
if (!options?.cwd) return copied;
|
|
363
|
+
const cwd = normalizeFsPath(options.cwd);
|
|
364
|
+
for (const root of authority.roots.values()) {
|
|
365
|
+
if (cwd === root.virtual || cwd.startsWith(`${root.virtual}${path.sep}`)) {
|
|
366
|
+
if (!root.helper) fail(`helper filesystem access is not authorized for ${cwd}`);
|
|
367
|
+
options.cwd = path.resolve(root.helper, path.relative(root.virtual, cwd));
|
|
368
|
+
copied[index] = options;
|
|
369
|
+
return copied;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return copied;
|
|
373
|
+
};
|
|
374
|
+
const rejectVirtualArguments = (args, label) => {
|
|
375
|
+
for (const value of args.flat(Infinity)) if (typeof value === "string" && value.includes(VIRTUAL_ROOT)) fail(`${label} cannot establish authority from the helper filesystem`);
|
|
376
|
+
};
|
|
377
|
+
const overrides = {
|
|
378
|
+
spawn(...args) { rejectVirtualArguments(args.slice(0, -1), "spawn"); return childProcess.spawn(...translateOptions(args)); },
|
|
379
|
+
spawnSync(...args) { rejectVirtualArguments(args.slice(0, -1), "spawnSync"); return childProcess.spawnSync(...translateOptions(args)); },
|
|
380
|
+
execFileSync(...args) { rejectVirtualArguments(args, "execFileSync"); return childProcess.execFileSync(...args); },
|
|
381
|
+
execSync(...args) { rejectVirtualArguments(args, "execSync"); return childProcess.execSync(...args); },
|
|
382
|
+
};
|
|
383
|
+
return { ...childProcess, ...overrides, default: { ...(childProcess.default ?? childProcess), ...overrides } };
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
async function execute(payload, authority) {
|
|
387
|
+
const graph = payload.source_graph;
|
|
388
|
+
if (graph?.graph_digest !== canonicalDigest(Object.fromEntries(Object.entries(graph).filter(([key]) => key !== "graph_digest")))) fail("in-memory source graph digest is invalid");
|
|
389
|
+
if (payload.expected_authority?.source_graph_digest !== graph.graph_digest) fail("in-memory source graph is detached from immutable authority");
|
|
390
|
+
const graphNodePaths = (graph.node_inventory ?? []).map(({ path: modulePath }) => portablePath(modulePath, "source graph node path"));
|
|
391
|
+
if (new Set(graphNodePaths).size !== graphNodePaths.length || stableCanonicalJson(graphNodePaths) !== stableCanonicalJson([...graphNodePaths].sort())) fail("in-memory source graph node inventory is not ordered and unique");
|
|
392
|
+
const graphNodes = new Map((graph.node_inventory ?? []).map((entry) => [entry.path, entry]));
|
|
393
|
+
const edges = graph.edge_inventory ?? [];
|
|
394
|
+
const sortedEdges = [...edges].sort((left, right) => stableCanonicalJson(left).localeCompare(stableCanonicalJson(right)));
|
|
395
|
+
if (stableCanonicalJson(edges) !== stableCanonicalJson(sortedEdges)) fail("in-memory source graph edge inventory is not ordered");
|
|
396
|
+
for (const edge of edges) {
|
|
397
|
+
const { edge_digest: edgeDigest, ...edgeBase } = edge;
|
|
398
|
+
if (edgeDigest !== canonicalDigest(edgeBase)) fail("in-memory source graph edge digest is invalid");
|
|
399
|
+
const ordinary = ["static_import", "export_from", "dynamic_import", "authority_read"].includes(edge.kind) && graphNodes.has(edge.from) && graphNodes.has(edge.to);
|
|
400
|
+
const privateRuntime = edge.kind === "runtime_private_import" && graphNodes.has(edge.from) && edge.to === PRIVATE_MODULE_PATH;
|
|
401
|
+
const privateEntry = edge.kind === "private_entry_import" && edge.from === PRIVATE_MODULE_PATH && graphNodes.has(edge.to);
|
|
402
|
+
if (!ordinary && !privateRuntime && !privateEntry) fail("in-memory source graph edge escapes the closed graph");
|
|
403
|
+
}
|
|
404
|
+
const repositoryRoot = authority.roots.get("repository")?.virtual;
|
|
405
|
+
const privateRoot = authority.roots.get("private_bundle")?.virtual;
|
|
406
|
+
if (!repositoryRoot || !privateRoot) fail("in-memory evaluator roots are incomplete");
|
|
407
|
+
const { originalWorkspaceAuthority, repositoryDiffArtifact } = installOriginalWorkspaceModes(authority);
|
|
408
|
+
const privateManifestNode = authority.nodes.get(path.resolve(privateRoot, "private-evaluator-bundle.json"));
|
|
409
|
+
if (!privateManifestNode || privateManifestNode.file_type !== "file") fail("private evaluator bundle manifest is missing from the verified authority");
|
|
410
|
+
let privateManifest;
|
|
411
|
+
try { privateManifest = JSON.parse(privateManifestNode.content.toString("utf8")); }
|
|
412
|
+
catch { fail("private evaluator bundle manifest is invalid JSON"); }
|
|
413
|
+
const hiddenAsset = (privateManifest.asset_inventory ?? []).find(({ role }) => role === "hidden_tests");
|
|
414
|
+
if (!hiddenAsset || hiddenAsset.path !== payload.hidden_evaluator_path) fail("hidden evaluator path is detached from the private bundle manifest");
|
|
415
|
+
const expectedPrivateModules = (privateManifest.asset_inventory ?? [])
|
|
416
|
+
.filter(({ media_type: mediaType }) => mediaType === "text/javascript")
|
|
417
|
+
.map((asset) => {
|
|
418
|
+
const privateBundlePath = portablePath(asset.path, "private evaluator module asset path");
|
|
419
|
+
const modulePath = privateBundlePath === payload.hidden_evaluator_path ? PRIVATE_MODULE_PATH : `private/${privateBundlePath}`;
|
|
420
|
+
portablePath(modulePath, "private evaluator virtual module path");
|
|
421
|
+
return { modulePath, privateBundlePath, asset };
|
|
422
|
+
})
|
|
423
|
+
.sort((left, right) => left.modulePath.localeCompare(right.modulePath));
|
|
424
|
+
if (!expectedPrivateModules.some(({ modulePath }) => modulePath === PRIVATE_MODULE_PATH)) fail("hidden evaluator is absent from the private module inventory");
|
|
425
|
+
if (new Set(expectedPrivateModules.map(({ modulePath }) => modulePath)).size !== expectedPrivateModules.length) fail("private evaluator module paths collide");
|
|
426
|
+
const expectedPrivateModuleByPath = new Map(expectedPrivateModules.map((entry) => [entry.modulePath, entry]));
|
|
427
|
+
const privateModuleAuthorityByPath = new Map();
|
|
428
|
+
const privateModulePathByAuthority = new Map();
|
|
429
|
+
const moduleSources = new Map();
|
|
430
|
+
for (const entry of payload.modules ?? []) {
|
|
431
|
+
portablePath(entry.path, "in-memory module path");
|
|
432
|
+
if (moduleSources.has(entry.path)) fail(`duplicate in-memory module path: ${entry.path}`);
|
|
433
|
+
const bytes = Buffer.from(entry.source_base64 ?? "", "base64");
|
|
434
|
+
if (bytes.toString("base64") !== entry.source_base64 || bytes.length !== entry.bytes || sha256(bytes) !== entry.sha256) fail(`in-memory module bytes are invalid: ${entry.path}`);
|
|
435
|
+
if (entry.private_bundle_path !== undefined) {
|
|
436
|
+
const privateBundlePath = portablePath(entry.private_bundle_path, "in-memory private module authority path");
|
|
437
|
+
const expected = expectedPrivateModuleByPath.get(entry.path);
|
|
438
|
+
if (!expected || expected.privateBundlePath !== privateBundlePath || expected.asset.bytes !== entry.bytes || expected.asset.sha256 !== entry.sha256) fail(`in-memory private module is outside the verified bundle manifest: ${entry.path}`);
|
|
439
|
+
const privateNode = authority.nodes.get(path.resolve(privateRoot, privateBundlePath));
|
|
440
|
+
if (!privateNode || privateNode.file_type !== "file" || privateNode.bytes !== entry.bytes || privateNode.sha256 !== entry.sha256 || Buffer.compare(privateNode.content, bytes) !== 0) fail(`in-memory private module is detached from private byte authority: ${entry.path}`);
|
|
441
|
+
privateModuleAuthorityByPath.set(entry.path, privateBundlePath);
|
|
442
|
+
privateModulePathByAuthority.set(privateBundlePath, entry.path);
|
|
443
|
+
} else {
|
|
444
|
+
const node = graphNodes.get(entry.path);
|
|
445
|
+
if (!node || node.file_type !== "module" || node.bytes !== entry.bytes || node.sha256 !== entry.sha256) fail(`in-memory module is outside the verified source graph: ${entry.path}`);
|
|
446
|
+
const repositoryNode = authority.nodes.get(path.resolve(repositoryRoot, entry.path));
|
|
447
|
+
if (!repositoryNode || repositoryNode.file_type !== "file" || repositoryNode.bytes !== entry.bytes || repositoryNode.sha256 !== entry.sha256 || Buffer.compare(repositoryNode.content, bytes) !== 0) fail(`in-memory module is detached from repository authority: ${entry.path}`);
|
|
448
|
+
}
|
|
449
|
+
moduleSources.set(entry.path, decodeModuleSource(bytes));
|
|
450
|
+
}
|
|
451
|
+
const expectedRepositoryModulePaths = [...graphNodes.values()].filter(({ file_type }) => file_type === "module").map(({ path: modulePath }) => modulePath).sort();
|
|
452
|
+
const actualRepositoryModulePaths = [...moduleSources.keys()].filter((modulePath) => !privateModuleAuthorityByPath.has(modulePath)).sort();
|
|
453
|
+
const actualPrivateModulePaths = [...privateModuleAuthorityByPath.keys()].sort();
|
|
454
|
+
if (stableCanonicalJson(actualRepositoryModulePaths) !== stableCanonicalJson(expectedRepositoryModulePaths)
|
|
455
|
+
|| stableCanonicalJson(actualPrivateModulePaths) !== stableCanonicalJson(expectedPrivateModules.map(({ modulePath }) => modulePath))) fail("in-memory module inventory is not closed");
|
|
456
|
+
|
|
457
|
+
const context = vm.createContext({
|
|
458
|
+
AbortController,
|
|
459
|
+
AbortSignal,
|
|
460
|
+
Atomics,
|
|
461
|
+
Buffer,
|
|
462
|
+
console,
|
|
463
|
+
crypto: globalThis.crypto,
|
|
464
|
+
performance,
|
|
465
|
+
process,
|
|
466
|
+
queueMicrotask,
|
|
467
|
+
setImmediate,
|
|
468
|
+
clearImmediate,
|
|
469
|
+
setInterval,
|
|
470
|
+
clearInterval,
|
|
471
|
+
setTimeout,
|
|
472
|
+
clearTimeout,
|
|
473
|
+
SharedArrayBuffer,
|
|
474
|
+
structuredClone,
|
|
475
|
+
TextDecoder,
|
|
476
|
+
TextEncoder,
|
|
477
|
+
URL,
|
|
478
|
+
URLSearchParams,
|
|
479
|
+
});
|
|
480
|
+
const fsNamespace = virtualFsNamespace(authority, payload.barrier);
|
|
481
|
+
const childNamespace = virtualChildProcessNamespace(authority);
|
|
482
|
+
const builtinNamespaces = new Map(ALLOWED_BUILTINS);
|
|
483
|
+
builtinNamespaces.set("node:fs", fsNamespace);
|
|
484
|
+
builtinNamespaces.set("node:child_process", childNamespace);
|
|
485
|
+
const moduleCache = new Map();
|
|
486
|
+
const builtinCache = new Map();
|
|
487
|
+
const identifierForPath = (modulePath) => privateModuleAuthorityByPath.has(modulePath)
|
|
488
|
+
? url.pathToFileURL(path.resolve(privateRoot, privateModuleAuthorityByPath.get(modulePath))).href
|
|
489
|
+
: url.pathToFileURL(path.resolve(repositoryRoot, modulePath)).href;
|
|
490
|
+
const pathForIdentifier = (identifier) => {
|
|
491
|
+
const absolute = url.fileURLToPath(identifier);
|
|
492
|
+
if (absolute.startsWith(`${privateRoot}${path.sep}`)) {
|
|
493
|
+
const privateBundlePath = path.relative(privateRoot, absolute).split(path.sep).join("/");
|
|
494
|
+
const modulePath = privateModulePathByAuthority.get(privateBundlePath);
|
|
495
|
+
if (modulePath) return modulePath;
|
|
496
|
+
fail(`module identifier escapes verified private module authority: ${identifier}`);
|
|
497
|
+
}
|
|
498
|
+
if (absolute.startsWith(`${repositoryRoot}${path.sep}`)) return path.relative(repositoryRoot, absolute).split(path.sep).join("/");
|
|
499
|
+
fail(`module identifier escapes verified authority: ${identifier}`);
|
|
500
|
+
};
|
|
501
|
+
const edgeAllowed = (from, to, specifier, dynamic) => {
|
|
502
|
+
const fromPrivate = privateModuleAuthorityByPath.has(from);
|
|
503
|
+
const toPrivate = privateModuleAuthorityByPath.has(to);
|
|
504
|
+
if (fromPrivate || toPrivate) {
|
|
505
|
+
if (fromPrivate && toPrivate) return specifier.startsWith("./") || specifier.startsWith("../");
|
|
506
|
+
if (from === PRIVATE_MODULE_PATH && !toPrivate) return dynamic && edges.some((edge) => edge.from === from && edge.to === to && edge.kind === "private_entry_import");
|
|
507
|
+
return false;
|
|
508
|
+
}
|
|
509
|
+
return edges.some((edge) => {
|
|
510
|
+
if (edge.from !== from || edge.to !== to) return false;
|
|
511
|
+
if (dynamic) return edge.kind === "dynamic_import";
|
|
512
|
+
return ["static_import", "export_from"].includes(edge.kind) && edge.specifier === specifier;
|
|
513
|
+
});
|
|
514
|
+
};
|
|
515
|
+
const syntheticBuiltin = (specifier) => {
|
|
516
|
+
if (builtinCache.has(specifier)) return builtinCache.get(specifier);
|
|
517
|
+
const namespace = builtinNamespaces.get(specifier);
|
|
518
|
+
if (!namespace) fail(`module requests an unapproved builtin: ${specifier}`);
|
|
519
|
+
const names = Object.keys(namespace);
|
|
520
|
+
const module = new vm.SyntheticModule(names, function initialize() { for (const name of names) this.setExport(name, namespace[name]); }, { context, identifier: specifier });
|
|
521
|
+
builtinCache.set(specifier, module);
|
|
522
|
+
return module;
|
|
523
|
+
};
|
|
524
|
+
const sourceModule = (modulePath) => {
|
|
525
|
+
if (moduleCache.has(modulePath)) return moduleCache.get(modulePath);
|
|
526
|
+
const source = moduleSources.get(modulePath);
|
|
527
|
+
if (source === undefined) fail(`module is outside the verified byte map: ${modulePath}`);
|
|
528
|
+
const privateBundlePath = privateModuleAuthorityByPath.get(modulePath);
|
|
529
|
+
const kind = privateBundlePath ? "private_bundle" : "repository";
|
|
530
|
+
const relativePath = privateBundlePath ?? modulePath;
|
|
531
|
+
const module = withBarrier(payload.barrier, "before_module_link", kind, relativePath, () => new vm.SourceTextModule(source, {
|
|
532
|
+
context,
|
|
533
|
+
identifier: identifierForPath(modulePath),
|
|
534
|
+
initializeImportMeta(meta, current) { meta.url = current.identifier; },
|
|
535
|
+
importModuleDynamically: async (specifier, current) => {
|
|
536
|
+
const target = resolveModule(specifier, current, true);
|
|
537
|
+
if (target.status === "unlinked") await target.link(linker);
|
|
538
|
+
if (target.status === "linked") await target.evaluate();
|
|
539
|
+
return target;
|
|
540
|
+
},
|
|
541
|
+
}));
|
|
542
|
+
moduleCache.set(modulePath, module);
|
|
543
|
+
return module;
|
|
544
|
+
};
|
|
545
|
+
const privateDataModule = (specifier) => {
|
|
546
|
+
if (moduleCache.has(specifier)) return moduleCache.get(specifier);
|
|
547
|
+
const parsed = parsePrivateDataModule(specifier);
|
|
548
|
+
const module = new vm.SourceTextModule(parsed.source, {
|
|
549
|
+
context,
|
|
550
|
+
identifier: parsed.identifier,
|
|
551
|
+
initializeImportMeta(meta, current) { meta.url = current.identifier; },
|
|
552
|
+
importModuleDynamically: async () => fail("private evaluator data modules cannot import dependencies"),
|
|
553
|
+
});
|
|
554
|
+
moduleCache.set(specifier, module);
|
|
555
|
+
return module;
|
|
556
|
+
};
|
|
557
|
+
const resolveModule = (specifier, referencingModule, dynamic) => {
|
|
558
|
+
if (referencingModule.identifier.startsWith(PRIVATE_DATA_MODULE_PREFIX)) fail("private evaluator data modules cannot import dependencies");
|
|
559
|
+
if (specifier.startsWith("node:")) return syntheticBuiltin(specifier);
|
|
560
|
+
const from = pathForIdentifier(referencingModule.identifier);
|
|
561
|
+
if (specifier.startsWith("data:")) {
|
|
562
|
+
if (!dynamic || from !== PRIVATE_MODULE_PATH) fail("private evaluator data module import is outside the verified private entry");
|
|
563
|
+
return privateDataModule(specifier);
|
|
564
|
+
}
|
|
565
|
+
const targetIdentifier = specifier.startsWith("file:") ? specifier : new URL(specifier, referencingModule.identifier).href;
|
|
566
|
+
const to = pathForIdentifier(targetIdentifier);
|
|
567
|
+
if (!edgeAllowed(from, to, specifier, dynamic)) fail(`module resolution is outside the verified dependency edge: ${from} -> ${to}`);
|
|
568
|
+
return sourceModule(to);
|
|
569
|
+
};
|
|
570
|
+
const linker = (specifier, referencingModule) => resolveModule(specifier, referencingModule, false);
|
|
571
|
+
const hidden = sourceModule(PRIVATE_MODULE_PATH);
|
|
572
|
+
await hidden.link(linker);
|
|
573
|
+
await hidden.evaluate();
|
|
574
|
+
if (typeof hidden.namespace.evaluateCandidateSafe !== "function") fail("hidden evaluator does not export evaluateCandidateSafe");
|
|
575
|
+
const normalizedBytes = Buffer.from(payload.normalized_result.source_base64 ?? "", "base64");
|
|
576
|
+
if (normalizedBytes.length !== payload.normalized_result.bytes || sha256(normalizedBytes) !== payload.normalized_result.sha256) fail("normalized result verified-byte binding is invalid");
|
|
577
|
+
let normalized;
|
|
578
|
+
try { normalized = JSON.parse(normalizedBytes.toString("utf8")); }
|
|
579
|
+
catch { fail("normalized result verified bytes are invalid JSON"); }
|
|
580
|
+
const normalizedLineage = normalized?.lineage;
|
|
581
|
+
if (repositoryDiffArtifact.run_instance_id !== normalizedLineage?.run_instance_id
|
|
582
|
+
|| repositoryDiffArtifact.case_id !== normalizedLineage?.case_id
|
|
583
|
+
|| repositoryDiffArtifact.attempt !== normalizedLineage?.attempt) fail("repository diff artifact lineage is detached from the normalized result");
|
|
584
|
+
if (repositoryDiffArtifact.frozen_workspace_tree_digest !== originalWorkspaceAuthority.frozen_workspace_portable_digest
|
|
585
|
+
|| repositoryDiffArtifact.candidate_workspace_tree_digest !== originalWorkspaceAuthority.candidate_workspace_portable_digest
|
|
586
|
+
|| stableCanonicalJson(repositoryDiffArtifact.candidate_authority) !== stableCanonicalJson(originalWorkspaceAuthority.candidate_authority)) fail("repository diff artifact workspace authority is detached from the original workspace authority");
|
|
587
|
+
const fragment = await hidden.namespace.evaluateCandidateSafe({
|
|
588
|
+
repositoryRoot,
|
|
589
|
+
frozenWorkspace: authority.roots.get("frozen")?.virtual,
|
|
590
|
+
candidateWorkspace: authority.roots.get("candidate")?.virtual,
|
|
591
|
+
normalizedResult: normalized,
|
|
592
|
+
evaluationInputEvidenceRoot: authority.roots.get("evidence")?.virtual,
|
|
593
|
+
evaluatorAuthority: payload.expected_authority,
|
|
594
|
+
originalWorkspaceAuthority,
|
|
595
|
+
repositoryDiffArtifact,
|
|
596
|
+
// Controller-owned, digest-bound, sanitized state only. Raw timing and
|
|
597
|
+
// diagnostics are retained by the existing parent private log capture.
|
|
598
|
+
...(payload.private_performance_probe?{privatePerformanceProbe:payload.private_performance_probe}:{}),
|
|
599
|
+
...(payload.private_client_probe?{privateClientProbe:payload.private_client_probe}:{}),
|
|
600
|
+
...(payload.private_focused_probe?{privateFocusedProbe:payload.private_focused_probe}:{}),
|
|
601
|
+
...(payload.private_native_probe_binding?{privateNativeProbeBinding:payload.private_native_probe_binding}:{}),
|
|
602
|
+
});
|
|
603
|
+
process.stdout.write(`${JSON.stringify(fragment)}\n`);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
try {
|
|
607
|
+
if (typeof vm.SourceTextModule !== "function" || typeof vm.SyntheticModule !== "function") fail("Node vm module support is unavailable");
|
|
608
|
+
const payload = parsePayload();
|
|
609
|
+
if (payload.barrier) payload.barrier.current_run_index = payload.run_index;
|
|
610
|
+
const authority = buildVirtualAuthority(payload);
|
|
611
|
+
await execute(payload, authority);
|
|
612
|
+
} catch (error) {
|
|
613
|
+
process.stderr.write(`private evaluator runner failed: ${error.message}\n`);
|
|
614
|
+
process.exitCode = 1;
|
|
615
|
+
}
|