Repository navigation
Phase 0A/0B: enforcement receipt honesty + derived inventory - #7696
Conversation
…nestly. Replace the hand-maintained pending-fn-body-reflection roster with a fold over lens_contract_registry, omit fabricated live receipts for pending contracts, and add witnesses that keep the frontier counted and registry-aligned. Co-authored-by: Cursor <cursoragent@cursor.com>
Stop borrowing Cost's red probe across contracts, omit semantic receipts for unbound contracts while keeping them enumerable, retarget Vacuity witness to refuse at collection ceiling, rename receipt fields to enrollment/discovery vocabulary, and route unbound detection through consumer_enrolled_for per modeling discipline. Co-authored-by: Cursor <cursoragent@cursor.com>
Operator retracted mandate item 4: ^vacuity_consumer_witness_nonexistent_probe_target is the load-bearing known-absent input for the three-legged witness, not a tautology to fix. Co-authored-by: Cursor <cursoragent@cursor.com>
…nce rows. Derives lens inventory from registry/receipts/intents and witness admission inventory from ci_layer_roots witness_exclusion_frontier — no parallel ledger. First specimen: enforcement_live_witness_test.dag shows OfflineLocalRecipe enrolled at offline cadence, excluded from PR floor, with dissolve_on from the frontier row (0A evidence is offline-cadence only). Co-authored-by: Cursor <cursoragent@cursor.com>
…nts. Add witness_exclusion_frontier row for enforcement_inventory_witness_test.dag (OfflineLocalRecipe, same dissolve_on as enforcement_live). Stop fabricating corpus-wide evaluated/unavailable in subject_counts_from_receipt; route offline classification through witness_exclusion_row_is_offline via inventory helper. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed review 47569 (composer-2.5) in 88fd63a: 1. Corpus-denominated inventory witnesses on per-PR discovery — Valid. Added 2. 3. Fast witnesses re-run green ( — sent from vivid-tern-496 |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Replace wildcard matches over closed coproduct params with exhaustive if/else and total match arms so non_fold_residue_no_unrostered_or_stale passes on the PR floor. Co-authored-by: Cursor <cursoragent@cursor.com>
1a02813 to
5d54f52
Compare
The .dag parser rejects single-line else-if; use exhaustive match arms over WitnessConsumerCadence instead, keeping non-fold residue clean. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
red_control_status_for_contractreturnsRedControlPassedonly for Cost; renames enrollment vocabulary (EnrollmentDiscoveryReceipt,EnrolledInFloorRoster, etc.). Fabrication removal is by construction in the production fold; discriminating evidence (only_cost_contract_carries_red_control_probe,unbound_contracts_remain_enumerable) executes at offline cadence only viagunbc.ci_layer_rootswitness_exclusion_frontier— not in required CI.derive_lens_enforcement_inventory) — one row perlens_contract_registryentry, bidirectional reconciliation, support onLensEnforcementApplication(Cost can beSupportHeldon its bound consumer andSupportGaponcomplexity.repo-widesimultaneously), eight-cadence scheduling axis,evaluated_scopetyped absent until Phase 1. Adds witness admission inventory derived fromwitness_exclusion_frontierwithout hand-authored scheduling; first specimen reproducesenforcement_live_witness_test.dagasOfflineLocalRecipeenrolled at offline-recipe cadence,SchedulingExcludedat PR-floor/main-push, with reason anddissolve_onfrom the frontier row.Scope leg and
whole_corpus_scopeconstant untouched (0A note preserved).Self-audit (parallel predicates / dual representations)
lens_contract_is_unbound→consumer_enrolled_for(no parallelConsumerWitnessBindingBool predicate).witness_exclusion_frontierclassification +scheduling_disposition_for_primary_cadence; no second exclusion ledger.LensEnforcementApplication, not per-lens.Test plan
claim_batch --source-root src/v2 --source-root dag --entry src/v2/test/claim/enforcement_inventory_witness_test.dag --functions enforcement_live_witness_exclusion_inventory_matches_frontier,witness_admission_inventory_reconciles_exclusion_frontier— PASS (72ms / 68ms eval)*_livefns; ~27–44s eval each)src/v2/lens/enforcement/gate_test.dag— eleven pre-existing tests green at 0A merge (CI run 30763809668)