scar-cli 0.28.0__tar.gz → 0.29.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.
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/workflows/ci.yml +37 -3
- scar_cli-0.29.1/.release-please-manifest.json +3 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0001-git-grep-ere-pitfalls.landmine.md +1 -1
- scar_cli-0.28.0/.scars/candidates/compliance-pools-by-repo-and-id.md → scar_cli-0.29.1/.scars/0029-compliance-pools-by-repo-and-id.landmine.md +4 -2
- scar_cli-0.29.1/.scars/0030-presence-signer-input-canonical-subset.landmine.md +35 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/template.md +2 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/CHANGELOG.md +32 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/PKG-INFO +1 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/SCAR-FORMAT.md +2 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/SPEC.md +2 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/plugin/plugin.json +1 -1
- {scar_cli-0.28.0/src/scar → scar_cli-0.29.1/plugin}/skills/scar-authoring/SKILL.md +12 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/plugin/skills/scar-authoring/assets/template.md +2 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/pyproject.toml +1 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/cli.py +189 -29
- scar_cli-0.29.1/src/scar/clock.py +30 -0
- scar_cli-0.29.1/src/scar/config.py +69 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/gc.py +1 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/harvest.py +3 -3
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/hooks.py +5 -4
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/lint.py +179 -43
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/mcp.py +27 -4
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/model.py +106 -18
- scar_cli-0.29.1/src/scar/presence.py +229 -0
- scar_cli-0.29.1/src/scar/record.py +60 -0
- scar_cli-0.29.1/src/scar/signedpromote.py +118 -0
- {scar_cli-0.28.0/plugin → scar_cli-0.29.1/src/scar}/skills/scar-authoring/SKILL.md +12 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/skills/scar-authoring/assets/template.md +2 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/store.py +234 -23
- scar_cli-0.29.1/src/scar/verify.py +87 -0
- scar_cli-0.29.1/tests/conformance_fetch.py +109 -0
- scar_cli-0.29.1/tests/conformance_support.py +191 -0
- scar_cli-0.29.1/tests/fixtures/conformance/promote.json +146 -0
- scar_cli-0.29.1/tests/fixtures/conformance/regenerate.py +71 -0
- scar_cli-0.29.1/tests/presence_fakes.py +75 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_cli.py +258 -17
- scar_cli-0.29.1/tests/test_clock.py +169 -0
- scar_cli-0.29.1/tests/test_conformance_round_trip.py +166 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_lifecycle.py +29 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_lint.py +166 -0
- scar_cli-0.29.1/tests/test_lint_downgrade.py +181 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_mcp.py +50 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_model.py +141 -0
- scar_cli-0.29.1/tests/test_presence.py +27 -0
- scar_cli-0.29.1/tests/test_presence_adapters.py +59 -0
- scar_cli-0.29.1/tests/test_presence_signer.py +229 -0
- scar_cli-0.29.1/tests/test_promote_batch.py +283 -0
- scar_cli-0.29.1/tests/test_promote_signed.py +281 -0
- scar_cli-0.29.1/tests/test_record.py +164 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_store.py +249 -8
- scar_cli-0.29.1/tests/test_verify.py +264 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/uv.lock +1 -1
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/docs/agents.md +44 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/docs/concepts.md +3 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/docs/quickstart.md +1 -0
- scar_cli-0.28.0/.release-please-manifest.json +0 -3
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.claude-plugin/marketplace.json +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/workflows/docs.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/workflows/pr-validation.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/workflows/release.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.github/workflows/scar-review-queue.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.gitignore +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.pre-commit-config.yaml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.pre-commit-hooks.yaml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0002-agent-direct-hook-install.deadend.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0003-installer-binds-to-active-venv-scar.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0004-promote-roundtrip-drops-expires-evidence.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0005-history-rewrite-orphans-commit-evidence.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0006-yaml-pattern-anchor-over-escaping.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0007-release-please-config-change-skips-open-pr.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0008-rich-output-nontty-must-bypass-rich.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0009-anchor-survival-harness-measures-symbol-not-path-anchors.deadend.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0010-git-returncode-128-vs-empty-tracked-set.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0011-lint-compile-check-lets-redos-anchors-hang-hotpath.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0012-firing-log-readers-need-blanket-guards.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0013-docusaurus-future-v4-requires-faster-dep.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0014-inject-flag-dest-collides-with-subcommand-dispatch.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0015-zero-checkruns-means-approval-gate-not-workflow-bug.deadend.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0016-hook-ownership-must-be-kind-scoped.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0017-codex-pretool-context-can-replay-apply-patch.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0018-cli-subparsers-register-through-_add-wrapper.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0019-token-in-scar-body-cannot-prove-hook-delivery.deadend.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0020-one-directional-health-check-leaves-flattering-direction-unwatched.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0021-posttool-fix-in-hooks-does-not-reach-codex-or-cascade.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0022-codex-hook-delivery-needs-user-file-and-trust.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0023-cascade-block-exit-collides-with-argparse.fence.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0024-host-detection-must-not-read-the-process-home.deadend.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0025-one-plugin-hook-manifest-two-hosts-two-root-variables.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0026-path-anchor-breadth-drives-the-review-due-threshold.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0027-slug-and-display-cleaning-are-different-jobs.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/0028-violation-evidence-must-not-persist-raw-edits.fence.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/README.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/.scars/candidates/.gitkeep +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/AGENTS.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/CONTRIBUTING.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/IDEA.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/LICENSE +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/README.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/ROADMAP.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/STRESS-TEST.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/action.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/codecov.yml +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/anchor-survival/PROTOCOL.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/anchor-survival/RESULTS.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/anchor-survival/long_replay.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/anchor-survival/replay.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/anchor-survival/replay_shipped.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/anchor-survival/test_replay_shipped.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/auto-authorship/FINDINGS.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/auto-authorship/PROTOCOL.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/.gitignore +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/PROTOCOL.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/RESULTS.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/.scars/0001-vendor-retry-window.fence.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/.scars/0002-evicting-session-store.deadend.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/.scars/0003-export-column-order.landmine.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/README.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/payments/retry.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/reports/export.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/fixture/services/sessions.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/fence-honor/grade.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/harvest/PROTOCOL.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/experiments/harvest/harvest.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/hook/scar-hooks.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/plugin/hooks/run.sh +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/release-please-config.json +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/__init__.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/agent.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/cascade.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/codex.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/draftcheck.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/evidence.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/firing_log.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/hosts.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/installer.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/match.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/orphan.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/output.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/reanchor.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/renames.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/render.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/review.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/symbols.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/src/scar/violation_evidence.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/conftest.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_action_yml.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_anchor_kind.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_block_capability.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_cascade.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_codex.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_compliance_stats.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_context_size.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_docs.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_draftcheck.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_evidence.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_firing_log.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_gc.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_git_hook.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_harvest.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_hooks.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_hosts.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_installer.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_json_contract.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_match.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_matched_by.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_orphan.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_output.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_plugin.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_precommit_hooks.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_reanchor.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_renames.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_render.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_review.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_review_queue.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_skill.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_sweep.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_symbols.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_verdict_observability.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/tests/test_violation_evidence.py +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/.gitignore +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/docs/index.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/docs/methodology.md +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/docusaurus.config.ts +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/package-lock.json +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/package.json +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/scripts/sync-changelog.mjs +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/sidebars.ts +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/src/css/custom.css +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/static/img/favicon.svg +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/static/img/social-card.png +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/static/llms.txt +0 -0
- {scar_cli-0.28.0 → scar_cli-0.29.1}/website/tsconfig.json +0 -0
|
@@ -106,6 +106,39 @@ jobs:
|
|
|
106
106
|
- name: ruff check
|
|
107
107
|
run: uv run ruff check src/scar tests
|
|
108
108
|
|
|
109
|
+
# The signed promotion against the real external checker (#397). Every other
|
|
110
|
+
# presence test runs against a fake program. The tools come from one pinned
|
|
111
|
+
# release and one pinned commit (hashes in tests/conformance_support.py), are
|
|
112
|
+
# checked by tests/conformance_fetch.py before use, and are never built here.
|
|
113
|
+
# CONFORMANCE_REQUIRED=1 (set by that script) turns "tools missing" into a
|
|
114
|
+
# test failure, so this job cannot go green by skipping. Upgrading the pinned
|
|
115
|
+
# tag is a deliberate change of the pins, never automatic. No secrets.
|
|
116
|
+
conformance:
|
|
117
|
+
name: conformance round trip
|
|
118
|
+
runs-on: ubuntu-latest
|
|
119
|
+
steps:
|
|
120
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
121
|
+
|
|
122
|
+
# The checker needs Python 3.11 or newer; this job is independent of the
|
|
123
|
+
# 3.10 floor the matrix measures.
|
|
124
|
+
- name: Install uv
|
|
125
|
+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
|
|
126
|
+
with:
|
|
127
|
+
python-version: "3.13"
|
|
128
|
+
enable-cache: true
|
|
129
|
+
cache-dependency-glob: uv.lock
|
|
130
|
+
|
|
131
|
+
- name: Sync dependencies
|
|
132
|
+
run: uv sync --locked
|
|
133
|
+
|
|
134
|
+
- name: Fetch and verify the pinned tools
|
|
135
|
+
run: uv run python tests/conformance_fetch.py "$RUNNER_TEMP/conformance-tools"
|
|
136
|
+
|
|
137
|
+
- name: Run the round trip
|
|
138
|
+
run: |
|
|
139
|
+
mkdir -p "$RUNNER_TEMP/fake-home"
|
|
140
|
+
HOME="$RUNNER_TEMP/fake-home" uv run pytest tests/test_conformance_round_trip.py -q -rs
|
|
141
|
+
|
|
109
142
|
# Aggregator. Branch protection requires the context "Tests + scar lint", so
|
|
110
143
|
# that name must survive: renaming it would leave every PR waiting on a check
|
|
111
144
|
# that no longer exists, and giving both matrix legs the same name would let a
|
|
@@ -114,7 +147,7 @@ jobs:
|
|
|
114
147
|
# required check can be treated as satisfied.
|
|
115
148
|
test:
|
|
116
149
|
name: Tests + scar lint
|
|
117
|
-
needs: [matrix-tests, lint]
|
|
150
|
+
needs: [matrix-tests, lint, conformance]
|
|
118
151
|
if: always()
|
|
119
152
|
runs-on: ubuntu-latest
|
|
120
153
|
steps:
|
|
@@ -122,5 +155,6 @@ jobs:
|
|
|
122
155
|
run: |
|
|
123
156
|
tests="${{ needs.matrix-tests.result }}"
|
|
124
157
|
lint="${{ needs.lint.result }}"
|
|
125
|
-
|
|
126
|
-
|
|
158
|
+
conformance="${{ needs.conformance.result }}"
|
|
159
|
+
echo "matrix-tests: $tests / lint: $lint / conformance: $conformance"
|
|
160
|
+
[ "$tests" = "success" ] && [ "$lint" = "success" ] && [ "$conformance" = "success" ] || exit 1
|
|
@@ -10,7 +10,7 @@ anchors:
|
|
|
10
10
|
- path: experiments/anchor-survival/
|
|
11
11
|
- path: src/scar/harvest.py
|
|
12
12
|
- pattern: "git.{0,20}grep"
|
|
13
|
-
violation: "git[^#\n]{0,60}grep[^#\n]{0,80}[\x22\x27][^\x22\x27#\n]{0,40}\\b"
|
|
13
|
+
violation: "git[^#\n]{0,60}grep[^#\n]{0,80}[\x22\x27][^\x22\x27#\n]{0,40}[\\]b"
|
|
14
14
|
evidence:
|
|
15
15
|
- note: "orphaned receipt — pre-v0.1.0 commit 5c63b14 produced a fake 0% anchor-survival run before diagnosis (gate 0.2); resolves at github.com/Daily-Nerd/Scar/commit/5c63b14 until GC, not in fresh clones (rewritten at the v0.1.0 release)"
|
|
16
16
|
expires:
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: 29
|
|
3
3
|
type: landmine
|
|
4
4
|
title: Pooled stats must key a scar by (repo, id); a bare id fuses different scars and a pooled rate must be recomputed, never averaged
|
|
5
5
|
severity: high
|
|
6
6
|
confidence: 0.8
|
|
7
7
|
created: 2026-11-07
|
|
8
8
|
authors: ["claude-code"]
|
|
9
|
+
promoted_by: Kibukx
|
|
10
|
+
promoted_by_source: git-config-interactive
|
|
9
11
|
anchors:
|
|
10
12
|
- path: src/scar/cli.py
|
|
11
13
|
- pattern: "def _compliance_block"
|
|
@@ -15,7 +17,7 @@ evidence:
|
|
|
15
17
|
expires:
|
|
16
18
|
condition: "compliance pooling stops spanning more than one repository"
|
|
17
19
|
review_after: 2027-05-07
|
|
18
|
-
status:
|
|
20
|
+
status: active
|
|
19
21
|
---
|
|
20
22
|
|
|
21
23
|
Scar ids are per-repo sequential integers, so #1 in one repo is a different
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: 30
|
|
3
|
+
type: landmine
|
|
4
|
+
title: The presence signer reads a canonical subset of JSON, so a draft with a number, a boolean or default json.dumps whitespace is refused
|
|
5
|
+
severity: medium
|
|
6
|
+
confidence: 0.8
|
|
7
|
+
created: 2026-11-18
|
|
8
|
+
authors: ["claude-code"]
|
|
9
|
+
promoted_by: Kibukx
|
|
10
|
+
promoted_by_source: git-config-interactive
|
|
11
|
+
promoted_from: candidates/presence-signer-input-canonical-subset.md
|
|
12
|
+
anchors:
|
|
13
|
+
- path: src/scar/presence.py
|
|
14
|
+
- pattern: "expires_in_s"
|
|
15
|
+
evidence:
|
|
16
|
+
- issue: 392
|
|
17
|
+
- note: Profile ACT-04 and SG-04 (signer v0.4.0): no numbers, no true/false, no whitespace outside strings; expires_in_s is a decimal string.
|
|
18
|
+
expires:
|
|
19
|
+
condition: "the signer accepts general JSON on stdin"
|
|
20
|
+
review_after: 2027-05-18
|
|
21
|
+
status: active
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
The signer and the checker are fed through one canonical-subset recognizer.
|
|
25
|
+
A JSON number, a `true` or `false`, or the spaces `json.dumps` adds after
|
|
26
|
+
separators makes the input `schema_refused` before any prompt. That is why
|
|
27
|
+
`presence.EXPIRES_IN_S` is the string `"3600"` and not an int, and why
|
|
28
|
+
`presence._canonical` writes compact sorted ASCII.
|
|
29
|
+
|
|
30
|
+
Changing the window to a number, or building a request with plain
|
|
31
|
+
`json.dumps`, still looks fine in a unit test against a fake that parses
|
|
32
|
+
loosely. It fails only against the real signer, after the person has been
|
|
33
|
+
asked nothing, as `schema_refused`. Keep every value a string, an object or
|
|
34
|
+
an array, and keep the fake in tests/presence_fakes.py as strict as the
|
|
35
|
+
profile when you add a field.
|
|
@@ -10,7 +10,8 @@ title: One line, searchable, says the constraint
|
|
|
10
10
|
severity: medium # low | medium | high | critical
|
|
11
11
|
confidence: 0.7 # 0..1 — how sure are we this still holds
|
|
12
12
|
created: 1970-01-01
|
|
13
|
-
authors
|
|
13
|
+
# authors = the RUNTIME that DRAFTED it (claude-code, codex, cursor...). Replace the placeholder; never the human reviewer (promoted_by, written by promote).
|
|
14
|
+
authors: ["<your-runtime>"]
|
|
14
15
|
anchors:
|
|
15
16
|
- path: src/module/ # file or directory this protects
|
|
16
17
|
- pattern: "regex" # optional: fires when matching code appears in ANY new/edited file
|
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.29.1](https://github.com/Daily-Nerd/Scar/compare/v0.29.0...v0.29.1) (2026-11-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **harvest:** keep identifiers and code spans verbatim in candidate titles ([#403](https://github.com/Daily-Nerd/Scar/issues/403)) ([657e752](https://github.com/Daily-Nerd/Scar/commit/657e752a52e7955302f9d69b33b0c597cf437438)), closes [#402](https://github.com/Daily-Nerd/Scar/issues/402)
|
|
9
|
+
* **lint:** reject over-escaped regex fields and dead candidate patterns ([#405](https://github.com/Daily-Nerd/Scar/issues/405)) ([fa54514](https://github.com/Daily-Nerd/Scar/commit/fa54514666ff4ec318f0999ac49f7eeed77d2271)), closes [#404](https://github.com/Daily-Nerd/Scar/issues/404)
|
|
10
|
+
* **model:** read authors through one flow-list parser ([#400](https://github.com/Daily-Nerd/Scar/issues/400)) ([2ac838a](https://github.com/Daily-Nerd/Scar/commit/2ac838a134eebc1c801eb412b64d5143fd5b819d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
* **skill:** name the lint error and the [\\] form for a literal backslash ([#406](https://github.com/Daily-Nerd/Scar/issues/406)) ([506dd84](https://github.com/Daily-Nerd/Scar/commit/506dd84f976b80e6438488899a79706cdba730d5)), closes [#404](https://github.com/Daily-Nerd/Scar/issues/404)
|
|
16
|
+
|
|
17
|
+
## [0.29.0](https://github.com/Daily-Nerd/Scar/compare/v0.28.0...v0.29.0) (2026-11-18)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **lint:** --verify-promotion checks each active scar's promotion act ([#387](https://github.com/Daily-Nerd/Scar/issues/387)) ([ce1f3ba](https://github.com/Daily-Nerd/Scar/commit/ce1f3ba46c5f9ad15428590395b23f4a40457555))
|
|
23
|
+
* **promote:** record the source candidate as promoted_from ([#390](https://github.com/Daily-Nerd/Scar/issues/390)) ([c1e337e](https://github.com/Daily-Nerd/Scar/commit/c1e337eefc01a0e9be8ed92a36b6c67b13bf70e5))
|
|
24
|
+
* **promote:** sign each promotion with the presence signer when the config names an org ([#393](https://github.com/Daily-Nerd/Scar/issues/393)) ([92ebd72](https://github.com/Daily-Nerd/Scar/commit/92ebd72c7368eeff838e3b86cf6fbf7d623ecc20))
|
|
25
|
+
* **record:** one function builds the bytes of a promoted scar ([#384](https://github.com/Daily-Nerd/Scar/issues/384)) ([e73caf0](https://github.com/Daily-Nerd/Scar/commit/e73caf0636e83e026b121c329da5274b788ea2d4)), closes [#382](https://github.com/Daily-Nerd/Scar/issues/382)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **authors:** record the drafting runtime, refuse placeholders and role words ([#391](https://github.com/Daily-Nerd/Scar/issues/391)) ([55dae17](https://github.com/Daily-Nerd/Scar/commit/55dae17ee987cc28f364d48fbb9a0b29354a9cbf))
|
|
31
|
+
* **model:** every frontmatter scalar drops its YAML quotes ([#385](https://github.com/Daily-Nerd/Scar/issues/385)) ([5fc62fc](https://github.com/Daily-Nerd/Scar/commit/5fc62fc7fcc65baef5c0e251e896574d744ebfa5))
|
|
32
|
+
* **promote:** accept the candidate path however it is typed ([#396](https://github.com/Daily-Nerd/Scar/issues/396)) ([474bcf3](https://github.com/Daily-Nerd/Scar/commit/474bcf3c15a81c37a548b90eeefc065894fd4a82)), closes [#394](https://github.com/Daily-Nerd/Scar/issues/394)
|
|
33
|
+
* **store:** one lifecycle table gates promote and transition ([#378](https://github.com/Daily-Nerd/Scar/issues/378)) ([8773a6b](https://github.com/Daily-Nerd/Scar/commit/8773a6b85706815281f2bd5f7a3e19507c2dc304)), closes [#377](https://github.com/Daily-Nerd/Scar/issues/377)
|
|
34
|
+
|
|
3
35
|
## [0.28.0](https://github.com/Daily-Nerd/Scar/compare/v0.27.3...v0.28.0) (2026-11-07)
|
|
4
36
|
|
|
5
37
|
|
|
@@ -45,9 +45,10 @@ is deliberate: consumers in hook hot-paths parse with zero dependencies.
|
|
|
45
45
|
| `severity` | yes | `low` \| `medium` \| `high` \| `critical` | ranking input |
|
|
46
46
|
| `confidence` | yes | float 0..1 | static authored ranking weight; dynamic decay deferred (SPEC §5, issue #95) |
|
|
47
47
|
| `created` | yes | ISO date | |
|
|
48
|
-
| `authors` | yes | inline list |
|
|
48
|
+
| `authors` | yes | inline list | the runtime that drafted it, e.g. `"claude-code"`, `"codex"`, `"cursor"`. Never the human reviewer (that is `promoted_by`) and never a role word such as `agent` or `maintainer`. The template carries the placeholder `"<your-runtime>"`; `scar lint` refuses a candidate that still holds it or a role word. `scar_draft` fills it from the connected MCP client |
|
|
49
49
|
| `promoted_by` | active scars | string | the human who promoted it. Written only by `scar promote`, which overwrites anything a candidate carried. Empty on scars promoted before the field existed, and never inferred from `authors` |
|
|
50
50
|
| `promoted_by_source` | optional | `explicit` \| `git-config-interactive` \| `git-config` | how strongly `promoted_by` is evidenced. `explicit` = a name was typed with `--reviewer`. `git-config-interactive` = no name typed, but `promote` ran at a terminal, so a person was there. `git-config` = no name typed and no terminal recorded, which is the unattended shape `lint` warns on. Written only alongside `promoted_by`, never on its own. Absent on scars promoted before the field existed, and plain `git-config` on scars promoted before interactivity was recorded, so neither absence proves an agent did it |
|
|
51
|
+
| `promoted_from` | active scars | path relative to `.scars/` | the candidate file this scar was promoted from, e.g. `candidates/tried-x.md`. Written only by `scar promote`, which overwrites anything a candidate carried, so a reader links scar to candidate without re-deriving the active filename. Part of the promotion record when present. Absent on scars promoted before the field existed, which are not rewritten |
|
|
51
52
|
| `anchors` | yes, ≥1 | list of `- path:`, `- pattern:`, `- symbol:`, and/or `- command:` | §4 |
|
|
52
53
|
| `evidence` | recommended | list of `- commit:`/`- pr:`/`- issue:`/`- incident:`/`- note:`/`- url:` | absent ⇒ challengeable on sight; `issue:`/`url:` are durable forms that survive squash-merge |
|
|
53
54
|
| `expires.condition` | recommended | quoted string | what change obsoletes this scar |
|
|
@@ -365,7 +365,8 @@ result are how a result gets laundered into a finding.
|
|
|
365
365
|
|
|
366
366
|
`stats --since` / `--until` filter records **before** any metric is computed,
|
|
367
367
|
so every number is window-scoped by the same code that computes it unwindowed.
|
|
368
|
-
Timestamps in the firing log are **naive local time** (`
|
|
368
|
+
Timestamps in the firing log are **naive local time** (read through `scar.clock`,
|
|
369
|
+
the one owner of the wall clock), and the
|
|
369
370
|
bounds are interpreted in that same frame — a window is therefore local-time,
|
|
370
371
|
never UTC. A bare date means `00:00:00` as `--since` and the END of that day as
|
|
371
372
|
`--until`, so `--since D --until D` is the whole of day D. Records whose `ts` is
|
|
@@ -75,6 +75,13 @@ A file without `---`-fenced YAML frontmatter is **not a scar at all** — it nev
|
|
|
75
75
|
fires. Minimum valid block: `type`, `title`, `severity`, `confidence`,
|
|
76
76
|
`created`, `authors`, at least one `anchors` entry, and `status: candidate`.
|
|
77
77
|
|
|
78
|
+
`authors` is the runtime that drafted the scar (`claude-code`, `codex`,
|
|
79
|
+
`cursor`, `windsurf`, `opencode`), replacing the template's `<your-runtime>`
|
|
80
|
+
placeholder. It must never hold the human reviewer: the reviewer is recorded
|
|
81
|
+
in `promoted_by` by `scar promote`. Role words such as `agent` or
|
|
82
|
+
`maintainer` name no runtime. `scar lint` rejects a candidate that keeps the
|
|
83
|
+
placeholder or uses a role word.
|
|
84
|
+
|
|
78
85
|
Write `anchors` as a block list, one `- kind: value` line per anchor. A flow-style
|
|
79
86
|
list (`anchors: [...]`) is not read, so the scar loads with no anchors.
|
|
80
87
|
|
|
@@ -85,6 +92,9 @@ must use a `pattern:` regex, know that the value reaches the matcher
|
|
|
85
92
|
**verbatim** — this reader is not a YAML parser and nothing un-escapes. Write
|
|
86
93
|
the regex exactly as it must execute: `\b` stays `\b`, `\(` stays `\(`.
|
|
87
94
|
Doubling backslashes "for YAML" yields a literal backslash and a dead anchor.
|
|
95
|
+
`scar lint` rejects it as an error and prints the single-backslash form you
|
|
96
|
+
meant. If you really need to match a literal backslash, write it inside a
|
|
97
|
+
character class, `[\\]`, which lint accepts.
|
|
88
98
|
|
|
89
99
|
The pattern is also matched against all tracked content **including the scar's
|
|
90
100
|
own body**, so a broken pattern keeps itself alive by self-reference. Run
|
|
@@ -121,7 +131,8 @@ the fired→violated compliance metric).
|
|
|
121
131
|
- **The regex is RAW.** Surrounding quotes are stripped; nothing else
|
|
122
132
|
un-escapes. Write it exactly as it must execute — `\b` stays `\b`, `\(`
|
|
123
133
|
stays `\(`. Doubling backslashes "for YAML" is the over-escape trap that
|
|
124
|
-
kills pattern anchors, and it kills violation regexes the same way.
|
|
134
|
+
kills pattern anchors, and it kills violation regexes the same way. The
|
|
135
|
+
same lint error and the same `[\\]` form apply (see Anti-Over-Escape).
|
|
125
136
|
- **Prove both cases.** Before finishing, run a synthetic
|
|
126
137
|
`scar check --diff` twice: once with a diff that MUST fire the violation,
|
|
127
138
|
once with an innocent diff that must NOT. A tripwire verified only on the
|
|
@@ -10,7 +10,8 @@ title: One line, searchable, says the constraint
|
|
|
10
10
|
severity: medium # low | medium | high | critical
|
|
11
11
|
confidence: 0.7 # 0..1 — how sure are we this still holds
|
|
12
12
|
created: 1970-01-01
|
|
13
|
-
authors
|
|
13
|
+
# authors = the RUNTIME that DRAFTED it (claude-code, codex, cursor...). Replace the placeholder; never the human reviewer (promoted_by, written by promote).
|
|
14
|
+
authors: ["<your-runtime>"]
|
|
14
15
|
anchors:
|
|
15
16
|
- path: src/module/ # file or directory this protects
|
|
16
17
|
- pattern: "regex" # optional: fires when matching code appears in ANY new/edited file
|