whykit 0.4.0__tar.gz → 0.5.1__tar.gz
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.
- {whykit-0.4.0 → whykit-0.5.1}/.gitignore +3 -0
- {whykit-0.4.0 → whykit-0.5.1}/CHANGELOG.md +134 -1
- whykit-0.5.1/PKG-INFO +297 -0
- whykit-0.5.1/README.md +260 -0
- whykit-0.5.1/examples/northline/templates/README.md +21 -0
- whykit-0.5.1/examples/payments/.gitignore +18 -0
- whykit-0.5.1/examples/payments/00-context/company.md +55 -0
- whykit-0.5.1/examples/payments/00-context/evidence-register.md +38 -0
- whykit-0.5.1/examples/payments/00-context/goals.md +38 -0
- whykit-0.5.1/examples/payments/00-context/review-log.md +28 -0
- whykit-0.5.1/examples/payments/00-context/terminology.md +34 -0
- whykit-0.5.1/examples/payments/06-decisions/d-001-store-money-as-integer-cents.md +55 -0
- whykit-0.5.1/examples/payments/06-decisions/d-002-keep-the-ledger-on-a-single-postgres-primary.md +55 -0
- whykit-0.5.1/examples/payments/06-decisions/d-003-make-every-webhook-handler-idempotent.md +56 -0
- whykit-0.5.1/examples/payments/06-decisions/d-004-render-the-checkout-page-on-the-server.md +56 -0
- whykit-0.5.1/examples/payments/06-decisions/d-005-keep-decision-records-in-the-main-repository.md +54 -0
- whykit-0.5.1/examples/payments/06-decisions/d-006-render-checkout-on-the-client-with-server-side-validation.md +56 -0
- whykit-0.5.1/examples/payments/06-decisions/decision-log.md +43 -0
- whykit-0.5.1/examples/payments/AGENTS.md +162 -0
- whykit-0.5.1/examples/payments/Home.md +47 -0
- whykit-0.5.1/examples/payments/INTEROP.md +117 -0
- whykit-0.5.1/examples/payments/OBSIDIAN.md +92 -0
- whykit-0.5.1/examples/payments/README.md +41 -0
- whykit-0.5.1/examples/payments/notes/README.md +18 -0
- whykit-0.5.1/examples/payments/templates/decision-record-template.md +65 -0
- whykit-0.5.1/examples/payments/templates/document-template.md +55 -0
- whykit-0.5.1/examples/payments/templates/experiment-template.md +62 -0
- whykit-0.5.1/examples/payments/templates/meeting-note-template.md +47 -0
- whykit-0.5.1/examples/payments/templates/research-note-template.md +53 -0
- whykit-0.5.1/examples/payments/templates/source-ingestion-template.md +43 -0
- whykit-0.5.1/examples/payments/whykit.toml +45 -0
- whykit-0.5.1/schemas/affected-report.schema.json +308 -0
- whykit-0.5.1/schemas/connect-result.schema.json +93 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/document-frontmatter.schema.json +27 -0
- whykit-0.5.1/schemas/scope-check.schema.json +159 -0
- whykit-0.5.1/schemas/scope-suggestions.schema.json +161 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/__init__.py +1 -1
- whykit-0.5.1/src/whykit/affected.py +892 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/agent_preflight.py +27 -15
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/cli.py +226 -4
- whykit-0.5.1/src/whykit/connect.py +228 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract.py +4 -0
- whykit-0.5.1/src/whykit/contract_schemas/affected-report.schema.json +308 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/explorer_index.py +11 -2
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/immutability.py +21 -4
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/mcp_server.py +87 -1
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/promote.py +76 -2
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/scaffold.py +37 -2
- whykit-0.5.1/src/whykit/scope.py +402 -0
- whykit-0.5.1/src/whykit/template/00-context/README.md +17 -0
- whykit-0.5.1/src/whykit/template/06-decisions/README.md +11 -0
- whykit-0.5.1/src/whykit/template/assets/README.md +6 -0
- whykit-0.5.1/src/whykit/template/reports/README.md +7 -0
- whykit-0.4.0/PKG-INFO +0 -150
- whykit-0.4.0/README.md +0 -113
- {whykit-0.4.0 → whykit-0.5.1}/LICENSE +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/NOTICE +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/agent-eval/cases.jsonl +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/agent-eval/responses.jsonl +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/00-context/evidence-register.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/00-context/review-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/06-decisions/decision-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/AGENTS.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/Home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/approval/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/github-import/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/github-import/issue.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/github-import/pull-request.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/github-import/workflow-run.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/00-context/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/00-context/company.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/00-context/evidence-register.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/00-context/goals.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/00-context/review-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/00-context/terminology.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/01-strategy/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/01-strategy/icp.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/01-strategy/messaging.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/01-strategy/offer-architecture.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/01-strategy/positioning.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/02-discoverability/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/02-discoverability/content-system.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/02-discoverability/search-and-answers.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/03-website/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/03-website/information-architecture.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/03-website/page-brief-home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/04-automation/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/04-automation/inbound-demo-routing.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/05-operations/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/05-operations/meeting-2026-09-04-pipeline.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/05-operations/qualification.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-001-git-markdown.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-002-icp-ops.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-003-no-paid.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-004-english.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-005-product-led-site.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-006-no-ai-in-h1.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-007-hubspot.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-008-discrete.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-009-partner-led.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-010-direct.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/d-011-direct-with-evidence.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/06-decisions/decision-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/07-research/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/07-research/competitors/vendor-a.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/07-research/competitors/vendor-b.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/07-research/interviews/example-region-maintenance-lead-2026-06-18.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/07-research/market-dach.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/07-research/sources/ingestion-2026-09-02.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/AGENTS.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/Home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/INTEROP.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/OBSIDIAN.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/reports/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/reports/organic-baseline-2026-08-01.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/automation-spec-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/decision-record-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/document-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/experiment-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/meeting-note-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/page-brief-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/research-note-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/templates/source-ingestion-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/northline/whykit.toml +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/artifacts/E-004/0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/artifacts/E-005/fab761d309bb12500028ff74d7b094c3e62028c2148ade332442d7b17194e6ca.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/claims/c-001.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/claims/c-002.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/evidence-register.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/observations/E-004.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/observations/E-005.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/outcomes/o-001.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/00-context/review-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/06-decisions/d-003-keep-claims-and-source-versions-separate-from-approved-reasoning.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/06-decisions/d-004-record-source-observations-separately-from-immutable-captures.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/06-decisions/d-005-keep-measured-outcomes-separate-from-approvals-and-causal-claims.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/06-decisions/decision-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/AGENTS.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/Home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/outcome-input.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/proposal.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/outcomes/whykit.toml +0 -0
- {whykit-0.4.0/examples/tiny → whykit-0.5.1/examples/payments}/00-context/README.md +0 -0
- {whykit-0.4.0/examples/tiny → whykit-0.5.1/examples/payments}/06-decisions/README.md +0 -0
- {whykit-0.4.0/examples/tiny → whykit-0.5.1/examples/payments}/assets/README.md +0 -0
- {whykit-0.4.0/examples/tiny → whykit-0.5.1/examples/payments}/reports/README.md +0 -0
- {whykit-0.4.0/examples/northline → whykit-0.5.1/examples/payments}/templates/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/00-context/artifacts/E-004/0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/00-context/claims/c-001.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/00-context/evidence-register.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/00-context/observations/E-004.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/00-context/review-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/06-decisions/d-003-keep-claims-and-source-versions-separate-from-approved-reasoning.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/06-decisions/d-004-record-source-observations-separately-from-immutable-captures.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/06-decisions/decision-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/AGENTS.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/Home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/proposal.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/provenance/whykit.toml +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/.gitignore +0 -0
- {whykit-0.4.0/src/whykit/template → whykit-0.5.1/examples/tiny}/00-context/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/00-context/company.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/00-context/evidence-register.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/00-context/goals.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/00-context/review-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/00-context/terminology.md +0 -0
- {whykit-0.4.0/src/whykit/template → whykit-0.5.1/examples/tiny}/06-decisions/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/06-decisions/d-001-start-with-a-minimal-whykit-vault.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/06-decisions/d-002-keep-the-ledger-to-evidence-and-decisions.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/06-decisions/decision-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/AGENTS.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/Home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/INTEROP.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/OBSIDIAN.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/README.md +0 -0
- {whykit-0.4.0/src/whykit/template → whykit-0.5.1/examples/tiny}/assets/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/notes/README.md +0 -0
- {whykit-0.4.0/src/whykit/template → whykit-0.5.1/examples/tiny}/reports/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/templates/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/templates/decision-record-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/templates/document-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/templates/research-note-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/templates/source-ingestion-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/examples/tiny/whykit.toml +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/hatch_build.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/pyproject.toml +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/adopt-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/agent-eval-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/agent-preflight-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/backlinks-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/check-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/claim-list.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/claim-provenance.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/claim-record.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/claim-show.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/claim-verification.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/compiled-context.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/context-bundle.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/context-pack.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/context-verification.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/decision-approval-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/decision-record.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/deep-impact.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/diff-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/doctor-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/downgrade-check.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/error.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/evidence-artifact.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/evidence-entry.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/evidence-list.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/evidence-retire-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/explorer-index.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/github-import-receipt.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/github-import-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/graph.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/history-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/hybrid-retrieval.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/impact-dependencies.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/impact-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/init-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/knowledge-export-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/knowledge-migration.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/knowledge-restore-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/knowledge-v2.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/lint-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/lint-sarif.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/outcome-create.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/outcome-list.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/outcome-record.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/outcome-show.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/outcome-verification.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/policy.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/provenance-write.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/provenance.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/publication-preview.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/query-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/record-create.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/recovery-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/review-event.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/review-queue.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/review-record-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/rule-catalog.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/rule-detail.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/snapshot-verify.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/snapshot.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/source-observations.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/status-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/temporal-graph.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/trace-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/schemas/workspace-status.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/adopt.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/agent_eval.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/artifact_store.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/backlinks.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/check.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/ci_formats.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/claim_ledger.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/claim_provenance.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/compiled_context.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/completion.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/config.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/console.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/context.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/context_applicability.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/backlinks-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/context-bundle.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/context-pack.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/impact-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/query-result.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/status-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/contract_schemas/trace-report.schema.json +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/dependency_graph.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/diff.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/evidence.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/github_import.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/graph.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/hybrid_retrieval.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/impact.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/impact_contract.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/init_layout.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/io.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/knowledge_v2.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/knowledge_visibility.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/lint.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/lsp.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/markdown_code.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/messages.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/outcome_ledger.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/pack.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/parse_cache.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/placeholders.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/py.typed +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/query.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/retrieval.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/review.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/review_history.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/rule_policy.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/rules.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/sensitivity.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/snapshot.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/status.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/tables.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/00-context/company.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/00-context/evidence-register.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/00-context/goals.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/00-context/review-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/00-context/terminology.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/01-strategy/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/02-discoverability/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/03-website/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/04-automation/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/05-operations/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/06-decisions/decision-log.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/07-research/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/AGENTS.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/Home.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/INTEROP.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/OBSIDIAN.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/README.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/automation-spec-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/decision-record-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/document-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/experiment-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/meeting-note-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/page-brief-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/research-note-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/templates/source-ingestion-template.md +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/template/whykit.toml +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/temporal_graph.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/trace.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/vault_index.py +0 -0
- {whykit-0.4.0 → whykit-0.5.1}/src/whykit/workspace.py +0 -0
|
@@ -5,6 +5,137 @@ All notable changes to WhyKit are documented here. The format follows
|
|
|
5
5
|
semantic versioning, where the **data contract** is the public API alongside the
|
|
6
6
|
CLI and the lint rule codes.
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.5.1] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- The MCP Registry name is `io.github.CometWeb-io/whykit`. The registry matches
|
|
15
|
+
the GitHub organization name case-sensitively, so 0.5.0's lowercase
|
|
16
|
+
`mcp-name` could not be published. Package behaviour is unchanged.
|
|
17
|
+
|
|
18
|
+
## [0.5.0] - 2026-11-14
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `whykit connect` connects a code repository's AI agents to a vault. It prints
|
|
23
|
+
the read-only MCP configuration for Claude Code, Cursor, VS Code, Codex,
|
|
24
|
+
Claude Desktop or a generic host, with absolute paths filled in, and previews
|
|
25
|
+
a marked decision-checking block for the repository's `AGENTS.md` (or
|
|
26
|
+
`CLAUDE.md` for Claude Code). `--write` adds or refreshes only that block;
|
|
27
|
+
the vault path in it is always relative, and host configuration files are
|
|
28
|
+
never written. `--json` follows the new `connect-result.schema.json`.
|
|
29
|
+
- `whykit affected` maps changed or planned files in a code repository to the
|
|
30
|
+
live decisions that govern them, then runs the agent-preflight checks on each
|
|
31
|
+
match: retired, missing or stale sources, captured sources that changed since
|
|
32
|
+
a claim was pinned, overdue or failed reviews and unverifiable approvals. It
|
|
33
|
+
reports changed files no decision covers, live decisions without a scope and
|
|
34
|
+
invalid patterns, never judges the change itself (`semantics_checked` is
|
|
35
|
+
always false), and offers `--format markdown` for pull requests, `--strict`
|
|
36
|
+
to fail on review signals, `--max-sensitivity` to withhold titles and
|
|
37
|
+
`--json` following the new `affected-report.schema.json`. A configuration
|
|
38
|
+
gap (a source type without a maximum age) is reported once as a caveat.
|
|
39
|
+
- `whykit affected --adr DIR` works on a folder of plain ADRs (MADR, Nygard,
|
|
40
|
+
adr-tools) with no vault and no migration. Proposed, rejected, deprecated and
|
|
41
|
+
superseded ADRs are skipped; scope comes from `applies_to` front matter or is
|
|
42
|
+
inferred from repository paths the ADR mentions (reported as a caveat); a
|
|
43
|
+
mentioned path that no longer exists is a review signal. Without a vault,
|
|
44
|
+
`affected` points at a conventional ADR folder when it finds one.
|
|
45
|
+
- An eighth MCP tool, `affected`, takes the files an agent plans to change and
|
|
46
|
+
returns the same report. Decisions above the ceiling are absent, host paths
|
|
47
|
+
are never returned, and under a public ceiling evidence and claim codes are
|
|
48
|
+
withheld (`evidence_details: "withheld"`), as in `trace`.
|
|
49
|
+
- The GitHub Action's `affected` input adds the report to the job summary and,
|
|
50
|
+
with `comment`, to the decision diff comment. It is advisory and shows
|
|
51
|
+
decision titles only up to `affected-sensitivity` (default `public`).
|
|
52
|
+
- `whykit scope suggest` proposes `applies_to` patterns for live decisions
|
|
53
|
+
from Git history: the commits that changed the decision record and the
|
|
54
|
+
commits whose message names its exact ID. Files are grouped into a few
|
|
55
|
+
patterns, each with the commits and files behind it; lock files and
|
|
56
|
+
changelogs are ignored. `--write` fills in only decisions without a scope,
|
|
57
|
+
`--min-commits` drops weak patterns, and `--json` follows the new
|
|
58
|
+
`scope-suggestions.schema.json`.
|
|
59
|
+
- `whykit affected` reports `cited_source_changed` when a change modifies a
|
|
60
|
+
file that a live decision cites as evidence (an evidence location without a
|
|
61
|
+
URL scheme is read as a repository path), even when the decision's scope
|
|
62
|
+
does not cover the changed code. Matches are listed in `matched_sources`.
|
|
63
|
+
The MCP tool matches sources only when the register is within its ceiling.
|
|
64
|
+
- `watch_terms` on decisions (vault and ADR front matter, `whykit new decision
|
|
65
|
+
--watch-term`): whole words whose appearance in added or removed code lines
|
|
66
|
+
makes a decision apply. Comment-only lines, prose files, lock files and
|
|
67
|
+
changelogs are skipped. Checked in Git mode, with the new
|
|
68
|
+
`whykit affected --diff-file` (a planned patch, `-` for stdin) and through
|
|
69
|
+
the MCP tool's new `diff` argument; reported as unchecked otherwise. Like
|
|
70
|
+
`applies_to`, it may change on an approved decision.
|
|
71
|
+
- Decisions matched only through a pattern covering a whole top-level folder
|
|
72
|
+
are marked `broad`, counted separately and listed last.
|
|
73
|
+
- `whykit scope check` compares live decisions' `applies_to` patterns with the
|
|
74
|
+
repository's tracked files and their `watch_terms` with its source files,
|
|
75
|
+
reporting dead patterns, broad patterns, unseen terms, invalid entries and
|
|
76
|
+
unscoped decisions; `--strict` fails on dead or invalid patterns, and
|
|
77
|
+
`--json` follows the new `scope-check.schema.json`.
|
|
78
|
+
- `whykit scope suggest` also proposes `watch_terms` from a decision's
|
|
79
|
+
rejected alternatives, limited to code-looking names and never written.
|
|
80
|
+
- `scripts/eval_affected.py` replays a repository's commits through
|
|
81
|
+
`affected`, and `docs/field-evaluation.md` reports the first run on four
|
|
82
|
+
public ADR repositories.
|
|
83
|
+
|
|
84
|
+
- Decisions may declare `applies_to`: repository-relative globs for the code
|
|
85
|
+
they govern, set with `whykit new decision --applies-to`. Scope is routing,
|
|
86
|
+
not reasoning: an approved decision may change it without supersession, and
|
|
87
|
+
it is excluded from the approval hash. Existing approvals are unaffected.
|
|
88
|
+
- `examples/payments`, a synthetic vault in which every note is public, and a
|
|
89
|
+
live Explorer demo built from it on GitHub Pages (`WHYKIT_SITE_DEMO=1` in
|
|
90
|
+
`scripts/build-site.sh`).
|
|
91
|
+
- A tested tutorial, [catch decision drift](docs/tutorials/catch-decision-drift.md),
|
|
92
|
+
a reference page (`docs/affected.md`) with a pull-request workflow, a
|
|
93
|
+
`ROADMAP.md` with validation targets and a field-report issue form.
|
|
94
|
+
- A "Connect your AI agents" guide (`docs/agents.md`) and an animated Explorer
|
|
95
|
+
demo in the README.
|
|
96
|
+
- `server.json` describes the MCP server for the official MCP Registry
|
|
97
|
+
(`io.github.cometweb-io/whykit`, run with `uvx --from 'whykit[mcp]' whykit-mcp`),
|
|
98
|
+
and a manual `MCP Registry` workflow publishes it once the version is on PyPI.
|
|
99
|
+
|
|
100
|
+
### Changed
|
|
101
|
+
|
|
102
|
+
- `whykit agent preflight` and `whykit affected` share one decision
|
|
103
|
+
assessment; preflight output is unchanged.
|
|
104
|
+
- The `whykit connect` instruction block asks agents to run `whykit affected`
|
|
105
|
+
on the files they plan to change.
|
|
106
|
+
- The README leads with the agent use case, shows the Explorer, the CI gate
|
|
107
|
+
and a comparison with ADRs and wikis, and moves the alpha limits into their
|
|
108
|
+
own section.
|
|
109
|
+
- Tests that need a non-root user or the installed `whykit` entry point now
|
|
110
|
+
skip with a reason instead of failing in containers and plain checkouts.
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
|
|
114
|
+
Found by the [field evaluation](docs/field-evaluation.md):
|
|
115
|
+
|
|
116
|
+
- `new decision --from` accepted the adoption report `MIGRATION.md` written by
|
|
117
|
+
`whykit adopt` as an ADR; it is now refused.
|
|
118
|
+
- MADR "Pros and Cons of the Options" now fill the upside and risk columns of
|
|
119
|
+
the alternatives table; status badges and images are no longer offered as
|
|
120
|
+
evidence candidates; `deciders` / `decision-makers` become the owner unless
|
|
121
|
+
`--owner` is given; an ADR whose source status says superseded, deprecated
|
|
122
|
+
or rejected is promoted with a warning to supersede or archive it.
|
|
123
|
+
- `scope suggest` reads all decisions' history in two `git log` passes instead
|
|
124
|
+
of several per decision (22 s → 1.2 s for 15 decisions on a 77,000-commit
|
|
125
|
+
repository), and the `affected` text report shows five matched files and a
|
|
126
|
+
count instead of every file.
|
|
127
|
+
- ADR path inference ignored prose such as `dd/mm/yyyy`, `CI/CD` and domain
|
|
128
|
+
names only by luck; it now reads a path only when its first segment exists
|
|
129
|
+
at the repository root, so package-relative paths are no longer candidates
|
|
130
|
+
for "moved code".
|
|
131
|
+
- An ADR marked `[superseded]` (or deprecated, rejected) only in its title was
|
|
132
|
+
treated as in force.
|
|
133
|
+
- `scope suggest` learned from imports, sweeps and mass renames; it now
|
|
134
|
+
ignores commits wider than `--max-files` (default 25).
|
|
135
|
+
- `affected --adr` resolves the repository path before comparing it with the
|
|
136
|
+
ADR folder, so a checkout behind a symlink (macOS `/var` is `/private/var`)
|
|
137
|
+
keeps its inferred scopes and moved-code signals.
|
|
138
|
+
|
|
8
139
|
## [0.4.0] - 2026-11-05
|
|
9
140
|
|
|
10
141
|
### Added
|
|
@@ -1134,7 +1265,9 @@ Initial implementation. No package was published under this version.
|
|
|
1134
1265
|
rules and common secret leaks.
|
|
1135
1266
|
- JSON Schemas, a worked example vault, and an optional local Explorer.
|
|
1136
1267
|
|
|
1137
|
-
[Unreleased]: https://github.com/CometWeb-io/whykit/compare/v0.
|
|
1268
|
+
[Unreleased]: https://github.com/CometWeb-io/whykit/compare/v0.5.1...HEAD
|
|
1269
|
+
[0.5.1]: https://github.com/CometWeb-io/whykit/compare/v0.5.0...v0.5.1
|
|
1270
|
+
[0.5.0]: https://github.com/CometWeb-io/whykit/compare/v0.4.0...v0.5.0
|
|
1138
1271
|
[0.3.2]: https://github.com/CometWeb-io/whykit/compare/v0.3.1...v0.3.2
|
|
1139
1272
|
[0.3.1]: https://github.com/CometWeb-io/whykit/tree/v0.3.1
|
|
1140
1273
|
[0.3.0]: https://github.com/CometWeb-io/whykit/tree/v0.3.0
|
whykit-0.5.1/PKG-INFO
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: whykit
|
|
3
|
+
Version: 0.5.1
|
|
4
|
+
Summary: Keep decisions, their reasoning, and supporting sources together in Markdown
|
|
5
|
+
Project-URL: Homepage, https://github.com/CometWeb-io/whykit
|
|
6
|
+
Project-URL: Documentation, https://github.com/CometWeb-io/whykit#readme
|
|
7
|
+
Project-URL: Source, https://github.com/CometWeb-io/whykit
|
|
8
|
+
Project-URL: Changelog, https://github.com/CometWeb-io/whykit/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Issues, https://github.com/CometWeb-io/whykit/issues
|
|
10
|
+
Project-URL: Security, https://github.com/CometWeb-io/whykit/blob/main/SECURITY.md
|
|
11
|
+
Author-email: Maciej Zmitrukiewicz <hello@cometweb.io>
|
|
12
|
+
Maintainer-email: Maciej Zmitrukiewicz <hello@cometweb.io>
|
|
13
|
+
License-Expression: Apache-2.0
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
License-File: NOTICE
|
|
16
|
+
Keywords: adr,agents,audit-trail,decision-log,decision-records,evidence,git,knowledge-base,markdown,mcp,obsidian,provenance
|
|
17
|
+
Classifier: Development Status :: 3 - Alpha
|
|
18
|
+
Classifier: Environment :: Console
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Topic :: Documentation
|
|
28
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
29
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
30
|
+
Classifier: Typing :: Typed
|
|
31
|
+
Requires-Python: >=3.11
|
|
32
|
+
Provides-Extra: mcp
|
|
33
|
+
Requires-Dist: mcp<2.4,>=2.2; extra == 'mcp'
|
|
34
|
+
Requires-Dist: opentelemetry-api>=1.45.1; extra == 'mcp'
|
|
35
|
+
Requires-Dist: pyjwt>=2.15.0; extra == 'mcp'
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
<div align="center">
|
|
39
|
+
|
|
40
|
+
# WhyKit
|
|
41
|
+
|
|
42
|
+
<!-- mcp-name: io.github.CometWeb-io/whykit -->
|
|
43
|
+
|
|
44
|
+
### Know which decisions a change touches, and which of them need another look.
|
|
45
|
+
|
|
46
|
+
Your coding agent sees the code, not the reasons behind it, so it "fixes"
|
|
47
|
+
things that were deliberate. WhyKit keeps decisions and their sources as plain
|
|
48
|
+
Markdown in Git, maps every change to the decisions that govern it, and flags
|
|
49
|
+
the ones whose evidence or review has gone out of date: in the pull request,
|
|
50
|
+
before merge, and for Claude Code, Cursor or Codex before they edit.
|
|
51
|
+
|
|
52
|
+
[](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml)
|
|
53
|
+
[](https://pypi.org/project/whykit/)
|
|
54
|
+
[](https://pypi.org/project/whykit/)
|
|
55
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
56
|
+
[](https://securityscorecards.dev/viewer/?uri=github.com/CometWeb-io/whykit)
|
|
57
|
+
[](https://whykit.cometweb.io/)
|
|
58
|
+
|
|
59
|
+
**No runtime dependencies · Offline by design · Your data stays Markdown**
|
|
60
|
+
|
|
61
|
+
[Live demo](https://whykit.cometweb.io/demo/) · [Tutorial](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/tutorials/catch-decision-drift.md) · [Connect agents](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/agents.md) · [Docs](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/README.md) · [Roadmap](https://github.com/CometWeb-io/whykit/blob/v0.5.1/ROADMAP.md)
|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
## What it does
|
|
68
|
+
|
|
69
|
+
Each decision cites its sources (`E-001`) and declares the code it governs
|
|
70
|
+
(`applies_to: ["src/payments/**"]`). Before a change lands, one command answers
|
|
71
|
+
*which decisions does this touch, and has anything they rest on changed?*
|
|
72
|
+
|
|
73
|
+
```console
|
|
74
|
+
$ whykit affected --root examples/payments --today 2026-11-12 \
|
|
75
|
+
--files src/payments/ledger.py src/webhooks/refunds.py README.md
|
|
76
|
+
WhyKit affected — 3 changed files · 2 decisions apply · 1 needs review · 1 file not covered by any decision
|
|
77
|
+
D-001 review Store money as integer cents
|
|
78
|
+
files: src/payments/ledger.py
|
|
79
|
+
- a cited source was retired
|
|
80
|
+
D-003 applies Make every webhook handler idempotent
|
|
81
|
+
files: src/webhooks/refunds.py
|
|
82
|
+
not covered by any decision: README.md
|
|
83
|
+
1 live decision(s) declare no applies_to scope: D-005
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
That is real output from the synthetic [payments example](https://github.com/CometWeb-io/whykit/blob/v0.5.1/examples/payments/);
|
|
87
|
+
a test keeps this block in step with the code. The ledger decision rests on an audit checklist
|
|
88
|
+
that has since been replaced, so its reasoning needs a look before this change
|
|
89
|
+
merges. WhyKit says what it checked and what it did not: uncovered files and
|
|
90
|
+
unscoped decisions are listed, and it never claims a change is safe.
|
|
91
|
+
|
|
92
|
+

|
|
93
|
+
|
|
94
|
+
- **Sources** get stable IDs and can be retired or replaced; captured sources
|
|
95
|
+
are pinned by their bytes.
|
|
96
|
+
- **Decisions** cite sources, declare their scope, carry an owner and a review
|
|
97
|
+
date, and are append-only: you supersede, you don't rewrite.
|
|
98
|
+
- **Changes** are mapped to decisions by `whykit affected`, locally, in CI and
|
|
99
|
+
by agents, with review signals for retired, missing, stale or changed
|
|
100
|
+
sources (including source files the change itself modifies) and overdue or
|
|
101
|
+
failed reviews. Scopes can be suggested from Git history.
|
|
102
|
+
- **Agents** read the same files through a read-only MCP server, and
|
|
103
|
+
`whykit connect` tells them to ask before they edit.
|
|
104
|
+
|
|
105
|
+
## Try it
|
|
106
|
+
|
|
107
|
+
Install [uv](https://docs.astral.sh/uv/getting-started/installation/) (0.13.4+)
|
|
108
|
+
and use Python 3.11+. This creates a *vault*, a folder of Markdown files, with
|
|
109
|
+
one source and one draft decision that cites it:
|
|
110
|
+
|
|
111
|
+
<!-- quickstart:start -->
|
|
112
|
+
```bash
|
|
113
|
+
uv tool install whykit
|
|
114
|
+
|
|
115
|
+
# Create a vault.
|
|
116
|
+
whykit init my-ledger
|
|
117
|
+
|
|
118
|
+
# Record a source, then a draft decision that cites it.
|
|
119
|
+
whykit new --root my-ledger evidence \
|
|
120
|
+
--source "Support ticket export, Q3" --type dataset \
|
|
121
|
+
--location "https://example.com/exports/q3-tickets.csv" \
|
|
122
|
+
--claims "Most onboarding tickets mention SSO"
|
|
123
|
+
whykit new --root my-ledger decision "Ship SSO before audit logs" \
|
|
124
|
+
--owner Platform --status draft --source E-001
|
|
125
|
+
|
|
126
|
+
# See the connection, then check the vault.
|
|
127
|
+
whykit trace --root my-ledger --decision D-001
|
|
128
|
+
whykit lint --root my-ledger
|
|
129
|
+
whykit review --root my-ledger list --due-days 120
|
|
130
|
+
```
|
|
131
|
+
<!-- quickstart:end -->
|
|
132
|
+
|
|
133
|
+
The trace shows the decision and the source it cites:
|
|
134
|
+
|
|
135
|
+
```text
|
|
136
|
+
D-001 06-decisions/d-001-ship-sso-before-audit-logs.md (draft)
|
|
137
|
+
E-001 active
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The lint check reports five expected warnings: one for the unfinished draft
|
|
141
|
+
and four for unanswered questions in the vault's `AGENTS.md`. Fill in the
|
|
142
|
+
draft's context, options and consequences, then
|
|
143
|
+
[approve it](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/guide.md#approve-a-decision). If `whykit` is not found, run
|
|
144
|
+
`uv tool update-shell` and open a new terminal.
|
|
145
|
+
|
|
146
|
+
## Catch decision drift
|
|
147
|
+
|
|
148
|
+
Declare what each decision governs, then ask about any change, planned or
|
|
149
|
+
committed:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
whykit new --root my-ledger decision "Store money as integer cents" \
|
|
153
|
+
--owner Payments --status draft --source E-001 --applies-to 'src/payments/**'
|
|
154
|
+
whykit affected --root my-ledger --files src/payments/ledger.py # before you edit
|
|
155
|
+
whykit affected --root my-ledger --base origin/main --format markdown # in a pull request
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Don't want to write scopes by hand? Let Git suggest them from the commits that
|
|
159
|
+
changed each decision or name it in their message, then confirm:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
whykit scope suggest --root my-ledger # preview
|
|
163
|
+
whykit scope suggest --root my-ledger --write # fill in decisions without a scope
|
|
164
|
+
whykit scope check --root my-ledger --strict # in CI: fail when a scope points at code that moved
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
A source kept in the repository (a benchmark, a spec) counts too: when a pull
|
|
168
|
+
request modifies it, every decision citing it is flagged.
|
|
169
|
+
|
|
170
|
+
Decisions about a library or a convention can watch for words instead of
|
|
171
|
+
paths: with `watch_terms: ["moment"]`, a change that adds `import moment`
|
|
172
|
+
surfaces the "Use Luxon" decision. An agent can send its planned patch before
|
|
173
|
+
applying it. We [replayed real ADR repositories](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/field-evaluation.md) to
|
|
174
|
+
tune this, and publish what did not work too.
|
|
175
|
+
|
|
176
|
+
Already have ADRs? Skip the vault and point it at the folder; scopes are
|
|
177
|
+
inferred from the paths each ADR mentions, and moved code is flagged:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
whykit affected --adr docs/decisions --base origin/main
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
The [ten-minute tutorial](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/tutorials/catch-decision-drift.md) goes from an
|
|
184
|
+
empty repository to a flagged decision and its successor; every command in it
|
|
185
|
+
runs in the test suite. [Affected decisions](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/affected.md) covers scope
|
|
186
|
+
patterns, every signal and a pull-request workflow.
|
|
187
|
+
|
|
188
|
+
## Connect your agents
|
|
189
|
+
|
|
190
|
+
One command prints the MCP configuration for your host and adds a short,
|
|
191
|
+
marked block to your code repository's `CLAUDE.md` or `AGENTS.md` telling the
|
|
192
|
+
agent to look up decisions before it changes what they cover:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
uv tool install --upgrade 'whykit[mcp]'
|
|
196
|
+
whykit connect --root my-ledger --host claude-code # preview
|
|
197
|
+
whykit connect --root my-ledger --host claude-code --write # apply
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Hosts: `claude-code`, `cursor`, `vscode`, `codex`, `claude-desktop` and
|
|
201
|
+
`generic`. The server is read-only with eight tools (`query`, `context`,
|
|
202
|
+
`impact`, `status`, `pack`, `trace`, `backlinks`, `affected`); records above your chosen
|
|
203
|
+
sensitivity ceiling are never returned. The instruction block also tells the
|
|
204
|
+
agent to call `affected` on the files it plans to change. `whykit connect`,
|
|
205
|
+
`whykit affected` and the `affected` tool are new in 0.5.0;
|
|
206
|
+
the MCP server itself is in 0.4.0.
|
|
207
|
+
[Read the agent guide](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/agents.md).
|
|
208
|
+
|
|
209
|
+
## Gate pull requests
|
|
210
|
+
|
|
211
|
+
Instructions ask; CI enforces. On a pull request, the GitHub Action fails when
|
|
212
|
+
an accepted decision's reasoning is rewritten, a cited source is missing or a
|
|
213
|
+
credential slips into the vault:
|
|
214
|
+
|
|
215
|
+
```yaml
|
|
216
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
217
|
+
with:
|
|
218
|
+
fetch-depth: 0
|
|
219
|
+
- uses: CometWeb-io/whykit@<reviewed-40-character-commit-sha>
|
|
220
|
+
with:
|
|
221
|
+
root: decisions
|
|
222
|
+
profile: ci
|
|
223
|
+
affected: "true" # add the decisions this change touches to the job summary
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
See [gate pull requests](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/tutorials/gate-pull-requests.md) for the full
|
|
227
|
+
workflow and a good and a bad example, and [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/ci.md) for
|
|
228
|
+
PR comments, SARIF and other CI systems.
|
|
229
|
+
|
|
230
|
+
## What would you like to do?
|
|
231
|
+
|
|
232
|
+
- **See it on a real-looking vault:** [live Explorer demo](https://whykit.cometweb.io/demo/) of the payments example.
|
|
233
|
+
- **Record a decision and change your mind later:** [record, check and supersede](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/tutorials/record-and-supersede.md).
|
|
234
|
+
- **Bring existing notes or ADRs:** [adopt existing Markdown](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/guide.md#already-have-a-pile-of-markdown).
|
|
235
|
+
- **Browse the vault in a web UI:** [run the Explorer](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/guide.md#browse-the-vault-in-the-explorer).
|
|
236
|
+
- **Edit in Obsidian or your editor:** [Obsidian](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/obsidian.md) · [language server](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/editors.md).
|
|
237
|
+
- **Review a changed source and share a filtered export:** [import, review and export](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/tutorials/review-and-export.md).
|
|
238
|
+
|
|
239
|
+
## Why WhyKit
|
|
240
|
+
|
|
241
|
+
| | Plain ADRs | Wiki / Notion | WhyKit |
|
|
242
|
+
|---|---|---|---|
|
|
243
|
+
| Lives next to the code, in Git | ✓ | | ✓ |
|
|
244
|
+
| Maps a code change to the decisions that govern it | | | ✓ |
|
|
245
|
+
| Flags decisions whose sources were retired, replaced or changed | | | ✓ |
|
|
246
|
+
| Review dates that expire and get reported | | | ✓ |
|
|
247
|
+
| Rewriting accepted decisions blocked in CI | | | ✓ |
|
|
248
|
+
| Read-only MCP access for agents, sensitivity-filtered | | | ✓ |
|
|
249
|
+
| Works offline, no account, no service | ✓ | | ✓ |
|
|
250
|
+
|
|
251
|
+
Already happy with ADRs? Keep them; [here is when they are the better fit](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/project-positioning.md).
|
|
252
|
+
When you outgrow them, `whykit adopt --profile adr-only` brings them in.
|
|
253
|
+
|
|
254
|
+
## Built to be trusted
|
|
255
|
+
|
|
256
|
+
- **Plain files are canonical.** Every view (queries, graphs, MCP, the
|
|
257
|
+
Explorer) is derived from Markdown you can read and diff.
|
|
258
|
+
- **Nothing phones home.** No telemetry, accounts or network calls; a test
|
|
259
|
+
breaks the socket layer and runs every vault command.
|
|
260
|
+
- **A stable machine contract.** Every `--json` output has a published
|
|
261
|
+
[JSON Schema](https://github.com/CometWeb-io/whykit/blob/v0.5.1/schemas/); error codes and exit codes are documented in the
|
|
262
|
+
[automation contract](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/automation.md).
|
|
263
|
+
- **Tested hard.** About 1,800 tests, property and fuzz tests for the parsers,
|
|
264
|
+
reproducible builds, an SBOM and OpenSSF Scorecard on every release.
|
|
265
|
+
|
|
266
|
+
## Limits, stated plainly
|
|
267
|
+
|
|
268
|
+
WhyKit checks that reasoning is cited, dated and not rewritten. It does
|
|
269
|
+
**not** decide whether a source is true or a decision is right, and it does
|
|
270
|
+
not re-check external sources on its own. Sensitivity labels filter what the
|
|
271
|
+
MCP server and exports return; they are not access control, so keep real
|
|
272
|
+
vaults in private repositories. `whykit affected` matches files by path, not
|
|
273
|
+
by meaning, and sees only changes recorded in the vault. Agent instructions are
|
|
274
|
+
a request: pair them with the CI gate. The project is a public alpha; see the
|
|
275
|
+
[feature status](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/feature-status.md) and the
|
|
276
|
+
[0.4 upgrade guide](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/migration-0.4.md).
|
|
277
|
+
|
|
278
|
+
## Documentation
|
|
279
|
+
|
|
280
|
+
- [Start here](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/README.md) · [Concepts](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/concepts.md) · [How-to guides](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/guide.md) · [Connect agents](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/agents.md) · [Affected decisions](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/affected.md)
|
|
281
|
+
- [Command reference](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/cli.md) · [Configuration](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/configuration.md) · [Lint rules](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/rules.md)
|
|
282
|
+
- [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/ci.md) · [MCP server](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/mcp.md) · [Troubleshooting](https://github.com/CometWeb-io/whykit/blob/v0.5.1/docs/troubleshooting.md)
|
|
283
|
+
- Example vaults: [payments](https://github.com/CometWeb-io/whykit/blob/v0.5.1/examples/payments/), [tiny](https://github.com/CometWeb-io/whykit/blob/v0.5.1/examples/tiny/) and [Northline](https://github.com/CometWeb-io/whykit/blob/v0.5.1/examples/northline/)
|
|
284
|
+
|
|
285
|
+
## Contributing
|
|
286
|
+
|
|
287
|
+
Issues and pull requests are welcome. Start with [CONTRIBUTING.md](https://github.com/CometWeb-io/whykit/blob/v0.5.1/CONTRIBUTING.md);
|
|
288
|
+
the whole suite runs offline with the standard library. If WhyKit is useful to
|
|
289
|
+
you, a ⭐ helps other people find it.
|
|
290
|
+
|
|
291
|
+
[Contributing](https://github.com/CometWeb-io/whykit/blob/v0.5.1/CONTRIBUTING.md) · [Code of Conduct](https://github.com/CometWeb-io/whykit/blob/v0.5.1/CODE_OF_CONDUCT.md) ·
|
|
292
|
+
[Security policy](https://github.com/CometWeb-io/whykit/blob/v0.5.1/SECURITY.md) · [Release checklist](https://github.com/CometWeb-io/whykit/blob/v0.5.1/.github/RELEASE.md) ·
|
|
293
|
+
[Changelog](https://github.com/CometWeb-io/whykit/blob/v0.5.1/CHANGELOG.md) · [Roadmap](https://github.com/CometWeb-io/whykit/blob/v0.5.1/ROADMAP.md)
|
|
294
|
+
|
|
295
|
+
Copyright 2026 Maciej Zmitrukiewicz (hello@cometweb.io), licensed under
|
|
296
|
+
[Apache-2.0](https://github.com/CometWeb-io/whykit/blob/v0.5.1/LICENSE). [CometWeb](https://cometweb.io) is the product name, not
|
|
297
|
+
the copyright holder.
|