Evidence-bound codebase transformation.
RigorFoundry inventories Git-tracked repository content, emits reproducible audit candidates, binds review decisions to exact evidence, and prepares remediation inputs without treating static heuristics as defect verdicts.
Source status: package version
1.0.0; rule activation is evidence-bound. The released calibration cohort qualifiesAS001-dynamic-code-executionunder its frozen policy. Other rules in that cohort remain in probation; this is not an activation grant for every adopter. The 1.0 compatibility manifest freezes a digest-bound contract over the installed CLI commands and their option and positional spellings, the package-level Python API, and the inventoried schema versions: a wire-incompatible change requires a new schema identifier and an explicit migration, never a silent reinterpretation. That contract is the whole of the stability commitment — it does not extend to the audit findings. Every rule match remains an anchored review candidate. Promotion and enforcement require the adopter's applicable maturity policy and source-bound completed reviews; a match is not an automatic defect verdict. Versioned GitHub Releases and GHCR images are published through the repository; PyPI availability is established from the public registry, not inferred from a tag or workflow result. RigorFoundry has not been promoted as a fleet-wide audit authority, and a clean static scan is not a clean-repository claim.
scanis read-only and inspects only the exact Git-tracked inventory.- Findings remain candidates until reviewed against the production surface.
- Missing evidence is explicit; it never resolves to pass.
- Reports bind repository HEAD, tree, Git object format, tracked-content, policy, rule-pack, and exact Git executable/version provenance.
- Every candidate binds either the exact scanned blob and inclusive line span or the exact repository tree and tracked-content digest for an absence or repository-wide search. Human-readable evidence is bounded.
- Promotion rejects stale reports, stale policies, changed Git provenance, duplicate findings, and mismatched repositories.
- Pack and reviewer signatures use distinct versioned Ed25519 message domains; legacy raw-digest signatures are rejected rather than reinterpreted.
rigor verifychecks caller-supplied signed evidence, explicit key lifecycle, expiry, unavailable records, and model-alias collapse entirely offline.- A provisional Python API joins retained source, signed semantic-review, StandardPack v2 and ProjectProfile v2 evidence into a read-only candidate report; it cannot authorise Guard effects or change existing dispatch.
- Selected dispatch applicability extracts the actual invocation and evaluates signed clauses under one retained chain/semantics context. Its results remain read-only data and grant no effect permit or handler capability.
- A separate permit ledger durably records consumed UUIDs and rejects replay; its file and lease mechanics do not verify signatures or grant effect authority.
- Native audit adapters use validated argv, bounded execution time, and
shell=False. - Internal campaign records are written only below Git-ignored paths.
flowchart LR
A[Git repository] --> B[Fail-closed inventory]
B --> C[Portable scanners]
B --> D[Declared native adapters]
C --> E[Content-addressed AuditReport]
D --> F[Adapter evidence]
E --> G[Evidence review]
E --> L[SARIF candidate export]
G --> L
F --> G
G --> M[Adjudicated rule maturity]
M --> H[Enforcement decision]
G --> H
G --> I[Verified TODO promotion]
E --> J[Independent campaign attestations]
J --> K[Divergence comparison]
The target profile model keeps five records separate:
StandardPack— versioned controls, licence, signature, and provenance.ProjectProfile— selected controls, applicability, targets, and typed project variables.EffectiveProfileLock— resolved inputs, digests, adapters, and contradiction evidence.ControlAssessment— evidence-bound states such asneeds-evidence,blocked,fail,pass, andaccepted-risk.TargetGap/RemediationPlan— the dependency-ordered difference between observed state and the declared target.
These records and their fail-closed resolver are implemented as a local typed API. They do not grant execution authority, make RigorFoundry the fleet audit authority, or prove effectiveness on an external corpus. See ARCHITECTURE.md.
After the exact version appears in the PyPI release history, install it with:
python -m pip install "rigor-foundry==1.0.0"The published 1.0.0 wheel requires a POSIX runtime. For native Windows, use a
wheel built from a verified revision that includes Windows support. Retain that
wheel and its runtime dependency lock for recovery. See the
installation and rollback notes.
git clone https://github.com/anulum/rigor-foundry.git RIGOR-FOUNDRY
cd RIGOR-FOUNDRY
python3 -m venv .venv
.venv/bin/python -m pip install --require-hashes -r requirements/bootstrap.txt
.venv/bin/python -m pip install --require-hashes --no-build-isolation -r requirements/ci.txt
.venv/bin/python -m pip install --no-build-isolation --no-deps -e .
.venv/bin/rigor --versionFor an adopter repository, follow the explicit first-repository tutorial. Bootstrap requires the policy, canonical TODO, review-ledger, source-root, and test-root paths; it never guesses or overwrites them. The consumer integration guide provides immutable-SHA GitHub Action and pre-commit configurations with explicit policy/evidence paths and no remediation authority.
| Command | Contract |
|---|---|
rigor bootstrap |
Create one explicit policy and ignored canonical TODO without guessing or overwrite. |
rigor scan |
Emit a deterministic JSON or Markdown candidate report. |
rigor scan-provenance |
Attach offline distribution attestations and source-bound Scorecard evidence to an audit report. |
rigor contract |
Emit the digest-bound 1.0 Python, CLI, and schema compatibility contract. |
rigor report-diff |
Compare two exact reports as replay-verifiable candidate-transition evidence. |
rigor verify |
Verify signed reports, reviews, packs, model aliases, freshness, and unavailable evidence offline. |
rigor review-template |
Create explicit needs-evidence review records. |
rigor validate-review |
Verify reviews against one exact report. |
rigor sarif |
Export every candidate and optional review verdict as deterministic SARIF 2.1.0. |
rigor maturity-evaluate |
Derive probation or active status from explicit adjudicated review cases. |
rigor promote |
Preview or append one finding from a verified cross-model promotion campaign. |
rigor gate |
Apply observe, ratchet, or zero enforcement; non-observe modes require a maturity report whose policy digest is repository-bound. |
rigor campaign-create |
Freeze an independent-audit input contract. |
rigor campaign-run |
Execute and attest one independent run. |
rigor campaign-compare |
Record disagreement and unresolved evidence. |
rigor cra-bootstrap |
Create fresh Git-ignored offline CRA state and one operator-declared product registration. |
rigor vuln-register |
Append a content-addressed vulnerability or severe-incident revision. |
rigor vuln-timeline |
Print verified 24-hour, 72-hour, and track-specific final-report clocks. |
rigor cra-draft |
Prepare deterministic Article 14 JSON and Markdown without submitting them. |
rigor cra-receipt |
Bind operator-supplied receipt evidence without claiming authority acceptance. |
rigor cra-skip |
Record an explicit later-stage already-provided decision bound to an earlier receipt. |
rigor user-notice |
Prepare an offline Article 14(8) user-notice payload pair. |
rigor cra-status |
Replay all CRA records and return operational alert status. |
rigor advisory-draft / advisory-publish / advisory-delay |
Bind prepare-only fixed-vulnerability advisory evidence; never publish. |
rigor cra-pack |
Emit the CRA StandardPack signed by a caller-supplied Ed25519 key. |
rigor --version reports the canonical installed package version. The exact
stable/provisional top-level import inventory and deprecation policy are
documented in Public API stability.
The 1.0 command and serialized-protocol freeze is documented in the
1.0 stable compatibility contract. The source
metadata declares 1.0.0; a published release requires its separate release
gates and owner authorisation. Check the registry for an installable version.
The offline CRA preparation guide documents the exact operator workflow, evidence boundary, clocks, append-only storage, and exit codes. It is a drafting aid, not legal advice, a conformity assessment, or an external submission client.
The content-addressed report-diff guide documents strict compatibility declarations, ambiguous anchor matching, deterministic replay, and the boundary between candidate trends and correctness verdicts.
The offline evidence-verification guide documents caller-selected trust, key lifecycle, signature domains, bundle and result schemas, exit codes, alias collapse, and the assurance boundary.
The rule-chain candidate guide describes the provisional read-only v2 inspection API and why its report is not an effective profile lock or a dispatch permit.
The selected dispatch applicability guide describes the composed module-level Python API, actual journal-backed rate history, fixed constraint boundary and closing source checks. It introduces no stable CLI command or automatic effect execution.
The dispatch permit candidate guide describes exact v2.1 envelopes, six-role separation and bounded signature verification with caller-selected policy and UTC time. Host admission remains a separate responsibility.
The permit consumption ledger guide describes complete binary replay, owner-only file custody, selected-prefix checks, process-bound append leases and explicit torn-tail recovery.
The permit anchor verification guide describes selected ledger/journal bindings, immutable recovery evidence custody, and ordinary refusal of damaged or unresolved recovery state.
Declared native adapters run only after --allow-native-audits consent. They
execute in a no-network, read-only sandbox with a credential-free environment,
hard output and time bounds, process-tree termination, and structured durable
evidence. Native execution currently requires Bubblewrap at
/usr/bin/bwrap on a dpkg-based host, /usr/bin/dpkg-query, and a compatible
Bubblewrap 0.9.x installation. Passive scans and report review do not require
these native surfaces.
Verified built-in Semgrep, offline Trivy, and offline OSV lockfile profiles additionally bind the immutable command/parser contract, exact tracked-only input snapshot, configuration and executable bytes, tool version, structured status, and profile evidence digest. Partial or unavailable evidence never supplies domain coverage. See Built-in adapter profiles for the strict policy form, installation boundary, coverage limits, and benchmark.
| Surface | Modules | Responsibility |
|---|---|---|
| Git trust | git_provenance |
Fixed-root executable selection, supported versions, replacement detection, and content-addressed provenance. |
| Inventory | git_inventory |
Exact tracked paths, content kinds, scanned blob identities, and digests through the trusted Git runner. |
| Candidate anchors | candidate_anchor |
Strict blob/tree anchor schemas, inclusive line spans, bounded excerpts, and anchor verification. |
| Candidate collection | architecture, godfiles, polyglot_architecture, test_authenticity |
Static signals requiring review, each bound to a verified anchor. |
| Policy and records | rules, domains, audit_primitives, policy_models, models |
Versioned rules, strict protocol primitives, applicability, repository policy, and content-addressed report/review records. |
| Report differences | report_diff, report_diff_cli |
Replay-verifiable candidate transitions over two exact reports, with explicit compatibility and ambiguity evidence. |
| Offline verification | verification_policy, offline_verification_models, offline_verification, offline_verification_report, offline_verification_cli |
Caller-selected key lifecycle, signed multi-protocol evidence, alias collapse, explicit unavailability, deterministic aggregate results, and a no-network CLI. |
| Rule-chain candidate inspection | rule_chain_candidate, semantic_review_host, semantic_source_host, discovery_receipt_host, native_source_host, native_source_pin, native_message_pair, semantic_transition, semantic_transition_review, pack_source_host, rule_chain_pack_v2, rule_chain_profile_v2, signed_rule_chain_v2 |
Read-only host-selected source and signed-selection verification with a non-admissible report; no active Guard or v1 cutover. |
| Selected dispatch applicability | selected_dispatch_applicability_v2, selected_dispatch_extraction_v2, selected_stage_b_results_v3, stage_b_evaluator_v2, effect_journal_rate_v2 |
Actual invocation extraction and signed clause evaluation under one retained context, with real journal history and no effect admission. |
| Dispatch permit candidates | instruction_dispatch_permit_v2 |
Exact provisional v2.1 decision envelopes, six disjoint signing policies and actual issuer signature/lifecycle verification. |
| Permit consumption | permit_consumption_ledger_v2, _permit_ledger_records_v2, _permit_ledger_storage_io_v2 |
Durable dual-ID replay refusal, full binary history, exact selected prefixes, file custody and scoped append-lease lifetime. |
| Permit anchor verification | permit_anchor_store_v2, permit_anchor_prefix_v2, recovery_evidence_store_v2 |
Complete selected chain verification, anchored closure replay and bounded immutable recovery evidence custody. |
| Review and enforcement | review, enforcement |
Evidence validation, stale-state rejection, and controlled promotion. |
| Rule calibration | rule_maturity, rule_maturity_manifest |
Explicit activation thresholds, source-bound adjudications, reviewer-effort evidence, and probation-safe gate input. |
| Interchange | sarif |
Deterministic SARIF 2.1.0 projection that preserves candidate, review, and exact-anchor state. |
| Native boundaries | adapters, adapter_runtime, adapter_profiles, adapter_workspace, osv_database, sandbox_provenance, trusted_executable |
Descriptor-pinned, time/output-bounded repository commands; immutable built-in profiles; tracked-only snapshots; verified offline OSV databases; structured evidence; and versioned Bubblewrap compatibility. |
| External sources | source_capture, source_provenance |
Content-addressed advisory/version/standard/digest claims, bounded capture metadata, stable retained-file reads, and deterministic offline verification. |
| Campaigns | campaign_identity, campaign_evidence, campaign_models, campaign_store, campaign_workflow, campaign_compare, campaign_promotion |
Inference and toolchain identity, correlated-witness collapse, durable provenance, divergence, and promotion eligibility. |
| Profile primitives | model_primitives, condition_language |
Typed variables, opaque secret references, strict values, and bounded conditions. |
| Desired state | standard_pack, project_profile, effective_profile, profile_resolution, trust |
Versioned controls, explicit Ed25519 trust stores, adopter intent, exact pack locks, contradiction evidence, and fail-closed resolution. |
| Assessment and planning | control_assessment, review_attestation, remediation_plan, _remediation_graph |
Signed fresh evidence, cryptographically verified reviewer separation, target gaps, adapter-bound procedures, and conflict-safe batches. |
| Work lifecycle | internal_storage, work_models |
Ignored crash-safe storage and digest-bound task/event closure records. |
docker build -t rigor-foundry:local .
docker run --rm --read-only \
--mount type=bind,src=/path/to/repository,dst=/workspace,readonly \
rigor-foundry:local scan --root /workspaceThe container runs as a non-root user and contains Git because repository
inventory is a production dependency of the CLI. After building the image,
make docker-smoke scans a disposable Git repository with the hardened
container settings used in CI. For an exact local image comparison, use
the reproducible container build.
- Python support is declared only for 3.11, 3.12, and 3.13 and is represented in the CI matrix.
- CI dependencies are resolved into a hash-locked requirements file.
- Local work uses the repository-owned
.venvon the local working disk. - The authoring policy uses focused single-file tests locally; CI owns the exhaustive test and coverage gate. External contributors may opt into the same local matrix explicitly.
- The standalone SBOM workflow records the installed Python runtime and attestation profiles and the editor production dependency lock. It is available before release. See the validation guide.
- Releases, when authorised after public-repository promotion, build wheel and source distributions, run metadata checks and generate a CycloneDX SBOM. The owner-gated OIDC publication job checks that the rebuilt distributions match the GitHub Release assets byte for byte before signing, attestation and upload.
- Benchmark and effectiveness claims require committed methodology and measured evidence. No such performance claim is made by the migration baseline.
See VALIDATION.md for the gate matrix and SECURITY.md for the threat boundary.
make install
make lint
make typecheck
make audit
make preflight-fastRun focused test files with pytest tests/test_name.py. Maintainers do not
run the local full suite unless the owner explicitly authorises it for the
current session; external contributors may opt in as documented in
CONTRIBUTING.md.
See CONTRIBUTING.md.
- Issue tracker
- Discussions
- Support
- Security reporting
- Community participation
- Governance
- Sponsor the public core
RigorFoundry is available under the Apache License 2.0. The licence includes an explicit contribution-scoped patent grant; it does not grant rights to use the RigorFoundry name or marks except as the licence permits.
Developed by ANULUM / Fortis Studio
GitHub Actions security candidates cover workflow and composite-action references, run interpolation and target-event checkout, with explicit incomplete analysis and new rules in probation.
Lockfile integrity rules classify every tracked lockfile entry by its pin, refuse unreadable lockfiles by name, and keep new rules in probation.
The rightsholder, Miroslav Šotek (ANULUM), expressly reserves the use of the works in this repository for text and data mining, including the collection of this content for, and its use in, training, fine-tuning or evaluating machine learning and artificial intelligence models, in accordance with Article 4(3) of Directive (EU) 2019/790 and the national provisions transposing it.
No permission for such use has been granted beyond what the licence in
LICENSE grants. This reservation does not change that licence: uses the
licence permits remain permitted on its terms, including its attribution and
share-alike conditions.
Reservation made on 2026-10-19. Requests for permission: contact the rightsholder through the contact listed in this repository.
