repopact 3.1.3__tar.gz → 4.0.0__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.
- repopact-4.0.0/.gitattributes +24 -0
- repopact-4.0.0/PKG-INFO +192 -0
- repopact-4.0.0/README.md +163 -0
- repopact-4.0.0/SPEC.md +410 -0
- repopact-4.0.0/VERSION +1 -0
- repopact-4.0.0/build/semantic-input-manifest.json +1067 -0
- repopact-4.0.0/build/semantic-input-policy.json +37 -0
- repopact-4.0.0/conformance/README.md +58 -0
- repopact-4.0.0/conformance/fixtures/README.md +57 -0
- repopact-4.0.0/conformance/fixtures/invalid/active-depends-on-proposed/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/active-depends-on-proposed/work/active/003-active/README.md +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/active-depends-on-proposed/work/active/003-active/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/active-depends-on-proposed/work/proposed/002-candidate/README.md +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/active-depends-on-proposed/work/proposed/002-candidate/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-applicability-rationale-missing/assurance/mappings/example-rationale-missing.json +18 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-documentation-claim-basis-unsupported/assurance/mappings/example-claim-basis.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-implementation-path-escapes/assurance/mappings/example-path-escapes.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-implementation-reference-missing/assurance/mappings/example-reference-missing.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-private-key-evidence/assurance/mappings/example-private-key.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-private-key-evidence/assurance/reports/leaked-key.txt +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-schema-invalid/assurance/mappings/example-schema-invalid.json +17 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-unknown-decision/assurance/mappings/example-unknown-decision.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/assurance-unknown-evidence-run/assurance/mappings/example-unknown-evidence-run.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/completed-provisional-work/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/completed-provisional-work/work/completed/002-provisional/README.md +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/completed-provisional-work/work/completed/002-provisional/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/completed-with-pending/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/completed-with-pending/work/completed/001-seed/work-item.json +14 -0
- repopact-4.0.0/conformance/fixtures/invalid/dependency-cycle/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/dependency-cycle/work/active/010-a/README.md +4 -0
- repopact-4.0.0/conformance/fixtures/invalid/dependency-cycle/work/active/010-a/work-item.json +19 -0
- repopact-4.0.0/conformance/fixtures/invalid/dependency-cycle/work/active/011-b/README.md +4 -0
- repopact-4.0.0/conformance/fixtures/invalid/dependency-cycle/work/active/011-b/work-item.json +19 -0
- repopact-4.0.0/conformance/fixtures/invalid/disjoint-active-scopes/governance/owners.json +11 -0
- repopact-4.0.0/conformance/fixtures/invalid/disjoint-active-scopes/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/disjoint-active-scopes/work/active/002-left/README.md +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/disjoint-active-scopes/work/active/002-left/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/disjoint-active-scopes/work/active/003-right/README.md +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/disjoint-active-scopes/work/active/003-right/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-generated-output-stale/docs/api-reference.md +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-generated-output-stale/governance/documentation-mappings.json +22 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-generated-output-stale/governance/owners.json +14 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-generated-output-stale/schema/openapi.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-generated-output-stale/tools/generate-api.py +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-impact-affected-evidence-empty/governance/owners.json +12 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-impact-affected-evidence-empty/work/completed/001-seed/work-item.json +15 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-impact-affected-unknown-evidence/work/completed/901-doc-unknown-evidence/README.md +6 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-impact-affected-unknown-evidence/work/completed/901-doc-unknown-evidence/work-item.json +24 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-impact-missing-on-completed/work/completed/900-doc-missing/README.md +5 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-impact-missing-on-completed/work/completed/900-doc-missing/work-item.json +19 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-mapping-forgewire-stale/docs/security/auth.md +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-mapping-forgewire-stale/governance/documentation-mappings.json +21 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-mapping-forgewire-stale/governance/owners.json +14 -0
- repopact-4.0.0/conformance/fixtures/invalid/documentation-mapping-forgewire-stale/src/repopact/auth.py +2 -0
- repopact-4.0.0/conformance/fixtures/invalid/invalid-semantic-version/VERSION +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/invalid-semantic-version/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/missing-dashboard/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/orphan-work-directory/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/orphan-work-directory/work/active/099-orphan/README.md +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/readme-checkbox-mismatch/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/readme-checkbox-mismatch/work/completed/001-seed/README.md +6 -0
- repopact-4.0.0/conformance/fixtures/invalid/readme-release-drift/README.md +5 -0
- repopact-4.0.0/conformance/fixtures/invalid/readme-release-drift/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/release-label-version-mismatch/RELEASE_LABEL +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/release-label-version-mismatch/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/satisfied-without-evidence/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/satisfied-without-evidence/work/completed/001-seed/work-item.json +14 -0
- repopact-4.0.0/conformance/fixtures/invalid/schema-invalid-evidence/evidence/runs/20260101-seed.json +12 -0
- repopact-4.0.0/conformance/fixtures/invalid/schema-invalid-evidence/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/stale-dashboard/audits/reports/dashboard.md +3 -0
- repopact-4.0.0/conformance/fixtures/invalid/stale-dashboard/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/status-directory-mismatch/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/status-directory-mismatch/work/completed/001-seed/work-item.json +14 -0
- repopact-4.0.0/conformance/fixtures/invalid/unknown-dependency/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/unknown-dependency/work/completed/001-seed/work-item.json +14 -0
- repopact-4.0.0/conformance/fixtures/invalid/unregistered-contract/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/invalid/unregistered-contract/service/AGENTS.md +4 -0
- repopact-4.0.0/conformance/fixtures/invalid/verification-default-profile/governance/verification.json +23 -0
- repopact-4.0.0/conformance/fixtures/invalid/verification-default-profile/meta.json +1 -0
- repopact-4.0.0/conformance/fixtures/valid/AGENTS.md +4 -0
- repopact-4.0.0/conformance/fixtures/valid/VERSION +1 -0
- repopact-4.0.0/conformance/fixtures/valid/audits/registry.json +14 -0
- repopact-4.0.0/conformance/fixtures/valid/audits/reports/dashboard.md +36 -0
- repopact-4.0.0/conformance/fixtures/valid/evidence/runs/20260101-seed.json +12 -0
- repopact-4.0.0/conformance/fixtures/valid/governance/frozen-surface.json +11 -0
- repopact-4.0.0/conformance/fixtures/valid/governance/invariants.json +13 -0
- repopact-4.0.0/conformance/fixtures/valid/governance/owners.json +12 -0
- repopact-4.0.0/conformance/fixtures/valid/work/completed/001-seed/README.md +4 -0
- repopact-4.0.0/conformance/fixtures/valid/work/completed/001-seed/work-item.json +14 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-forgewire/assurance/mappings/forgewire-access-control.json +66 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-forgewire/assurance/reports/forgewire-access-review-summary.md +7 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-full/assurance/mappings/example-full.json +106 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-full/assurance/reports/redacted-summary.md +6 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-minimal/assurance/mappings/example-minimal.json +17 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-not-applicable/assurance/mappings/example-not-applicable.json +20 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-restricted-artifact-warning/assurance/mappings/example-restricted.json +20 -0
- repopact-4.0.0/conformance/fixtures/valid-assurance-restricted-artifact-warning/assurance/reports/restricted-summary.md +3 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-affected/config/settings.json +3 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-affected/docs/configuration.md +3 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-affected/evidence/runs/20260101-doc-updated.json +12 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-affected/governance/documentation-mappings.json +21 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-affected/governance/owners.json +14 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-affected/work/completed/001-seed/work-item.json +19 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-none/governance/owners.json +12 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-impact-none/work/completed/001-seed/work-item.json +18 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-mapping-neutral/docs/api.md +3 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-mapping-neutral/governance/documentation-mappings.json +21 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-mapping-neutral/governance/owners.json +14 -0
- repopact-4.0.0/conformance/fixtures/valid-documentation-mapping-neutral/src/api.py +1 -0
- repopact-4.0.0/conformance/fixtures/valid-proposed/work/proposed/002-candidate/README.md +4 -0
- repopact-4.0.0/conformance/fixtures/valid-proposed/work/proposed/002-candidate/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/valid-provisional/work/active/002-provisional/README.md +3 -0
- repopact-4.0.0/conformance/fixtures/valid-provisional/work/active/002-provisional/work-item.json +20 -0
- repopact-4.0.0/conformance/fixtures/valid-release-label/RELEASE_LABEL +1 -0
- repopact-4.0.0/conformance/manifest.json +647 -0
- repopact-4.0.0/conformance/operations/work-proposal.md +35 -0
- repopact-4.0.0/pyproject.toml +72 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/AGENTS.md +8 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/_audit/alignment-report.md +229 -0
- repopact-4.0.0/repopact/_audit/inventory.md +61 -0
- repopact-4.0.0/repopact/_semantic-input-manifest.json +1067 -0
- repopact-4.0.0/repopact/_semantic_identity.json +5 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/admission.py +25 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/adopt_repo.py +114 -26
- {repopact-3.1.3 → repopact-4.0.0}/repopact/cli.py +274 -27
- {repopact-3.1.3 → repopact-4.0.0}/repopact/dev_fixtures.py +47 -10
- {repopact-3.1.3 → repopact-4.0.0}/repopact/doctor.py +31 -14
- repopact-4.0.0/repopact/documentation_mappings.py +154 -0
- repopact-4.0.0/repopact/engine_client.py +1194 -0
- repopact-4.0.0/repopact/engine_session.py +117 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/generate_dashboard.py +11 -3
- {repopact-3.1.3 → repopact-4.0.0}/repopact/generate_spec.py +18 -2
- {repopact-3.1.3 → repopact-4.0.0}/repopact/init_repo.py +66 -15
- repopact-4.0.0/repopact/local_storage.py +645 -0
- repopact-4.0.0/repopact/new.py +136 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/plan_import.py +27 -12
- {repopact-3.1.3 → repopact-4.0.0}/repopact/release_build.py +45 -7
- {repopact-3.1.3 → repopact-4.0.0}/repopact/release_local.py +128 -2
- repopact-4.0.0/repopact/requirements-runtime.lock +327 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/run_admission_platform_conformance.py +19 -8
- repopact-4.0.0/repopact/run_conformance.py +484 -0
- repopact-4.0.0/repopact/runtime-dependency-groups.json +19 -0
- repopact-4.0.0/repopact/runtime_dependencies.py +158 -0
- repopact-4.0.0/repopact/schemas/documentation-mappings.schema.json +45 -0
- repopact-4.0.0/repopact/self_audit.py +344 -0
- repopact-4.0.0/repopact/self_audit_conformance.py +140 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/takeover.py +56 -11
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/README.md +4 -0
- repopact-4.0.0/repopact/templates/agent-self-audit.md +13 -0
- repopact-4.0.0/repopact/templates/documentation-mappings.json +17 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/validate_repo.py +26 -17
- {repopact-3.1.3 → repopact-4.0.0}/repopact/verification.py +200 -18
- repopact-4.0.0/repopact/verification_capture.py +229 -0
- repopact-4.0.0/repopact/verify_cli.py +183 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/verify_status.py +43 -2
- repopact-4.0.0/rust/Cargo.lock +1154 -0
- repopact-4.0.0/rust/Cargo.toml +31 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/apps/repopact-engine/Cargo.toml +3 -0
- repopact-4.0.0/rust/apps/repopact-engine/build.rs +211 -0
- repopact-4.0.0/rust/apps/repopact-engine/build_support.rs +84 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/apps/repopact-engine/src/main.rs +446 -44
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-core/src/lib.rs +14 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/selector.rs +1 -1
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/Cargo.toml +13 -0
- repopact-4.0.0/rust/crates/repopact-mutation/src/lib.rs +8308 -0
- repopact-4.0.0/rust/crates/repopact-mutation/src/transaction_store.rs +1589 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/verification_post_validation.rs +18 -14
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-protocol/src/lib.rs +29 -2
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-repository/src/git.rs +125 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-repository/src/lib.rs +81 -10
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-schema/src/lib.rs +4 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/src/adopters.rs +1 -1
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/src/assurance.rs +23 -0
- repopact-4.0.0/rust/crates/repopact-validation/src/documentation.rs +396 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/src/lib.rs +240 -4
- repopact-4.0.0/scripts/generate_engine_semantic_identity.py +449 -0
- repopact-4.0.0/scripts/verify_engine_package_identity.py +1377 -0
- repopact-3.1.3/PKG-INFO +0 -323
- repopact-3.1.3/README.md +0 -303
- repopact-3.1.3/VERSION +0 -1
- repopact-3.1.3/pyproject.toml +0 -40
- repopact-3.1.3/repopact/_audit/inventory.md +0 -42
- repopact-3.1.3/repopact/engine_client.py +0 -278
- repopact-3.1.3/repopact/new.py +0 -115
- repopact-3.1.3/repopact/run_conformance.py +0 -203
- repopact-3.1.3/repopact/verify_cli.py +0 -69
- repopact-3.1.3/rust/Cargo.lock +0 -6290
- repopact-3.1.3/rust/Cargo.toml +0 -61
- repopact-3.1.3/rust/apps/repopact-engine/build.rs +0 -50
- repopact-3.1.3/rust/crates/repopact-mutation/src/lib.rs +0 -1551
- {repopact-3.1.3 → repopact-4.0.0}/LICENSE +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/__init__.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/_audit/README.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/adapters.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/admission_conformance.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/check_frozen_surface.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/confinement.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/enforcement.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/fleet_verify.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/frontmatter.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/graph_cli.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/guard.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/guard_ipc.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/legacy_validate.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/package_version.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/platform_backends.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/repo_model.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/adapter-capabilities.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/admission-policy.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/adopter-fleet.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/assurance-mapping.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/audit-finding.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/authorization-receipt.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/authorization-request.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/conformance-manifest.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/evidence-run.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/frozen-surface.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/invariants.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/operator-authority.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/record-frontmatter.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/repository-registration.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/rog-capability.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/verification-profile.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/schemas/work-item.schema.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/admission-policy.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/decision.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/evidence-run.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/policy.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/work-item.README.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/templates/work-item.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/track_import.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/unix_guard_service.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/validate_research.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/validate_verification.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/repopact/windows_guard_service.py +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/apps/repopact-engine/src/bin/repopact.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/apps/repopact-engine/src/query_ops.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-analysis/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-analysis/src/lib.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-core/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/authority_boundary_tests.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/bin/rog-benchmark.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/capability.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/clean_clone_tests.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/durable.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/incremental.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/lib.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/merge_reconcile.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/metadata/json_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/metadata/markdown_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/metadata/mod.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/metadata/policy.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/metadata/toml_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/metadata/yaml_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/overlay.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/physical.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/projection.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/bounds.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/cursor.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/dto.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/engine.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/index.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/mod.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/open.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/resolve.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/query/tests.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/semantic/javascript_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/semantic/mod.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/semantic/operational.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/semantic/python_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/semantic/rust_adapter.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/status.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/src/validate.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-graph/tests/no_network_dependency_audit.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/edit/after/work-item.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/edit/before/work-item.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/transition/after/work/active/001-reopen/README.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/transition/after/work/active/001-reopen/history.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/transition/after/work/active/001-reopen/work-item.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/transition/before/work/completed/001-reopen/README.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/transition/before/work/completed/001-reopen/history.md +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/fixtures/transition/before/work/completed/001-reopen/work-item.json +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-mutation/tests/remote_provider_governance_boundary.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-protocol/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-repository/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-schema/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-types/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-types/src/lib.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/Cargo.toml +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/src/graph.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/src/research.rs +0 -0
- {repopact-3.1.3 → repopact-4.0.0}/rust/crates/repopact-validation/src/verification.rs +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Force LF for source/text files by default, regardless of local core.autocrlf. Some Rust
|
|
2
|
+
# tests (e.g. repopact-repository's production_git_spawning_is_centralized_
|
|
3
|
+
# in_the_approved_helper) include_str! their own source to self-inspect it and
|
|
4
|
+
# split/compare on a literal "\n"; a Windows checkout with core.autocrlf=true
|
|
5
|
+
# silently rewrites those files to CRLF and breaks that comparison without
|
|
6
|
+
# git ever reporting a working-tree diff. Pinning line endings here removes
|
|
7
|
+
# the local-config dependency instead of teaching every such test to tolerate
|
|
8
|
+
# CRLF.
|
|
9
|
+
* text=auto eol=lf
|
|
10
|
+
|
|
11
|
+
*.rs text eol=lf
|
|
12
|
+
*.py text eol=lf
|
|
13
|
+
*.ts text eol=lf
|
|
14
|
+
*.tsx text eol=lf
|
|
15
|
+
*.json text eol=lf
|
|
16
|
+
*.toml text eol=lf
|
|
17
|
+
*.md text eol=lf
|
|
18
|
+
|
|
19
|
+
*.ico binary
|
|
20
|
+
*.png binary
|
|
21
|
+
# The experimental self-audit mapping snapshots this source file as raw bytes.
|
|
22
|
+
# Keep CRLF bytes in the Git blob and disable checkout conversion so every host
|
|
23
|
+
# hashes the same bytes.
|
|
24
|
+
repopact/self_audit.py -text -eol whitespace=cr-at-eol
|
repopact-4.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: repopact
|
|
3
|
+
Version: 4.0.0
|
|
4
|
+
Requires-Dist: attrs==26.1.0
|
|
5
|
+
Requires-Dist: jsonschema==4.26.0
|
|
6
|
+
Requires-Dist: jsonschema-specifications==2025.9.1
|
|
7
|
+
Requires-Dist: referencing==0.37.0
|
|
8
|
+
Requires-Dist: rpds-py==2026.9.1
|
|
9
|
+
Requires-Dist: typing-extensions==4.16.0 ; python_full_version < '3.13'
|
|
10
|
+
Requires-Dist: maturin>=1.15,<2 ; extra == 'dev'
|
|
11
|
+
Requires-Dist: pytest>=8 ; extra == 'dev'
|
|
12
|
+
Requires-Dist: twine>=6 ; extra == 'dev'
|
|
13
|
+
Requires-Dist: cffi==2.1.1 ; platform_python_implementation != 'PyPy' and extra == 'dev'
|
|
14
|
+
Requires-Dist: cryptography==50.0.2 ; extra == 'dev'
|
|
15
|
+
Requires-Dist: pycparser==3.12 ; implementation_name != 'PyPy' and platform_python_implementation != 'PyPy' and extra == 'dev'
|
|
16
|
+
Requires-Dist: cffi==2.1.1 ; platform_python_implementation != 'PyPy' and extra == 'enforcement'
|
|
17
|
+
Requires-Dist: cryptography==50.0.2 ; extra == 'enforcement'
|
|
18
|
+
Requires-Dist: pycparser==3.12 ; implementation_name != 'PyPy' and platform_python_implementation != 'PyPy' and extra == 'enforcement'
|
|
19
|
+
Provides-Extra: dev
|
|
20
|
+
Provides-Extra: enforcement
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Summary: RepoPact Core: repository-native governance, evidence-gated work, and canonical validation.
|
|
23
|
+
License-Expression: Apache-2.0
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
26
|
+
Project-URL: Homepage, https://github.com/ForgeWireLabs/repopact-core
|
|
27
|
+
Project-URL: Repository, https://github.com/ForgeWireLabs/repopact-core
|
|
28
|
+
|
|
29
|
+
# RepoPact Core
|
|
30
|
+
|
|
31
|
+
**Repository-native governance for durable human–agent software engineering.**
|
|
32
|
+
|
|
33
|
+
**Keep project intent, authority, and evidence in the repository so the next contributor can resume from the same state.**
|
|
34
|
+
|
|
35
|
+
RepoPact gives people and coding agents a shared, inspectable record of what a project intends, what work is authorized, which constraints bind, what remains open, and what evidence supports completion. The records travel with a clone; they do not depend on one session, model, or private memory.
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
[Install the CLI](#choose-your-path) · [Follow the adoption tutorial](docs/adopt-repopact.md) · [Read the specification](SPEC.md) · [Explore the research](#research) · [Open RepoPact Workbench](https://github.com/ForgeWireLabs/repopact-workbench)
|
|
40
|
+
|
|
41
|
+
RepoPact Core contains the `repopact` CLI, canonical semantic engine, schemas, conformance suite, and reference records. It is open source under [Apache-2.0](LICENSE); the stable CLI package is available on [PyPI](https://pypi.org/project/repopact/). [RepoPact Workbench](https://github.com/ForgeWireLabs/repopact-workbench) is a separate native interface that consumes Core and is not included in the PyPI package.
|
|
42
|
+
|
|
43
|
+
## Why RepoPact exists
|
|
44
|
+
|
|
45
|
+
Source code usually survives a handoff. The governing state around that code often does not. A session ends, another contributor takes over, or work moves to another machine. They can see the files but may not know what was authorized, which constraints must hold, what choices are settled, what evidence supports a completion claim, or where the prior worker was uncertain.
|
|
46
|
+
|
|
47
|
+
RepoPact treats this as **governance discontinuity**: the loss or divergence of project authority and intent across people, tools, and sessions. Its response is to make that state inspectable and versioned beside the code.
|
|
48
|
+
|
|
49
|
+
| When project context is… | RepoPact makes it… |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| Held in a chat or one contributor’s memory | Recoverable from repository records |
|
|
52
|
+
| Reconstructed differently by each tool | Shared through typed, version-controlled records |
|
|
53
|
+
| Marked “done” without showing why | Verifiable through acceptance criteria and linked evidence |
|
|
54
|
+
| Implicit about authority and protected paths | Explicit through roles, scopes, invariants, and frozen surfaces |
|
|
55
|
+
| Inferred from an older repository | Honest about provenance and remaining uncertainty |
|
|
56
|
+
| Reflected in stale dashboards or indexes | Reconciled from authoritative source records |
|
|
57
|
+
|
|
58
|
+
That makes engineering work easier to resume, review, and verify across human and AI contributors.
|
|
59
|
+
|
|
60
|
+
## Choose your path
|
|
61
|
+
|
|
62
|
+
### Start a new governed repository
|
|
63
|
+
|
|
64
|
+
Install the stable Core CLI, then initialize a project:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
python -m pip install repopact
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Create a governed repository and record a unit of work:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
repopact init --target ./your-repo
|
|
74
|
+
cd ./your-repo
|
|
75
|
+
|
|
76
|
+
repopact validate
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Then follow the [adoption tutorial](docs/adopt-repopact.md) to define project
|
|
80
|
+
governance, create a work item, record verification evidence, and complete the
|
|
81
|
+
item with evidence.
|
|
82
|
+
|
|
83
|
+
### Adopt an existing repository
|
|
84
|
+
|
|
85
|
+
Preview the proposed changes first:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
repopact adopt --target ./existing-repo --dry-run
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Review the preview. If it matches the repository's needs, run
|
|
92
|
+
`repopact adopt --target ./existing-repo`, then inspect and validate the new
|
|
93
|
+
records. Adoption can preserve uncertainty as provisional or inferred rather
|
|
94
|
+
than presenting a reconstruction as a known fact. See the [adoption guide](docs/adopt-repopact.md).
|
|
95
|
+
|
|
96
|
+
### Use RepoPact with coding agents
|
|
97
|
+
|
|
98
|
+
RepoPact is not tied to a particular agent host. Give the agent access to the
|
|
99
|
+
repository's `AGENTS.md`, active work item, applicable governance, and relevant
|
|
100
|
+
decisions. The repository records provide durable shared context; the agent
|
|
101
|
+
still needs appropriate tool permissions, and RepoPact does not turn written
|
|
102
|
+
rules into an operating-system sandbox. See [the contributor workflow](CONTRIBUTING.md)
|
|
103
|
+
and the [optional pre-execution admission guide](docs/guides/pre-execution-admission.md).
|
|
104
|
+
|
|
105
|
+
### Explore the model and research
|
|
106
|
+
|
|
107
|
+
Read the [specification](SPEC.md) and [formal model](research/formal-model.md) for
|
|
108
|
+
the semantics. Research protocols, findings, and threats to validity are linked
|
|
109
|
+
in the [Research section](#research).
|
|
110
|
+
|
|
111
|
+
RepoPact does not require a particular coding agent, model provider, editor, CI vendor, or cloud account. The records are ordinary repository files and can be used by humans and tools that read them.
|
|
112
|
+
|
|
113
|
+
## How the pact works
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
intent → scoped authority → work item → implementation → evidence → audit → history
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
RepoPact organizes the parts of engineering work that should survive a handoff:
|
|
120
|
+
|
|
121
|
+
- **Intent and decisions** record goals and durable choices, including rejected alternatives.
|
|
122
|
+
- **Roles and scopes** describe who can change which parts of a repository.
|
|
123
|
+
- **Work items** record ownership, affected scopes, dependencies, acceptance criteria, and lifecycle.
|
|
124
|
+
- **Invariants and frozen surfaces** make important guarantees and protected paths visible.
|
|
125
|
+
- **Evidence and provenance** connect completion claims to observations, and distinguish concrete facts from provisional or inferred records.
|
|
126
|
+
- **Audits and dashboards** expose drift and provide a useful view of the records.
|
|
127
|
+
|
|
128
|
+
In a governed repository, human-readable work-item notes explain intent while machine-readable JSON holds lifecycle and relationship state. Decisions preserve material choices; evidence records what actually ran or was observed. Core validates the records and their relationships, including dependencies and completion evidence.
|
|
129
|
+
|
|
130
|
+
### The repository is the authority
|
|
131
|
+
|
|
132
|
+
RepoPact gives each fact an authoritative home in the repository: governance records, work items, decisions, evidence, code, or explicitly governed configuration. Dashboards, the optional Repository Orientation Graph (ROG), generated specification sections, and Workbench screens are **derived views**. They help people navigate; they do not overrule the source records. If a view disagrees with its source, it is stale or wrong and should be reconciled.
|
|
133
|
+
|
|
134
|
+
ROG is a bounded, deterministic index for questions such as which work depends on a record, which tests relate to a package, or which governance applies. It is optional and does not need a model, embeddings, or a cloud service. [Learn about the graph](docs/repository-orientation-graph.md).
|
|
135
|
+
|
|
136
|
+
### Rules, authority, and evidence
|
|
137
|
+
|
|
138
|
+
A **principle** guides judgment; a **binding invariant** is a guarantee that must not be silently weakened. Where the invariant has a defined machine check, validation is the backstop. Where it does not, the record names an escalation path for human review. Ownership and frozen-surface rules make boundaries explicit, but do not themselves grant operating-system security.
|
|
139
|
+
|
|
140
|
+
Provenance keeps uncertainty visible during brownfield adoption. A record can be `concrete`, `provisional`, or `inferred`; reconstruction does not become fact merely because it has been written down. Acceptance criteria can require linked evidence before work is considered complete.
|
|
141
|
+
|
|
142
|
+
### Enforcement claims match their boundary
|
|
143
|
+
|
|
144
|
+
RepoPact distinguishes documented instructions, session-start checks, pre-action checks on covered operations, and an operating-system boundary that actually constrains a process. The portable reference baseline for the optional admission plane is `pre-action`: it checks a covered action before that action runs. It does **not** establish arbitrary-process filesystem confinement. A `sandbox/process-enforced` claim requires independent, platform-specific native proof. See [the enforcement guide](docs/guides/pre-execution-admission.md) and [decision 0060](decisions/0060-optional-sandbox-process-enforced-reference-confinement.md).
|
|
145
|
+
|
|
146
|
+
## Core architecture
|
|
147
|
+
|
|
148
|
+
Core is the semantic authority shared by command-line and graphical clients. The canonical validator and typed repository operations are implemented in Rust and distributed with the stable command-line package. The Python package provides the CLI and compatibility surfaces; the historical Python validator is an explicit comparator, not a second semantic authority.
|
|
149
|
+
|
|
150
|
+
The repository contains the Rust workspace, packaged schemas and templates, the 4.0.0 conformance corpus, documentation, and reference governance records. The [conformance contract](CONFORMANCE.md) defines what it means to claim compatibility with a specific RepoPact version. A conformance result is scoped to that version; it does not make claims about future versions.
|
|
151
|
+
|
|
152
|
+
<details>
|
|
153
|
+
<summary>View the Core architecture and authority boundaries</summary>
|
|
154
|
+
|
|
155
|
+

|
|
156
|
+
|
|
157
|
+
</details>
|
|
158
|
+
|
|
159
|
+
The diagram distinguishes source records from projections. CLI and Workbench clients ask Core to interpret records and perform supported typed operations; dashboards, graph indexes, and screens help people navigate the resulting state. Optional host integrations have only the enforcement boundary they can demonstrate. See the [concrete work-item walkthrough](docs/work-item-walkthrough.md) for a proposal-to-evidence handoff grounded in the actual Core record shape and commands.
|
|
160
|
+
|
|
161
|
+
### Core and Workbench are separate products
|
|
162
|
+
|
|
163
|
+
Core owns governance schemas and interpretation, validation, graph and analysis semantics, and typed mutation behavior. Workbench owns its interface, application orchestration, session handling, filesystem observation, and native desktop/mobile integration. It consumes one immutable Core revision and must not create a competing governance engine.
|
|
164
|
+
|
|
165
|
+
The current release **4.0.0** ([release notes](docs/releases/4.0.0.md)) is an unpublished qualification candidate. `pip install repopact` still installs the latest public stable, 3.1.3 ([PyPI](https://pypi.org/project/repopact/)). Workbench is a separate Tauri application with its own build and platform evidence; see [its repository](https://github.com/ForgeWireLabs/repopact-workbench) for current instructions. There are no Workbench installers in the PyPI package.
|
|
166
|
+
|
|
167
|
+
### Local-first verification
|
|
168
|
+
|
|
169
|
+
Repositories can define their own verification profiles and run them locally through Core. Hosted CI/CD is an optional adapter and is disabled by default in this repository’s verification policy. A passing local run is evidence for that run; it does not prove remote branch protection or a hosted admission boundary. Verification, building artifacts, and publication are separate operations.
|
|
170
|
+
|
|
171
|
+
## Research
|
|
172
|
+
|
|
173
|
+
RepoPact is both a usable tool and an ongoing software-engineering research project. The repository contains a [paper draft](research/paper.md), a [formal model](research/formal-model.md), the [adversarial research protocol](research/protocol.md), a separate [comparative benchmark protocol](research/benchmark-protocol.md), the [Proving Ground lab notebook](research/README.md), a [findings register](research/findings.md), and [threats to validity](research/threats-to-validity.md). These materials distinguish hypotheses and registered methods from observed findings; the existence of a protocol or harness is not itself a completed comparative result. Research findings have bounded scope and documented validity threats; they do not establish universal effectiveness.
|
|
174
|
+
|
|
175
|
+
The machine-readable [conformance suite](CONFORMANCE.md) provides version-scoped compatibility cases. Conformance is an implementation contract, not experimental evidence for the research hypotheses.
|
|
176
|
+
|
|
177
|
+
## Documentation
|
|
178
|
+
|
|
179
|
+
- [Adopt RepoPact](docs/adopt-repopact.md) — tutorial for new and existing repositories.
|
|
180
|
+
- [Documentation map](docs/README.md) — guidance for use, concepts, integration, and development.
|
|
181
|
+
- [Concepts](docs/concepts.md) — authority, lifecycle, provenance, evidence, and assurance boundaries.
|
|
182
|
+
- [Repository Orientation Graph](docs/repository-orientation-graph.md) — optional derived index and queries.
|
|
183
|
+
- [Specification](SPEC.md) and [conformance contract](CONFORMANCE.md) — normative model and version compatibility.
|
|
184
|
+
- [Contributing](CONTRIBUTING.md) — development and contribution guidance.
|
|
185
|
+
- [Security policy](SECURITY.md) — how to report a security concern.
|
|
186
|
+
|
|
187
|
+
RepoPact is not an AI agent, model provider, issue tracker, hosted CI service, or operating-system sandbox. It complements Git, test frameworks, coding tools, and external authorization systems by giving them a shared, durable governance layer.
|
|
188
|
+
|
|
189
|
+
## License
|
|
190
|
+
|
|
191
|
+
RepoPact Core is licensed under [Apache-2.0](LICENSE).
|
|
192
|
+
|
repopact-4.0.0/README.md
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# RepoPact Core
|
|
2
|
+
|
|
3
|
+
**Repository-native governance for durable human–agent software engineering.**
|
|
4
|
+
|
|
5
|
+
**Keep project intent, authority, and evidence in the repository so the next contributor can resume from the same state.**
|
|
6
|
+
|
|
7
|
+
RepoPact gives people and coding agents a shared, inspectable record of what a project intends, what work is authorized, which constraints bind, what remains open, and what evidence supports completion. The records travel with a clone; they do not depend on one session, model, or private memory.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
[Install the CLI](#choose-your-path) · [Follow the adoption tutorial](docs/adopt-repopact.md) · [Read the specification](SPEC.md) · [Explore the research](#research) · [Open RepoPact Workbench](https://github.com/ForgeWireLabs/repopact-workbench)
|
|
12
|
+
|
|
13
|
+
RepoPact Core contains the `repopact` CLI, canonical semantic engine, schemas, conformance suite, and reference records. It is open source under [Apache-2.0](LICENSE); the stable CLI package is available on [PyPI](https://pypi.org/project/repopact/). [RepoPact Workbench](https://github.com/ForgeWireLabs/repopact-workbench) is a separate native interface that consumes Core and is not included in the PyPI package.
|
|
14
|
+
|
|
15
|
+
## Why RepoPact exists
|
|
16
|
+
|
|
17
|
+
Source code usually survives a handoff. The governing state around that code often does not. A session ends, another contributor takes over, or work moves to another machine. They can see the files but may not know what was authorized, which constraints must hold, what choices are settled, what evidence supports a completion claim, or where the prior worker was uncertain.
|
|
18
|
+
|
|
19
|
+
RepoPact treats this as **governance discontinuity**: the loss or divergence of project authority and intent across people, tools, and sessions. Its response is to make that state inspectable and versioned beside the code.
|
|
20
|
+
|
|
21
|
+
| When project context is… | RepoPact makes it… |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| Held in a chat or one contributor’s memory | Recoverable from repository records |
|
|
24
|
+
| Reconstructed differently by each tool | Shared through typed, version-controlled records |
|
|
25
|
+
| Marked “done” without showing why | Verifiable through acceptance criteria and linked evidence |
|
|
26
|
+
| Implicit about authority and protected paths | Explicit through roles, scopes, invariants, and frozen surfaces |
|
|
27
|
+
| Inferred from an older repository | Honest about provenance and remaining uncertainty |
|
|
28
|
+
| Reflected in stale dashboards or indexes | Reconciled from authoritative source records |
|
|
29
|
+
|
|
30
|
+
That makes engineering work easier to resume, review, and verify across human and AI contributors.
|
|
31
|
+
|
|
32
|
+
## Choose your path
|
|
33
|
+
|
|
34
|
+
### Start a new governed repository
|
|
35
|
+
|
|
36
|
+
Install the stable Core CLI, then initialize a project:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
python -m pip install repopact
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Create a governed repository and record a unit of work:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
repopact init --target ./your-repo
|
|
46
|
+
cd ./your-repo
|
|
47
|
+
|
|
48
|
+
repopact validate
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Then follow the [adoption tutorial](docs/adopt-repopact.md) to define project
|
|
52
|
+
governance, create a work item, record verification evidence, and complete the
|
|
53
|
+
item with evidence.
|
|
54
|
+
|
|
55
|
+
### Adopt an existing repository
|
|
56
|
+
|
|
57
|
+
Preview the proposed changes first:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
repopact adopt --target ./existing-repo --dry-run
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Review the preview. If it matches the repository's needs, run
|
|
64
|
+
`repopact adopt --target ./existing-repo`, then inspect and validate the new
|
|
65
|
+
records. Adoption can preserve uncertainty as provisional or inferred rather
|
|
66
|
+
than presenting a reconstruction as a known fact. See the [adoption guide](docs/adopt-repopact.md).
|
|
67
|
+
|
|
68
|
+
### Use RepoPact with coding agents
|
|
69
|
+
|
|
70
|
+
RepoPact is not tied to a particular agent host. Give the agent access to the
|
|
71
|
+
repository's `AGENTS.md`, active work item, applicable governance, and relevant
|
|
72
|
+
decisions. The repository records provide durable shared context; the agent
|
|
73
|
+
still needs appropriate tool permissions, and RepoPact does not turn written
|
|
74
|
+
rules into an operating-system sandbox. See [the contributor workflow](CONTRIBUTING.md)
|
|
75
|
+
and the [optional pre-execution admission guide](docs/guides/pre-execution-admission.md).
|
|
76
|
+
|
|
77
|
+
### Explore the model and research
|
|
78
|
+
|
|
79
|
+
Read the [specification](SPEC.md) and [formal model](research/formal-model.md) for
|
|
80
|
+
the semantics. Research protocols, findings, and threats to validity are linked
|
|
81
|
+
in the [Research section](#research).
|
|
82
|
+
|
|
83
|
+
RepoPact does not require a particular coding agent, model provider, editor, CI vendor, or cloud account. The records are ordinary repository files and can be used by humans and tools that read them.
|
|
84
|
+
|
|
85
|
+
## How the pact works
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
intent → scoped authority → work item → implementation → evidence → audit → history
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
RepoPact organizes the parts of engineering work that should survive a handoff:
|
|
92
|
+
|
|
93
|
+
- **Intent and decisions** record goals and durable choices, including rejected alternatives.
|
|
94
|
+
- **Roles and scopes** describe who can change which parts of a repository.
|
|
95
|
+
- **Work items** record ownership, affected scopes, dependencies, acceptance criteria, and lifecycle.
|
|
96
|
+
- **Invariants and frozen surfaces** make important guarantees and protected paths visible.
|
|
97
|
+
- **Evidence and provenance** connect completion claims to observations, and distinguish concrete facts from provisional or inferred records.
|
|
98
|
+
- **Audits and dashboards** expose drift and provide a useful view of the records.
|
|
99
|
+
|
|
100
|
+
In a governed repository, human-readable work-item notes explain intent while machine-readable JSON holds lifecycle and relationship state. Decisions preserve material choices; evidence records what actually ran or was observed. Core validates the records and their relationships, including dependencies and completion evidence.
|
|
101
|
+
|
|
102
|
+
### The repository is the authority
|
|
103
|
+
|
|
104
|
+
RepoPact gives each fact an authoritative home in the repository: governance records, work items, decisions, evidence, code, or explicitly governed configuration. Dashboards, the optional Repository Orientation Graph (ROG), generated specification sections, and Workbench screens are **derived views**. They help people navigate; they do not overrule the source records. If a view disagrees with its source, it is stale or wrong and should be reconciled.
|
|
105
|
+
|
|
106
|
+
ROG is a bounded, deterministic index for questions such as which work depends on a record, which tests relate to a package, or which governance applies. It is optional and does not need a model, embeddings, or a cloud service. [Learn about the graph](docs/repository-orientation-graph.md).
|
|
107
|
+
|
|
108
|
+
### Rules, authority, and evidence
|
|
109
|
+
|
|
110
|
+
A **principle** guides judgment; a **binding invariant** is a guarantee that must not be silently weakened. Where the invariant has a defined machine check, validation is the backstop. Where it does not, the record names an escalation path for human review. Ownership and frozen-surface rules make boundaries explicit, but do not themselves grant operating-system security.
|
|
111
|
+
|
|
112
|
+
Provenance keeps uncertainty visible during brownfield adoption. A record can be `concrete`, `provisional`, or `inferred`; reconstruction does not become fact merely because it has been written down. Acceptance criteria can require linked evidence before work is considered complete.
|
|
113
|
+
|
|
114
|
+
### Enforcement claims match their boundary
|
|
115
|
+
|
|
116
|
+
RepoPact distinguishes documented instructions, session-start checks, pre-action checks on covered operations, and an operating-system boundary that actually constrains a process. The portable reference baseline for the optional admission plane is `pre-action`: it checks a covered action before that action runs. It does **not** establish arbitrary-process filesystem confinement. A `sandbox/process-enforced` claim requires independent, platform-specific native proof. See [the enforcement guide](docs/guides/pre-execution-admission.md) and [decision 0060](decisions/0060-optional-sandbox-process-enforced-reference-confinement.md).
|
|
117
|
+
|
|
118
|
+
## Core architecture
|
|
119
|
+
|
|
120
|
+
Core is the semantic authority shared by command-line and graphical clients. The canonical validator and typed repository operations are implemented in Rust and distributed with the stable command-line package. The Python package provides the CLI and compatibility surfaces; the historical Python validator is an explicit comparator, not a second semantic authority.
|
|
121
|
+
|
|
122
|
+
The repository contains the Rust workspace, packaged schemas and templates, the 4.0.0 conformance corpus, documentation, and reference governance records. The [conformance contract](CONFORMANCE.md) defines what it means to claim compatibility with a specific RepoPact version. A conformance result is scoped to that version; it does not make claims about future versions.
|
|
123
|
+
|
|
124
|
+
<details>
|
|
125
|
+
<summary>View the Core architecture and authority boundaries</summary>
|
|
126
|
+
|
|
127
|
+

|
|
128
|
+
|
|
129
|
+
</details>
|
|
130
|
+
|
|
131
|
+
The diagram distinguishes source records from projections. CLI and Workbench clients ask Core to interpret records and perform supported typed operations; dashboards, graph indexes, and screens help people navigate the resulting state. Optional host integrations have only the enforcement boundary they can demonstrate. See the [concrete work-item walkthrough](docs/work-item-walkthrough.md) for a proposal-to-evidence handoff grounded in the actual Core record shape and commands.
|
|
132
|
+
|
|
133
|
+
### Core and Workbench are separate products
|
|
134
|
+
|
|
135
|
+
Core owns governance schemas and interpretation, validation, graph and analysis semantics, and typed mutation behavior. Workbench owns its interface, application orchestration, session handling, filesystem observation, and native desktop/mobile integration. It consumes one immutable Core revision and must not create a competing governance engine.
|
|
136
|
+
|
|
137
|
+
The current release **4.0.0** ([release notes](docs/releases/4.0.0.md)) is an unpublished qualification candidate. `pip install repopact` still installs the latest public stable, 3.1.3 ([PyPI](https://pypi.org/project/repopact/)). Workbench is a separate Tauri application with its own build and platform evidence; see [its repository](https://github.com/ForgeWireLabs/repopact-workbench) for current instructions. There are no Workbench installers in the PyPI package.
|
|
138
|
+
|
|
139
|
+
### Local-first verification
|
|
140
|
+
|
|
141
|
+
Repositories can define their own verification profiles and run them locally through Core. Hosted CI/CD is an optional adapter and is disabled by default in this repository’s verification policy. A passing local run is evidence for that run; it does not prove remote branch protection or a hosted admission boundary. Verification, building artifacts, and publication are separate operations.
|
|
142
|
+
|
|
143
|
+
## Research
|
|
144
|
+
|
|
145
|
+
RepoPact is both a usable tool and an ongoing software-engineering research project. The repository contains a [paper draft](research/paper.md), a [formal model](research/formal-model.md), the [adversarial research protocol](research/protocol.md), a separate [comparative benchmark protocol](research/benchmark-protocol.md), the [Proving Ground lab notebook](research/README.md), a [findings register](research/findings.md), and [threats to validity](research/threats-to-validity.md). These materials distinguish hypotheses and registered methods from observed findings; the existence of a protocol or harness is not itself a completed comparative result. Research findings have bounded scope and documented validity threats; they do not establish universal effectiveness.
|
|
146
|
+
|
|
147
|
+
The machine-readable [conformance suite](CONFORMANCE.md) provides version-scoped compatibility cases. Conformance is an implementation contract, not experimental evidence for the research hypotheses.
|
|
148
|
+
|
|
149
|
+
## Documentation
|
|
150
|
+
|
|
151
|
+
- [Adopt RepoPact](docs/adopt-repopact.md) — tutorial for new and existing repositories.
|
|
152
|
+
- [Documentation map](docs/README.md) — guidance for use, concepts, integration, and development.
|
|
153
|
+
- [Concepts](docs/concepts.md) — authority, lifecycle, provenance, evidence, and assurance boundaries.
|
|
154
|
+
- [Repository Orientation Graph](docs/repository-orientation-graph.md) — optional derived index and queries.
|
|
155
|
+
- [Specification](SPEC.md) and [conformance contract](CONFORMANCE.md) — normative model and version compatibility.
|
|
156
|
+
- [Contributing](CONTRIBUTING.md) — development and contribution guidance.
|
|
157
|
+
- [Security policy](SECURITY.md) — how to report a security concern.
|
|
158
|
+
|
|
159
|
+
RepoPact is not an AI agent, model provider, issue tracker, hosted CI service, or operating-system sandbox. It complements Git, test frameworks, coding tools, and external authorization systems by giving them a shared, durable governance layer.
|
|
160
|
+
|
|
161
|
+
## License
|
|
162
|
+
|
|
163
|
+
RepoPact Core is licensed under [Apache-2.0](LICENSE).
|