@codyswann/lisa 6.0.10 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -0
- package/all/copy-overwrite/scripts/check-threshold-ratchet.mjs +12 -1
- package/all/copy-overwrite/scripts/lib/changed-paths.mjs +545 -0
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lib/work-item-estimate-check.mjs +162 -0
- package/all/copy-overwrite/scripts/lib/work-item-estimate-config.d.mts +58 -0
- package/all/copy-overwrite/scripts/lib/work-item-estimate-config.mjs +210 -0
- package/all/copy-overwrite/scripts/lib/work-item-estimate.mjs +313 -0
- package/all/copy-overwrite/scripts/lisa-estimate.mjs +178 -0
- package/all/copy-overwrite/scripts/lisa-gates.mjs +1304 -22
- package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +40 -2
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +1384 -52
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +18 -6
- package/all/copy-overwrite/scripts/threshold-ratchet-compare.mjs +214 -3
- package/all/copy-overwrite/scripts/threshold-ratchet-families.mjs +166 -0
- package/dist/cli/controls-cmd.d.ts +31 -0
- package/dist/cli/controls-cmd.d.ts.map +1 -0
- package/dist/cli/controls-cmd.js +47 -0
- package/dist/cli/controls-cmd.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/update-check-hook.d.ts.map +1 -1
- package/dist/cli/update-check-hook.js +5 -0
- package/dist/cli/update-check-hook.js.map +1 -1
- package/dist/controls/attest-check.d.ts +52 -0
- package/dist/controls/attest-check.d.ts.map +1 -0
- package/dist/controls/attest-check.js +278 -0
- package/dist/controls/attest-check.js.map +1 -0
- package/dist/controls/attest-record.d.ts +131 -0
- package/dist/controls/attest-record.d.ts.map +1 -0
- package/dist/controls/attest-record.js +220 -0
- package/dist/controls/attest-record.js.map +1 -0
- package/dist/controls/audit-answers-absorb.d.ts +54 -0
- package/dist/controls/audit-answers-absorb.d.ts.map +1 -0
- package/dist/controls/audit-answers-absorb.js +135 -0
- package/dist/controls/audit-answers-absorb.js.map +1 -0
- package/dist/controls/audit-answers-secrets.d.ts +31 -0
- package/dist/controls/audit-answers-secrets.d.ts.map +1 -0
- package/dist/controls/audit-answers-secrets.js +40 -0
- package/dist/controls/audit-answers-secrets.js.map +1 -0
- package/dist/controls/audit-answers.d.ts +21 -0
- package/dist/controls/audit-answers.d.ts.map +1 -0
- package/dist/controls/audit-answers.js +69 -0
- package/dist/controls/audit-answers.js.map +1 -0
- package/dist/controls/audit-gaps-file.d.ts +26 -0
- package/dist/controls/audit-gaps-file.d.ts.map +1 -0
- package/dist/controls/audit-gaps-file.js +121 -0
- package/dist/controls/audit-gaps-file.js.map +1 -0
- package/dist/controls/audit-inline-answers-file.d.ts +15 -0
- package/dist/controls/audit-inline-answers-file.d.ts.map +1 -0
- package/dist/controls/audit-inline-answers-file.js +69 -0
- package/dist/controls/audit-inline-answers-file.js.map +1 -0
- package/dist/controls/audit-inline-answers.d.ts +45 -0
- package/dist/controls/audit-inline-answers.d.ts.map +1 -0
- package/dist/controls/audit-inline-answers.js +267 -0
- package/dist/controls/audit-inline-answers.js.map +1 -0
- package/dist/controls/audit-probe-types.d.ts +97 -0
- package/dist/controls/audit-probe-types.d.ts.map +1 -0
- package/dist/controls/audit-probe-types.js +69 -0
- package/dist/controls/audit-probe-types.js.map +1 -0
- package/dist/controls/audit-probes-markdown.d.ts +12 -0
- package/dist/controls/audit-probes-markdown.d.ts.map +1 -0
- package/dist/controls/audit-probes-markdown.js +79 -0
- package/dist/controls/audit-probes-markdown.js.map +1 -0
- package/dist/controls/audit-probes.d.ts +41 -0
- package/dist/controls/audit-probes.d.ts.map +1 -0
- package/dist/controls/audit-probes.js +49 -0
- package/dist/controls/audit-probes.js.map +1 -0
- package/dist/controls/audit-question-lines.d.ts +59 -0
- package/dist/controls/audit-question-lines.d.ts.map +1 -0
- package/dist/controls/audit-question-lines.js +213 -0
- package/dist/controls/audit-question-lines.js.map +1 -0
- package/dist/controls/audit-question-region.d.ts +46 -0
- package/dist/controls/audit-question-region.d.ts.map +1 -0
- package/dist/controls/audit-question-region.js +69 -0
- package/dist/controls/audit-question-region.js.map +1 -0
- package/dist/controls/audit-question-repair.d.ts +67 -0
- package/dist/controls/audit-question-repair.d.ts.map +1 -0
- package/dist/controls/audit-question-repair.js +151 -0
- package/dist/controls/audit-question-repair.js.map +1 -0
- package/dist/controls/audit-questions-format.d.ts +71 -0
- package/dist/controls/audit-questions-format.d.ts.map +1 -0
- package/dist/controls/audit-questions-format.js +141 -0
- package/dist/controls/audit-questions-format.js.map +1 -0
- package/dist/controls/audit-questions-markdown.d.ts +28 -0
- package/dist/controls/audit-questions-markdown.d.ts.map +1 -0
- package/dist/controls/audit-questions-markdown.js +203 -0
- package/dist/controls/audit-questions-markdown.js.map +1 -0
- package/dist/controls/audit-report-file.d.ts +39 -0
- package/dist/controls/audit-report-file.d.ts.map +1 -0
- package/dist/controls/audit-report-file.js +135 -0
- package/dist/controls/audit-report-file.js.map +1 -0
- package/dist/controls/audit-report-markdown.d.ts +15 -0
- package/dist/controls/audit-report-markdown.d.ts.map +1 -0
- package/dist/controls/audit-report-markdown.js +179 -0
- package/dist/controls/audit-report-markdown.js.map +1 -0
- package/dist/controls/audit-report-probes-shape.d.ts +8 -0
- package/dist/controls/audit-report-probes-shape.d.ts.map +1 -0
- package/dist/controls/audit-report-probes-shape.js +203 -0
- package/dist/controls/audit-report-probes-shape.js.map +1 -0
- package/dist/controls/audit-report-questions-shape.d.ts +13 -0
- package/dist/controls/audit-report-questions-shape.d.ts.map +1 -0
- package/dist/controls/audit-report-questions-shape.js +197 -0
- package/dist/controls/audit-report-questions-shape.js.map +1 -0
- package/dist/controls/audit-report-rules/coverage.d.ts +53 -0
- package/dist/controls/audit-report-rules/coverage.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/coverage.js +172 -0
- package/dist/controls/audit-report-rules/coverage.js.map +1 -0
- package/dist/controls/audit-report-rules/locators.d.ts +28 -0
- package/dist/controls/audit-report-rules/locators.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/locators.js +62 -0
- package/dist/controls/audit-report-rules/locators.js.map +1 -0
- package/dist/controls/audit-report-rules/not-applicable.d.ts +32 -0
- package/dist/controls/audit-report-rules/not-applicable.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/not-applicable.js +43 -0
- package/dist/controls/audit-report-rules/not-applicable.js.map +1 -0
- package/dist/controls/audit-report-rules/plain-language.d.ts +20 -0
- package/dist/controls/audit-report-rules/plain-language.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/plain-language.js +47 -0
- package/dist/controls/audit-report-rules/plain-language.js.map +1 -0
- package/dist/controls/audit-report-rules/probe-dependents.d.ts +11 -0
- package/dist/controls/audit-report-rules/probe-dependents.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/probe-dependents.js +55 -0
- package/dist/controls/audit-report-rules/probe-dependents.js.map +1 -0
- package/dist/controls/audit-report-rules/probe-secrets.d.ts +10 -0
- package/dist/controls/audit-report-rules/probe-secrets.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/probe-secrets.js +33 -0
- package/dist/controls/audit-report-rules/probe-secrets.js.map +1 -0
- package/dist/controls/audit-report-rules/probes.d.ts +11 -0
- package/dist/controls/audit-report-rules/probes.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/probes.js +102 -0
- package/dist/controls/audit-report-rules/probes.js.map +1 -0
- package/dist/controls/audit-report-rules/proved-evidence.d.ts +46 -0
- package/dist/controls/audit-report-rules/proved-evidence.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/proved-evidence.js +162 -0
- package/dist/controls/audit-report-rules/proved-evidence.js.map +1 -0
- package/dist/controls/audit-report-rules/questions.d.ts +12 -0
- package/dist/controls/audit-report-rules/questions.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/questions.js +171 -0
- package/dist/controls/audit-report-rules/questions.js.map +1 -0
- package/dist/controls/audit-report-rules/recorded-answers.d.ts +12 -0
- package/dist/controls/audit-report-rules/recorded-answers.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/recorded-answers.js +104 -0
- package/dist/controls/audit-report-rules/recorded-answers.js.map +1 -0
- package/dist/controls/audit-report-rules/scopes.d.ts +21 -0
- package/dist/controls/audit-report-rules/scopes.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/scopes.js +60 -0
- package/dist/controls/audit-report-rules/scopes.js.map +1 -0
- package/dist/controls/audit-report-rules/secret-values.d.ts +33 -0
- package/dist/controls/audit-report-rules/secret-values.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/secret-values.js +40 -0
- package/dist/controls/audit-report-rules/secret-values.js.map +1 -0
- package/dist/controls/audit-report-rules/server-side-authority.d.ts +11 -0
- package/dist/controls/audit-report-rules/server-side-authority.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/server-side-authority.js +52 -0
- package/dist/controls/audit-report-rules/server-side-authority.js.map +1 -0
- package/dist/controls/audit-report-rules/tracker-question.d.ts +26 -0
- package/dist/controls/audit-report-rules/tracker-question.d.ts.map +1 -0
- package/dist/controls/audit-report-rules/tracker-question.js +20 -0
- package/dist/controls/audit-report-rules/tracker-question.js.map +1 -0
- package/dist/controls/audit-report-shape.d.ts +36 -0
- package/dist/controls/audit-report-shape.d.ts.map +1 -0
- package/dist/controls/audit-report-shape.js +300 -0
- package/dist/controls/audit-report-shape.js.map +1 -0
- package/dist/controls/audit-report-types.d.ts +222 -0
- package/dist/controls/audit-report-types.d.ts.map +1 -0
- package/dist/controls/audit-report-types.js +53 -0
- package/dist/controls/audit-report-types.js.map +1 -0
- package/dist/controls/audit-report-wording.d.ts +36 -0
- package/dist/controls/audit-report-wording.d.ts.map +1 -0
- package/dist/controls/audit-report-wording.js +58 -0
- package/dist/controls/audit-report-wording.js.map +1 -0
- package/dist/controls/audit-report.d.ts +22 -0
- package/dist/controls/audit-report.d.ts.map +1 -0
- package/dist/controls/audit-report.js +79 -0
- package/dist/controls/audit-report.js.map +1 -0
- package/dist/controls/before-enforce-findings.d.ts +25 -0
- package/dist/controls/before-enforce-findings.d.ts.map +1 -0
- package/dist/controls/before-enforce-findings.js +172 -0
- package/dist/controls/before-enforce-findings.js.map +1 -0
- package/dist/controls/before-enforce-observe.d.ts +116 -0
- package/dist/controls/before-enforce-observe.d.ts.map +1 -0
- package/dist/controls/before-enforce-observe.js +164 -0
- package/dist/controls/before-enforce-observe.js.map +1 -0
- package/dist/controls/before-enforce-plan.d.ts +52 -0
- package/dist/controls/before-enforce-plan.d.ts.map +1 -0
- package/dist/controls/before-enforce-plan.js +83 -0
- package/dist/controls/before-enforce-plan.js.map +1 -0
- package/dist/controls/before-enforce-report.d.ts +33 -0
- package/dist/controls/before-enforce-report.d.ts.map +1 -0
- package/dist/controls/before-enforce-report.js +94 -0
- package/dist/controls/before-enforce-report.js.map +1 -0
- package/dist/controls/before-enforce-run.d.ts +50 -0
- package/dist/controls/before-enforce-run.d.ts.map +1 -0
- package/dist/controls/before-enforce-run.js +199 -0
- package/dist/controls/before-enforce-run.js.map +1 -0
- package/dist/controls/before-enforce-types.d.ts +161 -0
- package/dist/controls/before-enforce-types.d.ts.map +1 -0
- package/dist/controls/before-enforce-types.js +66 -0
- package/dist/controls/before-enforce-types.js.map +1 -0
- package/dist/controls/before-enforce-wording.d.ts +99 -0
- package/dist/controls/before-enforce-wording.d.ts.map +1 -0
- package/dist/controls/before-enforce-wording.js +182 -0
- package/dist/controls/before-enforce-wording.js.map +1 -0
- package/dist/controls/before-enforce-workspace.d.ts +31 -0
- package/dist/controls/before-enforce-workspace.d.ts.map +1 -0
- package/dist/controls/before-enforce-workspace.js +101 -0
- package/dist/controls/before-enforce-workspace.js.map +1 -0
- package/dist/controls/canary-door.d.ts +59 -0
- package/dist/controls/canary-door.d.ts.map +1 -0
- package/dist/controls/canary-door.js +143 -0
- package/dist/controls/canary-door.js.map +1 -0
- package/dist/controls/canary-eligibility.d.ts +107 -0
- package/dist/controls/canary-eligibility.d.ts.map +1 -0
- package/dist/controls/canary-eligibility.js +267 -0
- package/dist/controls/canary-eligibility.js.map +1 -0
- package/dist/controls/canary-half.d.ts +73 -0
- package/dist/controls/canary-half.d.ts.map +1 -0
- package/dist/controls/canary-half.js +251 -0
- package/dist/controls/canary-half.js.map +1 -0
- package/dist/controls/canary-lifecycle.d.ts +132 -0
- package/dist/controls/canary-lifecycle.d.ts.map +1 -0
- package/dist/controls/canary-lifecycle.js +313 -0
- package/dist/controls/canary-lifecycle.js.map +1 -0
- package/dist/controls/canary-names.d.ts +88 -0
- package/dist/controls/canary-names.d.ts.map +1 -0
- package/dist/controls/canary-names.js +147 -0
- package/dist/controls/canary-names.js.map +1 -0
- package/dist/controls/canary-plan.d.ts +31 -0
- package/dist/controls/canary-plan.d.ts.map +1 -0
- package/dist/controls/canary-plan.js +80 -0
- package/dist/controls/canary-plan.js.map +1 -0
- package/dist/controls/canary-tree.d.ts +49 -0
- package/dist/controls/canary-tree.d.ts.map +1 -0
- package/dist/controls/canary-tree.js +283 -0
- package/dist/controls/canary-tree.js.map +1 -0
- package/dist/controls/canonical-json.d.ts +62 -0
- package/dist/controls/canonical-json.d.ts.map +1 -0
- package/dist/controls/canonical-json.js +118 -0
- package/dist/controls/canonical-json.js.map +1 -0
- package/dist/controls/carrier-agent-files.d.ts +13 -0
- package/dist/controls/carrier-agent-files.d.ts.map +1 -0
- package/dist/controls/carrier-agent-files.js +139 -0
- package/dist/controls/carrier-agent-files.js.map +1 -0
- package/dist/controls/carrier-agent-program.d.ts +36 -0
- package/dist/controls/carrier-agent-program.d.ts.map +1 -0
- package/dist/controls/carrier-agent-program.js +284 -0
- package/dist/controls/carrier-agent-program.js.map +1 -0
- package/dist/controls/carrier-agent-result.d.ts +30 -0
- package/dist/controls/carrier-agent-result.d.ts.map +1 -0
- package/dist/controls/carrier-agent-result.js +134 -0
- package/dist/controls/carrier-agent-result.js.map +1 -0
- package/dist/controls/carrier-agent-script.d.ts +24 -0
- package/dist/controls/carrier-agent-script.d.ts.map +1 -0
- package/dist/controls/carrier-agent-script.js +132 -0
- package/dist/controls/carrier-agent-script.js.map +1 -0
- package/dist/controls/carrier-agent-settings.d.ts +30 -0
- package/dist/controls/carrier-agent-settings.d.ts.map +1 -0
- package/dist/controls/carrier-agent-settings.js +226 -0
- package/dist/controls/carrier-agent-settings.js.map +1 -0
- package/dist/controls/carrier-agent-surfaces.d.ts +117 -0
- package/dist/controls/carrier-agent-surfaces.d.ts.map +1 -0
- package/dist/controls/carrier-agent-surfaces.js +103 -0
- package/dist/controls/carrier-agent-surfaces.js.map +1 -0
- package/dist/controls/carrier-agents.d.ts +16 -0
- package/dist/controls/carrier-agents.d.ts.map +1 -0
- package/dist/controls/carrier-agents.js +251 -0
- package/dist/controls/carrier-agents.js.map +1 -0
- package/dist/controls/carrier-edits.d.ts +88 -0
- package/dist/controls/carrier-edits.d.ts.map +1 -0
- package/dist/controls/carrier-edits.js +170 -0
- package/dist/controls/carrier-edits.js.map +1 -0
- package/dist/controls/carrier-git-hooks.d.ts +10 -0
- package/dist/controls/carrier-git-hooks.d.ts.map +1 -0
- package/dist/controls/carrier-git-hooks.js +234 -0
- package/dist/controls/carrier-git-hooks.js.map +1 -0
- package/dist/controls/carrier-git.d.ts +65 -0
- package/dist/controls/carrier-git.d.ts.map +1 -0
- package/dist/controls/carrier-git.js +102 -0
- package/dist/controls/carrier-git.js.map +1 -0
- package/dist/controls/carrier-hook-here-documents.d.ts +30 -0
- package/dist/controls/carrier-hook-here-documents.d.ts.map +1 -0
- package/dist/controls/carrier-hook-here-documents.js +111 -0
- package/dist/controls/carrier-hook-here-documents.js.map +1 -0
- package/dist/controls/carrier-hook-reach.d.ts +24 -0
- package/dist/controls/carrier-hook-reach.d.ts.map +1 -0
- package/dist/controls/carrier-hook-reach.js +344 -0
- package/dist/controls/carrier-hook-reach.js.map +1 -0
- package/dist/controls/carrier-hook-words.d.ts +43 -0
- package/dist/controls/carrier-hook-words.d.ts.map +1 -0
- package/dist/controls/carrier-hook-words.js +129 -0
- package/dist/controls/carrier-hook-words.js.map +1 -0
- package/dist/controls/carrier-ignore.d.ts +19 -0
- package/dist/controls/carrier-ignore.d.ts.map +1 -0
- package/dist/controls/carrier-ignore.js +58 -0
- package/dist/controls/carrier-ignore.js.map +1 -0
- package/dist/controls/carrier-json-place.d.ts +62 -0
- package/dist/controls/carrier-json-place.d.ts.map +1 -0
- package/dist/controls/carrier-json-place.js +351 -0
- package/dist/controls/carrier-json-place.js.map +1 -0
- package/dist/controls/carrier-lefthook.d.ts +18 -0
- package/dist/controls/carrier-lefthook.d.ts.map +1 -0
- package/dist/controls/carrier-lefthook.js +151 -0
- package/dist/controls/carrier-lefthook.js.map +1 -0
- package/dist/controls/carrier-manager-file.d.ts +50 -0
- package/dist/controls/carrier-manager-file.d.ts.map +1 -0
- package/dist/controls/carrier-manager-file.js +125 -0
- package/dist/controls/carrier-manager-file.js.map +1 -0
- package/dist/controls/carrier-outcome.d.ts +43 -0
- package/dist/controls/carrier-outcome.d.ts.map +1 -0
- package/dist/controls/carrier-outcome.js +37 -0
- package/dist/controls/carrier-outcome.js.map +1 -0
- package/dist/controls/carrier-owned-files.d.ts +39 -0
- package/dist/controls/carrier-owned-files.d.ts.map +1 -0
- package/dist/controls/carrier-owned-files.js +113 -0
- package/dist/controls/carrier-owned-files.js.map +1 -0
- package/dist/controls/carrier-owner.d.ts +71 -0
- package/dist/controls/carrier-owner.d.ts.map +1 -0
- package/dist/controls/carrier-owner.js +174 -0
- package/dist/controls/carrier-owner.js.map +1 -0
- package/dist/controls/carrier-pre-commit.d.ts +15 -0
- package/dist/controls/carrier-pre-commit.d.ts.map +1 -0
- package/dist/controls/carrier-pre-commit.js +232 -0
- package/dist/controls/carrier-pre-commit.js.map +1 -0
- package/dist/controls/carrier-result.d.ts +14 -0
- package/dist/controls/carrier-result.d.ts.map +1 -0
- package/dist/controls/carrier-result.js +204 -0
- package/dist/controls/carrier-result.js.map +1 -0
- package/dist/controls/carrier-roster.d.ts +29 -0
- package/dist/controls/carrier-roster.d.ts.map +1 -0
- package/dist/controls/carrier-roster.js +162 -0
- package/dist/controls/carrier-roster.js.map +1 -0
- package/dist/controls/carrier-runner-files.d.ts +10 -0
- package/dist/controls/carrier-runner-files.d.ts.map +1 -0
- package/dist/controls/carrier-runner-files.js +92 -0
- package/dist/controls/carrier-runner-files.js.map +1 -0
- package/dist/controls/carrier-script.d.ts +226 -0
- package/dist/controls/carrier-script.d.ts.map +1 -0
- package/dist/controls/carrier-script.js +416 -0
- package/dist/controls/carrier-script.js.map +1 -0
- package/dist/controls/carrier-shell-hook.d.ts +45 -0
- package/dist/controls/carrier-shell-hook.d.ts.map +1 -0
- package/dist/controls/carrier-shell-hook.js +222 -0
- package/dist/controls/carrier-shell-hook.js.map +1 -0
- package/dist/controls/carrier-types.d.ts +327 -0
- package/dist/controls/carrier-types.d.ts.map +1 -0
- package/dist/controls/carrier-types.js +99 -0
- package/dist/controls/carrier-types.js.map +1 -0
- package/dist/controls/carrier-unenforceable.d.ts +22 -0
- package/dist/controls/carrier-unenforceable.d.ts.map +1 -0
- package/dist/controls/carrier-unenforceable.js +246 -0
- package/dist/controls/carrier-unenforceable.js.map +1 -0
- package/dist/controls/carrier-yaml-lines.d.ts +139 -0
- package/dist/controls/carrier-yaml-lines.d.ts.map +1 -0
- package/dist/controls/carrier-yaml-lines.js +192 -0
- package/dist/controls/carrier-yaml-lines.js.map +1 -0
- package/dist/controls/carriers.d.ts +56 -0
- package/dist/controls/carriers.d.ts.map +1 -0
- package/dist/controls/carriers.js +264 -0
- package/dist/controls/carriers.js.map +1 -0
- package/dist/controls/catalogue.d.ts +85 -0
- package/dist/controls/catalogue.d.ts.map +1 -0
- package/dist/controls/catalogue.js +120 -0
- package/dist/controls/catalogue.js.map +1 -0
- package/dist/controls/checks-binding.d.ts +75 -0
- package/dist/controls/checks-binding.d.ts.map +1 -0
- package/dist/controls/checks-binding.js +372 -0
- package/dist/controls/checks-binding.js.map +1 -0
- package/dist/controls/coding-agents.d.ts +45 -0
- package/dist/controls/coding-agents.d.ts.map +1 -0
- package/dist/controls/coding-agents.js +51 -0
- package/dist/controls/coding-agents.js.map +1 -0
- package/dist/controls/commands/attest-attempt.d.ts +68 -0
- package/dist/controls/commands/attest-attempt.d.ts.map +1 -0
- package/dist/controls/commands/attest-attempt.js +162 -0
- package/dist/controls/commands/attest-attempt.js.map +1 -0
- package/dist/controls/commands/attest-before-enforce.d.ts +56 -0
- package/dist/controls/commands/attest-before-enforce.d.ts.map +1 -0
- package/dist/controls/commands/attest-before-enforce.js +265 -0
- package/dist/controls/commands/attest-before-enforce.js.map +1 -0
- package/dist/controls/commands/attest-interruption.d.ts +36 -0
- package/dist/controls/commands/attest-interruption.d.ts.map +1 -0
- package/dist/controls/commands/attest-interruption.js +111 -0
- package/dist/controls/commands/attest-interruption.js.map +1 -0
- package/dist/controls/commands/attest-options.d.ts +68 -0
- package/dist/controls/commands/attest-options.d.ts.map +1 -0
- package/dist/controls/commands/attest-options.js +12 -0
- package/dist/controls/commands/attest-options.js.map +1 -0
- package/dist/controls/commands/attest-report-only.d.ts +27 -0
- package/dist/controls/commands/attest-report-only.d.ts.map +1 -0
- package/dist/controls/commands/attest-report-only.js +52 -0
- package/dist/controls/commands/attest-report-only.js.map +1 -0
- package/dist/controls/commands/attest-workspace.d.ts +65 -0
- package/dist/controls/commands/attest-workspace.d.ts.map +1 -0
- package/dist/controls/commands/attest-workspace.js +166 -0
- package/dist/controls/commands/attest-workspace.js.map +1 -0
- package/dist/controls/commands/attest.d.ts +23 -0
- package/dist/controls/commands/attest.d.ts.map +1 -0
- package/dist/controls/commands/attest.js +281 -0
- package/dist/controls/commands/attest.js.map +1 -0
- package/dist/controls/commands/catalogue.d.ts +72 -0
- package/dist/controls/commands/catalogue.d.ts.map +1 -0
- package/dist/controls/commands/catalogue.js +54 -0
- package/dist/controls/commands/catalogue.js.map +1 -0
- package/dist/controls/commands/declaration-check.d.ts +39 -0
- package/dist/controls/commands/declaration-check.d.ts.map +1 -0
- package/dist/controls/commands/declaration-check.js +98 -0
- package/dist/controls/commands/declaration-check.js.map +1 -0
- package/dist/controls/commands/enforce-report.d.ts +38 -0
- package/dist/controls/commands/enforce-report.d.ts.map +1 -0
- package/dist/controls/commands/enforce-report.js +183 -0
- package/dist/controls/commands/enforce-report.js.map +1 -0
- package/dist/controls/commands/gaps.d.ts +101 -0
- package/dist/controls/commands/gaps.d.ts.map +1 -0
- package/dist/controls/commands/gaps.js +146 -0
- package/dist/controls/commands/gaps.js.map +1 -0
- package/dist/controls/commands/install-carriers.d.ts +44 -0
- package/dist/controls/commands/install-carriers.d.ts.map +1 -0
- package/dist/controls/commands/install-carriers.js +235 -0
- package/dist/controls/commands/install-carriers.js.map +1 -0
- package/dist/controls/commands/merge-protection.d.ts +35 -0
- package/dist/controls/commands/merge-protection.d.ts.map +1 -0
- package/dist/controls/commands/merge-protection.js +136 -0
- package/dist/controls/commands/merge-protection.js.map +1 -0
- package/dist/controls/commands/proof-check.d.ts +62 -0
- package/dist/controls/commands/proof-check.d.ts.map +1 -0
- package/dist/controls/commands/proof-check.js +251 -0
- package/dist/controls/commands/proof-check.js.map +1 -0
- package/dist/controls/commands/propose-threshold.d.ts +63 -0
- package/dist/controls/commands/propose-threshold.d.ts.map +1 -0
- package/dist/controls/commands/propose-threshold.js +78 -0
- package/dist/controls/commands/propose-threshold.js.map +1 -0
- package/dist/controls/commands/protect.d.ts +40 -0
- package/dist/controls/commands/protect.d.ts.map +1 -0
- package/dist/controls/commands/protect.js +131 -0
- package/dist/controls/commands/protect.js.map +1 -0
- package/dist/controls/commands/reconcile.d.ts +43 -0
- package/dist/controls/commands/reconcile.d.ts.map +1 -0
- package/dist/controls/commands/reconcile.js +157 -0
- package/dist/controls/commands/reconcile.js.map +1 -0
- package/dist/controls/commands/register.d.ts +40 -0
- package/dist/controls/commands/register.d.ts.map +1 -0
- package/dist/controls/commands/register.js +212 -0
- package/dist/controls/commands/register.js.map +1 -0
- package/dist/controls/commands/report-absorb.d.ts +20 -0
- package/dist/controls/commands/report-absorb.d.ts.map +1 -0
- package/dist/controls/commands/report-absorb.js +174 -0
- package/dist/controls/commands/report-absorb.js.map +1 -0
- package/dist/controls/commands/report-check.d.ts +35 -0
- package/dist/controls/commands/report-check.d.ts.map +1 -0
- package/dist/controls/commands/report-check.js +148 -0
- package/dist/controls/commands/report-check.js.map +1 -0
- package/dist/controls/commands/seed.d.ts +70 -0
- package/dist/controls/commands/seed.d.ts.map +1 -0
- package/dist/controls/commands/seed.js +289 -0
- package/dist/controls/commands/seed.js.map +1 -0
- package/dist/controls/configure-road.d.ts +23 -0
- package/dist/controls/configure-road.d.ts.map +1 -0
- package/dist/controls/configure-road.js +51 -0
- package/dist/controls/configure-road.js.map +1 -0
- package/dist/controls/control-files.d.ts +37 -0
- package/dist/controls/control-files.d.ts.map +1 -0
- package/dist/controls/control-files.js +92 -0
- package/dist/controls/control-files.js.map +1 -0
- package/dist/controls/control-gap-marker.d.ts +33 -0
- package/dist/controls/control-gap-marker.d.ts.map +1 -0
- package/dist/controls/control-gap-marker.js +89 -0
- package/dist/controls/control-gap-marker.js.map +1 -0
- package/dist/controls/declaration-evidence.d.ts +26 -0
- package/dist/controls/declaration-evidence.d.ts.map +1 -0
- package/dist/controls/declaration-evidence.js +193 -0
- package/dist/controls/declaration-evidence.js.map +1 -0
- package/dist/controls/enforce-carriers.d.ts +51 -0
- package/dist/controls/enforce-carriers.d.ts.map +1 -0
- package/dist/controls/enforce-carriers.js +149 -0
- package/dist/controls/enforce-carriers.js.map +1 -0
- package/dist/controls/enforce-claims.d.ts +94 -0
- package/dist/controls/enforce-claims.d.ts.map +1 -0
- package/dist/controls/enforce-claims.js +299 -0
- package/dist/controls/enforce-claims.js.map +1 -0
- package/dist/controls/enforce-entry-outcome.d.ts +31 -0
- package/dist/controls/enforce-entry-outcome.d.ts.map +1 -0
- package/dist/controls/enforce-entry-outcome.js +209 -0
- package/dist/controls/enforce-entry-outcome.js.map +1 -0
- package/dist/controls/enforce-head-copy.d.ts +19 -0
- package/dist/controls/enforce-head-copy.d.ts.map +1 -0
- package/dist/controls/enforce-head-copy.js +129 -0
- package/dist/controls/enforce-head-copy.js.map +1 -0
- package/dist/controls/enforce-head-run.d.ts +34 -0
- package/dist/controls/enforce-head-run.d.ts.map +1 -0
- package/dist/controls/enforce-head-run.js +245 -0
- package/dist/controls/enforce-head-run.js.map +1 -0
- package/dist/controls/enforce-head.d.ts +40 -0
- package/dist/controls/enforce-head.d.ts.map +1 -0
- package/dist/controls/enforce-head.js +103 -0
- package/dist/controls/enforce-head.js.map +1 -0
- package/dist/controls/enforce-input-rules.d.ts +23 -0
- package/dist/controls/enforce-input-rules.d.ts.map +1 -0
- package/dist/controls/enforce-input-rules.js +200 -0
- package/dist/controls/enforce-input-rules.js.map +1 -0
- package/dist/controls/enforce-input-shape.d.ts +66 -0
- package/dist/controls/enforce-input-shape.d.ts.map +1 -0
- package/dist/controls/enforce-input-shape.js +110 -0
- package/dist/controls/enforce-input-shape.js.map +1 -0
- package/dist/controls/enforce-input-types.d.ts +84 -0
- package/dist/controls/enforce-input-types.d.ts.map +1 -0
- package/dist/controls/enforce-input-types.js +5 -0
- package/dist/controls/enforce-input-types.js.map +1 -0
- package/dist/controls/enforce-inputs.d.ts +9 -0
- package/dist/controls/enforce-inputs.d.ts.map +1 -0
- package/dist/controls/enforce-inputs.js +103 -0
- package/dist/controls/enforce-inputs.js.map +1 -0
- package/dist/controls/enforce-points.d.ts +27 -0
- package/dist/controls/enforce-points.d.ts.map +1 -0
- package/dist/controls/enforce-points.js +250 -0
- package/dist/controls/enforce-points.js.map +1 -0
- package/dist/controls/enforce-report.d.ts +38 -0
- package/dist/controls/enforce-report.d.ts.map +1 -0
- package/dist/controls/enforce-report.js +179 -0
- package/dist/controls/enforce-report.js.map +1 -0
- package/dist/controls/enforce-summary.d.ts +66 -0
- package/dist/controls/enforce-summary.d.ts.map +1 -0
- package/dist/controls/enforce-summary.js +192 -0
- package/dist/controls/enforce-summary.js.map +1 -0
- package/dist/controls/enforce-tickets.d.ts +47 -0
- package/dist/controls/enforce-tickets.d.ts.map +1 -0
- package/dist/controls/enforce-tickets.js +128 -0
- package/dist/controls/enforce-tickets.js.map +1 -0
- package/dist/controls/enforce-types.d.ts +222 -0
- package/dist/controls/enforce-types.d.ts.map +1 -0
- package/dist/controls/enforce-types.js +19 -0
- package/dist/controls/enforce-types.js.map +1 -0
- package/dist/controls/evidence-binding.d.ts +23 -0
- package/dist/controls/evidence-binding.d.ts.map +1 -0
- package/dist/controls/evidence-binding.js +147 -0
- package/dist/controls/evidence-binding.js.map +1 -0
- package/dist/controls/evidence-document.d.ts +28 -0
- package/dist/controls/evidence-document.d.ts.map +1 -0
- package/dist/controls/evidence-document.js +313 -0
- package/dist/controls/evidence-document.js.map +1 -0
- package/dist/controls/evidence-findings.d.ts +32 -0
- package/dist/controls/evidence-findings.d.ts.map +1 -0
- package/dist/controls/evidence-findings.js +216 -0
- package/dist/controls/evidence-findings.js.map +1 -0
- package/dist/controls/evidence-gather.d.ts +42 -0
- package/dist/controls/evidence-gather.d.ts.map +1 -0
- package/dist/controls/evidence-gather.js +168 -0
- package/dist/controls/evidence-gather.js.map +1 -0
- package/dist/controls/evidence-redact.d.ts +52 -0
- package/dist/controls/evidence-redact.d.ts.map +1 -0
- package/dist/controls/evidence-redact.js +86 -0
- package/dist/controls/evidence-redact.js.map +1 -0
- package/dist/controls/evidence-standing.d.ts +49 -0
- package/dist/controls/evidence-standing.d.ts.map +1 -0
- package/dist/controls/evidence-standing.js +42 -0
- package/dist/controls/evidence-standing.js.map +1 -0
- package/dist/controls/evidence-types.d.ts +305 -0
- package/dist/controls/evidence-types.d.ts.map +1 -0
- package/dist/controls/evidence-types.js +116 -0
- package/dist/controls/evidence-types.js.map +1 -0
- package/dist/controls/evidence-write.d.ts +113 -0
- package/dist/controls/evidence-write.d.ts.map +1 -0
- package/dist/controls/evidence-write.js +325 -0
- package/dist/controls/evidence-write.js.map +1 -0
- package/dist/controls/evidence.d.ts +86 -0
- package/dist/controls/evidence.d.ts.map +1 -0
- package/dist/controls/evidence.js +177 -0
- package/dist/controls/evidence.js.map +1 -0
- package/dist/controls/gates-declaration.d.ts +79 -0
- package/dist/controls/gates-declaration.d.ts.map +1 -0
- package/dist/controls/gates-declaration.js +63 -0
- package/dist/controls/gates-declaration.js.map +1 -0
- package/dist/controls/head-commit.d.ts +7 -0
- package/dist/controls/head-commit.d.ts.map +1 -0
- package/dist/controls/head-commit.js +41 -0
- package/dist/controls/head-commit.js.map +1 -0
- package/dist/controls/merge-protection-read.d.ts +88 -0
- package/dist/controls/merge-protection-read.d.ts.map +1 -0
- package/dist/controls/merge-protection-read.js +228 -0
- package/dist/controls/merge-protection-read.js.map +1 -0
- package/dist/controls/proof-change-rule.d.ts +99 -0
- package/dist/controls/proof-change-rule.d.ts.map +1 -0
- package/dist/controls/proof-change-rule.js +304 -0
- package/dist/controls/proof-change-rule.js.map +1 -0
- package/dist/controls/proof-check-plan.d.ts +77 -0
- package/dist/controls/proof-check-plan.d.ts.map +1 -0
- package/dist/controls/proof-check-plan.js +168 -0
- package/dist/controls/proof-check-plan.js.map +1 -0
- package/dist/controls/proof-check-report.d.ts +24 -0
- package/dist/controls/proof-check-report.d.ts.map +1 -0
- package/dist/controls/proof-check-report.js +113 -0
- package/dist/controls/proof-check-report.js.map +1 -0
- package/dist/controls/proof-check-run.d.ts +53 -0
- package/dist/controls/proof-check-run.d.ts.map +1 -0
- package/dist/controls/proof-check-run.js +258 -0
- package/dist/controls/proof-check-run.js.map +1 -0
- package/dist/controls/proof-check-types.d.ts +116 -0
- package/dist/controls/proof-check-types.d.ts.map +1 -0
- package/dist/controls/proof-check-types.js +68 -0
- package/dist/controls/proof-check-types.js.map +1 -0
- package/dist/controls/proof-check-wording.d.ts +146 -0
- package/dist/controls/proof-check-wording.d.ts.map +1 -0
- package/dist/controls/proof-check-wording.js +211 -0
- package/dist/controls/proof-check-wording.js.map +1 -0
- package/dist/controls/proof-check-workspace.d.ts +53 -0
- package/dist/controls/proof-check-workspace.d.ts.map +1 -0
- package/dist/controls/proof-check-workspace.js +104 -0
- package/dist/controls/proof-check-workspace.js.map +1 -0
- package/dist/controls/proof-copy-files.d.ts +45 -0
- package/dist/controls/proof-copy-files.d.ts.map +1 -0
- package/dist/controls/proof-copy-files.js +184 -0
- package/dist/controls/proof-copy-files.js.map +1 -0
- package/dist/controls/proof-copy-git.d.ts +42 -0
- package/dist/controls/proof-copy-git.d.ts.map +1 -0
- package/dist/controls/proof-copy-git.js +147 -0
- package/dist/controls/proof-copy-git.js.map +1 -0
- package/dist/controls/proof-copy-wording.d.ts +100 -0
- package/dist/controls/proof-copy-wording.d.ts.map +1 -0
- package/dist/controls/proof-copy-wording.js +159 -0
- package/dist/controls/proof-copy-wording.js.map +1 -0
- package/dist/controls/proof-copy-workspace.d.ts +39 -0
- package/dist/controls/proof-copy-workspace.d.ts.map +1 -0
- package/dist/controls/proof-copy-workspace.js +343 -0
- package/dist/controls/proof-copy-workspace.js.map +1 -0
- package/dist/controls/proof-copy.d.ts +77 -0
- package/dist/controls/proof-copy.d.ts.map +1 -0
- package/dist/controls/proof-copy.js +341 -0
- package/dist/controls/proof-copy.js.map +1 -0
- package/dist/controls/proof-half-run.d.ts +34 -0
- package/dist/controls/proof-half-run.d.ts.map +1 -0
- package/dist/controls/proof-half-run.js +229 -0
- package/dist/controls/proof-half-run.js.map +1 -0
- package/dist/controls/proof-halves.d.ts +40 -0
- package/dist/controls/proof-halves.d.ts.map +1 -0
- package/dist/controls/proof-halves.js +142 -0
- package/dist/controls/proof-halves.js.map +1 -0
- package/dist/controls/proof-judgement.d.ts +61 -0
- package/dist/controls/proof-judgement.d.ts.map +1 -0
- package/dist/controls/proof-judgement.js +99 -0
- package/dist/controls/proof-judgement.js.map +1 -0
- package/dist/controls/proof-patch.d.ts +96 -0
- package/dist/controls/proof-patch.d.ts.map +1 -0
- package/dist/controls/proof-patch.js +311 -0
- package/dist/controls/proof-patch.js.map +1 -0
- package/dist/controls/proof-plan.d.ts +69 -0
- package/dist/controls/proof-plan.d.ts.map +1 -0
- package/dist/controls/proof-plan.js +209 -0
- package/dist/controls/proof-plan.js.map +1 -0
- package/dist/controls/proof-preflight.d.ts +50 -0
- package/dist/controls/proof-preflight.d.ts.map +1 -0
- package/dist/controls/proof-preflight.js +69 -0
- package/dist/controls/proof-preflight.js.map +1 -0
- package/dist/controls/proof-report.d.ts +24 -0
- package/dist/controls/proof-report.d.ts.map +1 -0
- package/dist/controls/proof-report.js +69 -0
- package/dist/controls/proof-report.js.map +1 -0
- package/dist/controls/proof-runner.d.ts +39 -0
- package/dist/controls/proof-runner.d.ts.map +1 -0
- package/dist/controls/proof-runner.js +168 -0
- package/dist/controls/proof-runner.js.map +1 -0
- package/dist/controls/proof-task-runners.d.ts +64 -0
- package/dist/controls/proof-task-runners.d.ts.map +1 -0
- package/dist/controls/proof-task-runners.js +343 -0
- package/dist/controls/proof-task-runners.js.map +1 -0
- package/dist/controls/proof-tools.d.ts +38 -0
- package/dist/controls/proof-tools.d.ts.map +1 -0
- package/dist/controls/proof-tools.js +75 -0
- package/dist/controls/proof-tools.js.map +1 -0
- package/dist/controls/proof-types.d.ts +233 -0
- package/dist/controls/proof-types.d.ts.map +1 -0
- package/dist/controls/proof-types.js +101 -0
- package/dist/controls/proof-types.js.map +1 -0
- package/dist/controls/proof-wording.d.ts +111 -0
- package/dist/controls/proof-wording.d.ts.map +1 -0
- package/dist/controls/proof-wording.js +196 -0
- package/dist/controls/proof-wording.js.map +1 -0
- package/dist/controls/proof-workspace.d.ts +64 -0
- package/dist/controls/proof-workspace.d.ts.map +1 -0
- package/dist/controls/proof-workspace.js +127 -0
- package/dist/controls/proof-workspace.js.map +1 -0
- package/dist/controls/protect-apply.d.ts +81 -0
- package/dist/controls/protect-apply.d.ts.map +1 -0
- package/dist/controls/protect-apply.js +250 -0
- package/dist/controls/protect-apply.js.map +1 -0
- package/dist/controls/protect-derive.d.ts +88 -0
- package/dist/controls/protect-derive.d.ts.map +1 -0
- package/dist/controls/protect-derive.js +150 -0
- package/dist/controls/protect-derive.js.map +1 -0
- package/dist/controls/protect-examine.d.ts +32 -0
- package/dist/controls/protect-examine.d.ts.map +1 -0
- package/dist/controls/protect-examine.js +276 -0
- package/dist/controls/protect-examine.js.map +1 -0
- package/dist/controls/protect-handover-file.d.ts +16 -0
- package/dist/controls/protect-handover-file.d.ts.map +1 -0
- package/dist/controls/protect-handover-file.js +73 -0
- package/dist/controls/protect-handover-file.js.map +1 -0
- package/dist/controls/protect-handover.d.ts +35 -0
- package/dist/controls/protect-handover.d.ts.map +1 -0
- package/dist/controls/protect-handover.js +218 -0
- package/dist/controls/protect-handover.js.map +1 -0
- package/dist/controls/protect-held.d.ts +76 -0
- package/dist/controls/protect-held.d.ts.map +1 -0
- package/dist/controls/protect-held.js +186 -0
- package/dist/controls/protect-held.js.map +1 -0
- package/dist/controls/protect-live.d.ts +155 -0
- package/dist/controls/protect-live.d.ts.map +1 -0
- package/dist/controls/protect-live.js +309 -0
- package/dist/controls/protect-live.js.map +1 -0
- package/dist/controls/protect-modules.d.ts +177 -0
- package/dist/controls/protect-modules.d.ts.map +1 -0
- package/dist/controls/protect-modules.js +48 -0
- package/dist/controls/protect-modules.js.map +1 -0
- package/dist/controls/protect-platform.d.ts +63 -0
- package/dist/controls/protect-platform.d.ts.map +1 -0
- package/dist/controls/protect-platform.js +249 -0
- package/dist/controls/protect-platform.js.map +1 -0
- package/dist/controls/protect-prepare.d.ts +64 -0
- package/dist/controls/protect-prepare.d.ts.map +1 -0
- package/dist/controls/protect-prepare.js +64 -0
- package/dist/controls/protect-prepare.js.map +1 -0
- package/dist/controls/protect-reported.d.ts +109 -0
- package/dist/controls/protect-reported.d.ts.map +1 -0
- package/dist/controls/protect-reported.js +281 -0
- package/dist/controls/protect-reported.js.map +1 -0
- package/dist/controls/protect-requests.d.ts +75 -0
- package/dist/controls/protect-requests.d.ts.map +1 -0
- package/dist/controls/protect-requests.js +139 -0
- package/dist/controls/protect-requests.js.map +1 -0
- package/dist/controls/protect-types.d.ts +152 -0
- package/dist/controls/protect-types.d.ts.map +1 -0
- package/dist/controls/protect-types.js +41 -0
- package/dist/controls/protect-types.js.map +1 -0
- package/dist/controls/protect-wording.d.ts +86 -0
- package/dist/controls/protect-wording.d.ts.map +1 -0
- package/dist/controls/protect-wording.js +150 -0
- package/dist/controls/protect-wording.js.map +1 -0
- package/dist/controls/protect.d.ts +20 -0
- package/dist/controls/protect.d.ts.map +1 -0
- package/dist/controls/protect.js +113 -0
- package/dist/controls/protect.js.map +1 -0
- package/dist/controls/pull-request-canaries.d.ts +48 -0
- package/dist/controls/pull-request-canaries.d.ts.map +1 -0
- package/dist/controls/pull-request-canaries.js +266 -0
- package/dist/controls/pull-request-canaries.js.map +1 -0
- package/dist/controls/pull-request-evidence.d.ts +37 -0
- package/dist/controls/pull-request-evidence.d.ts.map +1 -0
- package/dist/controls/pull-request-evidence.js +205 -0
- package/dist/controls/pull-request-evidence.js.map +1 -0
- package/dist/controls/pull-request-executor.d.ts +62 -0
- package/dist/controls/pull-request-executor.d.ts.map +1 -0
- package/dist/controls/pull-request-executor.js +250 -0
- package/dist/controls/pull-request-executor.js.map +1 -0
- package/dist/controls/pull-request-notices.d.ts +27 -0
- package/dist/controls/pull-request-notices.d.ts.map +1 -0
- package/dist/controls/pull-request-notices.js +167 -0
- package/dist/controls/pull-request-notices.js.map +1 -0
- package/dist/controls/pull-request-observe.d.ts +76 -0
- package/dist/controls/pull-request-observe.d.ts.map +1 -0
- package/dist/controls/pull-request-observe.js +172 -0
- package/dist/controls/pull-request-observe.js.map +1 -0
- package/dist/controls/pull-request-points.d.ts +33 -0
- package/dist/controls/pull-request-points.d.ts.map +1 -0
- package/dist/controls/pull-request-points.js +171 -0
- package/dist/controls/pull-request-points.js.map +1 -0
- package/dist/controls/pull-request-settle.d.ts +30 -0
- package/dist/controls/pull-request-settle.d.ts.map +1 -0
- package/dist/controls/pull-request-settle.js +92 -0
- package/dist/controls/pull-request-settle.js.map +1 -0
- package/dist/controls/pull-request-types.d.ts +186 -0
- package/dist/controls/pull-request-types.d.ts.map +1 -0
- package/dist/controls/pull-request-types.js +24 -0
- package/dist/controls/pull-request-types.js.map +1 -0
- package/dist/controls/pull-request-wording.d.ts +89 -0
- package/dist/controls/pull-request-wording.d.ts.map +1 -0
- package/dist/controls/pull-request-wording.js +147 -0
- package/dist/controls/pull-request-wording.js.map +1 -0
- package/dist/controls/question-ids.d.ts +53 -0
- package/dist/controls/question-ids.d.ts.map +1 -0
- package/dist/controls/question-ids.js +91 -0
- package/dist/controls/question-ids.js.map +1 -0
- package/dist/controls/reconcile-audit-findings.d.ts +36 -0
- package/dist/controls/reconcile-audit-findings.d.ts.map +1 -0
- package/dist/controls/reconcile-audit-findings.js +232 -0
- package/dist/controls/reconcile-audit-findings.js.map +1 -0
- package/dist/controls/reconcile-carrier-points.d.ts +23 -0
- package/dist/controls/reconcile-carrier-points.d.ts.map +1 -0
- package/dist/controls/reconcile-carrier-points.js +198 -0
- package/dist/controls/reconcile-carrier-points.js.map +1 -0
- package/dist/controls/reconcile-declared.d.ts +49 -0
- package/dist/controls/reconcile-declared.d.ts.map +1 -0
- package/dist/controls/reconcile-declared.js +75 -0
- package/dist/controls/reconcile-declared.js.map +1 -0
- package/dist/controls/reconcile-executor.d.ts +21 -0
- package/dist/controls/reconcile-executor.d.ts.map +1 -0
- package/dist/controls/reconcile-executor.js +67 -0
- package/dist/controls/reconcile-executor.js.map +1 -0
- package/dist/controls/reconcile-findings.d.ts +18 -0
- package/dist/controls/reconcile-findings.d.ts.map +1 -0
- package/dist/controls/reconcile-findings.js +114 -0
- package/dist/controls/reconcile-findings.js.map +1 -0
- package/dist/controls/reconcile-hook-lines.d.ts +28 -0
- package/dist/controls/reconcile-hook-lines.d.ts.map +1 -0
- package/dist/controls/reconcile-hook-lines.js +191 -0
- package/dist/controls/reconcile-hook-lines.js.map +1 -0
- package/dist/controls/reconcile-hooks.d.ts +22 -0
- package/dist/controls/reconcile-hooks.d.ts.map +1 -0
- package/dist/controls/reconcile-hooks.js +189 -0
- package/dist/controls/reconcile-hooks.js.map +1 -0
- package/dist/controls/reconcile-manager-commands.d.ts +30 -0
- package/dist/controls/reconcile-manager-commands.d.ts.map +1 -0
- package/dist/controls/reconcile-manager-commands.js +246 -0
- package/dist/controls/reconcile-manager-commands.js.map +1 -0
- package/dist/controls/reconcile-platform.d.ts +73 -0
- package/dist/controls/reconcile-platform.d.ts.map +1 -0
- package/dist/controls/reconcile-platform.js +190 -0
- package/dist/controls/reconcile-platform.js.map +1 -0
- package/dist/controls/reconcile-points.d.ts +46 -0
- package/dist/controls/reconcile-points.d.ts.map +1 -0
- package/dist/controls/reconcile-points.js +59 -0
- package/dist/controls/reconcile-points.js.map +1 -0
- package/dist/controls/reconcile-result.d.ts +49 -0
- package/dist/controls/reconcile-result.d.ts.map +1 -0
- package/dist/controls/reconcile-result.js +129 -0
- package/dist/controls/reconcile-result.js.map +1 -0
- package/dist/controls/reconcile-shell-command.d.ts +72 -0
- package/dist/controls/reconcile-shell-command.d.ts.map +1 -0
- package/dist/controls/reconcile-shell-command.js +291 -0
- package/dist/controls/reconcile-shell-command.js.map +1 -0
- package/dist/controls/reconcile-shell-line.d.ts +29 -0
- package/dist/controls/reconcile-shell-line.d.ts.map +1 -0
- package/dist/controls/reconcile-shell-line.js +322 -0
- package/dist/controls/reconcile-shell-line.js.map +1 -0
- package/dist/controls/reconcile-shell-spans.d.ts +73 -0
- package/dist/controls/reconcile-shell-spans.d.ts.map +1 -0
- package/dist/controls/reconcile-shell-spans.js +210 -0
- package/dist/controls/reconcile-shell-spans.js.map +1 -0
- package/dist/controls/reconcile-shell-words.d.ts +72 -0
- package/dist/controls/reconcile-shell-words.d.ts.map +1 -0
- package/dist/controls/reconcile-shell-words.js +126 -0
- package/dist/controls/reconcile-shell-words.js.map +1 -0
- package/dist/controls/reconcile-types.d.ts +192 -0
- package/dist/controls/reconcile-types.d.ts.map +1 -0
- package/dist/controls/reconcile-types.js +44 -0
- package/dist/controls/reconcile-types.js.map +1 -0
- package/dist/controls/reconcile.d.ts +41 -0
- package/dist/controls/reconcile.d.ts.map +1 -0
- package/dist/controls/reconcile.js +215 -0
- package/dist/controls/reconcile.js.map +1 -0
- package/dist/controls/register-drift.d.ts +10 -0
- package/dist/controls/register-drift.d.ts.map +1 -0
- package/dist/controls/register-drift.js +153 -0
- package/dist/controls/register-drift.js.map +1 -0
- package/dist/controls/register-entries.d.ts +26 -0
- package/dist/controls/register-entries.d.ts.map +1 -0
- package/dist/controls/register-entries.js +157 -0
- package/dist/controls/register-entries.js.map +1 -0
- package/dist/controls/register-evidence-rule.d.ts +21 -0
- package/dist/controls/register-evidence-rule.d.ts.map +1 -0
- package/dist/controls/register-evidence-rule.js +59 -0
- package/dist/controls/register-evidence-rule.js.map +1 -0
- package/dist/controls/register-points.d.ts +36 -0
- package/dist/controls/register-points.d.ts.map +1 -0
- package/dist/controls/register-points.js +152 -0
- package/dist/controls/register-points.js.map +1 -0
- package/dist/controls/register-rules.d.ts +45 -0
- package/dist/controls/register-rules.d.ts.map +1 -0
- package/dist/controls/register-rules.js +49 -0
- package/dist/controls/register-rules.js.map +1 -0
- package/dist/controls/register-secrets-rule.d.ts +37 -0
- package/dist/controls/register-secrets-rule.d.ts.map +1 -0
- package/dist/controls/register-secrets-rule.js +41 -0
- package/dist/controls/register-secrets-rule.js.map +1 -0
- package/dist/controls/register-tier-rule.d.ts +48 -0
- package/dist/controls/register-tier-rule.d.ts.map +1 -0
- package/dist/controls/register-tier-rule.js +81 -0
- package/dist/controls/register-tier-rule.js.map +1 -0
- package/dist/controls/register-types.d.ts +227 -0
- package/dist/controls/register-types.d.ts.map +1 -0
- package/dist/controls/register-types.js +68 -0
- package/dist/controls/register-types.js.map +1 -0
- package/dist/controls/register.d.ts +75 -0
- package/dist/controls/register.d.ts.map +1 -0
- package/dist/controls/register.js +154 -0
- package/dist/controls/register.js.map +1 -0
- package/dist/controls/repository-reader.d.ts +33 -0
- package/dist/controls/repository-reader.d.ts.map +1 -0
- package/dist/controls/repository-reader.js +164 -0
- package/dist/controls/repository-reader.js.map +1 -0
- package/dist/controls/secret-scan-json.d.ts +78 -0
- package/dist/controls/secret-scan-json.d.ts.map +1 -0
- package/dist/controls/secret-scan-json.js +257 -0
- package/dist/controls/secret-scan-json.js.map +1 -0
- package/dist/controls/secret-scan.d.ts +62 -0
- package/dist/controls/secret-scan.d.ts.map +1 -0
- package/dist/controls/secret-scan.js +411 -0
- package/dist/controls/secret-scan.js.map +1 -0
- package/dist/controls/secret-shapes.d.ts +95 -0
- package/dist/controls/secret-shapes.d.ts.map +1 -0
- package/dist/controls/secret-shapes.js +167 -0
- package/dist/controls/secret-shapes.js.map +1 -0
- package/dist/controls/threshold-proposal.d.ts +72 -0
- package/dist/controls/threshold-proposal.d.ts.map +1 -0
- package/dist/controls/threshold-proposal.js +82 -0
- package/dist/controls/threshold-proposal.js.map +1 -0
- package/dist/controls/tracker-config.d.ts +22 -0
- package/dist/controls/tracker-config.d.ts.map +1 -0
- package/dist/controls/tracker-config.js +93 -0
- package/dist/controls/tracker-config.js.map +1 -0
- package/dist/controls/tracker-question.d.ts +13 -0
- package/dist/controls/tracker-question.d.ts.map +1 -0
- package/dist/controls/tracker-question.js +46 -0
- package/dist/controls/tracker-question.js.map +1 -0
- package/dist/controls/unenforceable-agents.d.ts +22 -0
- package/dist/controls/unenforceable-agents.d.ts.map +1 -0
- package/dist/controls/unenforceable-agents.js +62 -0
- package/dist/controls/unenforceable-agents.js.map +1 -0
- package/dist/controls/verdict-answers.d.ts +55 -0
- package/dist/controls/verdict-answers.d.ts.map +1 -0
- package/dist/controls/verdict-answers.js +241 -0
- package/dist/controls/verdict-answers.js.map +1 -0
- package/dist/controls/verdict-digest.d.ts +15 -0
- package/dist/controls/verdict-digest.d.ts.map +1 -0
- package/dist/controls/verdict-digest.js +42 -0
- package/dist/controls/verdict-digest.js.map +1 -0
- package/dist/controls/verdict-drift.d.ts +9 -0
- package/dist/controls/verdict-drift.d.ts.map +1 -0
- package/dist/controls/verdict-drift.js +227 -0
- package/dist/controls/verdict-drift.js.map +1 -0
- package/dist/controls/verdict-summary.d.ts +16 -0
- package/dist/controls/verdict-summary.d.ts.map +1 -0
- package/dist/controls/verdict-summary.js +39 -0
- package/dist/controls/verdict-summary.js.map +1 -0
- package/dist/controls/verdict-types.d.ts +111 -0
- package/dist/controls/verdict-types.d.ts.map +1 -0
- package/dist/controls/verdict-types.js +57 -0
- package/dist/controls/verdict-types.js.map +1 -0
- package/dist/controls/verdict-wording.d.ts +81 -0
- package/dist/controls/verdict-wording.d.ts.map +1 -0
- package/dist/controls/verdict-wording.js +146 -0
- package/dist/controls/verdict-wording.js.map +1 -0
- package/dist/controls/verdict.d.ts +43 -0
- package/dist/controls/verdict.d.ts.map +1 -0
- package/dist/controls/verdict.js +260 -0
- package/dist/controls/verdict.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +124 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +13041 -34
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/health/ruleset-inspection.d.ts +40 -6
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +87 -23
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/migrations/ensure-seeded-gates.d.ts +19 -0
- package/dist/migrations/ensure-seeded-gates.d.ts.map +1 -1
- package/dist/migrations/ensure-seeded-gates.js +1 -1
- package/dist/migrations/ensure-seeded-gates.js.map +1 -1
- package/dist/sync/registry.d.ts.map +1 -1
- package/dist/sync/registry.js +2 -0
- package/dist/sync/registry.js.map +1 -1
- package/dist/sync/work-item-estimate-setting.d.ts +3 -0
- package/dist/sync/work-item-estimate-setting.d.ts.map +1 -0
- package/dist/sync/work-item-estimate-setting.js +24 -0
- package/dist/sync/work-item-estimate-setting.js.map +1 -0
- package/package.json +13 -6
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-attest/SKILL.md +531 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-attest/agents/openai.yaml +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-audit/SKILL.md +741 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-audit/agents/openai.yaml +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +546 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/agents/openai.yaml +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-enforce/SKILL.md +473 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-enforce/agents/openai.yaml +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/plugins/lisa/commands/attest.md +7 -0
- package/plugins/lisa/commands/audit.md +7 -0
- package/plugins/lisa/commands/configure.md +7 -0
- package/plugins/lisa/commands/enforce.md +7 -0
- package/plugins/lisa/hooks/threshold-ratchet-compare.mjs +214 -3
- package/plugins/lisa/hooks/threshold-ratchet-families.mjs +166 -0
- package/plugins/lisa/hooks/threshold-ratchet.mjs +12 -1
- package/plugins/lisa/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +18 -0
- package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/lisa/skills/lisa-attest/SKILL.md +529 -0
- package/plugins/lisa/skills/lisa-attest/agents/openai.yaml +4 -0
- package/plugins/lisa/skills/lisa-audit/SKILL.md +739 -0
- package/plugins/lisa/skills/lisa-audit/agents/openai.yaml +4 -0
- package/plugins/lisa/skills/lisa-configure/SKILL.md +544 -0
- package/plugins/lisa/skills/lisa-configure/agents/openai.yaml +4 -0
- package/plugins/lisa/skills/lisa-enforce/SKILL.md +471 -0
- package/plugins/lisa/skills/lisa-enforce/agents/openai.yaml +4 -0
- package/plugins/lisa/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/lisa/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/lisa/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/lisa/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/lisa/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/lisa/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/plugins/lisa-agy/commands/lisa/attest.md +6 -0
- package/plugins/lisa-agy/commands/lisa/audit.md +6 -0
- package/plugins/lisa-agy/commands/lisa/configure.md +6 -0
- package/plugins/lisa-agy/commands/lisa/enforce.md +6 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/lisa-agy/skills/lisa-attest/SKILL.md +529 -0
- package/plugins/lisa-agy/skills/lisa-audit/SKILL.md +739 -0
- package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +544 -0
- package/plugins/lisa-agy/skills/lisa-enforce/SKILL.md +471 -0
- package/plugins/lisa-agy/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/lisa-agy/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/lisa-agy/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/lisa-agy/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/lisa-agy/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/lisa-agy/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/commands/lisa/attest.md +6 -0
- package/plugins/lisa-copilot/commands/lisa/audit.md +6 -0
- package/plugins/lisa-copilot/commands/lisa/configure.md +6 -0
- package/plugins/lisa-copilot/commands/lisa/enforce.md +6 -0
- package/plugins/lisa-copilot/hooks/threshold-ratchet-compare.mjs +214 -3
- package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +166 -0
- package/plugins/lisa-copilot/hooks/threshold-ratchet.mjs +12 -1
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +18 -0
- package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/lisa-copilot/skills/lisa-attest/SKILL.md +529 -0
- package/plugins/lisa-copilot/skills/lisa-audit/SKILL.md +739 -0
- package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +544 -0
- package/plugins/lisa-copilot/skills/lisa-enforce/SKILL.md +471 -0
- package/plugins/lisa-copilot/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/lisa-copilot/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/lisa-copilot/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/lisa-copilot/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/lisa-copilot/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/commands/lisa/attest.md +6 -0
- package/plugins/lisa-cursor/commands/lisa/audit.md +6 -0
- package/plugins/lisa-cursor/commands/lisa/configure.md +6 -0
- package/plugins/lisa-cursor/commands/lisa/enforce.md +6 -0
- package/plugins/lisa-cursor/hooks/threshold-ratchet-compare.mjs +214 -3
- package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +166 -0
- package/plugins/lisa-cursor/hooks/threshold-ratchet.mjs +12 -1
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +18 -0
- package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/lisa-cursor/skills/lisa-attest/SKILL.md +529 -0
- package/plugins/lisa-cursor/skills/lisa-audit/SKILL.md +739 -0
- package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +544 -0
- package/plugins/lisa-cursor/skills/lisa-enforce/SKILL.md +471 -0
- package/plugins/lisa-cursor/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/lisa-cursor/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/lisa-cursor/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/lisa-cursor/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/lisa-cursor/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/threshold-ratchet-compare.mjs +214 -3
- package/plugins/lisa-devin/hooks/threshold-ratchet-families.mjs +166 -0
- package/plugins/lisa-devin/hooks/threshold-ratchet.mjs +12 -1
- package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +18 -0
- package/plugins/lisa-devin/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/lisa-devin/skills/lisa-attest/SKILL.md +529 -0
- package/plugins/lisa-devin/skills/lisa-audit/SKILL.md +739 -0
- package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +544 -0
- package/plugins/lisa-devin/skills/lisa-enforce/SKILL.md +471 -0
- package/plugins/lisa-devin/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/lisa-devin/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/lisa-devin/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/lisa-devin/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/lisa-devin/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/lisa-devin/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/commands/attest.md +7 -0
- package/plugins/src/base/commands/audit.md +7 -0
- package/plugins/src/base/commands/configure.md +7 -0
- package/plugins/src/base/commands/enforce.md +7 -0
- package/plugins/src/base/hooks/threshold-ratchet-compare.mjs +214 -3
- package/plugins/src/base/hooks/threshold-ratchet-families.mjs +166 -0
- package/plugins/src/base/hooks/threshold-ratchet.mjs +12 -1
- package/plugins/src/base/rules/reference/config-resolution.md +1 -0
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +18 -0
- package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +4 -0
- package/plugins/src/base/skills/lisa-attest/SKILL.md +529 -0
- package/plugins/src/base/skills/lisa-audit/SKILL.md +739 -0
- package/plugins/src/base/skills/lisa-configure/SKILL.md +544 -0
- package/plugins/src/base/skills/lisa-enforce/SKILL.md +471 -0
- package/plugins/src/base/skills/lisa-enforce/references/missing-capability-tickets.md +258 -0
- package/plugins/src/base/skills/lisa-enforce/references/pull-request-executor.md +235 -0
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +17 -1
- package/plugins/src/base/skills/lisa-github-write-prd/SKILL.md +40 -12
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +17 -1
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +16 -0
- package/plugins/src/base/skills/lisa-prd-backlink/SKILL.md +171 -1
- package/plugins/src/base/skills/lisa-usage-accounting/SKILL.md +7 -0
- package/plugins/src/base/skills/lisa-usage-accounting/references/estimate.md +71 -0
- package/rails/copy-overwrite/scripts/check-threshold-ratchet.mjs +12 -1
- package/rails/copy-overwrite/scripts/threshold-ratchet-compare.mjs +214 -3
- package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +166 -0
- package/schemas/control-evidence.schema.json +527 -0
- package/schemas/control-register.schema.json +336 -0
- package/schemas/control-verdict.schema.json +292 -0
- package/scripts/check-control-command-parity.mjs +94 -0
- package/scripts/check-derived-artifacts.mjs +51 -3
- package/scripts/check-generated-artifact-merge-coverage.mjs +7 -0
- package/scripts/check-plugins-sync.sh +25 -0
- package/scripts/check-release-commit-listed.mjs +80 -0
- package/scripts/generate-readiness-questionnaire.mjs +410 -0
- package/scripts/generate-upstream-evidence-manifest.mjs +69 -6
- package/scripts/lib/control-command-parity.mjs +865 -0
- package/scripts/lib/phrase-tests/redact.mjs +10 -2
- package/scripts/lib/upstream-manifest-staleness.mjs +1 -1
- package/scripts/lib/upstream-public-commits.mjs +94 -0
- package/scripts/lisa-estimate.mjs +9 -0
- package/scripts/two-channel-couplings.json +1 -1
- package/spec/tasc-criteria.json +853 -0
- package/spec/tasc-criteria.schema.json +212 -0
- package/typescript/copy-overwrite/.prettierignore +5 -0
- package/typescript/copy-overwrite/scripts/check-threshold-ratchet.mjs +12 -1
- package/typescript/copy-overwrite/scripts/threshold-ratchet-compare.mjs +214 -3
- package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +166 -0
|
@@ -117,6 +117,9 @@ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
|
117
117
|
*/
|
|
118
118
|
const PACKAGE_MANIFEST = "package.json";
|
|
119
119
|
|
|
120
|
+
/** The file the gates are declared in, as `readGates` names it to a person. */
|
|
121
|
+
const CONFIG_FILE = ".lisa.config.json";
|
|
122
|
+
|
|
120
123
|
/** Enforcement levels a moment may carry. */
|
|
121
124
|
export const LEVELS = ["required", "optional", "off"];
|
|
122
125
|
|
|
@@ -301,8 +304,23 @@ export const STATE_FAMILIES = [CONTINUOUS];
|
|
|
301
304
|
* removed in CodySwannGT/lisa#4794, and the key itself in
|
|
302
305
|
* CodySwannGT/lisa#4899, after no Lisa-managed host was found declaring it, so
|
|
303
306
|
* a leftover declaration is now refused like any other unknown key.
|
|
304
|
-
|
|
305
|
-
|
|
307
|
+
*
|
|
308
|
+
* `criteria`, `owner`, `tier` and `parts` are the control keys: which
|
|
309
|
+
* requirements the gate serves, who answers for it, whether the author of a
|
|
310
|
+
* change can get around it, and — for a repository with more than one part —
|
|
311
|
+
* the folder and command that prove it in each. They are read by the control
|
|
312
|
+
* register, and only `parts` changes what a moment resolves to; see
|
|
313
|
+
* {@link PART_FIELDS}.
|
|
314
|
+
*/
|
|
315
|
+
export const GATE_FIELDS = new Set([
|
|
316
|
+
"run",
|
|
317
|
+
"needs",
|
|
318
|
+
"task",
|
|
319
|
+
"criteria",
|
|
320
|
+
"owner",
|
|
321
|
+
"tier",
|
|
322
|
+
"parts",
|
|
323
|
+
]);
|
|
306
324
|
|
|
307
325
|
/**
|
|
308
326
|
* The per-moment field saying how this gate's prover prints a MEASURED failure.
|
|
@@ -450,6 +468,156 @@ export const CALLER_CHAIN_FIELD = "caller_chain";
|
|
|
450
468
|
/** Prefix marking a gate, or a config key, that this project invented. */
|
|
451
469
|
export const CUSTOM_PREFIX = "x-";
|
|
452
470
|
|
|
471
|
+
/**
|
|
472
|
+
* The enforcement tiers a gate may declare.
|
|
473
|
+
*
|
|
474
|
+
* `authoritative` is enforced where the author of a change cannot get around
|
|
475
|
+
* it; `advisory` is feedback the author can bypass. Recorded for the control
|
|
476
|
+
* register and never read by resolution — whether a failing gate stops a
|
|
477
|
+
* change at a given moment is still that moment's `level`.
|
|
478
|
+
*/
|
|
479
|
+
export const TIERS = Object.freeze(["authoritative", "advisory"]);
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* How a criterion id is written: `AC5.4`, `SI2`, `DP1`, `UX3`.
|
|
483
|
+
*
|
|
484
|
+
* A gate's `criteria` names the requirements it serves by their ids in the
|
|
485
|
+
* criterion catalogue (`spec/tasc-criteria.json` in Lisa). This registry ships
|
|
486
|
+
* to repositories that do not carry that catalogue, so it checks how an id is
|
|
487
|
+
* WRITTEN and nothing else; whether the id exists is checked where the
|
|
488
|
+
* catalogue is in reach, when the control register is generated. A test holds
|
|
489
|
+
* this pattern to every id the catalogue contains.
|
|
490
|
+
*/
|
|
491
|
+
export const CRITERION_ID_PATTERN =
|
|
492
|
+
/^(?:AC[1-9]\d*\.[1-9]\d*|(?:SI|DP|UX)[1-9]\d*)$/;
|
|
493
|
+
|
|
494
|
+
/** The `scope` that means the whole repository rather than one folder. */
|
|
495
|
+
export const WHOLE_REPOSITORY = ".";
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* The folder a part's paired-proof patch files live under, written from the
|
|
499
|
+
* repository root.
|
|
500
|
+
*
|
|
501
|
+
* A proof is a pair of small changes — one that breaks the rule, one that does
|
|
502
|
+
* not — applied to a disposable copy of the repository to see the gate refuse
|
|
503
|
+
* the first and accept the second. Confining both to one known folder means
|
|
504
|
+
* the step that applies them never reads a path a declaration merely names.
|
|
505
|
+
*/
|
|
506
|
+
export const PROOF_DIRECTORY = ".lisa/controls/proofs/";
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* The keys one entry of a gate's `parts` may carry.
|
|
510
|
+
*
|
|
511
|
+
* - `scope` — the folder this part covers, written from the repository root,
|
|
512
|
+
* or {@link WHOLE_REPOSITORY}. Required.
|
|
513
|
+
* - `command` — what checks it, as an ARGUMENT LIST: one item per argument,
|
|
514
|
+
* the program first. Required. Never a single string, because the command is
|
|
515
|
+
* started directly and a string is what a shell would have to split.
|
|
516
|
+
* - `parameters` — named settings of the check, each `{ value, direction }`;
|
|
517
|
+
* see {@link PARAMETER_FIELDS}. Optional.
|
|
518
|
+
* - `proof` — the paired proof; see {@link PROOF_FIELDS}. Optional, because a
|
|
519
|
+
* part is declared before its proof is written and a part without one is
|
|
520
|
+
* reported as unproved rather than refused.
|
|
521
|
+
* - `evidence` — what supports declaring this part at all; see
|
|
522
|
+
* {@link PART_EVIDENCE_FIELDS}. Optional HERE, because the commands that run a
|
|
523
|
+
* part never read it. The control register is where a part without it is
|
|
524
|
+
* refused.
|
|
525
|
+
*
|
|
526
|
+
* ## A key that is not on this list is REFUSED
|
|
527
|
+
*
|
|
528
|
+
* That is a decision, and the alternative — passing an unknown key through —
|
|
529
|
+
* was weighed. A part is read by several tools that never see each other: the
|
|
530
|
+
* runner reads `scope` and `command`, the register reads all of it, the
|
|
531
|
+
* threshold check reads `parameters`. A misspelt `paramaters` passed through
|
|
532
|
+
* would be a threshold nothing holds, and a misspelt `proof` a control nothing
|
|
533
|
+
* proves, with every tool reporting the declaration as valid. Refusing is the
|
|
534
|
+
* same rule `GATE_FIELDS` applies one level up, for the same reason.
|
|
535
|
+
*
|
|
536
|
+
* Two consequences follow, and both are intended:
|
|
537
|
+
*
|
|
538
|
+
* - **A new key is added HERE, with its validator in `validatePart`**, in the
|
|
539
|
+
* change that introduces its reader. Until then it is a typo by definition.
|
|
540
|
+
* - **A project's own key passes through untouched when it starts with
|
|
541
|
+
* {@link CUSTOM_PREFIX}** — the marker this file already uses for anything a
|
|
542
|
+
* project invented. Lisa reads none of them and refuses none of them.
|
|
543
|
+
*
|
|
544
|
+
* The same rule applies inside `proof` and inside each parameter.
|
|
545
|
+
*/
|
|
546
|
+
export const PART_FIELDS = Object.freeze([
|
|
547
|
+
"scope",
|
|
548
|
+
"command",
|
|
549
|
+
"parameters",
|
|
550
|
+
"proof",
|
|
551
|
+
"evidence",
|
|
552
|
+
]);
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* The keys a part's `evidence` may carry. At least one of them is present.
|
|
556
|
+
*
|
|
557
|
+
* A part is declared because something supports it: the audit found the check
|
|
558
|
+
* in the repository, or a person answered a question the audit asked. This is
|
|
559
|
+
* where the declaration says which, so that a control nobody evidenced cannot
|
|
560
|
+
* be written down as if it had been.
|
|
561
|
+
*
|
|
562
|
+
* - `locators` — where the audit found the check: a non-empty list of places,
|
|
563
|
+
* each written as {@link PART_EVIDENCE_LOCATOR_FIELDS}, copied from the audit
|
|
564
|
+
* report's findings.
|
|
565
|
+
* - `questions` — the ids of the audit questions a person answered: a
|
|
566
|
+
* non-empty list of ids, each written exactly as the audit report writes it.
|
|
567
|
+
*
|
|
568
|
+
* Only how each is WRITTEN is checked here. Whether a place is one the audit
|
|
569
|
+
* reported, and whether a question has been answered, are facts about the
|
|
570
|
+
* audit report, which this registry never reads; `lisa controls
|
|
571
|
+
* declaration-check` holds the declaration to the report.
|
|
572
|
+
*/
|
|
573
|
+
export const PART_EVIDENCE_FIELDS = Object.freeze(["locators", "questions"]);
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* The keys one place in a part's `evidence.locators` carries. Both are
|
|
577
|
+
* required: `path`, a file written from the repository root, and `line`,
|
|
578
|
+
* counted from 1. It is the audit report's own locator, so one can be copied
|
|
579
|
+
* from a finding without rewriting it.
|
|
580
|
+
*/
|
|
581
|
+
export const PART_EVIDENCE_LOCATOR_FIELDS = Object.freeze(["path", "line"]);
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* The keys a part's `proof` may carry. All are optional.
|
|
585
|
+
*
|
|
586
|
+
* - `violation` and `clean` — the two halves of the paired proof, each the
|
|
587
|
+
* path of a patch file under {@link PROOF_DIRECTORY}.
|
|
588
|
+
* - `failure_shape` — literal strings the command prints when it measures the
|
|
589
|
+
* property and finds it wanting; the same meaning, and the same rules, as
|
|
590
|
+
* the per-moment {@link FAILURE_SHAPE_FIELD}.
|
|
591
|
+
* - `timeout_seconds` — how long one half of the proof may run.
|
|
592
|
+
* - `external_effects` — plain-language statements of anything the proof does
|
|
593
|
+
* outside the repository, each quoted to the operator who must allow it. An
|
|
594
|
+
* empty list says it has none.
|
|
595
|
+
*/
|
|
596
|
+
export const PROOF_FIELDS = Object.freeze([
|
|
597
|
+
"violation",
|
|
598
|
+
"clean",
|
|
599
|
+
FAILURE_SHAPE_FIELD,
|
|
600
|
+
"timeout_seconds",
|
|
601
|
+
"external_effects",
|
|
602
|
+
]);
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* The keys one named parameter of a part may carry.
|
|
606
|
+
*
|
|
607
|
+
* `value` is required: a number, text, or true or false. `direction` is
|
|
608
|
+
* optional and marks a number as a threshold — see
|
|
609
|
+
* {@link PARAMETER_DIRECTIONS}.
|
|
610
|
+
*/
|
|
611
|
+
export const PARAMETER_FIELDS = Object.freeze(["value", "direction"]);
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Which way a threshold parameter is allowed to move.
|
|
615
|
+
*
|
|
616
|
+
* A `floor` may rise and never fall (a minimum coverage percentage); a
|
|
617
|
+
* `ceiling` may fall and never rise (a maximum number of warnings).
|
|
618
|
+
*/
|
|
619
|
+
export const PARAMETER_DIRECTIONS = Object.freeze(["floor", "ceiling"]);
|
|
620
|
+
|
|
453
621
|
/**
|
|
454
622
|
* `needs.deps: false`, named once.
|
|
455
623
|
*
|
|
@@ -3386,6 +3554,24 @@ export function isRunner(value) {
|
|
|
3386
3554
|
return Boolean(head) && !NO_OP_RUNNERS.has(head);
|
|
3387
3555
|
}
|
|
3388
3556
|
|
|
3557
|
+
/**
|
|
3558
|
+
* What a parsed JSON value is, in the words an operator would use for it.
|
|
3559
|
+
*
|
|
3560
|
+
* `typeof` calls a list and `null` both "object", which is the one word that
|
|
3561
|
+
* would mislead here: the sentence this finishes is telling someone their
|
|
3562
|
+
* file is NOT an object.
|
|
3563
|
+
* @param {unknown} value A value `JSON.parse` returned.
|
|
3564
|
+
* @returns {string} What it is, for the middle of a sentence.
|
|
3565
|
+
*/
|
|
3566
|
+
function jsonKind(value) {
|
|
3567
|
+
if (value === null) return "null";
|
|
3568
|
+
if (Array.isArray(value)) return "a list";
|
|
3569
|
+
if (typeof value === "string") return "text";
|
|
3570
|
+
if (typeof value === "number") return "a number";
|
|
3571
|
+
if (typeof value === "boolean") return "true or false";
|
|
3572
|
+
return "an object";
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3389
3575
|
/**
|
|
3390
3576
|
* Read the config, splitting the runner out of the gates block.
|
|
3391
3577
|
*
|
|
@@ -3398,12 +3584,24 @@ export function isRunner(value) {
|
|
|
3398
3584
|
* `gates."unproven" is not a gate Lisa knows` — a BLOCKING problem — so a
|
|
3399
3585
|
* project that set the control would have `validate` refuse it and get no
|
|
3400
3586
|
* enforcement either.
|
|
3587
|
+
*
|
|
3588
|
+
* Refuses a file that is valid JSON and is not a configuration, for the same
|
|
3589
|
+
* reason. The file holds one JSON object, and so does its `gates` key. A
|
|
3590
|
+
* list, a number or `null` in either place parses without complaint, and
|
|
3591
|
+
* read loosely it is a project that declares no gates: `[]` has no `gates`
|
|
3592
|
+
* key, and spreading a list or a number yields no gate. Every reader then
|
|
3593
|
+
* reports "nothing declared" about a file somebody damaged — the runner lets
|
|
3594
|
+
* the commit through, and the register is rewritten empty. `"gates": null`
|
|
3595
|
+
* and a missing key stay what they have always been, a project that declares
|
|
3596
|
+
* none.
|
|
3401
3597
|
* @param {string} [cwd] Directory to look in.
|
|
3402
3598
|
* @returns {{runner: string, unproven: string, gates: object, policy: object, config: object}} Parsed config.
|
|
3403
|
-
* @throws {Error} When
|
|
3599
|
+
* @throws {Error} When the file or its `gates` key is not a JSON object,
|
|
3600
|
+
* `gates.runner` is not a runner, or `gates.unproven` is not a permitted
|
|
3601
|
+
* response.
|
|
3404
3602
|
*/
|
|
3405
3603
|
export function readGates(cwd = process.cwd()) {
|
|
3406
|
-
const path = join(cwd,
|
|
3604
|
+
const path = join(cwd, CONFIG_FILE);
|
|
3407
3605
|
if (!existsSync(path)) {
|
|
3408
3606
|
return {
|
|
3409
3607
|
runner: DEFAULT_RUNNER,
|
|
@@ -3417,7 +3615,21 @@ export function readGates(cwd = process.cwd()) {
|
|
|
3417
3615
|
try {
|
|
3418
3616
|
config = JSON.parse(readFileSync(path, "utf8"));
|
|
3419
3617
|
} catch (err) {
|
|
3420
|
-
throw new Error(
|
|
3618
|
+
throw new Error(`${CONFIG_FILE} is not readable: ${err.message}`);
|
|
3619
|
+
}
|
|
3620
|
+
if (!isKeyed(config)) {
|
|
3621
|
+
throw new Error(
|
|
3622
|
+
`${CONFIG_FILE} holds ${jsonKind(config)}. It has to hold one JSON ` +
|
|
3623
|
+
`object: { ... }. Nothing was read from it.`
|
|
3624
|
+
);
|
|
3625
|
+
}
|
|
3626
|
+
const declaredGates = config.gates ?? null;
|
|
3627
|
+
if (declaredGates !== null && !isKeyed(declaredGates)) {
|
|
3628
|
+
throw new Error(
|
|
3629
|
+
`"gates" in ${CONFIG_FILE} is ${jsonKind(declaredGates)}. It has to ` +
|
|
3630
|
+
`be one JSON object holding a gate per key: { ... }. No gate was ` +
|
|
3631
|
+
`read from it.`
|
|
3632
|
+
);
|
|
3421
3633
|
}
|
|
3422
3634
|
const {
|
|
3423
3635
|
runner: declared,
|
|
@@ -3939,7 +4151,7 @@ export function classifyDeclaredExecutors({
|
|
|
3939
4151
|
* One declaration's verdict, or null when it is plainly executable.
|
|
3940
4152
|
* @param {object} options The declaration.
|
|
3941
4153
|
* @param {string} options.gate Gate id.
|
|
3942
|
-
* @param {
|
|
4154
|
+
* @param {Record<string, unknown>} options.block The gate's block.
|
|
3943
4155
|
* @param {string} options.moment Declared moment.
|
|
3944
4156
|
* @param {string} options.level Declared level.
|
|
3945
4157
|
* @param {Record<string, string>|null|undefined} options.scripts Project scripts.
|
|
@@ -4017,6 +4229,12 @@ function verdictFor({
|
|
|
4017
4229
|
// reproducing its task precedence here is how a new execution mode can be
|
|
4018
4230
|
// mistaken for a missing package script.
|
|
4019
4231
|
if (scripts === null || scripts === undefined) return null;
|
|
4232
|
+
// A gate with parts carries its own command for each part, so "does this
|
|
4233
|
+
// project have the script" is not a question it can fail: no script is
|
|
4234
|
+
// looked up. Whether those commands are well-formed is `validateGates`'
|
|
4235
|
+
// question and is answered there — asking the resolver here as well would
|
|
4236
|
+
// throw on a malformed part and replace that answer with a stack trace.
|
|
4237
|
+
if (block.parts !== undefined) return null;
|
|
4020
4238
|
const [resolved] = resolveMoment({
|
|
4021
4239
|
gates: { [gate]: block },
|
|
4022
4240
|
moment,
|
|
@@ -4045,10 +4263,44 @@ function verdictFor({
|
|
|
4045
4263
|
* A resolver that only looks at `gate[moment]` can make a typo'd config key look
|
|
4046
4264
|
* like a truthful absence at that moment. Validation is therefore part of
|
|
4047
4265
|
* resolution, not just the standalone `validate` command.
|
|
4266
|
+
*
|
|
4267
|
+
* Malformed `parts` are refused in the same breath, for a stronger reason. A
|
|
4268
|
+
* resolved part carries the argument list a runner starts as a process and
|
|
4269
|
+
* the folder it starts it in. Every other field of a resolved entry describes
|
|
4270
|
+
* what to run; these two ARE what runs, so resolution never hands out one that
|
|
4271
|
+
* `validateGates` would have refused — a command still written as a string, a
|
|
4272
|
+
* scope that climbs out of the repository. Checking it here rather than
|
|
4273
|
+
* trusting that `validate` ran first is what lets a runner treat `argv` and
|
|
4274
|
+
* `scope` as already checked.
|
|
4275
|
+
*
|
|
4276
|
+
* Both kinds of problem are thrown together, so an operator fixing a block
|
|
4277
|
+
* the resolver refuses sees all of them in one run. The parts check costs
|
|
4278
|
+
* nothing for a block with no `parts`: `validateParts` returns at its first
|
|
4279
|
+
* line for every gate that does not declare the key.
|
|
4280
|
+
*
|
|
4281
|
+
* The parts are checked as the block reads AT THE MOMENT BEING RESOLVED,
|
|
4282
|
+
* through `declarationsAt`, for the reason the gate runner narrows its own
|
|
4283
|
+
* validity check that way. One of the parts rules is about a single moment:
|
|
4284
|
+
* a `run` or an `await` written on one moment of a gate that has parts. That
|
|
4285
|
+
* is a real problem at that moment, and no reason to refuse every other one —
|
|
4286
|
+
* the runner had already said "this run continued" about it, and then
|
|
4287
|
+
* stopped here with a crash. Everything about a part itself (its scope, its
|
|
4288
|
+
* command, its proof) and a task named for the whole gate sit on the gate,
|
|
4289
|
+
* survive the narrowing, and are refused at every moment as before.
|
|
4290
|
+
* `validate` reads the whole block and still lists the problem.
|
|
4291
|
+
*
|
|
4292
|
+
* The moment-key check reads the whole block on purpose. A misspelt moment
|
|
4293
|
+
* is a problem at no moment in particular, so no narrowing may drop it.
|
|
4048
4294
|
* @param {object} gates The gates block.
|
|
4295
|
+
* @param {string} moment The moment being resolved.
|
|
4049
4296
|
*/
|
|
4050
|
-
function
|
|
4051
|
-
const problems =
|
|
4297
|
+
function assertResolvable(gates, moment) {
|
|
4298
|
+
const problems = [
|
|
4299
|
+
...validateGateMomentKeys(gates),
|
|
4300
|
+
...Object.entries(declarationsAt({ gates, moment })).flatMap(
|
|
4301
|
+
([id, gate]) => (isKeyed(gate) ? validateParts(id, gate) : [])
|
|
4302
|
+
),
|
|
4303
|
+
];
|
|
4052
4304
|
if (!problems.length) return;
|
|
4053
4305
|
throw new Error(
|
|
4054
4306
|
`Invalid gates configuration:\n${problems
|
|
@@ -4084,7 +4336,7 @@ function validateGateMomentKeys(gates) {
|
|
|
4084
4336
|
/**
|
|
4085
4337
|
* Validate one gate entry.
|
|
4086
4338
|
* @param {string} id Gate id.
|
|
4087
|
-
* @param {
|
|
4339
|
+
* @param {Record<string, any>} gate The entry.
|
|
4088
4340
|
* @returns {string[]} Problems.
|
|
4089
4341
|
*/
|
|
4090
4342
|
function validateGate(id, gate) {
|
|
@@ -4122,6 +4374,10 @@ function validateGate(id, gate) {
|
|
|
4122
4374
|
);
|
|
4123
4375
|
}
|
|
4124
4376
|
problems.push(...validateNeeds(id, gate));
|
|
4377
|
+
problems.push(...validateCriteria(id, gate.criteria));
|
|
4378
|
+
problems.push(...validateOwner(id, gate.owner));
|
|
4379
|
+
problems.push(...validateTier(id, gate.tier));
|
|
4380
|
+
problems.push(...validateParts(id, gate));
|
|
4125
4381
|
|
|
4126
4382
|
for (const [moment, value] of Object.entries(gate)) {
|
|
4127
4383
|
// A key that is neither a known field nor a well-formed moment is a typo,
|
|
@@ -4171,7 +4427,16 @@ function validateGate(id, gate) {
|
|
|
4171
4427
|
continue;
|
|
4172
4428
|
}
|
|
4173
4429
|
problems.push(
|
|
4174
|
-
...validateMoment(
|
|
4430
|
+
...validateMoment(
|
|
4431
|
+
id,
|
|
4432
|
+
moment,
|
|
4433
|
+
value,
|
|
4434
|
+
known,
|
|
4435
|
+
interceptor,
|
|
4436
|
+
// Either one is a prover named once for every moment of the gate: a
|
|
4437
|
+
// task, or a command per part.
|
|
4438
|
+
Boolean(gate.run) || gate.parts !== undefined
|
|
4439
|
+
)
|
|
4175
4440
|
);
|
|
4176
4441
|
}
|
|
4177
4442
|
return problems;
|
|
@@ -4190,14 +4455,17 @@ function validateGate(id, gate) {
|
|
|
4190
4455
|
* contained in every line, so every unrecognised failure would report FAILED
|
|
4191
4456
|
* against whichever gate declared it. That is this mechanism's own inverse
|
|
4192
4457
|
* defect, and shipping it by accident is one keystroke away.
|
|
4193
|
-
*
|
|
4194
|
-
*
|
|
4458
|
+
*
|
|
4459
|
+
* One validator for both places a shape is declared — on a moment, and in a
|
|
4460
|
+
* part's `proof` — because both are read the same way against the same kind
|
|
4461
|
+
* of transcript, so a value refused in one must be refused in the other.
|
|
4462
|
+
* @param {string} where The key being validated, as an operator would find
|
|
4463
|
+
* it: `gates."<id>"."<moment>".failure_shape`, or the same key in a proof.
|
|
4195
4464
|
* @param {*} shape The declared value, if any.
|
|
4196
4465
|
* @returns {string[]} Problems.
|
|
4197
4466
|
*/
|
|
4198
|
-
function validateFailureShape(
|
|
4467
|
+
function validateFailureShape(where, shape) {
|
|
4199
4468
|
if (shape === undefined) return [];
|
|
4200
|
-
const where = `gates."${id}"."${moment}".${FAILURE_SHAPE_FIELD}`;
|
|
4201
4469
|
if (!Array.isArray(shape)) {
|
|
4202
4470
|
return [
|
|
4203
4471
|
`${where} is ${JSON.stringify(shape)}; expected a list of literal ` +
|
|
@@ -4256,6 +4524,213 @@ function validateCacheFlag(id, moment, value) {
|
|
|
4256
4524
|
];
|
|
4257
4525
|
}
|
|
4258
4526
|
|
|
4527
|
+
/**
|
|
4528
|
+
* The pull-request moment's field naming the file that runs the gates on the
|
|
4529
|
+
* platform hosting the repository (CodySwannGT/lisa#4991).
|
|
4530
|
+
*
|
|
4531
|
+
* Lisa ships that file for one platform, {@link LISA_EXECUTOR_PLATFORM}. On
|
|
4532
|
+
* any other the host's agent writes it, and this is where the declaration
|
|
4533
|
+
* says so: `"pull-request": { "level": "required", "executor": { "platform":
|
|
4534
|
+
* "gitlab", "path": ".gitlab-ci.yml" } }`. The control register records it on
|
|
4535
|
+
* the entry's pull-request enforcement point, and reads an entry whose
|
|
4536
|
+
* executor Lisa did not write as unproved until a proof is on record.
|
|
4537
|
+
*
|
|
4538
|
+
* Nothing here runs the file or reads it, and the key changes nothing about
|
|
4539
|
+
* what the moment resolves to. It sits on the MOMENT entry, where an older
|
|
4540
|
+
* Lisa ignores a key it does not know; a gate-level key would make an older
|
|
4541
|
+
* Lisa refuse the whole gates block.
|
|
4542
|
+
*/
|
|
4543
|
+
export const EXECUTOR_FIELD = "executor";
|
|
4544
|
+
|
|
4545
|
+
/**
|
|
4546
|
+
* The keys Lisa reads in an `executor`: the hosting platform's name, and the
|
|
4547
|
+
* file, written from the repository root. Closed the way {@link PART_FIELDS}
|
|
4548
|
+
* is: any other key is refused unless it starts with {@link CUSTOM_PREFIX}.
|
|
4549
|
+
*/
|
|
4550
|
+
export const EXECUTOR_FIELDS = Object.freeze(["platform", "path"]);
|
|
4551
|
+
|
|
4552
|
+
/** The one hosting platform Lisa ships the pull-request executor for. */
|
|
4553
|
+
export const LISA_EXECUTOR_PLATFORM = "github";
|
|
4554
|
+
|
|
4555
|
+
/**
|
|
4556
|
+
* How a platform is named: lower-case letters and digits, in words joined by
|
|
4557
|
+
* single hyphens. One spelling, so `GitHub` cannot be read as a platform
|
|
4558
|
+
* other than `github`.
|
|
4559
|
+
*/
|
|
4560
|
+
const EXECUTOR_PLATFORM_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;
|
|
4561
|
+
|
|
4562
|
+
/**
|
|
4563
|
+
* Validate the hosting platform an executor names.
|
|
4564
|
+
* @param {string} where The key being validated.
|
|
4565
|
+
* @param {*} platform The declared value.
|
|
4566
|
+
* @returns {string[]} Problems.
|
|
4567
|
+
*/
|
|
4568
|
+
function validateExecutorPlatform(where, platform) {
|
|
4569
|
+
if (
|
|
4570
|
+
typeof platform === "string" &&
|
|
4571
|
+
EXECUTOR_PLATFORM_PATTERN.test(platform)
|
|
4572
|
+
) {
|
|
4573
|
+
return [];
|
|
4574
|
+
}
|
|
4575
|
+
return [
|
|
4576
|
+
`${where} is ${JSON.stringify(platform)}; expected the name of the ` +
|
|
4577
|
+
`platform that hosts the repository, in lower-case letters and ` +
|
|
4578
|
+
`digits with hyphens between words: "${LISA_EXECUTOR_PLATFORM}" for ` +
|
|
4579
|
+
`the one platform Lisa ships this file for, or the platform's own ` +
|
|
4580
|
+
`name for any other, for example "gitlab" or "azure-devops".`,
|
|
4581
|
+
];
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Validate the file an executor names.
|
|
4586
|
+
*
|
|
4587
|
+
* Only the path is checked. Whether the file exists is a fact about a
|
|
4588
|
+
* checkout, not about a declaration.
|
|
4589
|
+
* @param {string} where The key being validated.
|
|
4590
|
+
* @param {*} file The declared value.
|
|
4591
|
+
* @returns {string[]} Problems.
|
|
4592
|
+
*/
|
|
4593
|
+
function validateExecutorPath(where, file) {
|
|
4594
|
+
const advice =
|
|
4595
|
+
`Write the file from the repository root: for example ` +
|
|
4596
|
+
`".gitlab-ci.yml" or "ci/pull-request.yml".`;
|
|
4597
|
+
if (file === undefined) return [`${where} is missing. ${advice}`];
|
|
4598
|
+
if (typeof file !== "string" || file.trim() === "") {
|
|
4599
|
+
return [
|
|
4600
|
+
`${where} is ${JSON.stringify(file)}; expected the path of the file ` +
|
|
4601
|
+
`that runs the gates on a pull request. ${advice}`,
|
|
4602
|
+
];
|
|
4603
|
+
}
|
|
4604
|
+
if (file === WHOLE_REPOSITORY) {
|
|
4605
|
+
return [
|
|
4606
|
+
`${where} is ${JSON.stringify(file)}, which names the repository ` +
|
|
4607
|
+
`itself rather than a file in it. ${advice}`,
|
|
4608
|
+
];
|
|
4609
|
+
}
|
|
4610
|
+
const problem = repositoryPathProblem(file);
|
|
4611
|
+
return problem === null
|
|
4612
|
+
? []
|
|
4613
|
+
: [`${where} is ${JSON.stringify(file)}, which ${problem}. ${advice}`];
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* Validate the executor a moment names.
|
|
4618
|
+
* @param {string} id Gate id.
|
|
4619
|
+
* @param {string} moment Moment key.
|
|
4620
|
+
* @param {*} executor The declared value, if any.
|
|
4621
|
+
* @returns {string[]} Problems.
|
|
4622
|
+
*/
|
|
4623
|
+
function validateExecutor(id, moment, executor) {
|
|
4624
|
+
if (executor === undefined) return [];
|
|
4625
|
+
const where = `gates."${id}"."${moment}".${EXECUTOR_FIELD}`;
|
|
4626
|
+
if (moment !== PULL_REQUEST) {
|
|
4627
|
+
return [
|
|
4628
|
+
`${where} names a file that runs the gates, but only the ` +
|
|
4629
|
+
`"${PULL_REQUEST}" moment has one: it is the pipeline file the ` +
|
|
4630
|
+
`hosting platform runs on a pull request. Move it to ` +
|
|
4631
|
+
`gates."${id}"."${PULL_REQUEST}", or remove it.`,
|
|
4632
|
+
];
|
|
4633
|
+
}
|
|
4634
|
+
if (!isKeyed(executor)) {
|
|
4635
|
+
return [
|
|
4636
|
+
`${where} is ${JSON.stringify(executor)}; expected an object naming ` +
|
|
4637
|
+
`the hosting platform and the file that runs the gates there, for ` +
|
|
4638
|
+
`example { "platform": "gitlab", "path": ".gitlab-ci.yml" }.`,
|
|
4639
|
+
];
|
|
4640
|
+
}
|
|
4641
|
+
return [
|
|
4642
|
+
...unknownKeyProblems(where, executor, EXECUTOR_FIELDS),
|
|
4643
|
+
...validateExecutorPlatform(`${where}.platform`, executor.platform),
|
|
4644
|
+
...validateExecutorPath(`${where}.path`, executor.path),
|
|
4645
|
+
];
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
/**
|
|
4649
|
+
* The moment field naming the coding agents a rule cannot be enforced on at
|
|
4650
|
+
* that moment (CodySwannGT/lisa#4990).
|
|
4651
|
+
*
|
|
4652
|
+
* A check declared at an agent moment runs because the agent's own hook calls
|
|
4653
|
+
* the gate runner. Some agents have no hook that can refuse what they just
|
|
4654
|
+
* did, so on those nothing calls it, and that has to be written down rather
|
|
4655
|
+
* than left for a reader to work out: `"post-tool": { "level": "required",
|
|
4656
|
+
* "unenforceable_on": ["agy"] }`. The control register records the list on
|
|
4657
|
+
* the entry's enforcement point at that moment.
|
|
4658
|
+
*
|
|
4659
|
+
* Nothing here checks which agents have such a hook; that is a fact about
|
|
4660
|
+
* each agent, held where the carriers are installed. The key changes nothing
|
|
4661
|
+
* about what the moment resolves to, and it sits on the MOMENT entry for the
|
|
4662
|
+
* reason {@link EXECUTOR_FIELD} does: an older Lisa ignores a moment key it
|
|
4663
|
+
* does not know, where a gate-level key would refuse the whole gates block.
|
|
4664
|
+
*/
|
|
4665
|
+
export const UNENFORCEABLE_ON_FIELD = "unenforceable_on";
|
|
4666
|
+
|
|
4667
|
+
/**
|
|
4668
|
+
* The coding agents Lisa supports, by the names the `harness` setting of
|
|
4669
|
+
* `.lisa.config.json` uses for them. A suite holds this list to that setting's
|
|
4670
|
+
* own values, so the two cannot drift apart.
|
|
4671
|
+
*/
|
|
4672
|
+
export const CODING_AGENTS = Object.freeze([
|
|
4673
|
+
"claude",
|
|
4674
|
+
"codex",
|
|
4675
|
+
"cursor",
|
|
4676
|
+
"agy",
|
|
4677
|
+
"copilot",
|
|
4678
|
+
"opencode",
|
|
4679
|
+
"devin",
|
|
4680
|
+
]);
|
|
4681
|
+
|
|
4682
|
+
/**
|
|
4683
|
+
* The moments a coding agent's own hooks carry: the start of a session, and
|
|
4684
|
+
* before and after one of its tools runs. Every other moment is carried by
|
|
4685
|
+
* something that is not an agent (git, the hosting platform, a pipeline), so
|
|
4686
|
+
* "cannot be enforced on this agent" would say nothing there.
|
|
4687
|
+
*/
|
|
4688
|
+
export const AGENT_MOMENTS = Object.freeze([SESSION_START, ...TOOL_MOMENTS]);
|
|
4689
|
+
|
|
4690
|
+
/**
|
|
4691
|
+
* Validate the agents a moment says it cannot be enforced on.
|
|
4692
|
+
* @param {string} id Gate id.
|
|
4693
|
+
* @param {string} moment Moment key.
|
|
4694
|
+
* @param {*} agents The declared value, if any.
|
|
4695
|
+
* @returns {string[]} Problems.
|
|
4696
|
+
*/
|
|
4697
|
+
function validateUnenforceableOn(id, moment, agents) {
|
|
4698
|
+
if (agents === undefined) return [];
|
|
4699
|
+
const where = `gates."${id}"."${moment}".${UNENFORCEABLE_ON_FIELD}`;
|
|
4700
|
+
if (!AGENT_MOMENTS.includes(momentFamily(moment))) {
|
|
4701
|
+
return [
|
|
4702
|
+
`${where} names coding agents, but no coding agent's hook runs at ` +
|
|
4703
|
+
`"${moment}", so there is nothing an agent could fail to enforce ` +
|
|
4704
|
+
`there. The key belongs to these moments: ${AGENT_MOMENTS.join(", ")}. ` +
|
|
4705
|
+
`Move it to one of them, or remove it.`,
|
|
4706
|
+
];
|
|
4707
|
+
}
|
|
4708
|
+
if (!Array.isArray(agents) || agents.length === 0) {
|
|
4709
|
+
return [
|
|
4710
|
+
`${where} is ${JSON.stringify(agents)}; expected a list of the coding ` +
|
|
4711
|
+
`agents this moment cannot be enforced on, for example ["agy"]. ` +
|
|
4712
|
+
`Remove the key when there are none.`,
|
|
4713
|
+
];
|
|
4714
|
+
}
|
|
4715
|
+
const unknown = agents.flatMap((agent, index) =>
|
|
4716
|
+
CODING_AGENTS.includes(agent)
|
|
4717
|
+
? []
|
|
4718
|
+
: [
|
|
4719
|
+
`${where}[${index}] is ${JSON.stringify(agent)}, which is not a ` +
|
|
4720
|
+
`coding agent Lisa knows. Write one of: ` +
|
|
4721
|
+
`${CODING_AGENTS.join(", ")}.`,
|
|
4722
|
+
]
|
|
4723
|
+
);
|
|
4724
|
+
const repeated = [
|
|
4725
|
+
...new Set(
|
|
4726
|
+
agents.filter((agent, index) => agents.indexOf(agent) !== index)
|
|
4727
|
+
),
|
|
4728
|
+
]
|
|
4729
|
+
.filter(agent => CODING_AGENTS.includes(agent))
|
|
4730
|
+
.map(agent => `${where} names "${agent}" twice. Name each agent once.`);
|
|
4731
|
+
return [...unknown, ...repeated];
|
|
4732
|
+
}
|
|
4733
|
+
|
|
4259
4734
|
/**
|
|
4260
4735
|
* Validate one moment entry on a gate.
|
|
4261
4736
|
* @param {string} id Gate id.
|
|
@@ -4263,10 +4738,11 @@ function validateCacheFlag(id, moment, value) {
|
|
|
4263
4738
|
* @param {*} value Level string, or a prover object.
|
|
4264
4739
|
* @param {boolean} known Whether the gate is in the registry.
|
|
4265
4740
|
* @param {boolean} interceptor Whether the gate intercepts.
|
|
4266
|
-
* @param {
|
|
4741
|
+
* @param {boolean} gateProver Whether the gate names a prover once for every
|
|
4742
|
+
* moment: a `run` task, or `parts`.
|
|
4267
4743
|
* @returns {string[]} Problems.
|
|
4268
4744
|
*/
|
|
4269
|
-
function validateMoment(id, moment, value, known, interceptor,
|
|
4745
|
+
function validateMoment(id, moment, value, known, interceptor, gateProver) {
|
|
4270
4746
|
const problems = [];
|
|
4271
4747
|
const entry = typeof value === "string" ? { level: value } : (value ?? {});
|
|
4272
4748
|
|
|
@@ -4311,12 +4787,19 @@ function validateMoment(id, moment, value, known, interceptor, gateRun) {
|
|
|
4311
4787
|
);
|
|
4312
4788
|
}
|
|
4313
4789
|
problems.push(
|
|
4314
|
-
...validateFailureShape(
|
|
4790
|
+
...validateFailureShape(
|
|
4791
|
+
`gates."${id}"."${moment}".${FAILURE_SHAPE_FIELD}`,
|
|
4792
|
+
entry[FAILURE_SHAPE_FIELD]
|
|
4793
|
+
)
|
|
4315
4794
|
);
|
|
4316
4795
|
problems.push(...validateCacheFlag(id, moment, entry[CACHE_FIELD]));
|
|
4796
|
+
problems.push(...validateExecutor(id, moment, entry[EXECUTOR_FIELD]));
|
|
4797
|
+
problems.push(
|
|
4798
|
+
...validateUnenforceableOn(id, moment, entry[UNENFORCEABLE_ON_FIELD])
|
|
4799
|
+
);
|
|
4317
4800
|
problems.push(...validatePostedBy(id, moment, entry));
|
|
4318
4801
|
problems.push(...validateCallerChain(id, moment, entry));
|
|
4319
|
-
if (!known && !interceptor && !entry.await && !entry.run && !
|
|
4802
|
+
if (!known && !interceptor && !entry.await && !entry.run && !gateProver) {
|
|
4320
4803
|
problems.push(
|
|
4321
4804
|
`gates."${id}"."${moment}" names no prover and Lisa has no default task ` +
|
|
4322
4805
|
`for a custom gate, so nothing would execute.`
|
|
@@ -4664,6 +5147,720 @@ function validateNeeds(id, gate) {
|
|
|
4664
5147
|
return problems;
|
|
4665
5148
|
}
|
|
4666
5149
|
|
|
5150
|
+
/**
|
|
5151
|
+
* Whether a value is an object with keys of its own, and not a list.
|
|
5152
|
+
* @param {*} value Candidate value.
|
|
5153
|
+
* @returns {value is Record<string, any>} True for an object that is neither null nor an array.
|
|
5154
|
+
*/
|
|
5155
|
+
function isKeyed(value) {
|
|
5156
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
5157
|
+
}
|
|
5158
|
+
|
|
5159
|
+
/**
|
|
5160
|
+
* Report every key an object carries that Lisa does not read there.
|
|
5161
|
+
*
|
|
5162
|
+
* The rule {@link PART_FIELDS} states, in one place for the three levels it
|
|
5163
|
+
* applies at: a key outside the closed set is refused, and a key starting with
|
|
5164
|
+
* {@link CUSTOM_PREFIX} is the project's own and passes through unread.
|
|
5165
|
+
* @param {string} where The object being validated, as an operator finds it.
|
|
5166
|
+
* @param {object} declared The object as declared.
|
|
5167
|
+
* @param {readonly string[]} known The keys Lisa reads on it.
|
|
5168
|
+
* @returns {string[]} Problems.
|
|
5169
|
+
*/
|
|
5170
|
+
function unknownKeyProblems(where, declared, known) {
|
|
5171
|
+
return Object.keys(declared)
|
|
5172
|
+
.filter(key => !known.includes(key) && !key.startsWith(CUSTOM_PREFIX))
|
|
5173
|
+
.map(key => {
|
|
5174
|
+
const near = nearest(key, [...known]);
|
|
5175
|
+
const suggestion = near ? `. Did you mean "${near}"?` : ".";
|
|
5176
|
+
return (
|
|
5177
|
+
`${where}.${key} is not a key Lisa reads here${suggestion} The keys ` +
|
|
5178
|
+
`it reads are ${known.join(", ")}. Nothing would use this one, so ` +
|
|
5179
|
+
`whatever it was meant to set is unset. A key of the project's own ` +
|
|
5180
|
+
`must start with "${CUSTOM_PREFIX}".`
|
|
5181
|
+
);
|
|
5182
|
+
});
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* Validate the requirement ids a gate says it serves.
|
|
5187
|
+
*
|
|
5188
|
+
* Checked for how each id is written, not for whether it exists — see
|
|
5189
|
+
* {@link CRITERION_ID_PATTERN} for why the catalogue is not consulted here.
|
|
5190
|
+
* @param {string} id Gate id.
|
|
5191
|
+
* @param {*} criteria The declared value, if any.
|
|
5192
|
+
* @returns {string[]} Problems.
|
|
5193
|
+
*/
|
|
5194
|
+
function validateCriteria(id, criteria) {
|
|
5195
|
+
if (criteria === undefined) return [];
|
|
5196
|
+
const where = `gates."${id}".criteria`;
|
|
5197
|
+
if (!Array.isArray(criteria)) {
|
|
5198
|
+
return [
|
|
5199
|
+
`${where} is ${JSON.stringify(criteria)}; expected a list of the ` +
|
|
5200
|
+
`requirement ids this gate serves, for example ["AC5.4"].`,
|
|
5201
|
+
];
|
|
5202
|
+
}
|
|
5203
|
+
if (criteria.length === 0) {
|
|
5204
|
+
return [
|
|
5205
|
+
`${where} is empty, so it says nothing while looking filled in. ` +
|
|
5206
|
+
`Remove it, or list the requirement ids this gate serves.`,
|
|
5207
|
+
];
|
|
5208
|
+
}
|
|
5209
|
+
const problems = [];
|
|
5210
|
+
const firstSeenAt = new Map();
|
|
5211
|
+
for (const [index, criterion] of criteria.entries()) {
|
|
5212
|
+
if (
|
|
5213
|
+
typeof criterion !== "string" ||
|
|
5214
|
+
!CRITERION_ID_PATTERN.test(criterion)
|
|
5215
|
+
) {
|
|
5216
|
+
problems.push(
|
|
5217
|
+
`${where}[${index}] is ${JSON.stringify(criterion)}, which is not a ` +
|
|
5218
|
+
`requirement id. An id is written exactly as the specification ` +
|
|
5219
|
+
`writes it, for example "AC5.4" or "SI2".`
|
|
5220
|
+
);
|
|
5221
|
+
continue;
|
|
5222
|
+
}
|
|
5223
|
+
if (firstSeenAt.has(criterion)) {
|
|
5224
|
+
problems.push(
|
|
5225
|
+
`${where}[${index}] repeats ${JSON.stringify(criterion)} from ` +
|
|
5226
|
+
`${where}[${firstSeenAt.get(criterion)}]. List each id once.`
|
|
5227
|
+
);
|
|
5228
|
+
continue;
|
|
5229
|
+
}
|
|
5230
|
+
firstSeenAt.set(criterion, index);
|
|
5231
|
+
}
|
|
5232
|
+
return problems;
|
|
5233
|
+
}
|
|
5234
|
+
|
|
5235
|
+
/**
|
|
5236
|
+
* Validate the accountable party a gate names.
|
|
5237
|
+
* @param {string} id Gate id.
|
|
5238
|
+
* @param {*} owner The declared value, if any.
|
|
5239
|
+
* @returns {string[]} Problems.
|
|
5240
|
+
*/
|
|
5241
|
+
function validateOwner(id, owner) {
|
|
5242
|
+
if (owner === undefined) return [];
|
|
5243
|
+
if (typeof owner === "string" && owner.trim() !== "") return [];
|
|
5244
|
+
return [
|
|
5245
|
+
`gates."${id}".owner is ${JSON.stringify(owner)}; expected the name of ` +
|
|
5246
|
+
`the person or team that answers for this gate.`,
|
|
5247
|
+
];
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
/**
|
|
5251
|
+
* Validate a gate's enforcement tier.
|
|
5252
|
+
* @param {string} id Gate id.
|
|
5253
|
+
* @param {*} tier The declared value, if any.
|
|
5254
|
+
* @returns {string[]} Problems.
|
|
5255
|
+
*/
|
|
5256
|
+
function validateTier(id, tier) {
|
|
5257
|
+
if (tier === undefined || TIERS.includes(tier)) return [];
|
|
5258
|
+
return [
|
|
5259
|
+
`gates."${id}".tier is ${JSON.stringify(tier)}; expected authoritative ` +
|
|
5260
|
+
`(enforced where the author of a change cannot get around it) or ` +
|
|
5261
|
+
`advisory (feedback the author can bypass).`,
|
|
5262
|
+
];
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
/**
|
|
5266
|
+
* The one way to write a repository-relative path: folders joined by `/`,
|
|
5267
|
+
* with nothing that adds no folder — no leading `./`, no trailing or doubled
|
|
5268
|
+
* `/`, no `.` in the middle.
|
|
5269
|
+
* @param {string} value A path as declared.
|
|
5270
|
+
* @returns {string} The same path in its one spelling.
|
|
5271
|
+
*/
|
|
5272
|
+
function shortestSpelling(value) {
|
|
5273
|
+
return (
|
|
5274
|
+
value
|
|
5275
|
+
.split("/")
|
|
5276
|
+
.filter(segment => segment !== "" && segment !== ".")
|
|
5277
|
+
.join("/") || WHOLE_REPOSITORY
|
|
5278
|
+
);
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* Why a declared path cannot be used as a path inside the repository, in
|
|
5283
|
+
* words that finish the sentence "<key> is <value>, which …".
|
|
5284
|
+
*
|
|
5285
|
+
* Three ways out of the repository are refused — a backslash (which is a
|
|
5286
|
+
* separator on one operating system and a letter on the others), a path that
|
|
5287
|
+
* starts at the top of the disk, and `..` — and so is any second spelling of
|
|
5288
|
+
* a path that is otherwise fine. The last one is what lets every reader
|
|
5289
|
+
* compare two paths as text: `api`, `api/` and `./api` are one folder, and
|
|
5290
|
+
* only the first is accepted.
|
|
5291
|
+
* @param {string} value A non-blank path as declared.
|
|
5292
|
+
* @returns {string|null} The reason, or null when the path is usable.
|
|
5293
|
+
*/
|
|
5294
|
+
function repositoryPathProblem(value) {
|
|
5295
|
+
if (value.includes("\\")) {
|
|
5296
|
+
return 'uses a backslash. Separate folders with "/" on every system';
|
|
5297
|
+
}
|
|
5298
|
+
if (value.startsWith("/") || /^[A-Za-z]:/u.test(value)) {
|
|
5299
|
+
return "starts at the top of the disk rather than inside the repository";
|
|
5300
|
+
}
|
|
5301
|
+
if (value.split("/").includes("..")) {
|
|
5302
|
+
return 'contains "..", so it points outside the repository';
|
|
5303
|
+
}
|
|
5304
|
+
const shortest = shortestSpelling(value);
|
|
5305
|
+
if (shortest !== value) {
|
|
5306
|
+
return (
|
|
5307
|
+
`is ${JSON.stringify(shortest)} written a longer way. Write it as ` +
|
|
5308
|
+
`${JSON.stringify(shortest)}, so everything that reads it sees one ` +
|
|
5309
|
+
`spelling`
|
|
5310
|
+
);
|
|
5311
|
+
}
|
|
5312
|
+
return null;
|
|
5313
|
+
}
|
|
5314
|
+
|
|
5315
|
+
/** What a scope is, said once for every message that refuses one. */
|
|
5316
|
+
const SCOPE_ADVICE =
|
|
5317
|
+
`A scope is a folder inside the repository, written from the repository ` +
|
|
5318
|
+
`root: for example "api", or "${WHOLE_REPOSITORY}" for the whole repository.`;
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* Validate the folder a part covers.
|
|
5322
|
+
* @param {string} where The key being validated.
|
|
5323
|
+
* @param {*} scope The declared value.
|
|
5324
|
+
* @returns {string[]} Problems.
|
|
5325
|
+
*/
|
|
5326
|
+
function validateScope(where, scope) {
|
|
5327
|
+
if (scope === undefined) return [`${where} is missing. ${SCOPE_ADVICE}`];
|
|
5328
|
+
if (typeof scope !== "string" || scope.trim() === "") {
|
|
5329
|
+
return [
|
|
5330
|
+
`${where} is ${JSON.stringify(scope)}; expected the folder this part ` +
|
|
5331
|
+
`covers. ${SCOPE_ADVICE}`,
|
|
5332
|
+
];
|
|
5333
|
+
}
|
|
5334
|
+
const problem = repositoryPathProblem(scope);
|
|
5335
|
+
return problem === null
|
|
5336
|
+
? []
|
|
5337
|
+
: [
|
|
5338
|
+
`${where} is ${JSON.stringify(scope)}, which ${problem}. ${SCOPE_ADVICE}`,
|
|
5339
|
+
];
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
/** How a command is written, said once for every message that refuses one. */
|
|
5343
|
+
const COMMAND_ADVICE =
|
|
5344
|
+
`Write the command as a list with one item per argument, the program ` +
|
|
5345
|
+
`first: for example ["npm", "run", "lint"].`;
|
|
5346
|
+
|
|
5347
|
+
/**
|
|
5348
|
+
* Validate the command that checks a part.
|
|
5349
|
+
*
|
|
5350
|
+
* An ARGUMENT LIST and nothing else. The command is started directly, with no
|
|
5351
|
+
* shell between Lisa and the program, so nothing in it is ever interpreted:
|
|
5352
|
+
* `;`, `&&`, `$(…)` and a quoted space are all just characters in one
|
|
5353
|
+
* argument. That only holds while the declaration cannot be a string — a
|
|
5354
|
+
* string has to be split by something, and whatever splits it is a shell or
|
|
5355
|
+
* an imitation of one. So a string is refused here rather than split, and
|
|
5356
|
+
* `resolveMoment` refuses to hand out an `argv` that did not pass this check.
|
|
5357
|
+
*
|
|
5358
|
+
* An empty item is allowed anywhere but first: an empty argument is a real
|
|
5359
|
+
* thing to pass a program, and a blank program name is not a program.
|
|
5360
|
+
* @param {string} where The key being validated.
|
|
5361
|
+
* @param {*} command The declared value.
|
|
5362
|
+
* @returns {string[]} Problems.
|
|
5363
|
+
*/
|
|
5364
|
+
function validateCommand(where, command) {
|
|
5365
|
+
if (command === undefined) {
|
|
5366
|
+
return [
|
|
5367
|
+
`${where} is missing. Every part names the command that checks it. ` +
|
|
5368
|
+
`${COMMAND_ADVICE}`,
|
|
5369
|
+
];
|
|
5370
|
+
}
|
|
5371
|
+
if (typeof command === "string") {
|
|
5372
|
+
return [
|
|
5373
|
+
`${where} is the single string ${JSON.stringify(command)}; expected a ` +
|
|
5374
|
+
`list with one item per argument, the program first: for example ` +
|
|
5375
|
+
`["npm", "run", "lint"]. The command is started directly, never ` +
|
|
5376
|
+
`through a shell, so a single string is never split into a program ` +
|
|
5377
|
+
`and its arguments.`,
|
|
5378
|
+
];
|
|
5379
|
+
}
|
|
5380
|
+
if (!Array.isArray(command)) {
|
|
5381
|
+
return [
|
|
5382
|
+
`${where} is ${JSON.stringify(command)}; expected a list. ` +
|
|
5383
|
+
`${COMMAND_ADVICE}`,
|
|
5384
|
+
];
|
|
5385
|
+
}
|
|
5386
|
+
if (command.length === 0) {
|
|
5387
|
+
return [`${where} is empty, so there is nothing to run. ${COMMAND_ADVICE}`];
|
|
5388
|
+
}
|
|
5389
|
+
const problems = [];
|
|
5390
|
+
for (const [index, argument] of command.entries()) {
|
|
5391
|
+
if (typeof argument === "string") continue;
|
|
5392
|
+
problems.push(
|
|
5393
|
+
`${where}[${index}] is ${JSON.stringify(argument)}; expected text. ` +
|
|
5394
|
+
`Write a number in quotes, for example "3".`
|
|
5395
|
+
);
|
|
5396
|
+
}
|
|
5397
|
+
if (typeof command[0] === "string" && command[0].trim() === "") {
|
|
5398
|
+
problems.push(
|
|
5399
|
+
`${where}[0] is blank. The first item is the program to run.`
|
|
5400
|
+
);
|
|
5401
|
+
}
|
|
5402
|
+
return problems;
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
/** A well-formed parameter, shown in every message that refuses one. */
|
|
5406
|
+
const PARAMETER_EXAMPLE = '{ "value": 80, "direction": "floor" }';
|
|
5407
|
+
|
|
5408
|
+
/**
|
|
5409
|
+
* Validate one named parameter of a part.
|
|
5410
|
+
*
|
|
5411
|
+
* A direction is refused on anything but a number, because "may not fall" has
|
|
5412
|
+
* no meaning between two pieces of text — and a threshold that cannot be
|
|
5413
|
+
* compared is one nothing holds, while reading as held.
|
|
5414
|
+
* @param {string} where The parameter being validated.
|
|
5415
|
+
* @param {*} parameter The declared value.
|
|
5416
|
+
* @returns {string[]} Problems.
|
|
5417
|
+
*/
|
|
5418
|
+
function validateParameter(where, parameter) {
|
|
5419
|
+
if (!isKeyed(parameter)) {
|
|
5420
|
+
return [
|
|
5421
|
+
`${where} is ${JSON.stringify(parameter)}; expected an object such as ` +
|
|
5422
|
+
`${PARAMETER_EXAMPLE}.`,
|
|
5423
|
+
];
|
|
5424
|
+
}
|
|
5425
|
+
const problems = unknownKeyProblems(where, parameter, PARAMETER_FIELDS);
|
|
5426
|
+
const { value, direction } = parameter;
|
|
5427
|
+
const worded = typeof value === "string" || typeof value === "boolean";
|
|
5428
|
+
if (value === undefined) {
|
|
5429
|
+
problems.push(
|
|
5430
|
+
`${where}.value is missing. Every parameter states its value, for ` +
|
|
5431
|
+
`example ${PARAMETER_EXAMPLE}.`
|
|
5432
|
+
);
|
|
5433
|
+
} else if (!worded && !Number.isFinite(value)) {
|
|
5434
|
+
problems.push(
|
|
5435
|
+
`${where}.value is ${JSON.stringify(value)}; expected a number, text, ` +
|
|
5436
|
+
`or true or false.`
|
|
5437
|
+
);
|
|
5438
|
+
}
|
|
5439
|
+
if (direction === undefined) return problems;
|
|
5440
|
+
if (!PARAMETER_DIRECTIONS.includes(direction)) {
|
|
5441
|
+
problems.push(
|
|
5442
|
+
`${where}.direction is ${JSON.stringify(direction)}; expected floor ` +
|
|
5443
|
+
`(the value may rise and never fall) or ceiling (it may fall and ` +
|
|
5444
|
+
`never rise).`
|
|
5445
|
+
);
|
|
5446
|
+
} else if (worded) {
|
|
5447
|
+
problems.push(
|
|
5448
|
+
`${where}.direction is ${JSON.stringify(direction)}, but ` +
|
|
5449
|
+
`${where}.value is ${JSON.stringify(value)}, which is not a number. ` +
|
|
5450
|
+
`Only a number can be held to a floor or a ceiling.`
|
|
5451
|
+
);
|
|
5452
|
+
}
|
|
5453
|
+
return problems;
|
|
5454
|
+
}
|
|
5455
|
+
|
|
5456
|
+
/**
|
|
5457
|
+
* Validate the named settings of a part's check.
|
|
5458
|
+
* @param {string} where The key being validated.
|
|
5459
|
+
* @param {*} parameters The declared value, if any.
|
|
5460
|
+
* @returns {string[]} Problems.
|
|
5461
|
+
*/
|
|
5462
|
+
function validateParameters(where, parameters) {
|
|
5463
|
+
if (parameters === undefined) return [];
|
|
5464
|
+
if (!isKeyed(parameters)) {
|
|
5465
|
+
return [
|
|
5466
|
+
`${where} is ${JSON.stringify(parameters)}; expected an object with ` +
|
|
5467
|
+
`one named entry per setting, each written like ${PARAMETER_EXAMPLE}.`,
|
|
5468
|
+
];
|
|
5469
|
+
}
|
|
5470
|
+
return Object.entries(parameters).flatMap(([name, parameter]) =>
|
|
5471
|
+
validateParameter(`${where}.${JSON.stringify(name)}`, parameter)
|
|
5472
|
+
);
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
/**
|
|
5476
|
+
* Validate one half of a paired proof: the path of its patch file.
|
|
5477
|
+
*
|
|
5478
|
+
* Only the path is checked. Whether the file exists is a fact about a
|
|
5479
|
+
* checkout, not about a declaration, and a missing half is reported where the
|
|
5480
|
+
* proof is run — as unproved — rather than refused here.
|
|
5481
|
+
* @param {string} where The key being validated.
|
|
5482
|
+
* @param {*} file The declared value, if any.
|
|
5483
|
+
* @returns {string[]} Problems.
|
|
5484
|
+
*/
|
|
5485
|
+
function validateProofFile(where, file) {
|
|
5486
|
+
if (file === undefined) return [];
|
|
5487
|
+
const advice =
|
|
5488
|
+
`A proof file is a patch under ${PROOF_DIRECTORY}, written from the ` +
|
|
5489
|
+
`repository root: for example "${PROOF_DIRECTORY}lint.violation.patch".`;
|
|
5490
|
+
if (typeof file !== "string" || file.trim() === "") {
|
|
5491
|
+
return [
|
|
5492
|
+
`${where} is ${JSON.stringify(file)}; expected the path of a patch ` +
|
|
5493
|
+
`file. ${advice}`,
|
|
5494
|
+
];
|
|
5495
|
+
}
|
|
5496
|
+
const problem = repositoryPathProblem(file);
|
|
5497
|
+
if (problem !== null) {
|
|
5498
|
+
return [`${where} is ${JSON.stringify(file)}, which ${problem}. ${advice}`];
|
|
5499
|
+
}
|
|
5500
|
+
if (!file.startsWith(PROOF_DIRECTORY)) {
|
|
5501
|
+
return [
|
|
5502
|
+
`${where} is ${JSON.stringify(file)}, which is not a file under ` +
|
|
5503
|
+
`${PROOF_DIRECTORY}. ${advice}`,
|
|
5504
|
+
];
|
|
5505
|
+
}
|
|
5506
|
+
return [];
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5509
|
+
/**
|
|
5510
|
+
* Validate how long one half of a proof may run.
|
|
5511
|
+
* @param {string} where The key being validated.
|
|
5512
|
+
* @param {*} timeout The declared value, if any.
|
|
5513
|
+
* @returns {string[]} Problems.
|
|
5514
|
+
*/
|
|
5515
|
+
function validateProofTimeout(where, timeout) {
|
|
5516
|
+
if (timeout === undefined) return [];
|
|
5517
|
+
if (Number.isInteger(timeout) && timeout > 0) return [];
|
|
5518
|
+
return [
|
|
5519
|
+
`${where} is ${JSON.stringify(timeout)}; expected a whole number of ` +
|
|
5520
|
+
`seconds above zero, for example 120.`,
|
|
5521
|
+
];
|
|
5522
|
+
}
|
|
5523
|
+
|
|
5524
|
+
/**
|
|
5525
|
+
* Validate what a proof says it does outside the repository.
|
|
5526
|
+
*
|
|
5527
|
+
* Each entry is a sentence, because it is quoted to the person asked to allow
|
|
5528
|
+
* the proof to run. A blank one would ask for that permission and say nothing
|
|
5529
|
+
* about what it is for.
|
|
5530
|
+
* @param {string} where The key being validated.
|
|
5531
|
+
* @param {*} effects The declared value, if any.
|
|
5532
|
+
* @returns {string[]} Problems.
|
|
5533
|
+
*/
|
|
5534
|
+
function validateExternalEffects(where, effects) {
|
|
5535
|
+
if (effects === undefined) return [];
|
|
5536
|
+
if (!Array.isArray(effects)) {
|
|
5537
|
+
return [
|
|
5538
|
+
`${where} is ${JSON.stringify(effects)}; expected a list of ` +
|
|
5539
|
+
`sentences, each saying one thing the proof does outside the ` +
|
|
5540
|
+
`repository, or an empty list when it does nothing there.`,
|
|
5541
|
+
];
|
|
5542
|
+
}
|
|
5543
|
+
const problems = [];
|
|
5544
|
+
for (const [index, effect] of effects.entries()) {
|
|
5545
|
+
if (typeof effect === "string" && effect.trim() !== "") continue;
|
|
5546
|
+
problems.push(
|
|
5547
|
+
`${where}[${index}] is ${JSON.stringify(effect)}; expected a sentence ` +
|
|
5548
|
+
`saying what the proof does outside the repository. It is shown to ` +
|
|
5549
|
+
`the person asked to allow it.`
|
|
5550
|
+
);
|
|
5551
|
+
}
|
|
5552
|
+
return problems;
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5555
|
+
/**
|
|
5556
|
+
* Validate a part's paired proof.
|
|
5557
|
+
* @param {string} where The key being validated.
|
|
5558
|
+
* @param {*} proof The declared value, if any.
|
|
5559
|
+
* @returns {string[]} Problems.
|
|
5560
|
+
*/
|
|
5561
|
+
function validateProof(where, proof) {
|
|
5562
|
+
if (proof === undefined) return [];
|
|
5563
|
+
if (!isKeyed(proof)) {
|
|
5564
|
+
return [
|
|
5565
|
+
`${where} is ${JSON.stringify(proof)}; expected an object naming the ` +
|
|
5566
|
+
`two halves of the proof, "violation" and "clean".`,
|
|
5567
|
+
];
|
|
5568
|
+
}
|
|
5569
|
+
const problems = [
|
|
5570
|
+
...unknownKeyProblems(where, proof, PROOF_FIELDS),
|
|
5571
|
+
...validateProofFile(`${where}.violation`, proof.violation),
|
|
5572
|
+
...validateProofFile(`${where}.clean`, proof.clean),
|
|
5573
|
+
];
|
|
5574
|
+
if (typeof proof.clean === "string" && proof.clean === proof.violation) {
|
|
5575
|
+
problems.push(
|
|
5576
|
+
`${where}.clean is the same file as ${where}.violation. The two ` +
|
|
5577
|
+
`halves are different changes: one that breaks the rule and one ` +
|
|
5578
|
+
`that does not.`
|
|
5579
|
+
);
|
|
5580
|
+
}
|
|
5581
|
+
return [
|
|
5582
|
+
...problems,
|
|
5583
|
+
...validateFailureShape(
|
|
5584
|
+
`${where}.${FAILURE_SHAPE_FIELD}`,
|
|
5585
|
+
proof[FAILURE_SHAPE_FIELD]
|
|
5586
|
+
),
|
|
5587
|
+
...validateProofTimeout(`${where}.timeout_seconds`, proof.timeout_seconds),
|
|
5588
|
+
...validateExternalEffects(
|
|
5589
|
+
`${where}.external_effects`,
|
|
5590
|
+
proof.external_effects
|
|
5591
|
+
),
|
|
5592
|
+
];
|
|
5593
|
+
}
|
|
5594
|
+
|
|
5595
|
+
/** A well-formed place, shown in every message that refuses one. */
|
|
5596
|
+
const LOCATOR_EXAMPLE = '{ "path": "api/ruff.toml", "line": 1 }';
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* Validate one place a part's evidence points at.
|
|
5600
|
+
*
|
|
5601
|
+
* Only how it is written is checked. Whether the file exists, and whether the
|
|
5602
|
+
* audit reported that line, are facts about a checkout and about the audit
|
|
5603
|
+
* report; neither is this registry's to read.
|
|
5604
|
+
* @param {string} where The place being validated.
|
|
5605
|
+
* @param {*} locator The declared value.
|
|
5606
|
+
* @returns {string[]} Problems.
|
|
5607
|
+
*/
|
|
5608
|
+
function validatePartEvidenceLocator(where, locator) {
|
|
5609
|
+
if (!isKeyed(locator)) {
|
|
5610
|
+
return [
|
|
5611
|
+
`${where} is ${JSON.stringify(locator)}; expected an object such as ` +
|
|
5612
|
+
`${LOCATOR_EXAMPLE}.`,
|
|
5613
|
+
];
|
|
5614
|
+
}
|
|
5615
|
+
const problems = unknownKeyProblems(
|
|
5616
|
+
where,
|
|
5617
|
+
locator,
|
|
5618
|
+
PART_EVIDENCE_LOCATOR_FIELDS
|
|
5619
|
+
);
|
|
5620
|
+
const { path: file, line } = locator;
|
|
5621
|
+
const advice =
|
|
5622
|
+
`A place names the file the audit found the check in, written from the ` +
|
|
5623
|
+
`repository root: for example ${LOCATOR_EXAMPLE}.`;
|
|
5624
|
+
if (typeof file !== "string" || file.trim() === "") {
|
|
5625
|
+
problems.push(
|
|
5626
|
+
`${where}.path is ${JSON.stringify(file)}; expected the path of a ` +
|
|
5627
|
+
`file. ${advice}`
|
|
5628
|
+
);
|
|
5629
|
+
} else if (file === WHOLE_REPOSITORY) {
|
|
5630
|
+
problems.push(
|
|
5631
|
+
`${where}.path is ${JSON.stringify(file)}, which is the whole ` +
|
|
5632
|
+
`repository rather than a file in it. ${advice}`
|
|
5633
|
+
);
|
|
5634
|
+
} else {
|
|
5635
|
+
const problem = repositoryPathProblem(file);
|
|
5636
|
+
if (problem !== null) {
|
|
5637
|
+
problems.push(
|
|
5638
|
+
`${where}.path is ${JSON.stringify(file)}, which ${problem}. ${advice}`
|
|
5639
|
+
);
|
|
5640
|
+
}
|
|
5641
|
+
}
|
|
5642
|
+
if (!Number.isInteger(line) || line < 1) {
|
|
5643
|
+
problems.push(
|
|
5644
|
+
`${where}.line is ${JSON.stringify(line)}; expected the number of the ` +
|
|
5645
|
+
`line in that file, counted from 1.`
|
|
5646
|
+
);
|
|
5647
|
+
}
|
|
5648
|
+
return problems;
|
|
5649
|
+
}
|
|
5650
|
+
|
|
5651
|
+
/**
|
|
5652
|
+
* Validate a list a part's evidence carries, refusing one that is not a list,
|
|
5653
|
+
* is empty, or says the same thing twice.
|
|
5654
|
+
* @param {string} where The key being validated.
|
|
5655
|
+
* @param {*} list The declared value, if any.
|
|
5656
|
+
* @param {object} kind What the list holds.
|
|
5657
|
+
* @param {string} kind.expected What the list is, to finish "expected …".
|
|
5658
|
+
* @param {(where: string, item: *) => string[]} kind.validate Validates one item.
|
|
5659
|
+
* @returns {string[]} Problems.
|
|
5660
|
+
*/
|
|
5661
|
+
function validatePartEvidenceList(where, list, { expected, validate }) {
|
|
5662
|
+
if (list === undefined) return [];
|
|
5663
|
+
if (!Array.isArray(list)) {
|
|
5664
|
+
return [`${where} is ${JSON.stringify(list)}; expected ${expected}.`];
|
|
5665
|
+
}
|
|
5666
|
+
if (list.length === 0) {
|
|
5667
|
+
return [
|
|
5668
|
+
`${where} is empty, so it says nothing while looking filled in. ` +
|
|
5669
|
+
`Remove it, or give ${expected}.`,
|
|
5670
|
+
];
|
|
5671
|
+
}
|
|
5672
|
+
const problems = [];
|
|
5673
|
+
const firstSeenAt = new Map();
|
|
5674
|
+
for (const [index, item] of list.entries()) {
|
|
5675
|
+
const found = validate(`${where}[${index}]`, item);
|
|
5676
|
+
problems.push(...found);
|
|
5677
|
+
if (found.length > 0) continue;
|
|
5678
|
+
const key = JSON.stringify(isKeyed(item) ? [item.path, item.line] : [item]);
|
|
5679
|
+
if (firstSeenAt.has(key)) {
|
|
5680
|
+
problems.push(
|
|
5681
|
+
`${where}[${index}] repeats ${where}[${firstSeenAt.get(key)}]. ` +
|
|
5682
|
+
`List each one once.`
|
|
5683
|
+
);
|
|
5684
|
+
continue;
|
|
5685
|
+
}
|
|
5686
|
+
firstSeenAt.set(key, index);
|
|
5687
|
+
}
|
|
5688
|
+
return problems;
|
|
5689
|
+
}
|
|
5690
|
+
|
|
5691
|
+
/**
|
|
5692
|
+
* Validate what a part says supports it.
|
|
5693
|
+
*
|
|
5694
|
+
* `evidence` is optional here and never read by anything that runs a part, so
|
|
5695
|
+
* leaving it off changes nothing at any moment. What is refused is one that is
|
|
5696
|
+
* present and points at nothing: it would read as "this control was
|
|
5697
|
+
* evidenced" to everyone who saw the key, which is the one thing the key
|
|
5698
|
+
* exists to make checkable.
|
|
5699
|
+
* @param {string} where The key being validated.
|
|
5700
|
+
* @param {*} evidence The declared value, if any.
|
|
5701
|
+
* @returns {string[]} Problems.
|
|
5702
|
+
*/
|
|
5703
|
+
function validatePartEvidence(where, evidence) {
|
|
5704
|
+
if (evidence === undefined) return [];
|
|
5705
|
+
const example = `{ "locators": [${LOCATOR_EXAMPLE}] }`;
|
|
5706
|
+
if (!isKeyed(evidence)) {
|
|
5707
|
+
return [
|
|
5708
|
+
`${where} is ${JSON.stringify(evidence)}; expected an object such as ` +
|
|
5709
|
+
`${example}.`,
|
|
5710
|
+
];
|
|
5711
|
+
}
|
|
5712
|
+
const problems = unknownKeyProblems(where, evidence, PART_EVIDENCE_FIELDS);
|
|
5713
|
+
if (evidence.locators === undefined && evidence.questions === undefined) {
|
|
5714
|
+
problems.push(
|
|
5715
|
+
`${where} names neither a place the audit found this check ` +
|
|
5716
|
+
`("locators") nor a question a person answered ("questions"), so ` +
|
|
5717
|
+
`the part looks supported while pointing at nothing. Give one of ` +
|
|
5718
|
+
`them, for example ${example}.`
|
|
5719
|
+
);
|
|
5720
|
+
}
|
|
5721
|
+
return [
|
|
5722
|
+
...problems,
|
|
5723
|
+
...validatePartEvidenceList(`${where}.locators`, evidence.locators, {
|
|
5724
|
+
expected:
|
|
5725
|
+
`a list of the places the audit found this check, each written ` +
|
|
5726
|
+
`like ${LOCATOR_EXAMPLE}`,
|
|
5727
|
+
validate: validatePartEvidenceLocator,
|
|
5728
|
+
}),
|
|
5729
|
+
...validatePartEvidenceList(`${where}.questions`, evidence.questions, {
|
|
5730
|
+
expected:
|
|
5731
|
+
`a list of the ids of the audit questions a person answered, each ` +
|
|
5732
|
+
`written exactly as the audit report writes it`,
|
|
5733
|
+
validate: (item, id) =>
|
|
5734
|
+
typeof id === "string" && id.trim() !== ""
|
|
5735
|
+
? []
|
|
5736
|
+
: [
|
|
5737
|
+
`${item} is ${JSON.stringify(id)}; expected the id of an ` +
|
|
5738
|
+
`audit question, written exactly as the audit report ` +
|
|
5739
|
+
`writes it.`,
|
|
5740
|
+
],
|
|
5741
|
+
}),
|
|
5742
|
+
];
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
/**
|
|
5746
|
+
* Validate one entry of a gate's `parts`.
|
|
5747
|
+
* @param {string} where The entry being validated.
|
|
5748
|
+
* @param {*} part The declared value.
|
|
5749
|
+
* @returns {string[]} Problems.
|
|
5750
|
+
*/
|
|
5751
|
+
function validatePart(where, part) {
|
|
5752
|
+
if (!isKeyed(part)) {
|
|
5753
|
+
return [
|
|
5754
|
+
`${where} is ${JSON.stringify(part)}; expected an object naming a ` +
|
|
5755
|
+
`scope and a command.`,
|
|
5756
|
+
];
|
|
5757
|
+
}
|
|
5758
|
+
return [
|
|
5759
|
+
...unknownKeyProblems(where, part, PART_FIELDS),
|
|
5760
|
+
...validateScope(`${where}.scope`, part.scope),
|
|
5761
|
+
...validateCommand(`${where}.command`, part.command),
|
|
5762
|
+
...validateParameters(`${where}.parameters`, part.parameters),
|
|
5763
|
+
...validateProof(`${where}.proof`, part.proof),
|
|
5764
|
+
...validatePartEvidence(`${where}.evidence`, part.evidence),
|
|
5765
|
+
];
|
|
5766
|
+
}
|
|
5767
|
+
|
|
5768
|
+
/**
|
|
5769
|
+
* Refuse a second prover on a gate that has parts.
|
|
5770
|
+
*
|
|
5771
|
+
* With parts, each part's command is what proves the gate, at every moment
|
|
5772
|
+
* the gate is declared at. A task or an awaited signal beside them would give
|
|
5773
|
+
* one declaration two things that claim to prove it, and resolution would
|
|
5774
|
+
* have to pick — silently, which is how a declared check ends up never run.
|
|
5775
|
+
* The existing rule one level down, "a moment has one prover", is the same
|
|
5776
|
+
* rule. A property proved by a command in one place and by an external signal
|
|
5777
|
+
* in another is two gates.
|
|
5778
|
+
* @param {string} id Gate id.
|
|
5779
|
+
* @param {Record<string, unknown>} gate The entry, which declares `parts`.
|
|
5780
|
+
* @returns {string[]} Problems.
|
|
5781
|
+
*/
|
|
5782
|
+
function validatePartsAreTheOnlyProver(id, gate) {
|
|
5783
|
+
const problems = [];
|
|
5784
|
+
if (Object.hasOwn(INTERCEPTORS, id)) {
|
|
5785
|
+
problems.push(
|
|
5786
|
+
`gates."${id}".parts gives this gate commands to run, but it stops ` +
|
|
5787
|
+
`an action before it happens and cannot be handed to a command: by ` +
|
|
5788
|
+
`the time a command could run, the thing it prevents has happened.`
|
|
5789
|
+
);
|
|
5790
|
+
}
|
|
5791
|
+
if (gate.run !== undefined && gate.run !== null) {
|
|
5792
|
+
problems.push(
|
|
5793
|
+
`gates."${id}".run names one task for the whole gate, and the gate ` +
|
|
5794
|
+
`also has parts. With parts, each part's command is what proves ` +
|
|
5795
|
+
`the gate, so the task would never run. Remove one of the two.`
|
|
5796
|
+
);
|
|
5797
|
+
}
|
|
5798
|
+
for (const [moment, value] of Object.entries(gate)) {
|
|
5799
|
+
if (!isMoment(moment) || !isKeyed(value)) continue;
|
|
5800
|
+
for (const prover of ["run", "await"]) {
|
|
5801
|
+
if (value[prover] === undefined || value[prover] === null) continue;
|
|
5802
|
+
problems.push(
|
|
5803
|
+
`gates."${id}"."${moment}".${prover} is declared on a gate that has ` +
|
|
5804
|
+
`parts. With parts, each part's command is what proves the gate ` +
|
|
5805
|
+
`at every moment, so a second prover at one moment would never ` +
|
|
5806
|
+
`be used. Remove it, or declare that moment on a gate of its own.`
|
|
5807
|
+
);
|
|
5808
|
+
}
|
|
5809
|
+
}
|
|
5810
|
+
return problems;
|
|
5811
|
+
}
|
|
5812
|
+
|
|
5813
|
+
/**
|
|
5814
|
+
* Validate a gate's `parts`: the folders of the repository it covers, and
|
|
5815
|
+
* the command that proves it in each.
|
|
5816
|
+
*
|
|
5817
|
+
* Two parts of one gate may not cover the same folder. Everything downstream
|
|
5818
|
+
* identifies a part by its gate and its scope, so two that share one cannot
|
|
5819
|
+
* be told apart — one of them would be reported under the other's name.
|
|
5820
|
+
* Folders that merely overlap are fine: a rule for the whole repository and a
|
|
5821
|
+
* stricter one for a single folder are two different parts.
|
|
5822
|
+
* @param {string} id Gate id.
|
|
5823
|
+
* @param {Record<string, unknown>} gate The entry.
|
|
5824
|
+
* @returns {string[]} Problems, empty when the gate declares no parts.
|
|
5825
|
+
*/
|
|
5826
|
+
function validateParts(id, gate) {
|
|
5827
|
+
const { parts } = gate;
|
|
5828
|
+
if (parts === undefined) return [];
|
|
5829
|
+
const where = `gates."${id}".parts`;
|
|
5830
|
+
if (!Array.isArray(parts)) {
|
|
5831
|
+
return [
|
|
5832
|
+
`${where} is ${JSON.stringify(parts)}; expected a list with one entry ` +
|
|
5833
|
+
`for each part of the repository this gate covers, each naming a ` +
|
|
5834
|
+
`scope and a command.`,
|
|
5835
|
+
];
|
|
5836
|
+
}
|
|
5837
|
+
if (parts.length === 0) {
|
|
5838
|
+
return [
|
|
5839
|
+
`${where} is empty, so the gate covers nothing while looking filled ` +
|
|
5840
|
+
`in. Remove it, or add an entry naming a scope and a command.`,
|
|
5841
|
+
];
|
|
5842
|
+
}
|
|
5843
|
+
const problems = validatePartsAreTheOnlyProver(id, gate);
|
|
5844
|
+
const firstSeenAt = new Map();
|
|
5845
|
+
for (const [index, part] of parts.entries()) {
|
|
5846
|
+
problems.push(...validatePart(`${where}[${index}]`, part));
|
|
5847
|
+
const scope = isKeyed(part) ? part.scope : undefined;
|
|
5848
|
+
if (typeof scope !== "string") continue;
|
|
5849
|
+
const folder = shortestSpelling(scope);
|
|
5850
|
+
if (!firstSeenAt.has(folder)) {
|
|
5851
|
+
firstSeenAt.set(folder, index);
|
|
5852
|
+
continue;
|
|
5853
|
+
}
|
|
5854
|
+
problems.push(
|
|
5855
|
+
`${where}[${index}].scope is ${JSON.stringify(scope)}, the same ` +
|
|
5856
|
+
`folder as ${where}[${firstSeenAt.get(folder)}].scope. Each part of ` +
|
|
5857
|
+
`a gate covers its own folder. Give this part a different scope, or ` +
|
|
5858
|
+
`merge the two.`
|
|
5859
|
+
);
|
|
5860
|
+
}
|
|
5861
|
+
return problems;
|
|
5862
|
+
}
|
|
5863
|
+
|
|
4667
5864
|
/**
|
|
4668
5865
|
* Describe why a declared policy value does not fit its declared type.
|
|
4669
5866
|
*
|
|
@@ -4909,7 +6106,7 @@ export function auditConfigKeys(config) {
|
|
|
4909
6106
|
* UNKNOWN, and an unknown manifest resolves exactly as it did before this
|
|
4910
6107
|
* option existed — a caller that has not been taught to read the manifest
|
|
4911
6108
|
* must not have its answers changed by silence.
|
|
4912
|
-
* @returns {Array<{id: string, level: string, mode: string, awaits: string|null, postedBy: number|null, declared: string|null, task: string|null, command: string|null, label: string, work: string|null, alias: {from: string, to: string}|null, evidence: {proof: string[], no_work: string[], on_hollow: string, wait_minutes: number|null, on_timeout: string}|null, callerChain: string[]|null, failureShape: string[]|null, mayRewrite: boolean, costly: boolean}>} Resolved provers, sorted by gate id. `declared` is the project's own `run:` — the PROVENANCE of the command, which `task` alone cannot carry because a project may spell its `run:` exactly as the registry default.
|
|
6109
|
+
* @returns {Array<{id: string, level: string, mode: string, awaits: string|null, postedBy: number|null, declared: string|null, task: string|null, command: string|null, label: string, work: string|null, alias: {from: string, to: string}|null, evidence: {proof: string[], no_work: string[], on_hollow: string, wait_minutes: number|null, on_timeout: string}|null, callerChain: string[]|null, failureShape: string[]|null, mayRewrite: boolean, costly: boolean, scope?: string, argv?: string[]|null}>} Resolved provers, sorted by gate id. `declared` is the project's own `run:` — the PROVENANCE of the command, which `task` alone cannot carry because a project may spell its `run:` exactly as the registry default. `scope` and `argv` are present ONLY on an entry resolved from a gate's `parts` — one entry per part, in declared order; see `resolveParts`. An entry for a gate with no parts has neither key.
|
|
4913
6110
|
*/
|
|
4914
6111
|
export function resolveMoment({
|
|
4915
6112
|
gates,
|
|
@@ -4940,7 +6137,7 @@ export function resolveMoment({
|
|
|
4940
6137
|
`"${moment}" ${unknownMomentMessage(moment)} ${knownMomentsMessage()}`
|
|
4941
6138
|
);
|
|
4942
6139
|
}
|
|
4943
|
-
|
|
6140
|
+
assertResolvable(gates, moment);
|
|
4944
6141
|
|
|
4945
6142
|
const resolved = [];
|
|
4946
6143
|
for (const [id, gate] of Object.entries(gates ?? {})) {
|
|
@@ -4948,6 +6145,15 @@ export function resolveMoment({
|
|
|
4948
6145
|
if (raw === undefined) continue;
|
|
4949
6146
|
const entry = typeof raw === "string" ? { level: raw } : raw;
|
|
4950
6147
|
if (!entry?.level) continue;
|
|
6148
|
+
// A gate with parts takes its own path and never reaches the code below,
|
|
6149
|
+
// so everything from here down is what it was before `parts` existed. A
|
|
6150
|
+
// gate with no parts resolves exactly as it always has, field for field.
|
|
6151
|
+
if (gate.parts !== undefined) {
|
|
6152
|
+
resolved.push(
|
|
6153
|
+
...resolveParts({ id, entry, parts: gate.parts, includeOff })
|
|
6154
|
+
);
|
|
6155
|
+
continue;
|
|
6156
|
+
}
|
|
4951
6157
|
// Read before the `off` branch so every resolved entry carries it. A
|
|
4952
6158
|
// project's `run:` is a fact about the DECLARATION, not about the resolved
|
|
4953
6159
|
// command, so an entry that runs nothing still has a truthful answer.
|
|
@@ -5111,6 +6317,77 @@ export function resolveMoment({
|
|
|
5111
6317
|
);
|
|
5112
6318
|
}
|
|
5113
6319
|
|
|
6320
|
+
/**
|
|
6321
|
+
* Resolve a gate that declares `parts` at one moment: one entry per part.
|
|
6322
|
+
*
|
|
6323
|
+
* Each entry carries every field an entry has always had, then two more:
|
|
6324
|
+
*
|
|
6325
|
+
* - `scope` — the folder the part covers, as declared.
|
|
6326
|
+
* - `argv` — the argument list to start, as a copy. `null` when the moment is
|
|
6327
|
+
* declared `off`, for the reason `task` and `command` are: those say what
|
|
6328
|
+
* WOULD run, and nothing does.
|
|
6329
|
+
*
|
|
6330
|
+
* `task` and `command` are always `null`. `command` is the `<runner> <task>`
|
|
6331
|
+
* STRING a runner hands to a shell, and a part's command must never become
|
|
6332
|
+
* one: a consumer that only knows `command` therefore finds nothing to run
|
|
6333
|
+
* and reports the part as not proved, which is true of that consumer. A
|
|
6334
|
+
* consumer that can start an argument list reads `argv`.
|
|
6335
|
+
*
|
|
6336
|
+
* `declared` is `null` because it means the project's own `run:` task, and a
|
|
6337
|
+
* gate with parts has none — `validateGates` refuses the two together.
|
|
6338
|
+
*
|
|
6339
|
+
* `failureShape` reads the moment's own declaration first, then the part's
|
|
6340
|
+
* `proof.failure_shape`, then the registry's. The part's sits where a gate's
|
|
6341
|
+
* `run:` would: it describes the command the project named.
|
|
6342
|
+
*
|
|
6343
|
+
* Parts stay in the order they were declared. The caller's sort is stable and
|
|
6344
|
+
* orders by gate, never by part.
|
|
6345
|
+
* @param {object} options Inputs.
|
|
6346
|
+
* @param {string} options.id Gate id.
|
|
6347
|
+
* @param {{level: string, [key: string]: unknown}} options.entry The gate's
|
|
6348
|
+
* declaration at this moment, already an object.
|
|
6349
|
+
* @param {Array<{scope: string, command: string[], proof?: {failure_shape?: string[]}}>} options.parts
|
|
6350
|
+
* The gate's parts, already validated by `assertResolvable`.
|
|
6351
|
+
* @param {boolean} options.includeOff Whether to report a moment declared off.
|
|
6352
|
+
* @returns {object[]} One resolved entry per part; none for a moment declared
|
|
6353
|
+
* off unless `includeOff`.
|
|
6354
|
+
*/
|
|
6355
|
+
function resolveParts({ id, entry, parts, includeOff }) {
|
|
6356
|
+
const off = entry.level === "off";
|
|
6357
|
+
if (off && !includeOff) return [];
|
|
6358
|
+
// A project's own gate is not in the registry, so the lookup is by a plain
|
|
6359
|
+
// string and may find nothing.
|
|
6360
|
+
/** @type {Record<string, {label: string, work?: string, failureShape?: readonly string[], mayRewrite?: boolean, costly?: boolean} | undefined>} */
|
|
6361
|
+
const registry = REGISTRY;
|
|
6362
|
+
const definition = registry[id];
|
|
6363
|
+
const momentShape = entry[FAILURE_SHAPE_FIELD] ?? null;
|
|
6364
|
+
return parts.map(part => ({
|
|
6365
|
+
id,
|
|
6366
|
+
level: entry.level,
|
|
6367
|
+
mode: off ? "off" : "run",
|
|
6368
|
+
awaits: null,
|
|
6369
|
+
postedBy: null,
|
|
6370
|
+
declared: null,
|
|
6371
|
+
task: null,
|
|
6372
|
+
command: null,
|
|
6373
|
+
label: definition?.label ?? id,
|
|
6374
|
+
work: off ? null : (definition?.work ?? null),
|
|
6375
|
+
alias: null,
|
|
6376
|
+
evidence: null,
|
|
6377
|
+
callerChain: off ? null : (entry[CALLER_CHAIN_FIELD] ?? null),
|
|
6378
|
+
failureShape: off
|
|
6379
|
+
? momentShape
|
|
6380
|
+
: (momentShape ??
|
|
6381
|
+
part.proof?.[FAILURE_SHAPE_FIELD] ??
|
|
6382
|
+
definition?.failureShape ??
|
|
6383
|
+
null),
|
|
6384
|
+
mayRewrite: !off && definition?.mayRewrite === true,
|
|
6385
|
+
costly: !off && definition?.costly === true,
|
|
6386
|
+
scope: part.scope,
|
|
6387
|
+
argv: off ? null : [...part.command],
|
|
6388
|
+
}));
|
|
6389
|
+
}
|
|
6390
|
+
|
|
5114
6391
|
/**
|
|
5115
6392
|
* Merge a project's evidence phrases onto the defaults.
|
|
5116
6393
|
*
|
|
@@ -6195,8 +7472,13 @@ function main() {
|
|
|
6195
7472
|
// as `(intercepted by Lisa)` — a line that reads like success to the
|
|
6196
7473
|
// person running `list` to check their config. Interception is a
|
|
6197
7474
|
// property of the gate id, so ask the mode, not the command.
|
|
6198
|
-
|
|
6199
|
-
|
|
7475
|
+
// A part has no `<runner> <task>` string by design, so without its own
|
|
7476
|
+
// branch it would print as NO PROVER beside the command that proves it.
|
|
7477
|
+
// The argument list is shown as the list it is, never joined into text
|
|
7478
|
+
// that reads like something a shell was given.
|
|
7479
|
+
const how = Array.isArray(gate.argv)
|
|
7480
|
+
? `in ${gate.scope}: ${JSON.stringify(gate.argv)}`
|
|
7481
|
+
: gate.mode === "await"
|
|
6200
7482
|
? `await ${gate.awaits}`
|
|
6201
7483
|
: gate.mode === "intercept"
|
|
6202
7484
|
? "(intercepted by Lisa)"
|