Skip to content

provenance: shared prose is fatal, and the flagged comments are authored afresh - #140

Merged
superposition merged 1 commit into
mainfrom
fix/provenance-prose
Sep 11, 2026
Merged

superposition merged 1 commit into
mainfrom
fix/provenance-prose

Conversation

@superposition

Copy link
Copy Markdown
Owner
agent: ProvGate
branch: fix/provenance-prose
commit: 66525107939dae6df0e3a465e6d7aa46a8ddf14a
state: review
next: merge; the gate then runs before every handoff on this repository
blocked_on: none
evidence: python scripts/provenance_check.py -> compared 113 authored file(s) (1 generated skipped); 0 byte-identical, 5 code runs over 20, 0 prose runs over 2, OK

What this tightens

The clean-room gate (D-001) checked only whole-file byte equality. The rewrite's review trail has since shown that the interesting failures are shorter: a paragraph of the reference's prose, kept because it read well, inside an otherwise fresh file. The check now separates the two kinds of overlap:

Class Measure Verdict
Whole file bytes fatal
Shared prose run of identical comment or doc lines, longer than 2 fatal — an interface never forces a sentence
Shared code the longest identical code-line run, and the share of this file's non-trivial lines that also occur in the reference reported — declarations the contract forces (constant tables, enum variants, field lists, manifest keys) legitimately coincide

Generated files (Cargo.lock) are excluded from the run metrics.

What was authored afresh

Running the tightened gate over main flagged these sites; this PR rewrites them:

File Overlap
crates/sync-types/src/cognition.rs three runs of shared doc prose (producer_epoch, the …V1 alias, project_typed_priors_to_l3)
crates/shm/src/lib.rs the ShmRegion section banner
crates/jepa-dataset/src/lib.rs the promotion-gate doc comment
crates/cuda/Cargo.toml the cudarc feature comment

Meaning is unchanged; the wording and the structure are this repository's own.

Verification

  • python scripts/provenance_check.py — 0 byte-identical, 0 prose runs over 2, OK.
  • cargo check -p qualia-sync-types -p qualia-shm -p qualia-jepa-dataset clean (the edits are comments and manifests only).

Part of #66.

@superposition
superposition merged commit 7d4c93b into main Sep 11, 2026
4 of 5 checks passed
@superposition
superposition deleted the fix/provenance-prose branch September 11, 2026 09:12
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