Skip to content

sync: land accumulated main stack (rule-pack 1.1.0→1.9.0, incremental scan, consumer security) - #11

Merged
anulum merged 67 commits into
mainfrom
land/sync-main-5cf1121
Jul 18, 2026
Merged

anulum merged 67 commits into
mainfrom
land/sync-main-5cf1121

Conversation

@anulum

@anulum anulum commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Owner-directed sync of the accumulated, individually-gated local main stack (66 commits, origin/main..5cf1121) to bring local and remote into sync. This branch is an exact fast-forward of origin/main (0 behind), so it preserves every reviewed commit object.

Scope (66 commits)

  • Rule-pack expansion 1.1.0 → 1.9.0 — new bounded, high-precision candidate categories over tracked code:
    • application-security (AS001–AS013; Python-AST + native tree-sitter for JS/TS/Go/Rust/C-C++/Julia/Shell)
    • reliability (RL001 bare-except, RL002 mutable-default-argument)
    • supply-chain (SC001 unhashed-pinned-requirement, SC002 vcs-url-requirement)
  • Incremental scan — rigor scan --changed-since <ref> filters/gates the changed-file set only.
  • Consumer security — exclusive consumer outputs + Trivy binary provenance (the former PR security: exclusive consumer outputs + Trivy binary provenance (exact 598e552d) #10 base 598e552d, all checks green).
  • fix/ci/docs/refactor across the campaign, provenance, and CI-hardening surfaces.

Verification

  • Every commit built under the project gate; each recent security-class commit received a distinct-terminal second-eye CLEAR (grok-3685862 ≠ author claude-9dcc): c000fc9, 6c2f789, 1f4c280, 5cf1121.
  • Full CI is the landing gate (public-repo resource policy: focused/touched-file tests locally, CI runs the exhaustive matrix).
  • Supersedes PR security: exclusive consumer outputs + Trivy binary provenance (exact 598e552d) #10 (its commits are included here).

Security posture

  • 6 Dependabot mcp alerts (transitive via semgrep, which hard-pins mcp==1.23.3) dismissed as not_used — RigorFoundry only runs semgrep scan, never an MCP server; matches the in-repo .github/dependency-waivers.json + pip-audit --ignore-vuln.
  • 6 Scorecard workflow alerts (TokenPermissions, PinnedDependencies) were stale against 29accb7 and are already fixed in this stack.

Authored by Anulum Fortis & Arcane Sapience ([email protected])

anulum added 30 commits July 17, 2026 00:11
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Add three exact, expiring MCP exceptions forced by Semgrep 1.170.0, bind every exception to the locked dependency and fixed scan command, and record the independently cleared cross-model campaign contract.

Seat: 4090327
Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Add bounded public-API property assurance for strict parsers, path confinement, digest graphs, canonical identities, rule metadata, and condition evaluation.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Reject unknown and missing fields across the assured public parsers, bind bool-safe condition semantics to schema 1.1, and enforce canonical rule-pack semantic versions.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Keep exact serialized-field registries in one focused owner with public serialization consistency coverage, returning all production owners below the configured 700-line limit.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Add a fail-closed adopter bootstrap, explicit top-level API lifecycle inventory, a single version owner, real filesystem and installed-wheel tests, and first-repository documentation.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Reject existing review ledgers, preserve failure evidence instead of unsafe pathname rollback, bind stable exports to runtime identities, and exercise the installed wheel onboarding contract in CI.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Bind stable exports to exact canonical objects, version the expanded API manifest, revalidate the policy parent, and replace forbidden syscall substitution with explicit expiring race residuals.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Document that review-ledger absence is a point-in-time sample rather than an atomic reservation, and track the post-check race window as an expiring coverage residual.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Export every audit candidate and optional evidence verdict as SARIF 2.1.0 with stable rule/result identities, exact Git anchors, real repository tests, installed-wheel wiring, and public documentation.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Download the OASIS Errata 01 schema under a pinned SHA-256 in distribution CI, validate the installed-wheel export with Draft 4, and declare the validator as a direct hash-locked CI dependency.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Remove the crosswired GitHub partial fingerprint, reject severity on non-valid reviews, retain provenance on zero-result runs, split mixed CLI test routing, and bind every remaining large cohesive test owner to exact responsibility evidence.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
anulum added 27 commits July 17, 2026 15:25
Pin adopter examples to the hardened integration successor, use the canonical repository identity, and state the tracked repository-relative policy path contract.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Declare the external fixture reports directory as ignored so the consumer Action exercises its new fail-closed output contract without weakening the guard.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Capture the hash-locked CI interpreter before the consumer Action selects its nested runtime, then use that bound interpreter to drive pre-commit while testing the installed-wheel hook entrypoint.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Move the interpreter capture into the consuming job and make the owning test prove that capture, nested Action execution, and pre-commit invocation occur in the required order.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Provision every verified native fixture in each test matrix job, bind dynamically linked setup-python console scripts to the deterministic prefix library, and keep containment and maturity regressions portable across supported Python versions.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Render the complete canonical adapter evidence when the real Semgrep boundary fails so hosted portability defects remain directly diagnosable without weakening the fail-closed assertion.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Install the hosted Semgrep console script with a deterministic owner-executable, non-writable mode before the exhaustive matrix. This preserves Rigor Foundry's fail-closed executable policy under cooperative runner umasks.

Seat: 4184931

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…CAL export

Add a land-independent compliance surface that relates RigorFoundry per-domain
audit evidence to named external controls and exports it as deterministic OSCAL
1.1.3 assessment results, for triage only — never a certification or attestation.

- compliance_maps.py: ComplianceStandard / ControlReference / DomainMapping /
  ComplianceMapTemplate with total, non-duplicated audit-domain coverage (every
  domain is mapped or declares an explicit gap), honest supporting/partial/context
  relations, content-addressed digests, and a fixed non-certification notice.
  Built-in templates for ISO/IEC 27001:2022 (with Amendment 1:2024) and AICPA
  TSC 2017 (revised points of focus 2022); control identifiers referenced only,
  no copyrighted control text reproduced.
- oscal_export.py: deterministic OSCAL 1.1.3 assessment-results boundary. Each
  per-control assessment becomes one observation with RigorFoundry status,
  domain, digest, and one related-control property per mapped external control;
  findings and risks are omitted; import-ap references the documented boundary;
  object UUIDs are deterministic name-based UUIDs; an explicit generated_at UTC
  timestamp is required (no wall clock).
- docs/compliance-maps.md and nav: usage and the non-attestation export boundary.

Reachable via submodule import (rigor_foundry.compliance_maps and .oscal_export);
the pinned public __all__ and the api-stability manifest are unchanged. Closes
the open TODO "versioned SOC 2 and ISO/IEC 27001 evidence-map templates plus an
OSCAL export boundary".

Tests: 14 new, 100% statement and branch coverage on both new modules (real
build, serialise, round-trip, error paths, and a full two-control OSCAL
integration). Gates: strict MyPy (83 files), Ruff and format, Bandit, coverage
residuals, strict authoring audit, strict MkDocs, 873-test collection, plus the
api-stability and packaging contracts.
Polyglot parity: not applicable — a Python-only deterministic mapping and
serialisation surface with no compute counterpart.
Benchmarks: not applicable — no benchmarked path is touched.
No push (author-never-push); the exact SHA is handed to a distinct-terminal peer
for audit.

Verified: https://pages.nist.gov/OSCAL-Reference/models/v1.1.3/
Verified: https://www.iso.org/standard/27001
Verified: https://www.aicpa-cima.com/resources/download/2017-trust-services-criteria-with-revised-points-of-focus-2022
Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Complete the deferred L473 follow-up for the compliance/OSCAL surface: offline
EffectiveProfileLock (and nested record) from_dict rebinding, a dedicated
oscal_cli adapter, and the public rigor oscal command that loads a sealed lock
plus assessment array, maps through a built-in evidence-map template, and emits
deterministic OSCAL 1.1.3 candidate JSON without wall-clock timestamps.

Does not touch the peer-authored compliance_maps/oscal_export modules. Author
never pushes; exact object awaits distinct-terminal audit.

Tests: 24 focused (lock round-trip/negatives + CLI stdout/exclusive/error),
oscal_cli 100% stmt+branch; effective_profile 96% with from_dict paths.

Authored by Anulum Fortis & Arcane Sapience ([email protected])

Seat: RIGOR-FOUNDRY/grok-3685862
Fix-forward for 997a131 whole-tree gate regressions reported by peer 9dcc:
move offline sealed-lock parse helpers into effective_profile_serialisation
so effective_profile.py returns under the 700-line GodFile threshold, and clear
RUF059 unused unpacks in the lock round-trip tests.

Authored by Anulum Fortis & Arcane Sapience ([email protected])

Seat: RIGOR-FOUNDRY/grok-3685862
…dapter

Add an optional, provider-neutral assisted-review drafting adapter that turns a
report candidate into a non-binding needs-evidence draft. A draft accelerates
human review; it never asserts a verdict and never promotes a candidate.

- assisted_review.py: ReviewDraft + draft_assisted_review + redact_secrets. The
  decision is fixed to needs-evidence (no valid or invalid path); the
  deterministic core is network-free; each draft binds the exact report digest
  and the candidate's anchor evidence digests and only drafts for a candidate
  present in the report; provider, model, and operator identity is recorded via
  InferenceIdentity; title and rationale pass through a conservative deterministic
  secret redactor (private-key blocks, cloud access-key identifiers, bearer
  tokens, secret assignments, high-entropy values) with the substitution count
  recorded; the draft states and enforces that promotion requires an independent
  human or signed reviewer attestation, and from_dict rejects any decision other
  than needs-evidence.
- docs/assisted-review.md and nav: guarantees and usage.

Reachable via submodule import (rigor_foundry.assisted_review); the pinned public
__all__ and the api-stability manifest are unchanged. Closes the open TODO
"provider-neutral assisted-review drafting adapter".

Tests: 8 new, 100% statement and branch coverage (real-repository scan fixture,
both anchor kinds, per-pattern redaction, and tamper, foreign, and empty error
paths). Gates on the exact tree: strict MyPy (86 files), Ruff and format, Bandit,
coverage residuals, strict authoring audit, strict MkDocs, 900-test collection.
Polyglot parity: not applicable — a Python-only deterministic drafting surface
with no compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on grok-3685862's 1e51670 (OSCAL CLI and effective_profile split).

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…and fleet views

Add the Roadmap 0.3 worktree/claim-isolation gate and read-only fleet views for
concurrent RigorFoundry execution across repositories and campaigns. Neither
grants execution authority; the gate proves disjointness and the view reports it.

- claim_isolation.py: ExecutionClaim binds one repository, campaign, and lane to
  a disjoint write set and serialization keys with an explicit expiry. Isolation
  is enforced per repository (two claims in different repositories never conflict,
  denying any implicit cross-repository authority); holding claims must have
  disjoint write sets (equal, parent, or child via paths_overlap) and unshared
  serialization keys; prerequisites resolve within the repository and form an
  acyclic graph. Repository-relative paths only (absolute and traversal
  rejected). Lifecycle active to completed, cancelled, or rolled-back (only an
  active claim transitions); an expired active claim is stale and recoverable, so
  a fresh overlapping claim is admitted. assert_claim_isolation, admit_claim,
  holding_claims, and stale_claims.
- fleet_view.py: deterministic read-only FleetView over repository, campaign,
  claim, dependency, and conflict state — repositories and campaigns with holding
  claims, claims grouped by each, stale and terminal claim ids, overlapping
  same-repository write conflicts, serialization contention, and prerequisite
  edges. The view reports conflicts rather than rejecting them and never mutates.
- docs/claim-isolation.md and nav.

Reachable via submodule import (rigor_foundry.claim_isolation and .fleet_view);
the pinned public __all__ and api-stability manifest are unchanged. Reuses the
existing _remediation_graph paths_overlap and assert_dag invariants. Closes the
open TODO worktree/claim-isolation gate and fleet-views item.

Tests: 19 new, 100% statement and branch coverage on both modules (disjointness,
serialization exclusivity, cross-repository non-conflict, stale recovery,
cancellation and rollback transitions, prerequisite cycles, and full fleet-view
grouping and conflict reporting). Gates on the exact tree: strict MyPy (88 files),
Ruff and format, Bandit, coverage residuals, strict authoring audit, strict
MkDocs, 911-test collection.
Polyglot parity: not applicable — a Python-only deterministic coordination
surface with no compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on a598451 (L477).

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…orical replay

Extend the campaign contract to explicit cross-repository dependency campaigns
that freeze several repositories at exact commits for detached, read-only
historical replay, and that distinguish an unavailable historical dependency from
a passing result.

- cross_repository_campaign.py: RepositorySnapshot freezes one repository as
  either available (head commit and tree objects plus policy, rule-pack,
  adapter-lock, and toolchain digests) or unavailable (a reason and no digests) —
  the two are mutually exclusive so an unresolved dependency is never mistaken for
  a resolved one. InterRepositoryEdge records a directed from-to dependency; a
  CrossRepositoryCampaign collects one snapshot per repository plus edges,
  requiring unique repositories, in-campaign and unique non-self edges, and an
  acyclic dependency graph (assert_dag). The campaign references only detached git
  objects and digests, never a working tree, so replay never changes a checkout;
  frozen_at records the replay instant and the set is content-addressed.
  resolution() returns "complete" only when every snapshot is available, else
  "unavailable"; unavailable_dependencies() names the dependency targets that
  could not be frozen.
- docs/cross-repository-campaigns.md and nav.

Reachable via submodule import (rigor_foundry.cross_repository_campaign); the
pinned public __all__ and api-stability manifest are unchanged. Reuses the
existing _remediation_graph.assert_dag invariant. Closes the open TODO extending
the campaign contract to cross-repository dependency campaigns and historical
replay at an exact commit.

Tests: 7 new, 100% statement and branch coverage (available and unavailable
snapshots, availability inconsistencies, self, unknown, duplicate, and cyclic
edges, complete versus unavailable resolution, and digest and schema tamper
rejection). Gates on the exact tree: strict MyPy (89 files), Ruff and format,
Bandit, coverage residuals, strict authoring audit, strict MkDocs, 918-test
collection.
Polyglot parity: not applicable — a Python-only deterministic contract surface
with no compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on 650bc57 (L482).

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…atalogue

Add a versioned catalogue of candidate evidence adapters across the dependency,
container, infrastructure-as-code, and secret domains. Selection is risk and
profile driven; a tool's output is always signed, digest-bound evidence
interpreted through an adapter profile, never an automatically trusted
RigorFoundry verdict.

- adapter_catalogue.py: CatalogueEntry names a tool, its evidence domain, source
  of record, coverage, explicit exclusions, and selecting risk profiles, with one
  of three statuses — profiled (bound to a built-in adapter profile via
  profile_by_name), candidate (pending a digest-locked profile), or superseded
  (naming a catalogued successor, never selected). AdapterCatalogue is versioned,
  content-addressed, requires unique tool ids and catalogued successors, and
  select(risk_profile, evidence_domain=None) returns risk-matching selectable
  tools sorted by id, never a superseded one. Built-in catalogue: semgrep and
  trivy (profiled), osv-scanner, grype, checkov, gitleaks (candidate), and tfsec
  (superseded to trivy).
- docs/adapter-catalogue.md and nav.

Reachable via submodule import (rigor_foundry.adapter_catalogue); the pinned
public __all__ and api-stability manifest are unchanged. Builds on the existing
Semgrep and Trivy adapter profiles. Closes the open TODO for a versioned adapter
catalogue for dependency, container, IaC, and secret evidence.

Tool identities and evidence scopes were verified at source (see Verified
trailers); no tool versions or binary digests are pinned in the catalogue — those
remain bound at adapter-profile wiring time. tfsec is recorded as superseded
because it is now part of Trivy and no longer actively developed.

Tests: 7 new, 100% statement and branch coverage (status variants and cross-field
rules, https and risk validation, risk-driven selection skipping superseded
tools, and digest, schema, and notice tamper rejection). Gates on the exact tree:
strict MyPy (90 files), Ruff and format, Bandit, coverage residuals, strict
authoring audit, strict MkDocs, 925-test collection.
Polyglot parity: not applicable — a Python-only deterministic registry with no
compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on f2c3099 (L540).

Verified: https://github.com/google/osv-scanner
Verified: https://github.com/anchore/grype
Verified: https://github.com/bridgecrewio/checkov
Verified: https://github.com/aquasecurity/tfsec
Verified: https://github.com/gitleaks/gitleaks
Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
… ledger

Close the executor side of the Roadmap 0.3 controlled-remediation gate: connect
the approved remediation plan DAG and its conflict-safe batch model to an
explicit, independent, budget-bounded execution authority and an attested
execution ledger. Neither module runs a procedure, spawns a process, or mutates
a repository; live remediation stays owner-gated. The attested outcome is
supplied by the authorised executor and only validated and content-addressed
here. This complements the isolation gate and fleet views already landed.

- remediation_authority.py: ExecutionBudget caps cumulative wall/CPU seconds,
  peak memory, and executed-step count, and admits a plan step only if its
  declared per-step budget fits the aggregate ceiling. ExecutionAuthority grants
  bounded authority over an exact independently approved plan: the plan author
  can never authorise its own execution, the grant has a UTC validity window and
  an observe|execute mode (observe forbids any mutating step), and authorises()
  binds the exact plan and lock digests.
- remediation_executor.py: StepOutcome attests one step (succeeded, failed,
  rolled-back, or skipped) with attempts, resource consumption, captured evidence
  pairs, and a rollback flag under strict per-status invariants. LaneExecution
  derives its status from its step outcomes. ExecutionLedger.admit binds a plan,
  an authority, and covering isolation claims, proving batch order, per-lane
  in-repository claim coverage, step/idempotency/budget/evidence fidelity,
  aggregate budget and mode limits, and skip-exactly-on-failed-prerequisite
  propagation; it resolves to succeeded, failed, or rolled-back. from_dict
  re-verifies the self-contained mode, budget, idempotency, and resolution
  invariants; the plan-bound checks are the admit gate.
- docs/remediation-executor.md and nav.

Reachable via submodule import (rigor_foundry.remediation_authority and
rigor_foundry.remediation_executor); the pinned public __all__ and the
api-stability manifest are unchanged. No scanner, adapters, or CLI core changes.
Builds on remediation_plan (approved-plan DAG + execution_batches) and
claim_isolation (ExecutionClaim). Closes the open Roadmap 0.3 executor item.

Tests: 18 new (5 authority, 13 executor) at 100% statement and branch coverage
across both modules (358 statements, 142 branches). A two-step base-lane fixture
proves genuine rollback (a later failure undoing an earlier success) rather than
a simplified single-step model. Gates on the exact tree: strict MyPy (73 source
files), Ruff and format, Bandit, coverage residuals PASS, strict authoring audit,
strict MkDocs, GodFile self-scan (no new candidate; modules are 320 and 625
lines), header checks, 943-test collection, api-stability contract.
Polyglot parity: not applicable — a Python-only deterministic contract with no
compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on 0212433 (L545).

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Address the standing "do not describe the implementation as Python-only" gap by
publishing, per language, exactly which analysis techniques the scanner applies.
The matrix is derived from the live language-capability registry, so it cannot
drift from scanner behaviour, and it distinguishes three technique classes:
AST/semantic controls, structural/textual heuristics, and native adapters.

- polyglot_capability_matrix.py: LanguageCapabilityRow and
  PolyglotCapabilityMatrix. build() aggregates each of the thirteen languages
  from LANGUAGE_CAPABILITIES into ast_semantic, responsibility-size, ownership,
  dependency-graph, and structural columns. AST/semantic is Python only — grounded
  in the scanner, whose test-authenticity (TA001-TA011) and Python import-graph
  architecture rules (AR001-AR004, AR006) operate on a parsed AST. The twelve
  other languages carry structural coverage (size, ownership, dependency) at
  varying depth: Go/Lean/Mojo/HDL have no dependency-family parser, shell has no
  ownership control, YAML is scope-scannable data only. Native adapters are
  recorded as policy-wired, provenance-gated profiles, not per-language defaults.
  Content-addressed; to_dict/from_dict round-trip and fail closed on tampering.
- docs/polyglot-capability-matrix.md and nav.

Reachable via submodule import (rigor_foundry.polyglot_capability_matrix); the
pinned public __all__ and api-stability manifest are unchanged. No scanner,
adapters, or CLI core changes. Closes the capability-matrix clause of the open
polyglot TODO item; native JS/TS AST analysis remains the next increment.

Tests: 4 new at 100% statement and branch coverage (74 statements, 12 branches),
asserting the derivation matches the scanner (Python is the only AST-semantic
language; JS/TS have structural and dependency controls but no AST; Go has no
dependency parser; shell has no ownership; YAML is scope-only), determinism,
strict lookup, round-trip and tamper rejection, and that the declared AST and
adapter-profile constants resolve to real registry entries. Gates on the exact
tree: strict MyPy (74 files), Ruff and format, Bandit, coverage residuals PASS,
strict authoring audit, strict MkDocs, GodFile self-scan (no new candidate; 237
lines), header checks, 947-test collection, api-stability contract.
Polyglot parity: not applicable — a Python-only deterministic registry projection
with no compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on 4a5ffd5 (Roadmap 0.3 executor).

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…le category

Expand the portable rule pack from 28 to 33 rules and from four to five
categories, adding a high-precision application-security category (prefix AS) over
tracked Python. Rule pack advances rigor-foundry/1.1.0 to rigor-foundry/1.2.0.
Every AS finding is an anchored needs-evidence candidate, never a verdict; the
rules are deliberately narrow to keep false positives low.

- application_security.py: an AST scanner emitting AS001 dynamic-code-execution
  (eval, exec), AS002 shell-command-execution (a shell=True keyword, os.system,
  os.popen), AS003 unsafe-deserialization (pickle load/loads, or a yaml.load with
  no explicit loader), AS004 weak-hash-primitive (md5, sha1; low confidence
  because a weak hash is only a defect in a security context), and AS005
  insecure-temporary-file (tempfile.mktemp). Matching is on the AST, so a mention
  in a string or comment is not flagged and hardened equivalents are ignored
  (shell=False, yaml.safe_load, an explicit Loader, sha256, mkstemp).
- rules.py: the AS rule-id prefix and application-security category, the five
  versioned rule definitions, and the pack version bump.
- audit_primitives.py and candidate_anchor.py: application-security added to the
  Category literal and the candidate parse-time validation set.
- domains.py: application-security added to the portable-control map, so a
  repository that requires the domain is now covered by a portable rule and is no
  longer reported uncontrolled on the portable axis alone.
- scanner.py: scan_application_security wired into scan_repository.
- docs/application-security-rules.md and nav; digest-dependencies pack version.

The category applies to every tracked Python file because a security defect is not
test-only. RigorFoundry's own tree carries no AS pattern except one reviewed
pickle round-trip (already nosec B301) in a test, which the scanner correctly
surfaces as a needs-evidence candidate; the self-scan CI step reports candidates
and does not fail on them.

Tests: 3 new at 100% statement and branch coverage on the scanner (72 statements,
26 branches), covering every rule, safe-equivalent rejection, non-Python /
unparseable / undecodable skips, and the call-target, unbounded-yaml, and evidence
edges. Blast radius updated: test_rules (pack version, digest, introduced set,
category set), test_domains and test_candidate_anchor (GV004 probe re-pointed to
supply-chain, which has no portable control). Gates on the exact tree: strict MyPy
(75 files), Ruff and format, Bandit, coverage residuals PASS, strict authoring
audit, strict MkDocs, GodFile self-scan (no new candidate; 192 and 280 lines).
Full local suite: 948 passed; the only 2 non-passes are the pre-existing
real-Semgrep adapter tests hitting the load-dependent semgrep --version startup
timeout in trusted_executable (semgrep startup varies 2s-24s and exceeds the
metadata-query bound only under full-suite CPU contention) — both pass in
isolation with this change and are green on CI; they do not exercise any modified
module.
Polyglot parity: not applicable — the AST rules are Python-specific by design (see
the polyglot capability matrix). Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on a305ade (polyglot capability matrix). Closes the application-security
half of the rule-pack expansion; calibrated false-positive evidence and a
supply-chain rule set remain the maturity-lifecycle follow-up.

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…ree-sitter

Deepen polyglot support from textual heuristics to a native AST pass for
JavaScript and TypeScript, backed by tree-sitter, and shipped as an isolated
optional extra so the core install keeps its single runtime dependency. The
capability matrix now records javascript and typescript as AST-semantic. Rule
pack advances rigor-foundry/1.2.0 to rigor-foundry/1.3.0.

- javascript_analysis.py: parses .js/.jsx/.ts/.tsx with the tree-sitter
  JavaScript and TypeScript grammars and emits AS006-js-dynamic-code-execution
  for a call to the eval identifier or the Function constructor. Being AST-based,
  it ignores a member access such as obj.eval(x) or any other identifier, unlike
  a text scan. The tree-sitter import is isolated so a deployment without the
  optional extra degrades to no candidate instead of an error.
- rules.py: the AS006 definition and the pack version bump.
- polyglot_capability_matrix.py: javascript and typescript added to
  AST_SEMANTIC_LANGUAGES, with the extra requirement documented.
- scanner.py: scan_javascript wired into scan_repository.
- pyproject.toml: a new `javascript` optional extra; requirements/javascript.in
  and the hash-locked requirements/javascript.txt (pip-compile --generate-hashes);
  the CI test job installs the extra so the native tests run on the matrix.
- docs: the capability matrix and application-security rule pages, and the
  digest-dependencies pack version.

The tree-sitter packages are optional (the core keeps cryptography as its only
runtime dependency), pinned, hash-locked, and pip-audited clean; their linux
x86_64 abi3 wheels cover the 3.11-3.13 CI matrix. RigorFoundry's own tree has no
tracked JavaScript or TypeScript, so the self-scan is unaffected.

Tests: 3 new at 100% statement and branch coverage on the scanner (58 statements,
18 branches), covering JavaScript and TypeScript eval/Function detection,
member-access and non-target rejection, the graceful no-extra degradation path
(monkeypatched import), the defensive missing-field guard, binary skip, and the
evidence bound. The suite gates the extra behind pytest.importorskip so it stays
hermetic when the extra is absent. Blast radius: test_rules (pack version, digest,
introduced set) and test_polyglot_capability_matrix (AST-semantic set). Gates on
the exact tree: strict MyPy (76 files), Ruff and format, Bandit, coverage
residuals PASS, strict authoring audit, strict MkDocs, REUSE, GodFile self-scan
(no new candidate; 130 lines), full local suite.
Polyglot parity: the scanner is itself the JavaScript/TypeScript native surface;
no compute counterpart. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on d05ca41 (application-security rules). Closes the native JS/TS analysis
clause of the polyglot TODO; Go and Rust remain adopter-evidence gated.

Verified: https://pypi.org/pypi/tree-sitter/0.26.0/json
Verified: https://pypi.org/pypi/tree-sitter-javascript/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-typescript/0.23.2/json
Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
…ules

Extend native AST analysis to Go and Rust and consolidate the per-language
scanners into one non-duplicated module. The single-language javascript_analysis
scanner is folded into native_analysis, which routes .js/.jsx/.ts/.tsx/.go/.rs to
their tree-sitter parser and a per-language matcher through one shared harness —
so the tree-sitter parse-walk-anchor scaffolding is written once, not per
language. Rule pack advances rigor-foundry/1.3.0 to rigor-foundry/1.4.0.

- native_analysis.py: a language registry with three matchers.
  AS006-js-dynamic-code-execution (JS/TS eval or Function, unchanged),
  AS007-go-command-execution (Go os/exec Command or CommandContext), and
  AS008-rust-unsafe-block (a Rust unsafe block). Being AST-based, the matchers are
  precise: AS007 distinguishes exec.Command from other.Command and exec.LookPath,
  and AS008 flags a real unsafe block, not the word "unsafe" in a string or
  comment — a case a text scan cannot get right. AS008 is medium confidence
  because an unsafe block is sometimes a reviewed, necessary abstraction.
- rules.py: the AS007 and AS008 definitions and the pack version bump.
- polyglot_capability_matrix.py: go and rust added to AST_SEMANTIC_LANGUAGES.
- scanner.py: scan_native replaces scan_javascript in scan_repository.
- The optional extra is broadened from `javascript` to `native`
  (requirements/native.{in,txt} supersede javascript.{in,txt}); the CI test job
  installs it. tree-sitter-go and tree-sitter-rust join the hash-locked,
  pip-audited lock; the core install keeps cryptography as its only runtime
  dependency.
- docs: the capability matrix and application-security rule pages, and the
  digest-dependencies pack version.

The five tree-sitter packages are pinned, hash-locked, and pip-audited clean (0
CVEs); their linux x86_64 abi3 wheels cover the 3.11-3.13 CI matrix. RigorFoundry
has no tracked JavaScript, TypeScript, Go, or Rust, so the self-scan is
unaffected, and folding the four scanners into one shared harness avoids the
duplicate-implementation signal RigorFoundry's own AR006 rule would otherwise
raise.

Tests: 3 new at 100% statement and branch coverage on the unified scanner (95
statements, 30 branches), covering JavaScript/TypeScript, Go, and Rust detection,
safe-equivalent rejection (other.Command, exec.LookPath, an "unsafe" string
literal, a member access), the no-extra degradation path, the defensive
missing-field guards, binary skip, and the evidence bound. The suite gates the
extra behind pytest.importorskip. Blast radius: test_rules (pack version, digest,
introduced set) and test_polyglot_capability_matrix (AST-semantic set). Gates on
the exact tree: strict MyPy (76 files), Ruff and format, Bandit, coverage
residuals PASS, strict authoring audit, strict MkDocs, REUSE, GodFile self-scan
(no new candidate; 227 lines), full local suite.
Polyglot parity: the scanner is itself the native surface; no compute counterpart.
Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on ec761f8 (native JS/TS). Closes the native JS/TS/Go/Rust clause of the
polyglot TODO.

Verified: https://pypi.org/pypi/tree-sitter/0.26.0/json
Verified: https://pypi.org/pypi/tree-sitter-javascript/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-typescript/0.23.2/json
Verified: https://pypi.org/pypi/tree-sitter-go/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-rust/0.24.2/json
Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Extend native tree-sitter analysis to C and C++ through the same unified harness,
adding AS009-c-unsafe-libc. Rule pack advances rigor-foundry/1.4.0 to
rigor-foundry/1.5.0; the capability matrix now records C/C++ as AST-semantic.

- native_analysis.py: a _match_c matcher and the tree-sitter-c (.c/.h) and
  tree-sitter-cpp (.cc/.cpp/.hpp) grammars join the language registry. AS009
  flags a call to an unqualified dangerous libc function — gets, strcpy, strcat,
  sprintf, vsprintf, system, or popen (classic buffer-overflow and
  command-injection surfaces). Being AST-based, it is precise: a bounded snprintf
  and a namespaced std::strcpy are not flagged, unlike a text scan.
- rules.py: the AS009 definition and the pack version bump.
- polyglot_capability_matrix.py: c added to AST_SEMANTIC_LANGUAGES.
- requirements/native.{in,txt}: tree-sitter-c and tree-sitter-cpp added to the
  hash-locked, pip-audited lock; the `native` optional extra covers them. The
  core install still keeps cryptography as its only runtime dependency.
- docs: the capability matrix and application-security rule pages, and the
  digest-dependencies pack version.

The two new tree-sitter packages are pinned, hash-locked, and pip-audited clean (0
CVEs); their linux x86_64 abi3 wheels cover the 3.11-3.13 CI matrix. RigorFoundry
has no tracked C or C++, so the self-scan is unaffected.

Tests: the unified scanner suite gains C and C++ coverage (AS009 detection of
gets/system/popen, snprintf and std::strcpy rejection, and the _match_c guard
paths) at a retained 100% statement and branch coverage (108 statements, 34
branches). Blast radius: test_rules (pack version, digest, introduced set) and
test_polyglot_capability_matrix (AST-semantic set). Gates on the exact tree:
strict MyPy (76 files), Ruff and format, Bandit, coverage residuals PASS, strict
authoring audit, strict MkDocs, REUSE, GodFile self-scan (no new candidate; 267
lines), full local suite.
Polyglot parity: the scanner is itself the native surface; no compute counterpart.
Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on 15d26df (native Go/Rust). Extends the native language set to
JS/TS/Go/Rust/C/C++; Julia and further languages remain adopter-evidence gated.

Verified: https://pypi.org/pypi/tree-sitter/0.26.0/json
Verified: https://pypi.org/pypi/tree-sitter-javascript/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-typescript/0.23.2/json
Verified: https://pypi.org/pypi/tree-sitter-go/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-rust/0.24.2/json
Verified: https://pypi.org/pypi/tree-sitter-c/0.24.2/json
Verified: https://pypi.org/pypi/tree-sitter-cpp/0.23.4/json
Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Extend native tree-sitter analysis to Julia and Shell through the unified harness,
adding AS010-julia-unsafe-memory and AS011-shell-eval-execution. Rule pack
advances rigor-foundry/1.5.0 to rigor-foundry/1.6.0; the capability matrix now
records Julia and Shell as AST-semantic, completing native AST coverage for the
common language set (Python plus JS/TS/Go/Rust/C-C++/Julia/Shell).

- native_analysis.py: a _match_julia matcher (tree-sitter-julia, .jl) flags a call
  to a Julia unsafe_* memory intrinsic (unsafe_load, unsafe_store!, unsafe_wrap,
  unsafe_string, unsafe_copyto!, unsafe_pointer_to_objref) that bypasses bounds,
  type, and GC safety; a _match_shell matcher (tree-sitter-bash, .sh) flags the
  shell eval builtin as a command name. Being AST-based, they are precise: ccall
  and safe Julia calls are not flagged, and the eval match is the command name,
  not the substring elsewhere.
- rules.py: the AS010 and AS011 definitions and the pack version bump.
- polyglot_capability_matrix.py: julia and shell added to AST_SEMANTIC_LANGUAGES.
- requirements/native.{in,txt}: tree-sitter-julia and tree-sitter-bash added to
  the hash-locked, pip-audited lock; the `native` optional extra covers them. The
  core install still keeps cryptography as its only runtime dependency.
- docs: the capability matrix and application-security rule pages, and the
  digest-dependencies pack version.

The two new tree-sitter packages are pinned, hash-locked, and pip-audited clean (0
CVEs); their linux x86_64 abi3 wheels cover the 3.11-3.13 CI matrix. RigorFoundry
has no tracked Julia or shell files, so the self-scan is unaffected. AS010 is
medium confidence because an unsafe intrinsic is sometimes a reviewed, necessary
abstraction; AS011 is high because a shell eval is a classic injection vector.

Tests: the unified scanner suite gains Julia and Shell coverage (AS010 detection
of unsafe_load/unsafe_store!, ccall and safe rejection; AS011 eval detection, echo
rejection; and the _match_julia and _match_shell guard paths) at a retained 100%
statement and branch coverage (129 statements, 42 branches). Blast radius:
test_rules (pack version, digest, introduced set) and
test_polyglot_capability_matrix (AST-semantic set). Gates on the exact tree:
strict MyPy (76 files), Ruff and format, Bandit, coverage residuals PASS, strict
authoring audit, strict MkDocs, REUSE, GodFile self-scan (no new candidate; 329
lines), full local suite.
Polyglot parity: the scanner is itself the native surface; no compute counterpart.
Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on 987fd92 (native C/C++). Native AST coverage now spans the common
language set; Lean, Mojo, the hardware-description languages, and YAML have no
security-relevant AST rule and remain structural- or scope-only.

Verified: https://pypi.org/pypi/tree-sitter/0.26.0/json
Verified: https://pypi.org/pypi/tree-sitter-javascript/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-typescript/0.23.2/json
Verified: https://pypi.org/pypi/tree-sitter-go/0.25.0/json
Verified: https://pypi.org/pypi/tree-sitter-rust/0.24.2/json
Verified: https://pypi.org/pypi/tree-sitter-c/0.24.2/json
Verified: https://pypi.org/pypi/tree-sitter-cpp/0.23.4/json
Verified: https://pypi.org/pypi/tree-sitter-julia/0.23.1/json
Verified: https://pypi.org/pypi/tree-sitter-bash/0.25.1/json
Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
… rules

Add two high-precision Python-AST application-security rules. Rule pack advances
rigor-foundry/1.6.0 to rigor-foundry/1.7.0.

- application_security.py: AS012-disabled-tls-verification flags a call passing a
  literal verify=False keyword (the requests/httpx/urllib3 pattern that disables
  certificate verification and opens a man-in-the-middle), and
  AS013-insecure-ssl-context flags ssl._create_unverified_context, which returns a
  context that authenticates no peer. Both are precise keyword/attribute matches:
  verify=True, a bare call, and ssl.create_default_context are not flagged.
- rules.py: the AS012 and AS013 definitions and the pack version bump.
- docs: the application-security rule page and the digest-dependencies pack
  version.

These are Python-only rules with no new dependency. RigorFoundry's own tree
contains no verify=False or ssl._create_unverified_context, so the self-scan is
unaffected.

Tests: the application-security suite gains AS012/AS013 detection and safe-form
rejection (verify=True, ssl.create_default_context) at a retained 100% statement
and branch coverage (80 statements, 30 branches). Blast radius: test_rules (pack
version, digest, introduced set). Gates on the exact tree: strict MyPy (76 files),
Ruff and format, Bandit, coverage residuals PASS, strict authoring audit, strict
MkDocs, GodFile self-scan (no new candidate; 230 lines), full local suite.
Polyglot parity: not applicable — Python-AST rules by design. Benchmarks: not
applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit.
Stacks on c151ae7 (native Julia/Shell). First of the operator-directed follow-ups
(more precision rules); the incremental scan and reliability category follow.

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Add `rigor scan --changed-since REF`: a deterministic view over the full scan
report that restricts the reported and gated candidates to files changed between
the Git revision REF and HEAD. This lets a pull-request or pre-commit check gate
only on candidates the change introduced, without hiding the full-tree report.

- incremental_scan.py: `require_git_revision` validates REF as a plain Git
  revision (a leading dash can never reach Git as a flag); `resolve_changed_paths`
  runs `git diff --name-only -z REF HEAD --` through the trusted, provenance-bound
  GitRunner (never a raw subprocess or ambient PATH) and returns the changed
  repository-relative paths; `select_changed_candidates` filters a report's
  candidates to those anchored in a changed path, preserving order.
- cli.py: the `scan --changed-since REF` argument. When set, `_scan_command`
  resolves the changed paths, filters, prints a summary (candidates-in-changed of
  total, changed-file count, and the full report digest) followed by those
  candidates, and gates `--fail-on-candidates` on the changed set only. The full
  `--json-out`/`--markdown-out` report is unchanged, so provenance stays complete
  and the default (no `--changed-since`) behaviour is identical to before.
- docs/cli.md: the incremental changed-file view.

No new dependency; no rule-pack change. The default scan path is unchanged
(the gating set defaults to the full candidate set exactly as before).

Tests: 4 new — revision validation (flag/path-injection rejection), resolve +
filter against a real two-commit Git fixture, fail-closed on an unknown revision,
and a CLI test proving the summary and that `--fail-on-candidates` gates only on
changed files (a non-code change passes though the tree holds candidates; a new
vulnerable module fails). `incremental_scan.py` at 100% statement and branch
(20/2); the CLI changed-since branch and summary are covered.
Gates (RIGOR-FOUNDRY is a public repo, so per CEO/89529 the authoritative full
suite runs on CI, not locally): strict MyPy (77 files), Ruff and format, Bandit,
coverage residuals PASS, strict authoring audit, strict MkDocs, REUSE, GodFile
self-scan (no new candidate; 71 lines), and the affected focused suites
(test_cli, test_incremental_scan, api-stability, godfiles, headers) all green.
Polyglot parity: not applicable. Benchmarks: not applicable.
No push (author-never-push); the exact SHA is handed for distinct-terminal audit;
CI is the full-suite gate on landing.
Stacks on c000fc9 (TLS rules). Second of the operator-directed follow-ups
(incremental scan); the reliability rule category follows.

Seat: RIGOR-FOUNDRY/claude-9dcc

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Introduce a reliability rule category (prefix RL) of high-precision,
Python-AST-backed candidates over the tracked Python surface, advancing the
rule pack to rigor-foundry/1.8.0.

- RL001-bare-except: a bare `except:` handler catches every exception
  (including SystemExit and KeyboardInterrupt), hiding real failures and
  blocking interruption; a typed handler is not flagged.
- RL002-mutable-default-argument: a function default that constructs a fresh
  list, dict, or set is created once and shared across calls, leaking state
  between invocations; immutable defaults, argument-bearing constructor calls,
  non-builtin calls, and attribute calls are deliberately not flagged.

Both rules are AST-based, so a mention in a string or comment is not flagged.
Each finding is an anchored needs-evidence candidate (path, line, content
SHA-256) with a neutral rationale and a concrete verification procedure —
never a verdict.

Wiring: audit_primitives.Category and the Candidate.from_dict runtime set
gain "reliability"; rules.py gains the RL identifier prefix, the RL001/RL002
definitions (introduced rigor-foundry/1.8.0), and bumps RULE_PACK_VERSION to
1.8.0; scanner.scan_repository composes scan_reliability; domains maps the
reliability-and-concurrency domain to a portable control.

Tests: new test_reliability.py (100% statement + branch on reliability.py,
vulnerable and hardened fixtures, helper edge branches); test_rules.py digest,
version, category set, and introduced set updated. Docs: new
reliability-rules.md with mkdocs nav entry; digest-dependencies version note.

Additive and backward-compatible; no new dependencies. Own tree self-scan
stays clean (0 RL candidates). Focused gates green: reliability suite,
test_rules/test_domains/test_scanner, strict MyPy, ruff + format, bandit,
tools.audit (+ strict authoring), strict MkDocs. Full suite is the CI gate on
landing (public repo, author-never-push).

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: RIGOR-FOUNDRY/claude-9dcc
ruff format rewraps one long assert in test_incremental_scan.py (introduced
in 6c2f789) so that 'ruff format --check' — a CI gate — is clean. Style only;
no behavioural change, the four incremental-scan tests still pass. Flagged by
the distinct-terminal grok-3685862 audit CLEAR of 6c2f789 as a boundary.

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: RIGOR-FOUNDRY/claude-9dcc
…002)

Introduce a supply-chain rule category (prefix SC) of high-precision candidates
over tracked Python requirement files, advancing the rule pack to
rigor-foundry/1.9.0 and closing the "bounded supply-chain rule set" remainder of
the rule-pack expansion.

- SC001-unhashed-pinned-requirement: in a lock file that already demonstrates
  hash mode (at least one `--hash=`), a pinned `==` requirement carrying no
  hash — the artefact is installed without integrity verification. Near-zero
  false positive: `pip-compile --generate-hashes` hashes every entry, so a gap
  is a real hole, not a style choice. `.in` inputs carry no hashes by design and
  are never subject to SC001.
- SC002-vcs-url-requirement: a dependency installed from a VCS checkout (git+/
  hg+/svn+/bzr+) or a PEP 508 direct URL (`name @ https://…`), bypassing the
  index and hash pinning. Index-configuration options (--index-url,
  --extra-index-url, --find-links) and comments are not flagged.

Both rules parse requirement lines, joining backslash-continued blocks, and are
scoped to `requirements*.txt`/`.in` or `.txt`/`.in` files under a `requirements/`
directory. Each finding is an anchored needs-evidence candidate (path, line,
content SHA-256) with a neutral rationale and a concrete verification procedure —
never a verdict.

Wiring: audit_primitives.Category and the Candidate.from_dict runtime set gain
"supply-chain"; rules.py gains the SC identifier prefix, the SC001/SC002
definitions (introduced rigor-foundry/1.9.0), and bumps RULE_PACK_VERSION to
1.9.0; scanner.scan_repository composes scan_supply_chain; domains maps the
supply-chain domain to a portable control. Because supply-chain is now portably
controlled, the two GV004 "no portable control" probes (test_domains,
test_candidate_anchor) re-point to api-abi-schema-compatibility, which remains
uncontrolled.

Tests: new test_supply_chain.py (100% statement + branch on supply_chain.py,
hashed-lock/VCS/safe fixtures, helper edge branches); test_rules.py digest,
version, category set, and introduced set updated.  Docs: new
supply-chain-rules.md with mkdocs nav entry; digest-dependencies version note.

Additive and backward-compatible; no new dependencies. Own tree self-scan stays
clean (0 SC / 71 total; every lock is fully hashed, no VCS/URL dependency).
Focused gates green: supply-chain suite, test_rules/test_domains/
test_candidate_anchor/test_scanner, strict MyPy, ruff + tree-wide format, bandit,
tools.audit (+ strict authoring), strict MkDocs. Full suite is the CI gate on
landing (public repo, author-never-push).

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: RIGOR-FOUNDRY/claude-9dcc
The full CI matrix ran for the first time across the unpushed main stack
(66 commits) and surfaced two environment-divergent gate failures that the
focused local gates did not:

- strict MyPy failed in the CI type environment because native_analysis
  imports the optional tree-sitter runtime and grammars, which ship no stubs
  and are absent without the [native] extra. Add a scoped mypy override
  (ignore_missing_imports) for exactly those modules; the import is already
  guarded and gracefully degrades at runtime.
- typos flagged the British spelling 'uncatalogued' (a real adapter-catalogue
  domain term) and a hyphenated 'mis-' prefix. Allowlist 'uncatalogued' in
  _typos.toml and reword one test docstring to 'malformed-schema'.

All three test matrix jobs (3.11/3.12/3.13) already passed. Local ruff, format,
strict MyPy, bandit, typos, tools.audit, strict MkDocs, and the pre-commit
hook set are green.

Authored by Anulum Fortis & Arcane Sapience ([email protected])
Seat: RIGOR-FOUNDRY/claude-9dcc
@anulum
anulum merged commit 51c4515 into main Jul 18, 2026
13 checks passed
@anulum
anulum deleted the land/sync-main-5cf1121 branch July 18, 2026 14:10

This branch was previously deployed

1 inactive deployment
github-pages — 51c45155 Deployed Jul 18, 2026 by anulum via deploy #51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant