Skip to content

verify: B27 slim verdict runs after a full-verdict drift (scratch) - #610

Closed
DrunkOnJava wants to merge 3 commits into
mainfrom
verify/b27-drift
Closed

DrunkOnJava wants to merge 3 commits into
mainfrom
verify/b27-drift

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch PR: B27's CI change plus a deliberate drift in the committed full observation. Expected: the full verdict fails with REPLAY_DRIFT and the slim verdict still runs and passes. Closed once recorded.


Note

Low Risk
Workflow conditioning and a scratch witness drift for CI validation; no production code paths change.

Overview
CI (B27): The full OctetProof verdict step is now witness_full. The slim full-project export verdict runs whenever that step finished (success or failure), not only on success, so a drift on the full edge still produces fresh slim observations in the same run while the job fails if either verdict fails.

Scratch fixture: research/witness/.../rvt-rs.json deliberately changes IFCPROJECT from 1→2 to force full-verdict REPLAY_DRIFT and validate the new slim-step behavior (per PR description, not meant to merge as-is).

Reviewed by Cursor Bugbot for commit 2ccf8a5. Configure here.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Drift misses replay hash field
    • Updated observation_hash_sha256 to the canonical hash of the drifted observation payload so replay detects REPLAY_DRIFT against the fresh IFCPROJECT=1 run.

Create PR

Or push these changes by commenting:

@cursor push 29d0fd30b2
Preview (29d0fd30b2)
diff --git a/research/witness/magnetar-2024-core-interior/observations/rvt-rs.json b/research/witness/magnetar-2024-core-interior/observations/rvt-rs.json
--- a/research/witness/magnetar-2024-core-interior/observations/rvt-rs.json
+++ b/research/witness/magnetar-2024-core-interior/observations/rvt-rs.json
@@ -698,7 +698,7 @@
       ]
     }
   },
-  "observation_hash_sha256": "4404902df6e4f6a09112a9cdc9f7bcaea6de36561d597e16c9382a88c47a4ff7",
+  "observation_hash_sha256": "c911547ae1eb40cdd164eb438893b23366536a015ce7a6db2048c8f06b4cc905",
   "schema_version": "1.1.0",
   "semantic_surface_covered": [
     "entity_counts",

You can send follow-ups to the cloud agent here.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 2ccf8a5. Configure here.

"IFCPRESENTATIONSTYLEASSIGNMENT": 86,
"IFCPRODUCTDEFINITIONSHAPE": 1170,
"IFCPROJECT": 1,
"IFCPROJECT": 2,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drift misses replay hash field

Medium Severity

The scratch drift only changes entity_counts.IFCPROJECT in the committed full observation. Replay compares the fresh payload hash to observation_hash_sha256, which is unchanged, so the full verdict still PASSes instead of REPLAY_DRIFT. B27’s new slim-after-failure path is never exercised.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2ccf8a5. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Recorded: run 37144054315. With B27's change and one extra set per storey, the full verdict failed (REPLAY_DRIFT) and the slim verdict still ran; the published artifact holds both fresh rvt-rs observations, each with IFCPROPERTYSET 2963 (2948 + 15). Before B27, #603's first run (37140112338) skipped the slim step after the full one drifted.

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the verify/b27-drift branch October 3, 2026 18:30
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
The slim (full-project) OctetProof step ran only when every step before
it passed, so a change that moves rvt-rs's observation showed the slim
drift one push after the full one, and regenerating the witness took two
CI rounds (#603: run 37140112338 skipped the slim step).

The full verdict step gets `id: witness_full`, and the slim step runs
`if: !cancelled() && (steps.witness_full.outcome == 'success' ||
steps.witness_full.outcome == 'failure')`. The job still fails if either
verdict fails.

Verified on scratch draft #610 (run 37144054315): with one extra
property set per storey injected, the full verdict failed with
REPLAY_DRIFT, the slim verdict ran, and the published artifact held both
fresh observations (IFCPROPERTYSET 2963 in each).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> CI workflow step ordering and conditions only; no product code or
witness logic changes.
> 
> **Overview**
> The **slim** OctetProof verdict step no longer depends on the full
verdict passing—only on the full step having **finished** (success or
failure, unless the job was cancelled).
> 
> The full verdict step is tagged with **`id: witness_full`**, and the
slim step uses a conditional so it still runs when the full verdict
fails (e.g. `REPLAY_DRIFT`). That way a single CI run can publish
**both** fresh observation sets in the `octetproof-core-interior`
artifact (B27), instead of skipping slim and forcing a second push to
see slim drift. **Job failure semantics are unchanged**: either verdict
failing still fails the job.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
6885393. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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