@smartergpt/lexrunner 1.0.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/.changes/ci-debug-added.txt +1 -0
- package/.changeset/tsconfig-solution-build.md +5 -0
- package/.editorconfig +9 -0
- package/.env.example +8 -0
- package/.github/COST_EFFICIENCY.md +60 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- package/.github/ISSUE_TEMPLATE/epic.yml +123 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +26 -0
- package/.github/ISSUE_TEMPLATE/issue-A1-gate-input-validation.md +380 -0
- package/.github/ISSUE_TEMPLATE/issue-B1-scope-validation.md +509 -0
- package/.github/ISSUE_TEMPLATE/issue-C1-command-whitelist.md +463 -0
- package/.github/ISSUE_TEMPLATE/subtask.yml +153 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +9 -0
- package/.github/copilot-instructions-old.md +429 -0
- package/.github/copilot-instructions.md +33 -0
- package/.github/instructions/tests.instructions.md +10 -0
- package/.github/workflows/auto-delete-merged-branches.yml +103 -0
- package/.github/workflows/benchmarks.yml +72 -0
- package/.github/workflows/ci-debug.yml +33 -0
- package/.github/workflows/ci.yml +167 -0
- package/.github/workflows/cli-smoke-test.yml +345 -0
- package/.github/workflows/copilot-setup-steps.yml +20 -0
- package/.github/workflows/frame-emission-gate.yml +242 -0
- package/.github/workflows/project-auto.yml +24 -0
- package/.github/workflows/release.yml +260 -0
- package/.github/workflows/slow-cli-tests.yml +37 -0
- package/.github/workflows/tag-guard.yml +44 -0
- package/.husky/pre-commit +1 -0
- package/.nvmrc +2 -0
- package/.prettierignore +28 -0
- package/.prettierrc.json +10 -0
- package/.smartergpt/CONTROL_DECK_VISION.md +226 -0
- package/.smartergpt/allowed-commands.json +41 -0
- package/.smartergpt/allowed-commands.strict.json +56 -0
- package/.smartergpt/deliverables/.live.md +426 -0
- package/.smartergpt/deliverables/ISSUE_STATUS_2025-12-28.md +193 -0
- package/.smartergpt/deliverables/_research/snapshot-contract-feedback/ADR_DISCUSSION.md +379 -0
- package/.smartergpt/deliverables/_research/snapshot-contract-feedback/Answer_claude-haiku.md +109 -0
- package/.smartergpt/deliverables/_research/snapshot-contract-feedback/Answer_gemini-flash.md +42 -0
- package/.smartergpt/deliverables/_research/snapshot-contract-feedback/Answer_gpt-codex-mini.md +19 -0
- package/.smartergpt/deliverables/_research/snapshot-contract-feedback/Answer_raptor-mini.md +37 -0
- package/.smartergpt/deliverables/_research/snapshot-contract-feedback/Question.md +37 -0
- package/.smartergpt/deliverables/merge-weave-04469e41-24ba-4ed5-b0ff-13c7ea12858d.ndjson +2 -0
- package/.smartergpt/deps.yml +3 -0
- package/.smartergpt/docs/fanout-templates.md +213 -0
- package/.smartergpt/docs/merge-weave-interventions.md +261 -0
- package/.smartergpt/docs/test-fix-patterns.md +240 -0
- package/.smartergpt/fanout-templates.yml +263 -0
- package/.smartergpt/gates.yml +9 -0
- package/.smartergpt/intent.md +1 -0
- package/.smartergpt/issues/QOL-001-analysis-script-filtering.md +36 -0
- package/.smartergpt/issues/QOL-002-log-retention-policy.md +92 -0
- package/.smartergpt/issues/QOL-003-realtime-console-feedback.md +44 -0
- package/.smartergpt/issues/QOL-004-governance-report-cli.md +44 -0
- package/.smartergpt/issues/QOL-005-schema-versioning.md +46 -0
- package/.smartergpt/issues/QOL-006-debug-verbose-mode.md +45 -0
- package/.smartergpt/issues/QOL-COMPLETION-REPORT.md +359 -0
- package/.smartergpt/issues/QOL-REVIEW-SUMMARY.md +111 -0
- package/.smartergpt/issues/QOL-ROADMAP.md +71 -0
- package/.smartergpt/merge-policy.yml +41 -0
- package/.smartergpt/merge-weave-policy.yml +255 -0
- package/.smartergpt/o1.json +0 -0
- package/.smartergpt/o2.json +0 -0
- package/.smartergpt/personas/eager-pm.md +123 -0
- package/.smartergpt/personas/example.md +81 -0
- package/.smartergpt/personas/senior-dev.md +107 -0
- package/.smartergpt/profile.yml +2 -0
- package/.smartergpt/prompts/create-project.md +112 -0
- package/.smartergpt/prompts/idea.md +64 -0
- package/.smartergpt/pull-request-template.md +25 -0
- package/.smartergpt/schemas/behavior-rule.schema.d.ts +54 -0
- package/.smartergpt/schemas/behavior-rule.schema.js +56 -0
- package/.smartergpt/schemas/behavior-rule.schema.json +105 -0
- package/.smartergpt/schemas/behavior-rule.schema.ts +60 -0
- package/.smartergpt/schemas/execution-plan-v1.d.ts +47 -0
- package/.smartergpt/schemas/execution-plan-v1.js +22 -0
- package/.smartergpt/schemas/execution-plan-v1.json +113 -0
- package/.smartergpt/schemas/execution-plan-v1.ts +32 -0
- package/.smartergpt/schemas/execution-plan.schema.json +116 -0
- package/.smartergpt/schemas/feature-spec-v0.d.ts +13 -0
- package/.smartergpt/schemas/feature-spec-v0.js +12 -0
- package/.smartergpt/schemas/feature-spec-v0.json +58 -0
- package/.smartergpt/schemas/feature-spec-v0.ts +16 -0
- package/.smartergpt/schemas/feature-spec.schema.json +111 -0
- package/.smartergpt/schemas/gates.schema.d.ts +48 -0
- package/.smartergpt/schemas/gates.schema.js +20 -0
- package/.smartergpt/schemas/gates.schema.json +47 -0
- package/.smartergpt/schemas/gates.schema.ts +26 -0
- package/.smartergpt/schemas/idea.schema.json +81 -0
- package/.smartergpt/schemas/runner.scope.schema.d.ts +54 -0
- package/.smartergpt/schemas/runner.scope.schema.js +28 -0
- package/.smartergpt/schemas/runner.scope.schema.json +75 -0
- package/.smartergpt/schemas/runner.scope.schema.ts +36 -0
- package/.smartergpt/schemas/runner.stack.schema.d.ts +40 -0
- package/.smartergpt/schemas/runner.stack.schema.js +21 -0
- package/.smartergpt/schemas/runner.stack.schema.json +51 -0
- package/.smartergpt/schemas/runner.stack.schema.ts +27 -0
- package/.smartergpt/scope.yml +11 -0
- package/.smartergpt/stack.yml +16 -0
- package/.smartergpt/test-fix-patterns.yml +106 -0
- package/.tool-versions +13 -0
- package/AGENTS.md +402 -0
- package/CHANGELOG.md +256 -0
- package/CLAUDE.md +484 -0
- package/CONTRIBUTING.md +345 -0
- package/EAGER_PM_FANOUT_ANALYSIS.md +283 -0
- package/FAQ.md +292 -0
- package/FIXTURE_LIBRARY_SUMMARY.md +327 -0
- package/IMPLEMENTATION_SUMMARY.md +222 -0
- package/LICENSE +21 -0
- package/MANUAL_TEST_GUIDE.md +229 -0
- package/MCP-ALIGNMENT-SUMMARY.md +261 -0
- package/MCP-CONFIG.md +125 -0
- package/MERGE_WEAVE_QUICKSTART.md +450 -0
- package/MERGE_WEAVE_SUMMARY.md +259 -0
- package/MERGE_WEAVE_USAGE_GUIDE.md +368 -0
- package/NOTICE.md +43 -0
- package/README.mcp.md +770 -0
- package/README.md +1069 -0
- package/TEST_INFRASTRUCTURE_ASSESSMENT.md +225 -0
- package/bootstrap-lexrunner.sh +396 -0
- package/dist/api-7H7SJZIX.js +15 -0
- package/dist/api-U3X2WA6D.js +15 -0
- package/dist/audit-2TZ2LU72.js +60 -0
- package/dist/audit-5HH5BMKI.js +60 -0
- package/dist/audit-6K5K333I.js +60 -0
- package/dist/audit-DYQWS57J.js +60 -0
- package/dist/audit-JBWZ2GZ2.js +60 -0
- package/dist/audit-SJF3434D.js +60 -0
- package/dist/audit-TICGGVX5.js +60 -0
- package/dist/audit-YOBB27PY.js +60 -0
- package/dist/autopilot-3GAVXWWC.js +45 -0
- package/dist/autopilot-43NOYVQA.js +45 -0
- package/dist/autopilot-4UA3OWLU.js +45 -0
- package/dist/autopilot-54TK5CCG.js +45 -0
- package/dist/autopilot-5BHC2UQT.js +45 -0
- package/dist/autopilot-ABZUCVGY.js +45 -0
- package/dist/autopilot-ACJZP47Y.js +45 -0
- package/dist/autopilot-AL5F5AUS.js +46 -0
- package/dist/autopilot-BO67FWUC.js +45 -0
- package/dist/autopilot-BR6W4GEX.js +45 -0
- package/dist/autopilot-FOR2UKRY.js +45 -0
- package/dist/autopilot-GDTTXHEQ.js +45 -0
- package/dist/autopilot-GEAMFZBM.js +45 -0
- package/dist/autopilot-HDMBRZE6.js +45 -0
- package/dist/autopilot-IKI2Y6S4.js +44 -0
- package/dist/autopilot-ILTBWWOL.js +46 -0
- package/dist/autopilot-KI3MXIFI.js +44 -0
- package/dist/autopilot-LWNPZC3J.js +45 -0
- package/dist/autopilot-LXPJ4ZXF.js +45 -0
- package/dist/autopilot-MDIFIONK.js +46 -0
- package/dist/autopilot-NW3LDP6M.js +45 -0
- package/dist/autopilot-OKTSCG35.js +45 -0
- package/dist/autopilot-OR5PF5PD.js +45 -0
- package/dist/autopilot-PE65SBGN.js +45 -0
- package/dist/autopilot-PW7I4B6W.js +45 -0
- package/dist/autopilot-QMLBL5P6.js +45 -0
- package/dist/autopilot-QSN6ZU5O.js +45 -0
- package/dist/autopilot-R7EZJOGI.js +46 -0
- package/dist/autopilot-T544CPPD.js +44 -0
- package/dist/autopilot-TNQB6VGJ.js +44 -0
- package/dist/autopilot-UVIYCR6K.js +45 -0
- package/dist/autopilot-W3ZTTSH3.js +45 -0
- package/dist/autopilot-XPKWOFXO.js +44 -0
- package/dist/autopilot-XRX4QWRM.js +44 -0
- package/dist/autopilot-Y3BAGNI5.js +44 -0
- package/dist/autopilot-ZE64XW2K.js +44 -0
- package/dist/chunk-2ESYSVXG.js +48 -0
- package/dist/chunk-2VR554P7.js +668 -0
- package/dist/chunk-37DOWIVT.js +1084 -0
- package/dist/chunk-3DU2DWUP.js +400 -0
- package/dist/chunk-3DVXIZFM.js +11166 -0
- package/dist/chunk-3FABZF4V.js +811 -0
- package/dist/chunk-4FFGNTAV.js +515 -0
- package/dist/chunk-4GEC4HC3.js +11221 -0
- package/dist/chunk-4RVZNLD4.js +628 -0
- package/dist/chunk-55VWJYZY.js +39 -0
- package/dist/chunk-5CGWZH5X.js +340 -0
- package/dist/chunk-5QKWKK4M.js +11794 -0
- package/dist/chunk-5Z3XHND7.js +11755 -0
- package/dist/chunk-6A4IE3TI.js +302 -0
- package/dist/chunk-6KK5JFFE.js +106 -0
- package/dist/chunk-6YC2VSLE.js +11252 -0
- package/dist/chunk-7C4K2SHD.js +668 -0
- package/dist/chunk-ANXY4RGA.js +11091 -0
- package/dist/chunk-ASHKNUBR.js +11312 -0
- package/dist/chunk-B3OYDPOP.js +11793 -0
- package/dist/chunk-DBH7SQ2S.js +1084 -0
- package/dist/chunk-DEI7A5B4.js +11449 -0
- package/dist/chunk-DM4GHY3J.js +92 -0
- package/dist/chunk-EQKFCZLH.js +9823 -0
- package/dist/chunk-FAIJPBT5.js +40 -0
- package/dist/chunk-FDDKUDXR.js +11166 -0
- package/dist/chunk-FEAR6ETG.js +438 -0
- package/dist/chunk-FNBAHK5V.js +72 -0
- package/dist/chunk-FXL74C73.js +523 -0
- package/dist/chunk-GLJEDX4L.js +10247 -0
- package/dist/chunk-GTP4OHD7.js +1107 -0
- package/dist/chunk-HIHH7IVO.js +10557 -0
- package/dist/chunk-I3VXUVCB.js +10474 -0
- package/dist/chunk-I6BIFVWI.js +10519 -0
- package/dist/chunk-I72TRUTJ.js +1084 -0
- package/dist/chunk-J5B5KT2F.js +368 -0
- package/dist/chunk-JMTULZ66.js +11743 -0
- package/dist/chunk-JXIQ7HCK.js +11166 -0
- package/dist/chunk-K6HVPBDP.js +10692 -0
- package/dist/chunk-KBT5Y666.js +521 -0
- package/dist/chunk-LETPROKG.js +11092 -0
- package/dist/chunk-LLMY2BZF.js +1084 -0
- package/dist/chunk-NMNL4US2.js +1084 -0
- package/dist/chunk-O2XRP7JK.js +10247 -0
- package/dist/chunk-OGPWLFFO.js +11201 -0
- package/dist/chunk-OQJUWTZV.js +51 -0
- package/dist/chunk-PJRWPLQ6.js +669 -0
- package/dist/chunk-PYRVUCJR.js +370 -0
- package/dist/chunk-Q6Y524KH.js +669 -0
- package/dist/chunk-QF7DM5VW.js +106 -0
- package/dist/chunk-QGM4M3NI.js +37 -0
- package/dist/chunk-QIIELFTL.js +1107 -0
- package/dist/chunk-QUW6N7GR.js +10264 -0
- package/dist/chunk-QZASNLQX.js +11223 -0
- package/dist/chunk-RMN4IAWO.js +11808 -0
- package/dist/chunk-RN5NHU37.js +11465 -0
- package/dist/chunk-RNG3RILO.js +11755 -0
- package/dist/chunk-RSA6DEB4.js +9748 -0
- package/dist/chunk-RURYWSMX.js +10524 -0
- package/dist/chunk-SUEXK5U7.js +11201 -0
- package/dist/chunk-TVUF55OH.js +11807 -0
- package/dist/chunk-U5MMENCP.js +456 -0
- package/dist/chunk-U62I2R2D.js +434 -0
- package/dist/chunk-UHFMFO54.js +21 -0
- package/dist/chunk-UNZBDSEU.js +11166 -0
- package/dist/chunk-UOATTNQP.js +334 -0
- package/dist/chunk-UZFYNSMJ.js +334 -0
- package/dist/chunk-VP37GLU6.js +1084 -0
- package/dist/chunk-W6WDKBWO.js +11453 -0
- package/dist/chunk-XBKUFNVF.js +10745 -0
- package/dist/chunk-XOLVQTIE.js +670 -0
- package/dist/chunk-XVFTBVDS.js +257 -0
- package/dist/chunk-YABA7DB6.js +11091 -0
- package/dist/chunk-YWCJX5KL.js +10557 -0
- package/dist/chunk-Z5GP7FSR.js +309 -0
- package/dist/chunk-ZBT3DATZ.js +296 -0
- package/dist/chunk-ZDBAZXUQ.js +11201 -0
- package/dist/chunk-ZEMABYS4.js +92 -0
- package/dist/chunk-ZOA4HT7P.js +662 -0
- package/dist/cli.cjs +40431 -0
- package/dist/cli.d.cts +2709 -0
- package/dist/cli.d.ts +2709 -0
- package/dist/cli.js +21149 -0
- package/dist/commandValidator-42OUDFZ4.js +140 -0
- package/dist/commandValidator-7LQHTYL5.js +140 -0
- package/dist/commandValidator-AT5OYZFC.js +142 -0
- package/dist/commandValidator-DH3CX2OW.js +140 -0
- package/dist/commandValidator-GCQC7H4A.js +140 -0
- package/dist/commandValidator-K6VWB6O3.js +140 -0
- package/dist/commandValidator-L6WNDBYB.js +129 -0
- package/dist/commandValidator-O3KSNXD2.js +140 -0
- package/dist/commandValidator-ZHMUA5RQ.js +140 -0
- package/dist/constraints-M52FVL2X.js +11 -0
- package/dist/dist-CSOR2BL2.js +1144 -0
- package/dist/dist-PKOIS5NZ.js +1144 -0
- package/dist/fileAnalysis-3VMDDJ6I.js +9 -0
- package/dist/fileAnalysis-4QLHUT44.js +9 -0
- package/dist/fileAnalysis-H6M2Z7ZC.js +9 -0
- package/dist/fileAnalysis-HMI7IL6S.js +9 -0
- package/dist/fileAnalysis-JHABOPUQ.js +9 -0
- package/dist/gateMapping-E5MGNJH5.js +17 -0
- package/dist/jsonEnvelope-R4SWKX2N.js +62 -0
- package/dist/mergeTreeSimulator-ATOPJ3DU.js +11 -0
- package/dist/mergeTreeSimulator-AYUK4TZT.js +11 -0
- package/dist/mergeTreeSimulator-BBWJUQBK.js +11 -0
- package/dist/mergeTreeSimulator-DJJDRB5N.js +11 -0
- package/dist/mergeTreeSimulator-X4BA647P.js +11 -0
- package/dist/planDiff-37QHCPKO.js +109 -0
- package/dist/planDiff-BQHIUARB.js +109 -0
- package/dist/planDiff-QOK6KNB7.js +111 -0
- package/dist/planDiff-RXR4CWFS.js +109 -0
- package/dist/planDiff-W2BTH2MU.js +109 -0
- package/dist/planHistory-4J3Q6AJ3.js +126 -0
- package/dist/planHistory-DQRSB2Y7.js +118 -0
- package/dist/planHistory-GLCXP6AB.js +126 -0
- package/dist/planHistory-SMNRLEKG.js +126 -0
- package/dist/planHistory-UO4WZ6GO.js +126 -0
- package/dist/planReview-7BWVLABC.js +377 -0
- package/dist/planReview-7VB3OYKZ.js +385 -0
- package/dist/planReview-FAIBIAE6.js +377 -0
- package/dist/planReview-FXQBDNKJ.js +376 -0
- package/dist/planReview-HO4YYETA.js +377 -0
- package/dist/planReview-I26EKCUK.js +376 -0
- package/dist/planReview-JBOAJHSU.js +377 -0
- package/dist/planReview-SCNZWC6B.js +376 -0
- package/dist/planReview-TU7LMZIY.js +376 -0
- package/dist/planViewer-2YZCPVDM.js +155 -0
- package/dist/planViewer-72WZFUTU.js +154 -0
- package/dist/planViewer-G546TVHV.js +154 -0
- package/dist/planViewer-I7ZHNJQF.js +150 -0
- package/dist/planViewer-IRXHOY5U.js +155 -0
- package/dist/planViewer-IX2ICW45.js +154 -0
- package/dist/planViewer-PDWPUOP6.js +155 -0
- package/dist/planViewer-PEOADAGZ.js +155 -0
- package/dist/planViewer-PFYDEG6V.js +150 -0
- package/dist/planViewer-UIPOSRVW.js +151 -0
- package/dist/planViewer-V2JUKV7Q.js +154 -0
- package/dist/sarif-46TKOOJZ.js +9 -0
- package/dist/sarif-63JKTFFI.js +9 -0
- package/dist/sarif-CIYIWUNC.js +9 -0
- package/dist/sarif-OGAGDL6B.js +9 -0
- package/dist/sarif-XIREI5B5.js +9 -0
- package/dist/security-3V6FKJDA.js +423 -0
- package/dist/security-4JMEUM56.js +423 -0
- package/dist/security-QHPEWY5G.js +423 -0
- package/dist/security-V2LAL5TP.js +415 -0
- package/dist/security-WTASK6T6.js +423 -0
- package/dist/security-XE4GHVJD.js +423 -0
- package/dist/security-XLXM3UHT.js +423 -0
- package/dist/security-YDLHSMVY.js +441 -0
- package/dist/security-ZDAEZF7D.js +423 -0
- package/dist/signing-3EI734L4.js +14 -0
- package/dist/signing-5G7K6JXJ.js +14 -0
- package/dist/signing-7DK7SABM.js +14 -0
- package/dist/signing-JJJOUGCW.js +14 -0
- package/dist/signing-OAJ3MXGA.js +14 -0
- package/dist/verify-5F6PUXUQ.js +62 -0
- package/dist/verify-5ILURHV2.js +62 -0
- package/dist/verify-MRDZJUGO.js +62 -0
- package/dist/verify-SCUHB3SA.js +62 -0
- package/dist/verify-YZRHN2D3.js +62 -0
- package/docs/1.0.0-vertical-slice.md +214 -0
- package/docs/ADR-007-INTEGRATION-SUMMARY.md +232 -0
- package/docs/ALIASING_FOR_LEXRUNNER.md +709 -0
- package/docs/ALIASING_FOR_RUNNER.md +552 -0
- package/docs/AX.md +317 -0
- package/docs/CHECKPOINT_RESUME.md +208 -0
- package/docs/CLI_VERBS.md +219 -0
- package/docs/CONFLICT_DETECTION.md +198 -0
- package/docs/DISCIPLINED_FAILURE.md +224 -0
- package/docs/ENVIRONMENT_QUALITY.md +155 -0
- package/docs/ERROR_CODES.md +528 -0
- package/docs/EVENT_SCHEMA.md +659 -0
- package/docs/EXE-012-investigation-summary.md +300 -0
- package/docs/GATE_ATTESTATION_GUIDE.md +237 -0
- package/docs/JSON_OUTPUT_SCHEMAS.md +347 -0
- package/docs/LEXRUNNER_ALIASING.md +444 -0
- package/docs/LEX_INTEGRATION.md +83 -0
- package/docs/LEX_PUBLIC_API.md +306 -0
- package/docs/LICENSING.md +119 -0
- package/docs/MCP-CLI-PARITY.md +410 -0
- package/docs/MCP-MIGRATION.md +258 -0
- package/docs/MCP-PARITY.md +234 -0
- package/docs/MEMORY_TOOLS.md +278 -0
- package/docs/MERGE_WEAVE_SETUP.md +643 -0
- package/docs/MIGRATION_v0.1.md +760 -0
- package/docs/NAMING_CONVENTIONS.md +82 -0
- package/docs/PERSONA_FOUNDATION.md +124 -0
- package/docs/PHASE3_MEMORY_GUIDE.md +122 -0
- package/docs/PLAN_LOCK.md +114 -0
- package/docs/README.md +289 -0
- package/docs/RUNNER_LIFECYCLE.md +257 -0
- package/docs/SAFETY_MECHANISMS.md +325 -0
- package/docs/SECURITY_IMPLEMENTATION.md +535 -0
- package/docs/TERMS.md +34 -0
- package/docs/TOKEN_TRACKING.md +162 -0
- package/docs/WORKFLOW_GUIDANCE.md +277 -0
- package/docs/adr/ADR-000-product-naming-and-branding.md +115 -0
- package/docs/adr/ADR-001-plan-json-frozen-input.md +68 -0
- package/docs/adr/ADR-002-two-track-separation.md +84 -0
- package/docs/adr/ADR-003-gate-uniform-execution.md +69 -0
- package/docs/adr/ADR-004-runner-state-model.md +75 -0
- package/docs/adr/ADR-005-merge-pyramid-ordering.md +87 -0
- package/docs/adr/ADR-006-schema-versioning-semver.md +81 -0
- package/docs/adr/ADR-007-task-snapshot-contract.md +503 -0
- package/docs/adr/ADR-008-lex-packaging.md +243 -0
- package/docs/adr/ADR-009-ax-test-output-adapters.md +440 -0
- package/docs/adr/README.md +32 -0
- package/docs/advanced-cli.md +436 -0
- package/docs/agent-stall-detection.md +278 -0
- package/docs/architecture/executors.md +190 -0
- package/docs/architecture.md +316 -0
- package/docs/attestation/AX-SHARED-PLEDGE.md +83 -0
- package/docs/attestation/AX-SHARED-PLEDGE_v1.0.0.md +99 -0
- package/docs/attestation/AX-SHARED-PLEDGE_v1.0.0_VERIFICATION.md +115 -0
- package/docs/attestation/Lex_Guff_Version_Contract_Pact_v1.0.0.md +181 -0
- package/docs/attestation/README.md +87 -0
- package/docs/attestation/ax_pledge_2025-12-02.ots +0 -0
- package/docs/attestation/ax_pledge_timestamp_response.tsr +0 -0
- package/docs/attestation/copilot_summarization_2025-12-01.ots +0 -0
- package/docs/attestation/copilot_summarization_2025-12-01_VERIFICATION.md +100 -0
- package/docs/attestation/copilot_summarization_behavior_observation_2025-12-01.md +85 -0
- package/docs/attestation/copilot_summarization_screenshot_2025-12-01.png +0 -0
- package/docs/attestation/employment_separation_2025-11-26.ots +0 -0
- package/docs/attestation/employment_timestamp_response.tsr +0 -0
- package/docs/attestation/freetsa_cacert.pem +45 -0
- package/docs/attestation/freetsa_tsa.crt +45 -0
- package/docs/attestation/lex_employment_separation_2025-11-26.md +85 -0
- package/docs/attestation/lex_employment_separation_2025-11-26_VERIFICATION.md +126 -0
- package/docs/attestation/patent/2025-12-07-shadow-governance-pct-draft.md +350 -0
- package/docs/attestation/patent/2025-12-07-shadow-governance-pct-draft.md.ots +0 -0
- package/docs/attestation/patent/2025-12-07-shadow-governance-pct-draft_VERIFICATION.md +130 -0
- package/docs/attestation/patent/README.md +75 -0
- package/docs/attestation/patent/fig1_write_path.svg +58 -0
- package/docs/attestation/patent/fig2_read_normalize_rollup.svg +92 -0
- package/docs/attestation/timestamp_response.tsr +0 -0
- package/docs/attribution-README.md +264 -0
- package/docs/audit-compliance.md +283 -0
- package/docs/audit-outputs.md +1213 -0
- package/docs/audit-sdk.md +1134 -0
- package/docs/autopilot-levels.md +368 -0
- package/docs/autopilot.md +288 -0
- package/docs/ci-cd-integration.md +580 -0
- package/docs/ci-integration-guide.md +369 -0
- package/docs/ci-version-validation.md +198 -0
- package/docs/cli-mcp-weave-reporting.md +462 -0
- package/docs/cli.md +2262 -0
- package/docs/cluster-gates-rollback.md +222 -0
- package/docs/command-creation-guide.md +485 -0
- package/docs/command-whitelist.md +490 -0
- package/docs/commands/idea.md +253 -0
- package/docs/config.md +245 -0
- package/docs/conflict-clustering.md +225 -0
- package/docs/conflict-predictor.md +359 -0
- package/docs/context-diet.md +249 -0
- package/docs/counter-examples.md +199 -0
- package/docs/create-project.md +211 -0
- package/docs/deliverables-generator.md +299 -0
- package/docs/deliverables-management.md +474 -0
- package/docs/dependency-parser.md +354 -0
- package/docs/determinism.md +299 -0
- package/docs/diffgraph-planner.md +1211 -0
- package/docs/dogfood/README.md +33 -0
- package/docs/dogfood/wave-3-results.md +303 -0
- package/docs/dogfood-merge-weave-script.md +224 -0
- package/docs/enterprise-onboarding.md +291 -0
- package/docs/environment-variables.md +625 -0
- package/docs/error-recovery.md +466 -0
- package/docs/errors.md +288 -0
- package/docs/executor-authoring.md +854 -0
- package/docs/executor-decoupling.md +410 -0
- package/docs/front-end-capture-pipeline.md +312 -0
- package/docs/gate-report-examples.md +380 -0
- package/docs/gates.md +319 -0
- package/docs/github-automation.md +128 -0
- package/docs/governance-metrics.md +368 -0
- package/docs/integrations/README.md +588 -0
- package/docs/interactive-plan-review.md +493 -0
- package/docs/issue-orchestration.md +256 -0
- package/docs/lex_ax_session_key_rememberings_v0.1.md +195 -0
- package/docs/lexrunner-v1-summary.md +246 -0
- package/docs/lexrunner-v2-contract.md +404 -0
- package/docs/lexrunner-v2-migration-plan.md +388 -0
- package/docs/lexrunner-v2-salvage-map.md +355 -0
- package/docs/lexsona-rules.md +154 -0
- package/docs/merge-weave-analysis.md +403 -0
- package/docs/merge-weave-quickstart.md +770 -0
- package/docs/merge-weave-state-machine.md +390 -0
- package/docs/migration-guide.md +529 -0
- package/docs/monitoring-examples.md +470 -0
- package/docs/monitoring-implementation.md +252 -0
- package/docs/orchestration.md +234 -0
- package/docs/performance-scale.md +359 -0
- package/docs/plan-generation.md +407 -0
- package/docs/profile-resolution.md +455 -0
- package/docs/prompts.md +427 -0
- package/docs/quickstart.md +546 -0
- package/docs/release-process.md +310 -0
- package/docs/sample-prompts/merge-weave/cli-merge-weave-kickoff.md +274 -0
- package/docs/sample-prompts/merge-weave/mcp-merge-weave-kickoff.md +480 -0
- package/docs/sample-prompts/merge-weave/standalone-merge-weave-kickoff.md +237 -0
- package/docs/schemas.md +359 -0
- package/docs/scope-validation.md +444 -0
- package/docs/security/rotation-guide.md +325 -0
- package/docs/specs/Meeting_Control_Stack_Concept_v0.1.0.md +417 -0
- package/docs/specs/git-feature-flag-redesign.md +321 -0
- package/docs/specs/lex-pr-brief-behavior.md +269 -0
- package/docs/specs/smartergpt-structure-v1.md +705 -0
- package/docs/specs/task-brief-v0.1.md +224 -0
- package/docs/store-architecture.md +61 -0
- package/docs/templates/CONTRIBUTING-merge-weave-section.md +33 -0
- package/docs/templates/gates.example.yml +109 -0
- package/docs/templates/plan.example.json +77 -0
- package/docs/thesis/00-EVOLUTION-NOTES.md +383 -0
- package/docs/thesis/01-CORE-THESIS.md +285 -0
- package/docs/thesis/02-TURN-COST.md +498 -0
- package/docs/thesis/03-PERMISSION-TO-FAIL.md +581 -0
- package/docs/thesis/04-CROSS-MODEL-CONTINUITY.md +517 -0
- package/docs/thesis/05-RULE-FILE-SPEC.md +732 -0
- package/docs/thesis/06-CAPABILITY-TIERS.md +723 -0
- package/docs/thesis/07-ROBERT-FIELD-REPORT.md +433 -0
- package/docs/thesis/08-IMPLEMENTATION-GUIDE.md +1093 -0
- package/docs/thesis/09-METRICS-AND-TELEMETRY.md +793 -0
- package/docs/thesis/10-FAILURE-MODES.md +716 -0
- package/docs/thesis/README.md +151 -0
- package/docs/thesis/lex_governance-collab_systems_paper_draft.md +952 -0
- package/docs/thesis/lex_governance-collab_systems_paper_draft.pdf +0 -0
- package/docs/tool-grounded/READINESS_ANALYSIS.md +527 -0
- package/docs/tool-grounded/enforcement.md +361 -0
- package/docs/tool-grounded/tool-grounded-a-view-from-the-inside.md +437 -0
- package/docs/tool-grounded/tool-grounded-prompt.md +122 -0
- package/docs/tool-grounded/tool-grounded-run-centric.md +474 -0
- package/docs/troubleshooting-planner.md +910 -0
- package/docs/troubleshooting.md +745 -0
- package/docs/tutorials/README.md +201 -0
- package/docs/tutorials/diffgraph-planner/01-simple-stack.md +460 -0
- package/docs/tutorials/diffgraph-planner/02-diamond-pattern.md +431 -0
- package/docs/tutorials/diffgraph-planner/03-large-batch.md +525 -0
- package/docs/tutorials/diffgraph-planner/04-fixing-cycles.md +526 -0
- package/docs/tutorials/diffgraph-planner/05-hybrid-workflow.md +555 -0
- package/docs/tutorials/quick-merge-pyramid.md +364 -0
- package/docs/tutorials/video-scripts/01-getting-started.md +286 -0
- package/docs/tutorials/video-scripts/02-understanding-dependencies.md +376 -0
- package/docs/weave-contract.md +116 -0
- package/docs/weave-execution-log.md +153 -0
- package/docs/workflows/README.md +139 -0
- package/docs/workflows/enterprise.md +545 -0
- package/docs/workflows/small-team.md +398 -0
- package/docs/workflows/solo-developer.md +419 -0
- package/dogfood-merge-weave.sh +122 -0
- package/examples/README.md +22 -0
- package/examples/WORKING_EXAMPLE.md +309 -0
- package/examples/analyze-pr-files.js +100 -0
- package/examples/autopilot-level4-example.md +234 -0
- package/examples/cluster-gates-demo.sh +178 -0
- package/examples/complete-security-workflow.ts +248 -0
- package/examples/error-recovery/README.md +202 -0
- package/examples/executor-manifest.example.yaml +81 -0
- package/examples/front-end-capture-pipeline/README.md +99 -0
- package/examples/front-end-capture-pipeline/create-project-example.sh +83 -0
- package/examples/front-end-capture-pipeline/idea-dark-mode.json +14 -0
- package/examples/front-end-capture-pipeline/idea-example.sh +57 -0
- package/examples/front-end-capture-pipeline/manual-test-checklist.md +426 -0
- package/examples/gates/README.md +165 -0
- package/examples/gates/lint-gate.sh +40 -0
- package/examples/gates/lint-gate.ts +99 -0
- package/examples/gates/test-runner.ts +113 -0
- package/examples/gates/vuln-scanner.ts +95 -0
- package/examples/github-integration/README.md +111 -0
- package/examples/github-integration/example-plan.json +95 -0
- package/examples/performance-config.md +388 -0
- package/examples/profile-setup/.gitignore.template +66 -0
- package/examples/profile-setup/.smartergpt-example/README.md +190 -0
- package/examples/profile-setup/.smartergpt.local-example/README.md +365 -0
- package/examples/profile-setup/README.md +492 -0
- package/examples/profile-setup/cross-repo-prompts/README.md +606 -0
- package/examples/safety-framework-demo.ts +130 -0
- package/examples/safety-mechanisms-example.ts +191 -0
- package/examples/sample-plan.json +87 -0
- package/examples/sample-stack.yml +66 -0
- package/examples/sarif/README.md +224 -0
- package/examples/scope-validation-demo.ts +199 -0
- package/examples/security-integration.ts +293 -0
- package/examples/token-tracking-example.ts +71 -0
- package/executors/senior-dev/ARCHITECTURE.md +182 -0
- package/executors/senior-dev/MEMORY_INTEGRATION.md +236 -0
- package/executors/senior-dev/QUICK_START.md +145 -0
- package/executors/senior-dev/README.md +76 -0
- package/executors/senior-dev/examples/sample-review-session.md +228 -0
- package/executors/senior-dev/executor-manifest.yaml +79 -0
- package/executors/senior-dev/prompts/code-review.prompt.md +78 -0
- package/executors/senior-dev/prompts/mentorship-feedback.prompt.md +97 -0
- package/executors/senior-dev/prompts/pattern-recognition.prompt.md +80 -0
- package/executors/senior-dev/prompts/pr-analysis.prompt.md +75 -0
- package/executors/senior-dev/scripts/capture-review-frame.sh +129 -0
- package/executors/senior-dev/scripts/prepare-review-context.sh +61 -0
- package/executors/senior-dev/scripts/recall-context.sh +87 -0
- package/lexrunner-launcher.sh +12 -0
- package/mcp-config-example.json +14 -0
- package/mcp-server.mjs +1221 -0
- package/merge-weave-current-prs.md +170 -0
- package/merge-weave-dogfood.json +46 -0
- package/merge-weave-plan.json +56 -0
- package/package.json +140 -0
- package/procedures/merge-weave-main.yaml +90 -0
- package/procedures/pr-review.yaml +68 -0
- package/project/README.md +50 -0
- package/prompts/tool-grounded-mode.md +185 -0
- package/schemas/allowed-commands.schema.json +108 -0
- package/schemas/audit-events.schema.json +138 -0
- package/schemas/audit-events.v1.0.0.schema.json +138 -0
- package/schemas/edit-plan.schema.json +80 -0
- package/schemas/executor-manifest.schema.json +236 -0
- package/schemas/flake-report.schema.json +95 -0
- package/schemas/gate-report.schema.json +85 -0
- package/schemas/gates/build.schema.json +32 -0
- package/schemas/gates/coverage.schema.json +42 -0
- package/schemas/gates/lint.schema.json +34 -0
- package/schemas/gates/security-scan.schema.json +33 -0
- package/schemas/gates/test.schema.json +35 -0
- package/schemas/next-option.schema.json +60 -0
- package/schemas/persona-snapshot.schema.json +66 -0
- package/schemas/plan.schema.json +300 -0
- package/schemas/status-response.schema.json +193 -0
- package/scripts/README.md +354 -0
- package/scripts/analyze-governance-logs.mjs +51 -0
- package/scripts/benchmark-ci.ts +339 -0
- package/scripts/check-determinism.sh +23 -0
- package/scripts/check-license-compliance.mjs +319 -0
- package/scripts/check-release-drift.mjs +81 -0
- package/scripts/ci-debug.sh +24 -0
- package/scripts/ci-smoke.mjs +304 -0
- package/scripts/create-sample-repo.sh +245 -0
- package/scripts/dogfood-merge-weave.sh +552 -0
- package/scripts/gen_mcp_servers.py +252 -0
- package/scripts/generate-executor-manifest-schema.ts +30 -0
- package/scripts/generate-flake-schema.ts +32 -0
- package/scripts/generate-gate-schema.ts +32 -0
- package/scripts/generate-plan-schema.ts +30 -0
- package/scripts/generate-run-schemas.ts +69 -0
- package/scripts/load-prompt.mjs +147 -0
- package/scripts/merge-weave-wrapper.sh +445 -0
- package/scripts/merge-weave.sh +489 -0
- package/scripts/metrics-template.ts +134 -0
- package/scripts/package-lex.sh +267 -0
- package/scripts/quick-start-merge-weave.sh +218 -0
- package/scripts/release-prepare.ts +350 -0
- package/scripts/rotate-secrets-example.ts +134 -0
- package/scripts/test-lexsona-shadow.mjs +100 -0
- package/scripts/validate-manifests.ts +188 -0
- package/scripts/verify-audit-phase2.js +175 -0
- package/src/ai/README.md +456 -0
- package/src/ai/conflictStrategy.ts +223 -0
- package/src/ai/conflictStrategyCache.ts +164 -0
- package/src/ai/conflictStrategyPrompt.ts +128 -0
- package/src/ai/conflictStrategySchema.ts +165 -0
- package/src/ai/heuristicFallback.ts +162 -0
- package/src/ai/index.ts +64 -0
- package/src/ai/riskScoring.ts +174 -0
- package/src/aliases/index.ts +16 -0
- package/src/aliases/resolver.ts +212 -0
- package/src/audit/context.ts +284 -0
- package/src/audit/emitter.ts +685 -0
- package/src/audit/events.ts +210 -0
- package/src/audit/gateMatrix.ts +158 -0
- package/src/audit/index.ts +44 -0
- package/src/audit/manifest.ts +78 -0
- package/src/audit/profiles.ts +93 -0
- package/src/audit/redaction.ts +216 -0
- package/src/audit/sarif.ts +213 -0
- package/src/audit/schema/events.ts +366 -0
- package/src/audit/schema/manifest.ts +47 -0
- package/src/audit/schema.ts +159 -0
- package/src/audit/sdk/index.ts +145 -0
- package/src/audit/sdk/types.ts +88 -0
- package/src/audit/sidecar.ts +111 -0
- package/src/audit/signing.ts +521 -0
- package/src/autopilot/README.md +113 -0
- package/src/autopilot/artifacts.ts +287 -0
- package/src/autopilot/base.ts +132 -0
- package/src/autopilot/deliverables.ts +392 -0
- package/src/autopilot/index.ts +29 -0
- package/src/autopilot/level1.ts +187 -0
- package/src/autopilot/level2.ts +262 -0
- package/src/autopilot/level3.ts +263 -0
- package/src/autopilot/level4.ts +393 -0
- package/src/autopilot/safety/README.md +512 -0
- package/src/autopilot/safety/SafetyFramework.ts +634 -0
- package/src/autopilot/safety/index.ts +16 -0
- package/src/autopilot/types.ts +250 -0
- package/src/budget/index.ts +56 -0
- package/src/budget/manager.ts +547 -0
- package/src/budget/schema.ts +305 -0
- package/src/budget/tracker.ts +155 -0
- package/src/cache/issue-cache.ts +150 -0
- package/src/cli/command-map.ts +221 -0
- package/src/cli/commands/gate/test.ts +214 -0
- package/src/cli/exitHandler.ts +98 -0
- package/src/cli/flags.ts +123 -0
- package/src/cli/formatSuggestions.ts +202 -0
- package/src/cli/formatters.ts +294 -0
- package/src/cli/jsonEnvelope.ts +152 -0
- package/src/cli/output.ts +61 -0
- package/src/cli/runnerLifecycle.ts +118 -0
- package/src/cli-audit.ts +76 -0
- package/src/cli-security.ts +114 -0
- package/src/cli.ts +1231 -0
- package/src/commands/audit/index.ts +5 -0
- package/src/commands/audit/verify.ts +87 -0
- package/src/commands/autopilot.ts +131 -0
- package/src/commands/budget.ts +327 -0
- package/src/commands/bulkOps.ts +204 -0
- package/src/commands/completion.ts +287 -0
- package/src/commands/config/validate.ts +428 -0
- package/src/commands/config.ts +368 -0
- package/src/commands/counterExamples.ts +104 -0
- package/src/commands/create-project.ts +338 -0
- package/src/commands/discover.ts +192 -0
- package/src/commands/doctor.ts +436 -0
- package/src/commands/execute.ts +558 -0
- package/src/commands/explain.ts +157 -0
- package/src/commands/fanout-analyze.ts +684 -0
- package/src/commands/fanout-harvest.ts +328 -0
- package/src/commands/fanout-monitor.ts +224 -0
- package/src/commands/gateAttest.ts +95 -0
- package/src/commands/gateImport.ts +142 -0
- package/src/commands/gateImportChecks.ts +208 -0
- package/src/commands/gateReport.ts +184 -0
- package/src/commands/governanceCleanup.ts +171 -0
- package/src/commands/governanceReport.ts +497 -0
- package/src/commands/guards.ts +50 -0
- package/src/commands/idea.ts +281 -0
- package/src/commands/init.ts +414 -0
- package/src/commands/issues.ts +165 -0
- package/src/commands/merge.ts +677 -0
- package/src/commands/mergeOrder.ts +68 -0
- package/src/commands/metrics.ts +232 -0
- package/src/commands/migrateProfile.ts +187 -0
- package/src/commands/orchestrate/analyze-issues.ts +203 -0
- package/src/commands/orchestrate/assign-batch.ts +204 -0
- package/src/commands/orchestrate/generate-deliverables.ts +66 -0
- package/src/commands/orchestrate/pinToolchain.ts +102 -0
- package/src/commands/orchestrate/plan-batch.ts +119 -0
- package/src/commands/orchestrate/predict-conflicts.ts +210 -0
- package/src/commands/orchestrate.ts +186 -0
- package/src/commands/plan.ts +403 -0
- package/src/commands/planDiff.ts +56 -0
- package/src/commands/planReview.ts +112 -0
- package/src/commands/planViewer.ts +180 -0
- package/src/commands/preview-constraints.ts +97 -0
- package/src/commands/query.ts +313 -0
- package/src/commands/report.ts +56 -0
- package/src/commands/retry.ts +60 -0
- package/src/commands/schema.ts +128 -0
- package/src/commands/security.ts +140 -0
- package/src/commands/seniorDev.ts +326 -0
- package/src/commands/status.ts +97 -0
- package/src/commands/tokenReport.ts +167 -0
- package/src/commands/validation.ts +66 -0
- package/src/commands/weave-checkpoints.ts +145 -0
- package/src/commands/weave-fanout.ts +273 -0
- package/src/commands/weave-policy.ts +277 -0
- package/src/commands/weave.ts +518 -0
- package/src/config/localOverlay.ts +167 -0
- package/src/config/pathResolver.ts +106 -0
- package/src/config/profileResolver.ts +194 -0
- package/src/config/promptsResolver.ts +312 -0
- package/src/config/rulesResolver.ts +257 -0
- package/src/config/schemas.ts +142 -0
- package/src/core/bootstrap.ts +287 -0
- package/src/core/enterprise.ts +453 -0
- package/src/core/errorRecovery.ts +509 -0
- package/src/core/githubPlan.ts +282 -0
- package/src/core/inputs.ts +314 -0
- package/src/core/multiRepoPlan.ts +353 -0
- package/src/core/plan.ts +106 -0
- package/src/core/snapshot.ts +189 -0
- package/src/errors/adapters.ts +897 -0
- package/src/errors/index.ts +231 -0
- package/src/executionState.ts +356 -0
- package/src/executors/README_FRAME_CONTRACT.md +446 -0
- package/src/executors/frameContract.ts +270 -0
- package/src/executors/guardrailEnforcement.ts +294 -0
- package/src/executors/seniorDev/core.ts +548 -0
- package/src/executors/seniorDev/index.ts +30 -0
- package/src/executors/seniorDev/types.ts +176 -0
- package/src/executors/toolBudget.ts +194 -0
- package/src/fanout/analyzer.ts +735 -0
- package/src/fanout/github-adapter.ts +262 -0
- package/src/fanout/harvest.ts +517 -0
- package/src/fanout/monitor.ts +350 -0
- package/src/fanout/types.ts +428 -0
- package/src/frames/controller.ts +160 -0
- package/src/frames/emitter.ts +455 -0
- package/src/frames/index.ts +58 -0
- package/src/frames/storage.ts +203 -0
- package/src/frames/types.ts +258 -0
- package/src/gates/checkRunConverter.ts +91 -0
- package/src/gates/test/adapters/errors.ts +32 -0
- package/src/gates/test/adapters/index.ts +36 -0
- package/src/gates/test/adapters/interface.ts +63 -0
- package/src/gates/test/adapters/jest-json.ts +370 -0
- package/src/gates/test/adapters/junit-xml.ts +400 -0
- package/src/gates/test/adapters/registry.ts +149 -0
- package/src/gates/test/adapters/vitest-json.ts +339 -0
- package/src/gates/test/enrichment/failureId.ts +74 -0
- package/src/gates/test/enrichment/index.ts +25 -0
- package/src/gates/test/enrichment/nextActions.ts +322 -0
- package/src/gates/test/enrichment/rerunTemplates.ts +105 -0
- package/src/gates/test/enrichment/signature.ts +58 -0
- package/src/gates/test/enrichment/stackParser.ts +149 -0
- package/src/gates/test/enrichment/types.ts +67 -0
- package/src/gates/test/formatters/markdown.spec.ts +942 -0
- package/src/gates/test/formatters/markdown.ts +296 -0
- package/src/gates/test/index.ts +54 -0
- package/src/gates/test/schema.spec.ts +372 -0
- package/src/gates/test/schema.ts +327 -0
- package/src/gates/validator.ts +92 -0
- package/src/gates.ts +1022 -0
- package/src/git/operations.ts +592 -0
- package/src/git/parseRemote.ts +22 -0
- package/src/github/api.ts +584 -0
- package/src/github/batch-ops.ts +215 -0
- package/src/github/client.ts +647 -0
- package/src/github/contextDiet.ts +205 -0
- package/src/github/diffHunks.ts +285 -0
- package/src/github/index.ts +11 -0
- package/src/github/minimalContext.ts +212 -0
- package/src/github/minimalContextClient.ts +105 -0
- package/src/github/symbolMap.ts +370 -0
- package/src/github/types.ts +166 -0
- package/src/governance/index.ts +42 -0
- package/src/governance/mcpStatus.ts +258 -0
- package/src/governance/timeoutAdjustment.ts +149 -0
- package/src/governance/turnCostSummary.ts +182 -0
- package/src/hooks/events.ts +374 -0
- package/src/hooks/index.ts +8 -0
- package/src/hostility/checks.ts +408 -0
- package/src/hostility/index.ts +108 -0
- package/src/hostility/score.ts +143 -0
- package/src/interactive/planDiff.ts +168 -0
- package/src/interactive/planHistory.ts +205 -0
- package/src/interactive/planReview.ts +531 -0
- package/src/learning/counter-example.ts +174 -0
- package/src/learning/prompts.ts +107 -0
- package/src/learning/storage.ts +230 -0
- package/src/lexsona/client.ts +367 -0
- package/src/lexsona/index.ts +44 -0
- package/src/lexsona/logger.ts +408 -0
- package/src/lexsona/types.ts +177 -0
- package/src/mcp/DEPRECATED.md +33 -0
- package/src/mcp/server.ts +3587 -0
- package/src/mcp/types/guided-response.ts +95 -0
- package/src/mcp/types.ts +468 -0
- package/src/mcp/workflow/state-machine.ts +277 -0
- package/src/mergeEligibility.ts +355 -0
- package/src/mergeOrder.ts +170 -0
- package/src/metrics/export.ts +472 -0
- package/src/metrics/index.ts +35 -0
- package/src/metrics/turncost.ts +284 -0
- package/src/monitoring/README.md +222 -0
- package/src/monitoring/audit.ts +98 -0
- package/src/monitoring/cache.ts +121 -0
- package/src/monitoring/dashboards/grafana-dashboard.json +172 -0
- package/src/monitoring/errorRecovery.ts +334 -0
- package/src/monitoring/errors.ts +105 -0
- package/src/monitoring/fileLogger.ts +194 -0
- package/src/monitoring/hallucinations.ts +45 -0
- package/src/monitoring/health.ts +171 -0
- package/src/monitoring/index.ts +16 -0
- package/src/monitoring/lock.ts +158 -0
- package/src/monitoring/logger.ts +178 -0
- package/src/monitoring/metrics.ts +245 -0
- package/src/monitoring/profiler.ts +156 -0
- package/src/monitoring/tokenLogger.ts +141 -0
- package/src/orchestrate/analyzer.ts +461 -0
- package/src/orchestrate/index.ts +6 -0
- package/src/orchestrate/types.ts +65 -0
- package/src/orchestration/README.md +480 -0
- package/src/orchestration/agentAssigner.ts +206 -0
- package/src/orchestration/batchPlanner.ts +201 -0
- package/src/orchestration/conflictClustering.ts +344 -0
- package/src/orchestration/conflictGraph.ts +63 -0
- package/src/orchestration/conflictPredictor.ts +170 -0
- package/src/orchestration/deliverablesGenerator.ts +345 -0
- package/src/orchestration/determinism.ts +232 -0
- package/src/orchestration/index.ts +45 -0
- package/src/orchestration/mergeTreeSimulator.ts +137 -0
- package/src/orchestration/mis.ts +123 -0
- package/src/orchestration/toolchainManifest.ts +169 -0
- package/src/orchestration/types.ts +103 -0
- package/src/performance.README.md +99 -0
- package/src/performance.ts +279 -0
- package/src/planner/README.md +215 -0
- package/src/planner/dependencyParser.ts +404 -0
- package/src/planner/dependencyScoring.ts +346 -0
- package/src/planner/fileAnalysis.ts +693 -0
- package/src/planner/index.ts +41 -0
- package/src/planner/scopeValidator.ts +308 -0
- package/src/planner/types.ts +80 -0
- package/src/planner/validation.ts +493 -0
- package/src/preview/constraints.ts +333 -0
- package/src/procedures/index.ts +47 -0
- package/src/procedures/loader.ts +252 -0
- package/src/procedures/schema.ts +191 -0
- package/src/procedures/stateMachine.ts +160 -0
- package/src/procedures/types.ts +178 -0
- package/src/receipts/emit.ts +354 -0
- package/src/receipts/index.ts +48 -0
- package/src/receipts/schema.ts +227 -0
- package/src/report/aggregate.ts +160 -0
- package/src/runs/artifacts.ts +315 -0
- package/src/runs/attribution.ts +132 -0
- package/src/runs/context.ts +54 -0
- package/src/runs/decisions.ts +407 -0
- package/src/runs/enforcement.ts +395 -0
- package/src/runs/failures.ts +517 -0
- package/src/runs/index.ts +141 -0
- package/src/runs/manager.ts +910 -0
- package/src/runs/statusBuilder.ts +233 -0
- package/src/runs/storage.ts +290 -0
- package/src/runs/types.ts +216 -0
- package/src/schema/flakeReport.ts +74 -0
- package/src/schema/gateMapping.ts +107 -0
- package/src/schema/gateReport.ts +236 -0
- package/src/schema/weaveLock.ts +51 -0
- package/src/schema.ts +313 -0
- package/src/schemas/executorManifest.ts +204 -0
- package/src/schemas/feature-spec-v0.ts +40 -0
- package/src/schemas/persona.ts +162 -0
- package/src/schemas/project.ts +91 -0
- package/src/schemas/runCentric.ts +402 -0
- package/src/schemas/task-contract.ts +626 -0
- package/src/schemas/vacuumReadyPrompt.ts +128 -0
- package/src/sdk/index.ts +113 -0
- package/src/sdk/parser.ts +101 -0
- package/src/sdk/query.ts +315 -0
- package/src/sdk/validator.ts +114 -0
- package/src/security/README.md +496 -0
- package/src/security/authentication.ts +173 -0
- package/src/security/authorization.ts +348 -0
- package/src/security/commandValidator.ts +195 -0
- package/src/security/compliance.ts +688 -0
- package/src/security/index.ts +85 -0
- package/src/security/policy.ts +399 -0
- package/src/security/sarif.ts +179 -0
- package/src/security/scanning.ts +362 -0
- package/src/security/secrets.ts +520 -0
- package/src/shared/git/index.ts +30 -0
- package/src/shared/git/runGit.ts +281 -0
- package/src/shared/git/runtime.ts +66 -0
- package/src/snapshot/builder.ts +229 -0
- package/src/snapshot/index.ts +8 -0
- package/src/store/CONTRACT.md +189 -0
- package/src/store/README.md +22 -0
- package/src/store/index.ts +99 -0
- package/src/store/inmemory/index.ts +10 -0
- package/src/store/inmemory/run-store.ts +268 -0
- package/src/store/postgres/.gitkeep +0 -0
- package/src/store/run-store.ts +405 -0
- package/src/store/sqlite/index.ts +7 -0
- package/src/store/sqlite/run-store.ts +525 -0
- package/src/store/sqlite/schema.sql +67 -0
- package/src/telemetry/frames.ts +179 -0
- package/src/telemetry/index.ts +5 -0
- package/src/tiers/index.ts +34 -0
- package/src/tiers/metrics.ts +156 -0
- package/src/tiers/schema.ts +95 -0
- package/src/tiers/suggest.ts +183 -0
- package/src/types/guardrails.ts +452 -0
- package/src/types/index.ts +42 -0
- package/src/util/canonicalJson.ts +29 -0
- package/src/util/colorControl.ts +46 -0
- package/src/util/envUtils.ts +139 -0
- package/src/util/hash.ts +69 -0
- package/src/util/lockHash.ts +90 -0
- package/src/util/minHeap.ts +108 -0
- package/src/util/progress.ts +89 -0
- package/src/util/tokenEstimator.ts +55 -0
- package/src/utils/fingerprint.ts +105 -0
- package/src/utils/paths.ts +209 -0
- package/src/utils/tokens.ts +151 -0
- package/src/utils/validation.ts +53 -0
- package/src/verification/diff-applier.ts +60 -0
- package/src/verification/engine-verifier.ts +171 -0
- package/src/verification/errors.ts +30 -0
- package/src/verification/index.ts +13 -0
- package/src/weave/audit/index.ts +17 -0
- package/src/weave/audit/logger.ts +206 -0
- package/src/weave/authority/evaluator.ts +660 -0
- package/src/weave/authority/index.ts +30 -0
- package/src/weave/authority/schema.ts +292 -0
- package/src/weave/checkpoint/index.ts +7 -0
- package/src/weave/checkpoint/storage.ts +223 -0
- package/src/weave/checkpoint/types.ts +121 -0
- package/src/weave/checkpoint/utils.ts +207 -0
- package/src/weave/clusterGates.ts +366 -0
- package/src/weave/draftPR.ts +214 -0
- package/src/weave/executor/d1-executor.ts +822 -0
- package/src/weave/executor/d2-executor.ts +381 -0
- package/src/weave/executor/index.ts +24 -0
- package/src/weave/executor/types.ts +135 -0
- package/src/weave/fanout/generator.ts +186 -0
- package/src/weave/fanout/index.ts +51 -0
- package/src/weave/fanout/loader.ts +134 -0
- package/src/weave/fanout/matcher.ts +239 -0
- package/src/weave/fanout/schema.ts +178 -0
- package/src/weave/frameHelper.ts +126 -0
- package/src/weave/gateFailureHandler.ts +405 -0
- package/src/weave/index.ts +89 -0
- package/src/weave/lockFile.ts +193 -0
- package/src/weave/mergeHelpers.ts +377 -0
- package/src/weave/mergeWeaveSequential.ts +282 -0
- package/src/weave/metrics/calculator.ts +362 -0
- package/src/weave/metrics/index.ts +44 -0
- package/src/weave/metrics/logger.ts +291 -0
- package/src/weave/metrics/schema.ts +505 -0
- package/src/weave/planner/index.ts +23 -0
- package/src/weave/planner/planner.ts +411 -0
- package/src/weave/planner/types.ts +181 -0
- package/src/weave/policy/index.ts +63 -0
- package/src/weave/policy/loader.ts +148 -0
- package/src/weave/policy/schema.ts +290 -0
- package/src/weave/post-merge-checks.ts +220 -0
- package/src/weave/preflightConflicts.ts +375 -0
- package/src/weave/receiptHelper.ts +287 -0
- package/src/weave/recovery.ts +232 -0
- package/src/weave/resolutionGuidance.ts +173 -0
- package/src/weave/stateMachine.ts +426 -0
- package/src/weave/testfix/applier.ts +195 -0
- package/src/weave/testfix/index.ts +18 -0
- package/src/weave/testfix/loader.ts +116 -0
- package/src/weave/testfix/matcher.ts +158 -0
- package/src/weave/testfix/schema.ts +218 -0
- package/src/weave/types.ts +305 -0
- package/src/weave/utils/copilot-completion.ts +76 -0
- package/test-mcp-dogfood.mjs +128 -0
- package/test-mcp.mjs +116 -0
- package/tests/README.md +155 -0
- package/tests/advanced-cli-e2e.spec.ts +218 -0
- package/tests/agentAssigner.spec.ts +261 -0
- package/tests/ai-conflict-strategy-cache.spec.ts +254 -0
- package/tests/ai-conflict-strategy-risk.spec.ts +287 -0
- package/tests/ai-conflict-strategy-schema.spec.ts +252 -0
- package/tests/ai-conflict-strategy.spec.ts +442 -0
- package/tests/aliases/resolver.spec.ts +238 -0
- package/tests/audit/context.spec.ts +283 -0
- package/tests/audit/emitter.spec.ts +347 -0
- package/tests/audit/gateMatrix.spec.ts +335 -0
- package/tests/audit/integration.spec.ts +236 -0
- package/tests/audit/redaction.spec.ts +290 -0
- package/tests/audit/sarif-integration.spec.ts +303 -0
- package/tests/audit/sarif.spec.ts +458 -0
- package/tests/audit/schema-events.spec.ts +421 -0
- package/tests/audit/schema.spec.ts +434 -0
- package/tests/audit/sdk-integration.spec.ts +598 -0
- package/tests/audit/sdk.spec.ts +318 -0
- package/tests/audit/signing-integration.spec.ts +276 -0
- package/tests/audit/signing.spec.ts +350 -0
- package/tests/audit-signing.spec.ts +406 -0
- package/tests/audit-verify-cli.spec.ts +176 -0
- package/tests/autopilot-e2e-level3-4.spec.ts +741 -0
- package/tests/autopilot-integration.spec.ts +274 -0
- package/tests/autopilot-level1.spec.ts +449 -0
- package/tests/autopilot-level2.spec.ts +188 -0
- package/tests/autopilot-level3.spec.ts +266 -0
- package/tests/autopilot-level4.spec.ts +454 -0
- package/tests/autopilot.spec.ts +379 -0
- package/tests/ax-error-adapters.spec.ts +580 -0
- package/tests/batch-planner.spec.ts +500 -0
- package/tests/benchmark-infrastructure.spec.ts +445 -0
- package/tests/benchmarks/README.md +103 -0
- package/tests/benchmarks/baselines/baseline.json +127 -0
- package/tests/benchmarks/core/dependencyResolver.bench.ts +128 -0
- package/tests/benchmarks/core/planParser.bench.ts +114 -0
- package/tests/benchmarks/core/topologicalSort.bench.ts +102 -0
- package/tests/benchmarks/index.ts +36 -0
- package/tests/benchmarks/io/fileOperations.bench.ts +132 -0
- package/tests/benchmarks/io/gitOperations.bench.ts +99 -0
- package/tests/benchmarks/utils/graphGenerator.ts +201 -0
- package/tests/benchmarks/utils/reporter.ts +231 -0
- package/tests/benchmarks/workflows/endToEnd.bench.ts +132 -0
- package/tests/bootstrap.test.ts +319 -0
- package/tests/budget-tracker.spec.ts +279 -0
- package/tests/bulkOps.spec.ts +166 -0
- package/tests/bulletproof-determinism.test.ts +223 -0
- package/tests/canonicalJson.test.ts +130 -0
- package/tests/checkRunConverter.spec.ts +357 -0
- package/tests/cli/commands/gate/test.spec.ts +564 -0
- package/tests/cli/emit-frames-flag.spec.ts +117 -0
- package/tests/cli/exitHandler.spec.ts +314 -0
- package/tests/cli/flags.spec.ts +223 -0
- package/tests/cli/formatters.spec.ts +513 -0
- package/tests/cli/output.spec.ts +221 -0
- package/tests/cli-autopilot.spec.ts +170 -0
- package/tests/cli-budget-guards.spec.ts +210 -0
- package/tests/cli-color-control.spec.ts +334 -0
- package/tests/cli-deliverables-generator.spec.ts +185 -0
- package/tests/cli-determinism.spec.ts +496 -0
- package/tests/cli-init-enterprise.spec.ts +294 -0
- package/tests/cli-init-json.spec.ts +154 -0
- package/tests/cli-init-local.spec.ts +159 -0
- package/tests/cli-json-envelope.spec.ts +140 -0
- package/tests/cli-json.spec.ts +408 -0
- package/tests/cli-orchestrate-plan-batch.spec.ts +329 -0
- package/tests/cli-orchestrate.spec.ts +231 -0
- package/tests/cli-plan-generation.spec.ts +367 -0
- package/tests/cli-plan-review.spec.ts +300 -0
- package/tests/cli-progress.spec.ts +193 -0
- package/tests/cli-ux-enhancements.spec.ts +213 -0
- package/tests/cliJsonPurity.spec.ts +437 -0
- package/tests/cliSuggestDeps.spec.ts +360 -0
- package/tests/cluster-gates-rollback.spec.ts +353 -0
- package/tests/command-validator-integration.spec.ts +305 -0
- package/tests/command-validator.spec.ts +380 -0
- package/tests/commands/autopilot.spec.ts +124 -0
- package/tests/commands/config-validate.spec.ts +301 -0
- package/tests/commands/config.spec.ts +311 -0
- package/tests/commands/create-project.spec.ts +90 -0
- package/tests/commands/doctor.spec.ts +57 -0
- package/tests/commands/execute.spec.ts +293 -0
- package/tests/commands/gateAttest.spec.ts +172 -0
- package/tests/commands/gateImport.spec.ts +176 -0
- package/tests/commands/gateReport.spec.ts +130 -0
- package/tests/commands/guards.spec.ts +114 -0
- package/tests/commands/idea.spec.ts +177 -0
- package/tests/commands/merge.spec.ts +166 -0
- package/tests/commands/plan.spec.ts +123 -0
- package/tests/commands/query.spec.ts +294 -0
- package/tests/commands/report.spec.ts +54 -0
- package/tests/commands/retry.spec.ts +300 -0
- package/tests/commands/schema.spec.ts +136 -0
- package/tests/commands/validation.spec.ts +229 -0
- package/tests/completion.spec.ts +133 -0
- package/tests/config-inspect.spec.ts +202 -0
- package/tests/conflictClustering-e2e.spec.ts +278 -0
- package/tests/conflictClustering.spec.ts +550 -0
- package/tests/conflictGraph.spec.ts +126 -0
- package/tests/conflictPredictor.spec.ts +238 -0
- package/tests/deliverables-generator.spec.ts +329 -0
- package/tests/deliverables.spec.ts +381 -0
- package/tests/dependencyParser-github.spec.ts +244 -0
- package/tests/dependencyParser.spec.ts +386 -0
- package/tests/dependencyScoring.spec.ts +668 -0
- package/tests/deterministic-applicable.test.ts +156 -0
- package/tests/deterministic-build.test.ts +172 -0
- package/tests/deterministic-simple.test.ts +32 -0
- package/tests/discover-suggest-integration.spec.ts +340 -0
- package/tests/dogfood-merge-weave-script.spec.ts +150 -0
- package/tests/e2e/planner.spec.ts +596 -0
- package/tests/e2e-comprehensive.test.ts +500 -0
- package/tests/e2e-determinism.test.ts +293 -0
- package/tests/e2e-synthetic-6pr-weave.spec.ts +329 -0
- package/tests/enterprise-init.spec.ts +350 -0
- package/tests/envUtils.spec.ts +267 -0
- package/tests/error-handling.test.ts +104 -0
- package/tests/error-recovery.spec.ts +451 -0
- package/tests/execution-plan-v1.test.ts +257 -0
- package/tests/executionState-loadGateResults.spec.ts +267 -0
- package/tests/executionState.test.ts +169 -0
- package/tests/executors/README.md +100 -0
- package/tests/executors/frameContract-integration.spec.ts +324 -0
- package/tests/executors/frameContract.spec.ts +531 -0
- package/tests/executors/guardrailEnforcement.spec.ts +424 -0
- package/tests/executors/lifecycle.spec.ts +313 -0
- package/tests/executors/toolBudget.spec.ts +473 -0
- package/tests/feature-spec-v0.test.ts +145 -0
- package/tests/fileAnalysis.spec.ts +946 -0
- package/tests/fingerprint.spec.ts +100 -0
- package/tests/fixtures/README.md +380 -0
- package/tests/fixtures/deliverables/batch-example-plan.json +62 -0
- package/tests/fixtures/executors/README.md +57 -0
- package/tests/fixtures/executors/index.ts +9 -0
- package/tests/fixtures/executors/mock-executor.ts +204 -0
- package/tests/fixtures/executors/registry.ts +51 -0
- package/tests/fixtures/executors/types.ts +95 -0
- package/tests/fixtures/fixtures.spec.ts +307 -0
- package/tests/fixtures/gates/configs.ts +234 -0
- package/tests/fixtures/gates/results.ts +234 -0
- package/tests/fixtures/harvest-bundle-fixture.json +87 -0
- package/tests/fixtures/index.ts +219 -0
- package/tests/fixtures/invalid/plans.ts +178 -0
- package/tests/fixtures/jest/all-passing.json +71 -0
- package/tests/fixtures/jest/snapshot-failures.json +66 -0
- package/tests/fixtures/jest/some-failing.json +100 -0
- package/tests/fixtures/jest/with-location.json +84 -0
- package/tests/fixtures/junit/cdata-messages.xml +29 -0
- package/tests/fixtures/junit/multiple-suites.xml +30 -0
- package/tests/fixtures/junit/single-suite.xml +17 -0
- package/tests/fixtures/junit/with-errors.xml +19 -0
- package/tests/fixtures/junit/with-skipped.xml +18 -0
- package/tests/fixtures/npm-audit.json +32 -0
- package/tests/fixtures/plan.bad-schema.json +5 -0
- package/tests/fixtures/plan.bad-unknown-dep.json +10 -0
- package/tests/fixtures/plan.ci-gates.json +36 -0
- package/tests/fixtures/plan.complex-cycle.json +22 -0
- package/tests/fixtures/plan.cycle.json +14 -0
- package/tests/fixtures/plan.deep-chain.json +95 -0
- package/tests/fixtures/plan.dogfood-execute.json +36 -0
- package/tests/fixtures/plan.gates.json +30 -0
- package/tests/fixtures/plan.integration-pyramid.json +56 -0
- package/tests/fixtures/plan.orphans.json +22 -0
- package/tests/fixtures/plan.parallel.json +30 -0
- package/tests/fixtures/plan.tiny.json +18 -0
- package/tests/fixtures/plan.wide-parallel.json +75 -0
- package/tests/fixtures/plan.with-failures.json +26 -0
- package/tests/fixtures/plan.with-vuln.json +25 -0
- package/tests/fixtures/planner/cross-module.json +101 -0
- package/tests/fixtures/planner/cycle-error.json +56 -0
- package/tests/fixtures/planner/diamond-pattern.json +74 -0
- package/tests/fixtures/planner/empty-repo.json +9 -0
- package/tests/fixtures/planner/file-overlap-heavy.json +110 -0
- package/tests/fixtures/planner/invalid-pr.json +25 -0
- package/tests/fixtures/planner/merge-conflicts.json +42 -0
- package/tests/fixtures/planner/mixed-deps.json +101 -0
- package/tests/fixtures/planner/self-dependency.json +24 -0
- package/tests/fixtures/planner/simple-stack.json +79 -0
- package/tests/fixtures/planner/single-pr.json +25 -0
- package/tests/fixtures/planner/stale-pr.json +40 -0
- package/tests/fixtures/plans/complex.ts +201 -0
- package/tests/fixtures/plans/diamond.ts +115 -0
- package/tests/fixtures/plans/linear.ts +74 -0
- package/tests/fixtures/plans/simple.ts +61 -0
- package/tests/fixtures/prs/basic.ts +175 -0
- package/tests/fixtures/prs/withDeps.ts +197 -0
- package/tests/fixtures/scan-results-clean.sarif +15 -0
- package/tests/fixtures/scan-results.sarif +74 -0
- package/tests/fixtures/scenarios/mergeWorkflows.ts +300 -0
- package/tests/fixtures/scenarios/syntheticWeave.ts +351 -0
- package/tests/fixtures/snapshot/package.json +5 -0
- package/tests/fixtures/snapshot/sample.ts +21 -0
- package/tests/fixtures/utils/cleanup.ts +81 -0
- package/tests/fixtures/utils/mockGitHub.ts +219 -0
- package/tests/fixtures/utils/tempDir.ts +109 -0
- package/tests/fixtures/verification/expected-verification.json +16 -0
- package/tests/fixtures/verification/receipt.json +31 -0
- package/tests/fixtures/verification/snapshot.json +44 -0
- package/tests/fixtures/vitest/all-passing.json +67 -0
- package/tests/fixtures/vitest/complex-nested-suites.json +98 -0
- package/tests/fixtures/vitest/some-failing.json +98 -0
- package/tests/fixtures/vitest/with-coverage.json +97 -0
- package/tests/fixtures-usage-examples.spec.ts +304 -0
- package/tests/flakeReport.spec.ts +267 -0
- package/tests/frames/ci-gate-integration.spec.ts +331 -0
- package/tests/frames/controller.spec.ts +165 -0
- package/tests/frames/emitter.spec.ts +371 -0
- package/tests/frames/idempotency.spec.ts +177 -0
- package/tests/frames/storage.spec.ts +346 -0
- package/tests/frames/types.spec.ts +249 -0
- package/tests/frames/v2-schema-integration.spec.ts +435 -0
- package/tests/gate-working-directory.spec.ts +204 -0
- package/tests/gateMapping.spec.ts +161 -0
- package/tests/gateReportIntegration.spec.ts +175 -0
- package/tests/gateReportValidation.spec.ts +452 -0
- package/tests/gates/test/adapters/jest-json.spec.ts +372 -0
- package/tests/gates/test/adapters/junit-xml.spec.ts +421 -0
- package/tests/gates/test/adapters/registry.spec.ts +376 -0
- package/tests/gates/test/adapters/vitest-json.spec.ts +455 -0
- package/tests/gates/test/enrichment/failureId.spec.ts +131 -0
- package/tests/gates/test/enrichment/nextActions.spec.ts +365 -0
- package/tests/gates/test/enrichment/rerunTemplates.spec.ts +187 -0
- package/tests/gates/test/enrichment/signature.spec.ts +163 -0
- package/tests/gates/test/enrichment/stackParser.spec.ts +203 -0
- package/tests/gates/turncost-integration.spec.ts +221 -0
- package/tests/gates/validation-integration.spec.ts +147 -0
- package/tests/gates/validator.spec.ts +200 -0
- package/tests/gates.test.ts +255 -0
- package/tests/gatesWithPolicy.hostilityTimeoutAdjustment.spec.ts +156 -0
- package/tests/git-operations-receipts.spec.ts +121 -0
- package/tests/git-operations.test.ts +152 -0
- package/tests/git-runtime.spec.ts +175 -0
- package/tests/github-api.labels.spec.ts +21 -0
- package/tests/github-api.test.ts +85 -0
- package/tests/github-context-diet.spec.ts +441 -0
- package/tests/github-diff-hunks.spec.ts +387 -0
- package/tests/github-integration.spec.ts +774 -0
- package/tests/github-minimal-context.spec.ts +338 -0
- package/tests/github-symbol-map.spec.ts +414 -0
- package/tests/githubClient.spec.ts +123 -0
- package/tests/governance/mcpStatus.spec.ts +276 -0
- package/tests/governance/timeoutAdjustment.spec.ts +149 -0
- package/tests/governance/turnCostSummary.spec.ts +188 -0
- package/tests/governance-retention.spec.ts +151 -0
- package/tests/governance-wrapper-delegation.spec.ts +148 -0
- package/tests/guardrails.spec.ts +860 -0
- package/tests/hash.test.ts +83 -0
- package/tests/helpers/cli.ts +23 -0
- package/tests/helpers/getStd.ts +1 -0
- package/tests/helpers/makeGate.ts +19 -0
- package/tests/helpers/plannerTestHelpers.ts +314 -0
- package/tests/hooks/events.spec.ts +518 -0
- package/tests/hostility/checks.spec.ts +295 -0
- package/tests/hostility/integration.spec.ts +123 -0
- package/tests/hostility/score.spec.ts +175 -0
- package/tests/init.spec.ts +270 -0
- package/tests/integration/hipaa-encryption.spec.ts +148 -0
- package/tests/integration/lex-smoke-test.spec.ts +328 -0
- package/tests/integration-e2e.test.ts +244 -0
- package/tests/integration-matrix.test.ts +409 -0
- package/tests/interPRConflicts.spec.ts +254 -0
- package/tests/interactive-plan-history.spec.ts +255 -0
- package/tests/interactive-plan-review.spec.ts +287 -0
- package/tests/issue-analyzer.spec.ts +593 -0
- package/tests/lexsona-integration.spec.ts +311 -0
- package/tests/localOverlay.spec.ts +203 -0
- package/tests/lockHash.spec.ts +167 -0
- package/tests/mcp-auth-errors.spec.ts +190 -0
- package/tests/mcp-contracts.spec.ts +290 -0
- package/tests/mcp-gates-external-plan.spec.ts +146 -0
- package/tests/mcp-granular-tools.spec.ts +208 -0
- package/tests/mcp-runstore-integration.spec.ts +334 -0
- package/tests/mcp-scope-integration.spec.ts +318 -0
- package/tests/mcp-task-handoff.spec.ts +320 -0
- package/tests/mcp-workflow-guide.spec.ts +53 -0
- package/tests/mcp.test.ts +151 -0
- package/tests/merge-conflict-detection.spec.ts +260 -0
- package/tests/mergeEligibility.test.ts +201 -0
- package/tests/mergeLockHash.spec.ts +158 -0
- package/tests/mergeOrder-with-fixtures.spec.ts +215 -0
- package/tests/mergeOrder.test.ts +108 -0
- package/tests/mergeTreeSimulator.spec.ts +145 -0
- package/tests/metrics/export.spec.ts +446 -0
- package/tests/metrics/turncost.spec.ts +309 -0
- package/tests/metrics-template.spec.ts +137 -0
- package/tests/migrateProfile.spec.ts +254 -0
- package/tests/mis.spec.ts +202 -0
- package/tests/monitoring-audit.spec.ts +181 -0
- package/tests/monitoring-cache.spec.ts +331 -0
- package/tests/monitoring-error-recovery.spec.ts +236 -0
- package/tests/monitoring-errors.spec.ts +193 -0
- package/tests/monitoring-fileLogger.spec.ts +319 -0
- package/tests/monitoring-health.spec.ts +152 -0
- package/tests/monitoring-lock.spec.ts +308 -0
- package/tests/monitoring-logger.spec.ts +157 -0
- package/tests/monitoring-metrics.spec.ts +158 -0
- package/tests/monitoring-profiler.spec.ts +197 -0
- package/tests/orchestration-determinism.spec.ts +204 -0
- package/tests/parseRemote.spec.ts +25 -0
- package/tests/pathResolver.spec.ts +122 -0
- package/tests/paths.spec.ts +68 -0
- package/tests/performance.spec.ts +322 -0
- package/tests/pipeline-determinism.spec.ts +597 -0
- package/tests/plan-tier-integration.spec.ts +184 -0
- package/tests/precedence-resolution.spec.ts +682 -0
- package/tests/preflightConflicts.spec.ts +205 -0
- package/tests/procedures/keystone-policy.spec.ts +296 -0
- package/tests/procedures/loader.spec.ts +585 -0
- package/tests/procedures/pr-review.spec.ts +321 -0
- package/tests/profileResolver.spec.ts +375 -0
- package/tests/progress-indicators.spec.ts +139 -0
- package/tests/promptsResolver.spec.ts +443 -0
- package/tests/public-api.spec.ts +272 -0
- package/tests/query.spec.ts +170 -0
- package/tests/receipts.spec.ts +463 -0
- package/tests/release-prepare.spec.ts +268 -0
- package/tests/report.test.ts +335 -0
- package/tests/resolutionGuidance.spec.ts +160 -0
- package/tests/rotate-secrets-example.spec.ts +198 -0
- package/tests/rulesResolver.spec.ts +232 -0
- package/tests/runGit.spec.ts +229 -0
- package/tests/runner-lifecycle-integration.spec.ts +283 -0
- package/tests/runs/artifacts.spec.ts +367 -0
- package/tests/runs/decisions.spec.ts +495 -0
- package/tests/runs/enforcement.spec.ts +555 -0
- package/tests/runs/failures.spec.ts +554 -0
- package/tests/runs/manager-runstore-integration.spec.ts +455 -0
- package/tests/runs/manager.spec.ts +678 -0
- package/tests/runs-manager.spec.ts +485 -0
- package/tests/safety-acceptance.spec.ts +278 -0
- package/tests/safety-enhanced.spec.ts +329 -0
- package/tests/safety-framework.spec.ts +427 -0
- package/tests/safety-guards-integration.spec.ts +213 -0
- package/tests/safety-integration.spec.ts +278 -0
- package/tests/sarif-parser.spec.ts +148 -0
- package/tests/schema.test.ts +88 -0
- package/tests/schemas/behavior-rule.spec.ts +366 -0
- package/tests/schemas/executorManifest.spec.ts +441 -0
- package/tests/schemas/persona-integration.spec.ts +62 -0
- package/tests/schemas/persona.spec.ts +172 -0
- package/tests/schemas/project.spec.ts +247 -0
- package/tests/schemas/run-store.spec.ts +553 -0
- package/tests/schemas/runCentric.spec.ts +463 -0
- package/tests/schemas/vacuumReadyPrompt.spec.ts +515 -0
- package/tests/scope-github-auto-detection.spec.ts +200 -0
- package/tests/scopeValidator.spec.ts +497 -0
- package/tests/security-authentication.spec.ts +42 -0
- package/tests/security-authorization.spec.ts +350 -0
- package/tests/security-cli.spec.ts +264 -0
- package/tests/security-compliance.spec.ts +334 -0
- package/tests/security-policy.spec.ts +295 -0
- package/tests/security-scanning.spec.ts +349 -0
- package/tests/security-secrets.spec.ts +401 -0
- package/tests/store/create-run-store.spec.ts +185 -0
- package/tests/store/inmemory/run-store.spec.ts +533 -0
- package/tests/store/sqlite/run-store.spec.ts +849 -0
- package/tests/telemetry/frames.spec.ts +120 -0
- package/tests/tiers.spec.ts +466 -0
- package/tests/token-usage.spec.ts +309 -0
- package/tests/toolchain-manifest.spec.ts +145 -0
- package/tests/unified-budget.spec.ts +713 -0
- package/tests/unit/cache/issue-cache.spec.ts +131 -0
- package/tests/unit/fanout/analyzer-integration.spec.ts +398 -0
- package/tests/unit/fanout/analyzer.spec.ts +605 -0
- package/tests/unit/fanout/github-adapter.spec.ts +203 -0
- package/tests/unit/fanout/harvest.spec.ts +93 -0
- package/tests/unit/fanout/monitor.spec.ts +297 -0
- package/tests/unit/fanout/types.spec.ts +308 -0
- package/tests/unit/github/batch-ops.spec.ts +179 -0
- package/tests/unit/learning/counter-example.spec.ts +168 -0
- package/tests/unit/learning/storage.spec.ts +154 -0
- package/tests/unit/preview/constraints.spec.ts +429 -0
- package/tests/unit/runs/attribution.spec.ts +204 -0
- package/tests/unit/schemas/task-contract.spec.ts +483 -0
- package/tests/unit/snapshot/builder.spec.ts +389 -0
- package/tests/unit/verification/engine-verifier.spec.ts +279 -0
- package/tests/unit/weave/authority-evaluator.spec.ts +404 -0
- package/tests/unit/weave/authority-schema.spec.ts +199 -0
- package/tests/unit/weave/auto-undraft-integration.spec.ts +349 -0
- package/tests/unit/weave/copilot-completion.spec.ts +182 -0
- package/tests/unit/weave/d1-executor.spec.ts +269 -0
- package/tests/unit/weave/d2-executor.spec.ts +334 -0
- package/tests/unit/weave/fanout-generator.spec.ts +365 -0
- package/tests/unit/weave/fanout-matcher.spec.ts +320 -0
- package/tests/unit/weave/fanout-schema.spec.ts +221 -0
- package/tests/unit/weave/mergeWeaveSequential.spec.ts +268 -0
- package/tests/unit/weave/metrics-calculator.spec.ts +212 -0
- package/tests/unit/weave/metrics-logger.spec.ts +233 -0
- package/tests/unit/weave/metrics-schema.spec.ts +383 -0
- package/tests/unit/weave/multi-repo-plan.spec.ts +221 -0
- package/tests/unit/weave/planner.spec.ts +227 -0
- package/tests/unit/weave/post-merge-checks.spec.ts +342 -0
- package/tests/unit/weave/recovery.spec.ts +306 -0
- package/tests/unit/weave/testfix/applier.spec.ts +364 -0
- package/tests/unit/weave/testfix/e2e.spec.ts +273 -0
- package/tests/unit/weave/testfix/integration.spec.ts +128 -0
- package/tests/unit/weave/testfix/matcher.spec.ts +321 -0
- package/tests/unit/weave/testfix/schema.spec.ts +298 -0
- package/tests/utils/fingerprint.spec.ts +251 -0
- package/tests/utils/paths.spec.ts +284 -0
- package/tests/utils/tokens.spec.ts +210 -0
- package/tests/utils/validation.spec.ts +215 -0
- package/tests/utils-validation.spec.ts +80 -0
- package/tests/validate-manifests.spec.ts +231 -0
- package/tests/validation.spec.ts +501 -0
- package/tests/vuln-gate.spec.ts +341 -0
- package/tests/weave/adr007-integration.spec.ts +309 -0
- package/tests/weave/checkpoint/cli-integration.spec.ts +118 -0
- package/tests/weave/checkpoint/storage.spec.ts +302 -0
- package/tests/weave/checkpoint/utils.spec.ts +223 -0
- package/tests/weave/frameHelper.spec.ts +423 -0
- package/tests/weave/gateFailureHandler.spec.ts +249 -0
- package/tests/weave/lockFile.spec.ts +387 -0
- package/tests/weave/mergeHelpers.spec.ts +173 -0
- package/tests/weave/receiptHelper.spec.ts +261 -0
- package/tests/weave/stateMachine.spec.ts +436 -0
- package/tests/weave-contract.test.ts +517 -0
- package/tests/weave-e2e.spec.ts +279 -0
- package/tests/weaveLock.spec.ts +136 -0
- package/tests/workflow-state-machine.spec.ts +274 -0
- package/tests/write-protection.spec.ts +213 -0
- package/tsconfig.json +18 -0
- package/tsup.config.ts +12 -0
- package/vitest.benchmark.config.ts +17 -0
- package/vitest.config.ts +28 -0
- package/vitest.git.config.ts +12 -0
- package/vitest.slow-cli.config.ts +28 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Verification Instructions for Employment Separation Attestation
|
|
2
|
+
|
|
3
|
+
**Original Attestation Date:** 2025-11-26
|
|
4
|
+
**Timestamp Anchoring Date:** 2025-12-01
|
|
5
|
+
**Document:** `lex_employment_separation_2025-11-26.md`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Document History
|
|
10
|
+
|
|
11
|
+
This document was created and GPG-signed on **November 26, 2025**.
|
|
12
|
+
|
|
13
|
+
On **December 1, 2025**, external timestamp proofs were added to anchor the document to independent authorities, preserving both:
|
|
14
|
+
|
|
15
|
+
1. The original Git/GPG timestamp (Nov 26, 2025)
|
|
16
|
+
2. New RFC 3161 and Bitcoin timestamps (Dec 1, 2025)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## File Hash (SHA-256)
|
|
21
|
+
|
|
22
|
+
**After addendum (timestamped version):**
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
b4f5b227f0185cc07a6bd04c46ab319a8b2996c29a481eec25013e93221cb6cd
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Original (before addendum):**
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
564ee084775ad503cd9d7e16aaa6ceea4df66310c00aae27a953f63a5326e064
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 1. Original GPG-Signed Git Commit (Nov 26, 2025)
|
|
37
|
+
|
|
38
|
+
**Commit:** `763120d606d8c4f4b4d22fcdc98f89139f8968fc`
|
|
39
|
+
**Date:** Wed Nov 26 07:43:33 2025 CST
|
|
40
|
+
**GPG Key:** `65C94BA03E88F53D365C36CF7145A1CE635B1902`
|
|
41
|
+
**Signer:** Guffawaffle <guff@smartergpt.dev>
|
|
42
|
+
|
|
43
|
+
### Verification
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Verify the original commit signature
|
|
47
|
+
git log --show-signature -1 763120d
|
|
48
|
+
|
|
49
|
+
# View the original file content at that commit
|
|
50
|
+
git show 763120d:docs/attestation/lex_employment_separation_2025-11-26.md
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 2. RFC 3161 Timestamp (FreeTSA) - Dec 1, 2025
|
|
56
|
+
|
|
57
|
+
**File:** `employment_timestamp_response.tsr`
|
|
58
|
+
**Authority:** FreeTSA (https://freetsa.org)
|
|
59
|
+
**Timestamp:** Dec 1, 10:59:42 2025 UTC
|
|
60
|
+
|
|
61
|
+
### Verification
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
cd docs/attestation
|
|
65
|
+
|
|
66
|
+
# Recreate the hash
|
|
67
|
+
HASH=$(sha256sum lex_employment_separation_2025-11-26.md | awk '{print $1}')
|
|
68
|
+
echo -n "$HASH" | xxd -r -p > /tmp/verify_hash.bin
|
|
69
|
+
|
|
70
|
+
# Verify (should print "Verification: OK")
|
|
71
|
+
openssl ts -verify -in employment_timestamp_response.tsr -data /tmp/verify_hash.bin \
|
|
72
|
+
-CAfile freetsa_cacert.pem -untrusted freetsa_tsa.crt
|
|
73
|
+
|
|
74
|
+
# View timestamp details
|
|
75
|
+
openssl ts -reply -in employment_timestamp_response.tsr -text
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 3. Bitcoin Blockchain Timestamp (OpenTimestamps) - Dec 1, 2025
|
|
81
|
+
|
|
82
|
+
**File:** `employment_separation_2025-11-26.ots`
|
|
83
|
+
**Calendars:** OpenTimestamps (alice, bob), Catallaxy, EternityWall
|
|
84
|
+
**Status:** Pending Bitcoin block confirmation (typically 1-24 hours)
|
|
85
|
+
|
|
86
|
+
### Verification
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Install ots client if needed
|
|
90
|
+
pipx install opentimestamps-client
|
|
91
|
+
|
|
92
|
+
# Verify (will show pending until Bitcoin block confirms)
|
|
93
|
+
ots verify employment_separation_2025-11-26.ots
|
|
94
|
+
|
|
95
|
+
# Upgrade proof once confirmed (fetches Bitcoin attestation)
|
|
96
|
+
ots upgrade employment_separation_2025-11-26.ots
|
|
97
|
+
|
|
98
|
+
# View timestamp info
|
|
99
|
+
ots info employment_separation_2025-11-26.ots
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Summary of Trust Anchors
|
|
105
|
+
|
|
106
|
+
| Method | Authority | Timestamp | What It Proves |
|
|
107
|
+
| ---------- | --------------- | ---------------------- | ------------------------------ |
|
|
108
|
+
| GPG Commit | Guff's key | Nov 26, 2025 07:43 CST | Original document creation |
|
|
109
|
+
| RFC 3161 | FreeTSA (DE) | Dec 1, 2025 10:59 UTC | Document existed at this time |
|
|
110
|
+
| Bitcoin | Bitcoin network | Pending block | Immutable public ledger anchor |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Attestation Chain
|
|
115
|
+
|
|
116
|
+
1. **Nov 26, 2025:** Original attestation created and GPG-signed in commit `763120d`
|
|
117
|
+
2. **Dec 1, 2025:** Addendum added documenting the original timestamp
|
|
118
|
+
3. **Dec 1, 2025:** RFC 3161 timestamp obtained from FreeTSA
|
|
119
|
+
4. **Dec 1, 2025:** Bitcoin timestamp submitted to OpenTimestamps calendars
|
|
120
|
+
5. **Pending:** Bitcoin block confirmation (immutable anchor)
|
|
121
|
+
|
|
122
|
+
This creates a verifiable chain showing:
|
|
123
|
+
|
|
124
|
+
- The document was **originally created** on Nov 26, 2025 (GPG commit)
|
|
125
|
+
- The author **re-attested** the original date on Dec 1, 2025
|
|
126
|
+
- Independent authorities **confirm** the Dec 1 re-attestation timestamp
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
Title: Fail-Forward Shadow Governance Telemetry and Analysis
|
|
2
|
+
|
|
3
|
+
Inventor(s): Joseph M. Gustavson
|
|
4
|
+
Applicant: Joseph M. Gustavson
|
|
5
|
+
Filing date: 2025-12-07 (provisional draft)
|
|
6
|
+
|
|
7
|
+
Field of the Invention
|
|
8
|
+
This disclosure relates to method and system designs for logging, normalizing and analyzing "shadow governance" decisions produced by an AI governance engine operating alongside an automated workflow engine. The invention provides fail-forward legacy normalization of historical logs, explicit uncertainty surfacing for analysis, schema-aware log gating, CLI-driven reporting, and a robust backwards-compatible wrapper that preserves stdout purity and preserves exit codes.
|
|
9
|
+
|
|
10
|
+
Related Art
|
|
11
|
+
Modern automated workflow systems and CI/CD tools often generate audit and governance logs that record system and human decisions. Typical logging approaches either strict-validate historical logs (causing them to be skipped or rejected when newer schema versions arrive) or silently reinterpret them without a clear signal of uncertainty. There is a gap where historical logs should remain usable for longitudinal analysis while preserving an explicit signal that indicates "legacy" status and uncertainty due to inferred fields or missing metadata. Existing CLI wrappers often write deprecation messages to stdout which can break scripts expecting pure machine-readable output.
|
|
12
|
+
|
|
13
|
+
Summary of the Invention
|
|
14
|
+
This disclosure presents methods, systems and command-line interfaces that:
|
|
15
|
+
|
|
16
|
+
1. Write structured governance comparison logs that include a schemaVersion field using semantic versioning (e.g., "1.0.0"), a unique identifier, timestamp, context block, AI-derived governance block (LexSona result), and the runner decision block.
|
|
17
|
+
|
|
18
|
+
2. Read stored governance logs using two complementary routines: a strict schema-aware routine that rejects logs with missing schemaVersion or unsupported major versions, and a fail-forward legacy-normalization routine which assigns a legacy placeholder schemaVersion (e.g., "0.0.0"), reconstructs missing fields with reasonable defaults, marks normalized logs as legacy, records per-log normalization warnings, and returns an annotated set of logs.
|
|
19
|
+
|
|
20
|
+
3. Compute uncertainty metrics and summaries across a set of governance logs, including counts and breakdowns for offline-mode runs, derivation failures, confidence ceilings, missing persona metadata, and legacy-normalized status, and expose both per-log warnings and aggregated uncertainty summaries so operators can quickly identify areas of incomplete governance insight.
|
|
21
|
+
|
|
22
|
+
4. Offer a canonical CLI command (e.g., governance:report) that supports filtering and formatting options (--since, --until, --persona, --workflow, --disagreements-only, --format=text|json|table|markdown, --output=<file>, --top=N, --accept-legacy), uses the fail-forward normalization routine only when explicitly requested, and produces human readable and machine consumable outputs.
|
|
23
|
+
|
|
24
|
+
5. Provide a thin backwards-compatibility wrapper script that resolves the canonical CLI entry relative to the wrapper location, delegates all arguments to the canonical CLI command, preserves and propagates the child process exit code, and emits deprecation or compatibility notices to stderr to avoid corrupting stdout intended for programmatic consumption.
|
|
25
|
+
|
|
26
|
+
## Refinement (focus for defensibility)
|
|
27
|
+
|
|
28
|
+
Following practical review and counsel-oriented feedback, the inventive focus is refined to two core, technically specific pillars which provide measurable technical advantages over generic logging / CLI practice:
|
|
29
|
+
|
|
30
|
+
- Pillar A — Deterministic schema-evolving telemetry with fail-forward legacy normalization and per-log uncertainty provenance (detailed deterministic normalization algorithm + deterministic uncertainty roll-up).
|
|
31
|
+
- Pillar B — Compatibility-preserving analysis delegation contract implemented as a canonical CLI plus a robust wrapper that guarantees machine-output hygiene and exit-code fidelity for automation pipelines.
|
|
32
|
+
|
|
33
|
+
This refinement avoids overly broad aggregation claims and centers novelty on concrete, deterministic mechanisms that yield measurable technical improvements for reliability and observability in automated, AI-driven governance systems.
|
|
34
|
+
|
|
35
|
+
Brief Description of Drawings
|
|
36
|
+
(FIG. 1) System diagram showing an automated workflow engine, a shadow governance derivation engine (AI), log generator, governance log storage, the strict reader and normalized reader, the CLI reporter, and the compatibility wrapper.
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
(FIG. 2) Flow diagram of the fail-forward normalization routine showing detection of legacy logs, assignment of placeholder schemaVersion, field inference, warning list creation, validation, and return.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
Detailed Description
|
|
45
|
+
[Note to counsel: the following examples and algorithmic descriptions are representative and can be adapted to include implementation-specific parameters, thresholds and heuristics. This description is intended to show preferred embodiments but is not exhaustive.]
|
|
46
|
+
|
|
47
|
+
1. Governance Comparison Log Format
|
|
48
|
+
|
|
49
|
+
- schemaVersion: string, values follow semantic versioning (eg. "1.0.0"). Schema gating is based on major version: logs with major > CURRENT_MAJOR are rejected by strict readers.
|
|
50
|
+
- id: string, unique log id (example: gov-<ULID>)
|
|
51
|
+
- timestamp: iso8601 UTC string
|
|
52
|
+
- context: object containing workflowId, stepKind, repo, branch, and optional hints
|
|
53
|
+
- lexsona: object describing the AI derivation: success boolean, personaId (nullable), offlineMode boolean (true if LexSona was unavailable), constraintSet snapshot (constraintCount, topConstraints, principleCount, metadata including confidenceCeiling), error string if present, derivedAt timestamp
|
|
54
|
+
- runner: object representing the runner's signals: mergeEligible boolean, gatesRequired array, hostilityScore float, suggestedTier string
|
|
55
|
+
- mode: enum representing workflow governance mode (shadow, enforced, unknown). NOTE: "offline" is NOT a valid mode value; offline status is represented by lexsona.offlineMode.
|
|
56
|
+
- wasLegacy: boolean (top-level), set to true for logs normalized via fail-forward procedure
|
|
57
|
+
- normalizationWarnings: array of strings (top-level), populated during fail-forward normalization with explicit warnings for each inferred field
|
|
58
|
+
|
|
59
|
+
1b. Per-Record Uncertainty Flags Schema (computed at analysis time)
|
|
60
|
+
The following flags are derived per-record during uncertainty provenance computation:
|
|
61
|
+
|
|
62
|
+
- offlineMode: boolean, true if lexsona.offlineMode is true
|
|
63
|
+
- derivationFailure: boolean, true if lexsona.success is false
|
|
64
|
+
- confidenceCeilingApplied: boolean, true if lexsona.constraintSet.metadata.confidenceCeiling is present and non-null
|
|
65
|
+
- personaMissing: boolean, true if lexsona.personaId is null
|
|
66
|
+
- normalizationWarningsPresent: boolean, true if normalizationWarnings array is non-empty (indicates legacy log)
|
|
67
|
+
|
|
68
|
+
These flags are not persisted but are computed deterministically from the log record during analysis. The roll-up aggregates counts of each flag across the log set.
|
|
69
|
+
|
|
70
|
+
2. writeGovernanceLog
|
|
71
|
+
|
|
72
|
+
- Ensures logs dir exists (e.g., .smartergpt/runner/governance-logs)
|
|
73
|
+
- May apply retention policy prior to writes: age and size limits (e.g., maxAgeDays, maxSizeMB)
|
|
74
|
+
- Persists the JSON representation of the log with indentation
|
|
75
|
+
|
|
76
|
+
3. readGovernanceLogs (Strict Mode)
|
|
77
|
+
|
|
78
|
+
- Enumerate .json files in the logs directory
|
|
79
|
+
- For each file: parse JSON, check schemaVersion exists and that major version <= CURRENT_MAJOR_VERSION
|
|
80
|
+
- Validate via schema; parse and collect into returned results
|
|
81
|
+
- Skip logs with unsupported schema or invalid JSON, and emit warnings
|
|
82
|
+
|
|
83
|
+
4. readGovernanceLogsWithLegacy (Fail-Forward Mode)
|
|
84
|
+
|
|
85
|
+
- Enumerate .json files
|
|
86
|
+
- For each file: parse JSON; if schemaVersion is absent, set wasLegacy=true and assign "0.0.0" placeholder
|
|
87
|
+
- Infer missing fields with reasonable defaults: id from filename if present, default mode=unknown (not "offline" — see Mode Semantics invariant), empty but well-typed lexsona and runner blocks (with offlineMode=true), minimal context
|
|
88
|
+
- Record textual normalization warnings for each inference (e.g., "id inferred from filename", "mode defaulted to unknown", "lexsona block reconstructed (empty)")
|
|
89
|
+
- Validate the normalized object against the schema; if validation passes, include it with wasLegacy and normalizationWarnings; if fails, skip and warn
|
|
90
|
+
- Return list of normalized results sorted by log.timestamp descending
|
|
91
|
+
|
|
92
|
+
## Deterministic Normalization Algorithm (pseudo-code)
|
|
93
|
+
|
|
94
|
+
The following deterministic, ordered algorithm is a preferred implementation of fail-forward normalization. The order and heuristics matter and form part of the invention.
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
function normalizeLog(rawJson, filename): (normalizedLog, warnings, wasLegacy)
|
|
98
|
+
warnings = []
|
|
99
|
+
wasLegacy = false
|
|
100
|
+
|
|
101
|
+
if not rawJson.schemaVersion:
|
|
102
|
+
wasLegacy = true
|
|
103
|
+
rawJson.schemaVersion = "0.0.0"
|
|
104
|
+
warnings.push("missing schemaVersion -> normalized to 0.0.0")
|
|
105
|
+
|
|
106
|
+
# Field inference order (deterministic): id, mode, lexsona, runner, context
|
|
107
|
+
if not rawJson.id and filename.startsWith("gov-"):
|
|
108
|
+
rawJson.id = filename.replace(".json","")
|
|
109
|
+
warnings.push("id inferred from filename")
|
|
110
|
+
|
|
111
|
+
if not rawJson.mode:
|
|
112
|
+
rawJson.mode = "unknown"
|
|
113
|
+
warnings.push("mode defaulted to unknown")
|
|
114
|
+
|
|
115
|
+
if not rawJson.lexsona:
|
|
116
|
+
rawJson.lexsona = {
|
|
117
|
+
success: false,
|
|
118
|
+
personaId: null,
|
|
119
|
+
offlineMode: true,
|
|
120
|
+
constraintSet: {
|
|
121
|
+
constraintCount: 0,
|
|
122
|
+
topConstraints: [],
|
|
123
|
+
principleCount: 0,
|
|
124
|
+
metadata: {}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
warnings.push("lexsona block reconstructed (empty)")
|
|
128
|
+
|
|
129
|
+
if not rawJson.runner:
|
|
130
|
+
rawJson.runner = {}
|
|
131
|
+
warnings.push("runner block reconstructed (empty)")
|
|
132
|
+
|
|
133
|
+
if not rawJson.context:
|
|
134
|
+
rawJson.context = { workflowId: "unknown", stepKind: "unknown" }
|
|
135
|
+
warnings.push("context reconstructed (unknown)")
|
|
136
|
+
|
|
137
|
+
normalizedLog = validateAgainstSchema(rawJson)
|
|
138
|
+
if not normalizedLog: raise ValidationError
|
|
139
|
+
|
|
140
|
+
return (normalizedLog, warnings, wasLegacy)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
5. Uncertainty Summaries (Fail-Forward Visibility)
|
|
144
|
+
|
|
145
|
+
- For a set of logs, compute:
|
|
146
|
+
- total logs
|
|
147
|
+
- successes (derived success) count
|
|
148
|
+
- offline count (lexsona.offlineMode)
|
|
149
|
+
- withConstraints count (constraintCount > 0)
|
|
150
|
+
- avgConstraintCount
|
|
151
|
+
- personaCounts map
|
|
152
|
+
- topConstraints (freq sorted)
|
|
153
|
+
- agreement metric (agreeCount)
|
|
154
|
+
- legacy-normalized logs count (normalizationWarningsPresent)
|
|
155
|
+
- UncertaintySummary: offlineCount, failedCount, withConfidenceCeiling, noPersonaCount, hasUncertainty boolean
|
|
156
|
+
- These are rendered in various formats; important point: this summary quantifies the presence of uncertainty and makes these logs visible for investigation
|
|
157
|
+
|
|
158
|
+
## Deterministic Uncertainty Roll-up (pseudo-code)
|
|
159
|
+
|
|
160
|
+
This roll-up deterministically computes an uncertainty provenance summary that is both machine- and human-consumable.
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
function computeUncertaintySummary(logs): UncertaintySummary
|
|
164
|
+
summary = {
|
|
165
|
+
offlineCount: 0,
|
|
166
|
+
failedCount: 0,
|
|
167
|
+
withConfidenceCeiling: 0,
|
|
168
|
+
noPersonaCount: 0,
|
|
169
|
+
withNormalizationWarnings: 0
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
for log in logs:
|
|
173
|
+
if log.lexsona.offlineMode: summary.offlineCount += 1
|
|
174
|
+
if not log.lexsona.success: summary.failedCount += 1
|
|
175
|
+
if log.lexsona.confidenceCeiling != null: summary.withConfidenceCeiling += 1
|
|
176
|
+
if log.lexsona.personaId == null: summary.noPersonaCount += 1
|
|
177
|
+
if log.normalizationWarnings != null and log.normalizationWarnings.length > 0:
|
|
178
|
+
summary.withNormalizationWarnings += 1
|
|
179
|
+
|
|
180
|
+
summary.hasUncertainty = any(value > 0 for each value in summary)
|
|
181
|
+
return summary
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
6. CLI: governance:report
|
|
185
|
+
|
|
186
|
+
- Accepts options to filter logs based on time, persona, workflow, disagreements-only semantics
|
|
187
|
+
- Optionally uses readGovernanceLogsWithLegacy when --accept-legacy is supplied
|
|
188
|
+
- Supports multiple formatted outputs (text, json, table, markdown) and file output
|
|
189
|
+
- If legacy logs were included, prints a concise advisory line that legacy logs were included and that they may have incomplete data
|
|
190
|
+
|
|
191
|
+
7. Wrapper script behavior
|
|
192
|
+
|
|
193
|
+
- The wrapper resolves the canonical CLI entry point relative to the wrapper script location (not process.cwd())
|
|
194
|
+
- It writes a deprecation message to stderr to avoid polluting stdout
|
|
195
|
+
- It spawns the canonical CLI with all provided args and returns/propagates exit code
|
|
196
|
+
|
|
197
|
+
Supporting Examples and Embodiments
|
|
198
|
+
|
|
199
|
+
Example 1: Typical Shadow Logging and Reporting
|
|
200
|
+
|
|
201
|
+
- A typical merge run triggers deriveShadowConstraints producing lexsona object with constraintSet and metadata. A governance log is composed with schemaVersion "1.0.0" and persisted. An operator later runs: "lex-pr governance:report --since 2025-12-01 --format markdown" to review disagreements and uncertainty.
|
|
202
|
+
|
|
203
|
+
Example 2: Legacy Logs Included
|
|
204
|
+
|
|
205
|
+
- An organization has older logs without schemaVersion. The operator runs: "lex-pr governance:report --accept-legacy --format json". The reader normalizes older logs to "0.0.0", produces normalization warnings for each legacy file, and the operator receives a JSON array where each element includes an array of normalizationWarnings and an explicit wasLegacy boolean.
|
|
206
|
+
|
|
207
|
+
Example 3: Backwards Compatibility via Wrapper
|
|
208
|
+
|
|
209
|
+
- A build tool calls an older script: "node scripts/analyze-governance-logs.mjs --format json --top 5". The wrapper resolves the canonical CLI entry relative to its file, spawns it with arguments ["governance:report","--format","json","--top","5"], emits a deprecation notice to stderr, and exits with the child exit code so the calling tool observes the same exit semantics.
|
|
210
|
+
|
|
211
|
+
Claims (Numbered, PCT-friendly)
|
|
212
|
+
|
|
213
|
+
Note: The following claims are tightened and centered on the two pillars advised by counsel-style feedback — a defensible drafting approach focussed on a specific technical mechanism and demonstrable technical effect. Counsel should refine language and run prior art checks.
|
|
214
|
+
|
|
215
|
+
Pillar A — Claim 1 (Independent - Schema-versioned governance telemetry generation):
|
|
216
|
+
A method comprising:
|
|
217
|
+
obtaining, for a given execution of an automated workflow, an AI-derived governance result and a corresponding runner decision;
|
|
218
|
+
generating a governance comparison record that contains at least: a schemaVersion field conforming to semantic versioning, a unique identifier, a timestamp, a context block describing the workflow, an AI-derived governance block including an offlineMode indicator, and a runner signals block; and
|
|
219
|
+
storing the governance comparison record with the schemaVersion field in a persistent governance log store.
|
|
220
|
+
|
|
221
|
+
Pillar A — Claim 2 (Independent - Deterministic fail-forward normalization on read path):
|
|
222
|
+
A method for reading and normalizing governance logs from a governance log store, comprising:
|
|
223
|
+
enumerating stored log files in the governance log store;
|
|
224
|
+
for each stored log file, parsing the file to obtain a raw log object;
|
|
225
|
+
if the raw log object lacks a schemaVersion field, applying a deterministic, ordered normalization procedure comprising:
|
|
226
|
+
(a) marking the log as legacy by setting a wasLegacy flag to true,
|
|
227
|
+
(b) assigning a legacy placeholder schemaVersion (e.g., "0.0.0"),
|
|
228
|
+
(c) inferring missing fields using a deterministic field-inference order: id (from filename if available), mode (defaulting to "unknown"), lexsona block (with offlineMode=true), runner block (empty), context block (with unknown values),
|
|
229
|
+
(d) recording explicit per-field normalization warnings in a normalizationWarnings array,
|
|
230
|
+
(e) validating the normalized log against the schema;
|
|
231
|
+
if validation succeeds, including the validated log object with its wasLegacy flag and normalizationWarnings array in a result set;
|
|
232
|
+
if validation fails, excluding the log object and emitting a warning; and
|
|
233
|
+
returning the result set sorted by timestamp, with legacy indicators and normalization warnings exposed as structured provenance for downstream analysis.
|
|
234
|
+
|
|
235
|
+
Pillar A — Claim 3 (Independent - Uncertainty provenance computation and roll-up):
|
|
236
|
+
A method for computing and surfacing uncertainty provenance across governance logs, comprising:
|
|
237
|
+
receiving a plurality of governance comparison records from a governance log store, the plurality including at least one record that was normalized via the deterministic normalization procedure recited in claim 2;
|
|
238
|
+
for each record, computing a set of per-record uncertainty provenance flags, including: - offlineMode: true if lexsona.offlineMode is true, - derivationFailure: true if lexsona.success is false, - confidenceCeilingApplied: true if lexsona.confidenceCeiling is present, - personaMissing: true if lexsona.personaId is null, - normalizationWarningsPresent: true if the record's normalizationWarnings array is non-empty;
|
|
239
|
+
deterministically aggregating the per-record provenance flags into an uncertainty summary comprising counts for each flag category, an optional count of normalizationWarningsPresent records, and a boolean hasUncertainty indicator that is true if any count is greater than zero; and
|
|
240
|
+
outputting the uncertainty summary as part of a report in one or more machine- and human-readable formats where the uncertainty summary is rendered in a way that is explicitly visible to operators and downstream systems.
|
|
241
|
+
|
|
242
|
+
Pillar B — Claim 4 (Independent - Automation-safe analysis delegation contract):
|
|
243
|
+
A method comprising:
|
|
244
|
+
providing a canonical command-line interface for governance analysis that exposes filtering, normalization-mode selection (including an --accept-legacy flag), and output-format options;
|
|
245
|
+
providing a compatibility wrapper script stored separately from the canonical command that deterministically resolves the canonical command's executable path relative to the wrapper's own storage location (not the current working directory);
|
|
246
|
+
when the wrapper is run:
|
|
247
|
+
(a) mapping inbound invocation arguments into a canonical invocation sequence,
|
|
248
|
+
(b) spawning the canonical command with the canonical invocation sequence,
|
|
249
|
+
(c) ensuring that the primary output stream (stdout) is reserved exclusively for programmatic content and that advisory or deprecation messages are written exclusively to a non-primary output stream (stderr),
|
|
250
|
+
(d) mapping the spawned command's exit code 1:1 into the wrapper's exit code; and
|
|
251
|
+
thereby preserving automation reliability, programmatic output compatibility, and exit-code fidelity while centralizing analysis logic in the canonical command.
|
|
252
|
+
|
|
253
|
+
Dependent Claims (examples - narrow mechanics and variants):
|
|
254
|
+
|
|
255
|
+
Claim 5. The method of claim 1 where schemaVersion follows semantic versioning with major.minor.patch format and where schema gating rejects logs whose major version exceeds the current supported major version.
|
|
256
|
+
|
|
257
|
+
Claim 6. The method of claim 1 where persisting a governance comparison record may optionally apply a retention policy comprising at least a maximum age threshold and a maximum total size threshold and where older or low-priority logs are deleted as necessary prior to storing a new governance comparison record.
|
|
258
|
+
|
|
259
|
+
Claim 7. The method of claim 2 where legacy logs are normalized to a placeholder schemaVersion equal to "0.0.0" and where normalization warnings are stored as a structured array (normalizationWarnings) alongside a boolean legacy indicator (wasLegacy) at the top level of the normalized log.
|
|
260
|
+
|
|
261
|
+
Claim 8. The method of claim 2 where the deterministic field-inference order is: id, mode, lexsona, runner, context; and where mode defaults to "unknown" (not "offline") to preserve semantic separation between workflow governance mode and AI-engine availability.
|
|
262
|
+
|
|
263
|
+
Claim 9. The method of claim 3 wherein the uncertainty summary is computed deterministically and the report supports filters selectable from time range, persona identifier, workflow identifier, disagreements-only modality, and top N constraint parameters, and where the report is renderable in at least text, JSON, table and markdown formats.
|
|
264
|
+
|
|
265
|
+
Claim 10. The method of claim 3 where normalization warnings are surfaced to operators via advisory output only when an explicit legacy-include option (e.g., --accept-legacy) is specified; otherwise legacy logs are not included in strict mode.
|
|
266
|
+
|
|
267
|
+
Claim 11. The method of claim 4 where the canonical command accepts a flag named --accept-legacy which causes the canonical command to use the deterministic normalization procedure of claim 2 to include legacy logs, and where the canonical command prints a summary indicating the number of included legacy logs and the number of normalization warnings.
|
|
268
|
+
|
|
269
|
+
Claim 12. The method of claim 4 where the compatibility wrapper ensures deprecation or advisory notices are written only to a standard error stream (stderr) so that the command's standard output (stdout) remains programmatically consumable and where the wrapper propagates the canonical command's exit code 1:1.
|
|
270
|
+
|
|
271
|
+
Claim 13. The method of claim 3 where the uncertainty summary comprises a boolean hasUncertainty indicating whether any of the counted uncertainty conditions are present and a per-category count and where the presence of uncertainty changes the human-readable report to include a fail-forward advisory message for operators.
|
|
272
|
+
|
|
273
|
+
Claim 14. A non-transitory computer-readable storage medium storing program instructions which, when executed by one or more processors, cause the processors to perform any method of claims 1 to 13.
|
|
274
|
+
|
|
275
|
+
Claim 15 (Combination claim - Full governance analysis workflow):
|
|
276
|
+
A method for end-to-end governance telemetry and analysis, comprising:
|
|
277
|
+
(a) generating and storing a plurality of governance comparison records according to the method of claim 1;
|
|
278
|
+
(b) reading the stored governance comparison records from the governance log store using either a strict read procedure that excludes logs lacking a schemaVersion field, or a fail-forward read procedure according to the method of claim 2 that includes legacy logs with explicit provenance;
|
|
279
|
+
(c) computing per-record uncertainty provenance flags and aggregating them into an uncertainty summary according to the method of claim 3;
|
|
280
|
+
(d) generating a report that includes at least the uncertainty summary and governance metrics, the report being renderable in one or more of text, JSON, table, or markdown formats; and
|
|
281
|
+
(e) optionally invoking the report generation via a compatibility wrapper according to the method of claim 4, thereby preserving automation-safe output semantics;
|
|
282
|
+
wherein the combination of (a) through (e) provides a complete, auditable governance analysis pipeline that preserves historical log usability while explicitly surfacing uncertainty provenance to operators.
|
|
283
|
+
|
|
284
|
+
## Invariants and Defensible Constraints
|
|
285
|
+
|
|
286
|
+
To strengthen novelty and practical defensibility, the following invariants form part of the disclosed, preferred embodiments and should be included with any provisional filing or defensive publication:
|
|
287
|
+
|
|
288
|
+
- Invariant (Provenance Honesty): Legacy logs without schemaVersion are not silently promoted to first-class, primary-scheme records without explicit marking; normalization must set wasLegacy=true and populate normalizationWarnings as structured provenance.
|
|
289
|
+
- Invariant (Determinism): The normalization procedure is deterministic and applies a documented, ordered inference strategy (id → mode → lexsona → runner → context) so the same input yields identical normalized output and warnings.
|
|
290
|
+
- Invariant (Mode Semantics): Workflow governance mode (shadow, enforced, unknown) is semantically distinct from AI-engine availability (lexsona.offlineMode). Default mode is "unknown", not "offline".
|
|
291
|
+
- Invariant (Schema Gating): Major-version mismatches (raw log schema major > supported major) are gated and excluded by default unless an explicit migration/upgrade mechanism is provided.
|
|
292
|
+
- Invariant (Automation-Safe Output Contract): Wrapper scripts and CLI commands must preserve programmatic stdout content exclusively for machine-readable output, emit only advisory/deprecation text to stderr, and map child exit codes 1:1 to the wrapper/parent exit code.
|
|
293
|
+
|
|
294
|
+
## Provisional filing / founder-grade package (recommended contents)
|
|
295
|
+
|
|
296
|
+
If pursuing a provisional filing at low cost prior to counsel engagement, include these items in the package:
|
|
297
|
+
|
|
298
|
+
1. 1–2 page problem statement (why naive archival/analysis of logs fails in practice and why uncertainty matters).
|
|
299
|
+
2. Two flow diagrams (write path and read+normalize+roll-up path) — ASCII placeholders here and editable SVG/PNG assets for counsel.
|
|
300
|
+
3. Pseudo-code for normalization + uncertainty roll-up (included above).
|
|
301
|
+
4. Representative example input (raw legacy log) and output (normalized log + warnings + sample report excerpt).
|
|
302
|
+
5. Copy of the CLI contract (flags and behavior) and wrapper contract (stderr vs stdout semantics, relative resolution behavior, exit code fidelity).
|
|
303
|
+
6. Source-code pointers and commit references (evidence of implementation in the project tree: filenames and small code excerpts).
|
|
304
|
+
|
|
305
|
+
Best Modes, Alternatives, and Variations
|
|
306
|
+
|
|
307
|
+
- The schemaVersion may evolve (major/minor/patch) and major-version gating logic can be extended to provide migration or conversion strategies.
|
|
308
|
+
- Fail-forward normalization may use heuristics beyond simple default substitution, for example machine-learned inference to guess missing fields, or probabilistic signatures indicating inferred values.
|
|
309
|
+
- The persistent storage may be on local disk with retention policies, or on a remote storage or object store with similar retention enforcement.
|
|
310
|
+
- The wrapper script may be implemented in any executable language or packaging suitable for distribution (node.js, bash shim, or OS-level package). The core behavior of path-resolution relative to the wrapper location and stderr-only deprecation is recommended for any such wrapper.
|
|
311
|
+
|
|
312
|
+
Advantages
|
|
313
|
+
|
|
314
|
+
- Preserves historical logs while explicitly indicating uncertainty rather than silently dropping or misinterpreting data
|
|
315
|
+
- Makes legacy logs useful for trend analysis and investigations without introducing silent correctness assumptions
|
|
316
|
+
- Provides operationally-sane retention and performance guarantees
|
|
317
|
+
- Provides programmatic reporting interfaces designed to be consumption-safe and script-friendly
|
|
318
|
+
- Ensures backwards compatibility via a robust wrapper that preserves exit semantics and stdout purity
|
|
319
|
+
|
|
320
|
+
Examples of Implementation Code Mapping (for review)
|
|
321
|
+
|
|
322
|
+
- readGovernanceLogs(), readGovernanceLogsWithLegacy(), createGovernanceComparisonLog(), writeGovernanceLog(), applyRetentionPolicy(), formatGovernanceLog(), formatShadowGovernanceSummary(), deriveShadowConstraints(), governanceReport(), and scripts/analyze-governance-logs.mjs are representative functional units in an embodiment in the lexrunner project.
|
|
323
|
+
|
|
324
|
+
Legal and Filing Notes
|
|
325
|
+
|
|
326
|
+
- The above disclosure is a provisional-quality draft intended to capture inventive concepts for counsel. Before filing a PCT or national stage application, perform a formal prior art search and work with patent counsel to refine claim scope and claim dependency trees.
|
|
327
|
+
- When listing inventors, identify individuals who conceived of the claimed subject matter; do not list AI as a legal inventor in filings without counsel guidance and jurisdictional clearance.
|
|
328
|
+
|
|
329
|
+
Appendix: Example Report Output (text)
|
|
330
|
+
Governance logs summary:
|
|
331
|
+
total logs: 10
|
|
332
|
+
successful derivations: 8 (80%)
|
|
333
|
+
offline-mode logs: 2 (20%)
|
|
334
|
+
logs with >0 constraints: 3 (30%)
|
|
335
|
+
average constraintCount: 1.40
|
|
336
|
+
persona usage: {"quality-first_engineering": 6, "momentum-first_product": 4}
|
|
337
|
+
|
|
338
|
+
Top constraints (by frequency):
|
|
339
|
+
|
|
340
|
+
- "rule: disallow large refactor in minor release" x 2
|
|
341
|
+
|
|
342
|
+
Simple agreement: runner allowed and LexSona no-block == 7/10 (70%)
|
|
343
|
+
|
|
344
|
+
⚠️ Uncertainty Summary (fail-forward):
|
|
345
|
+
|
|
346
|
+
- offline mode: 2 logs (LexSona unavailable)
|
|
347
|
+
- derivation failures: 1 logs
|
|
348
|
+
- legacy-normalized logs: 1 logs (included only with --accept-legacy)
|
|
349
|
+
|
|
350
|
+
END OF DRAFT
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Patent Draft Notarization Verification
|
|
2
|
+
|
|
3
|
+
**Document:** `2025-12-07-shadow-governance-pct-draft.md`
|
|
4
|
+
**Title:** Fail-Forward Shadow Governance Telemetry and Analysis
|
|
5
|
+
**Inventor:** Joseph M. Gustavson
|
|
6
|
+
**Date:** 2025-12-07
|
|
7
|
+
**Purpose:** Provisional patent application draft with OpenTimestamps blockchain notarization
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Document Integrity Verification
|
|
12
|
+
|
|
13
|
+
### SHA256 Hash
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
sha256sum 2025-12-07-shadow-governance-pct-draft.md
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Computed Hash:**
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
7f7e45d5184057395cea4a3afe52b46281d5c333745a39e404c3617548c4da1c
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### OpenTimestamps Verification
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
ots verify 2025-12-07-shadow-governance-pct-draft.md.ots
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Expected output (after blockchain confirmation):
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Success! Bitcoin block 87XXXX attests existence as of YYYY-MM-DD HH:MM:SS UTC
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Independent Verification
|
|
38
|
+
|
|
39
|
+
You can independently verify this timestamp proof using:
|
|
40
|
+
|
|
41
|
+
- OpenTimestamps client: https://opentimestamps.org/
|
|
42
|
+
- Web verification: https://opentimestamps.org/ (upload `.ots` file)
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Document Summary
|
|
47
|
+
|
|
48
|
+
This is a **provisional-quality patent draft** for the fail-forward shadow governance telemetry system implemented in lexrunner.
|
|
49
|
+
|
|
50
|
+
**Key Inventive Elements:**
|
|
51
|
+
|
|
52
|
+
1. Schema-versioned governance telemetry with semantic versioning
|
|
53
|
+
2. Deterministic fail-forward normalization on read path (not write)
|
|
54
|
+
3. Explicit uncertainty provenance with structured warnings
|
|
55
|
+
4. Automation-safe CLI delegation contract (stdout hygiene, exit-code fidelity)
|
|
56
|
+
|
|
57
|
+
**Patent Structure:**
|
|
58
|
+
|
|
59
|
+
- 15 numbered claims (4 independent, 10 dependent, 1 system, 1 combination)
|
|
60
|
+
- 5 named invariants for defensibility
|
|
61
|
+
- 2 SVG flow diagrams
|
|
62
|
+
- Pseudo-code algorithms for normalization and uncertainty roll-up
|
|
63
|
+
- Independent analysis by GitHub Copilot (Claude Opus 4.5)
|
|
64
|
+
|
|
65
|
+
**Filing Recommendation:**
|
|
66
|
+
|
|
67
|
+
- Suitable for US Provisional Application filing (35 U.S.C. §111(b))
|
|
68
|
+
- Estimated cost: $320 (micro entity)
|
|
69
|
+
- Priority date established: 2025-12-07
|
|
70
|
+
- Nonprovisional deadline: 2025-12-07 + 12 months
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Notarization Details
|
|
75
|
+
|
|
76
|
+
**Timestamp Method:** OpenTimestamps (Bitcoin blockchain anchoring)
|
|
77
|
+
**Calendar Servers:**
|
|
78
|
+
|
|
79
|
+
- https://a.pool.opentimestamps.org
|
|
80
|
+
- https://b.pool.opentimestamps.org
|
|
81
|
+
- https://a.pool.eternitywall.com
|
|
82
|
+
- https://ots.btc.catallaxy.com
|
|
83
|
+
|
|
84
|
+
**Blockchain:** Bitcoin mainnet
|
|
85
|
+
**Confirmation:** Pending (typically 1-6 hours for first confirmation)
|
|
86
|
+
|
|
87
|
+
**Why This Matters:**
|
|
88
|
+
|
|
89
|
+
- Establishes **cryptographic proof of existence** at this timestamp
|
|
90
|
+
- Cannot be backdated or tampered with
|
|
91
|
+
- Provides independent verification of priority date claim
|
|
92
|
+
- Complements (but does not replace) formal USPTO filing
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Legal Notice
|
|
97
|
+
|
|
98
|
+
This notarization provides **evidence of document existence** at the timestamp. It does NOT:
|
|
99
|
+
|
|
100
|
+
- Constitute a legal patent filing
|
|
101
|
+
- Grant patent rights
|
|
102
|
+
- Replace formal USPTO provisional application filing
|
|
103
|
+
- Provide legal advice
|
|
104
|
+
|
|
105
|
+
**For patent protection:** File a formal provisional application with the USPTO within a reasonable timeframe. This notarization can serve as supporting evidence of conception date.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Verification Log
|
|
110
|
+
|
|
111
|
+
| Date | Verifier | Result | Notes |
|
|
112
|
+
| ---------- | ------------------------ | ------- | -------------------------------- |
|
|
113
|
+
| 2025-12-07 | GitHub Copilot (initial) | Pending | Awaiting blockchain confirmation |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Related Files
|
|
118
|
+
|
|
119
|
+
- `2025-12-07-shadow-governance-pct-draft.md` — Patent draft
|
|
120
|
+
- `2025-12-07-shadow-governance-pct-draft.md.ots` — OpenTimestamps proof
|
|
121
|
+
- `fig1_write_path.svg` — Write path diagram
|
|
122
|
+
- `fig2_read_normalize_rollup.svg` — Read/normalize/rollup path diagram
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
**Attestation Chain:**
|
|
127
|
+
|
|
128
|
+
- Document hash → OpenTimestamps proof → Bitcoin transaction → Bitcoin block → Immutable ledger
|
|
129
|
+
|
|
130
|
+
**Privacy:** This notarization is **cryptographically provable** but the document content remains private unless disclosed. The Bitcoin blockchain only stores the hash, not the document.
|