Skip to content

Persist trusted clock ordering beside the policy grant fence - #402

Merged
kjgbot merged 6 commits into
mainfrom
review/t264-trusted-clock
Dec 1, 2026
Merged

kjgbot merged 6 commits into
mainfrom
review/t264-trusted-clock

Conversation

@agent-relay-code

@agent-relay-code agent-relay-code Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Unmounted T264 source, stacked on #401. Disposable PostgreSQL 15 test passed with synthetic verifier output and a fresh client pool. Focused strict TypeScript check passed. No trusted time source is configured; deployment, restored-cluster continuity and physical commit or HTTP expiry guarantees remain open.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Persists trusted clock ordering beside the policy grant fence in PostgreSQL so surviving process restarts cannot reorder or replay responses.

  • Adds checkClockAtDecision to lock the clock row, challenge an independent verifier, and persist the latest sequence and interval in the same transaction as the decision.
  • Snapshots proof validity bounds and each verified sample before any await, so mid-check mutations cannot widen acceptance.
  • Refuses with a durable quarantine flag on non-advancing sequence or a strictly earlier interval; subsequent requests stay refused until recovery reconciles history.
  • Includes a disposable PostgreSQL fixture and test that reconnects through a fresh pool to check durable history, restart ordering, half-open proof lifetime, and the exact persisted decision count.
  • No route mounts this helper, and no production verifier, source enrollment, or delay bound is supplied; restored-cluster continuity and physical commit or HTTP expiry guarantees remain open.

Written for commit d7ceb27. Summary will update on new commits.

View guided diff Turn on auto-fix

@agent-relay-code agent-relay-code Bot added the merge-train:hold Do not merge until the owner gives the go label Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cb4b2673-55cd-49ad-9d35-5aee94f48662

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Base automatically changed from review/control732-grant-closure-contract to main December 1, 2026 17:49
@kjgbot

kjgbot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Ordered source integration after #401 landed as 07d72323ef0cb68d55dc5d3cff7c05cde22dc889: #402 is now retargeted to main and updated normally, producing d7ceb2714016e09bfa6a5734ce5ea89e247d6cb1 with parents cc05a7f1 and actual main 07d72323.

Root reviewed the complete58-line clock primitive,74-line PG fixture test and documentation: qualified SOURCE PASS for the unmounted decision-time slice. Pinned challenge/authority/epoch/nonce, copied bigint validity/sample values, bounded numeric validation, durable sequence/watermark/quarantine and half-open proof expiry are preserved. Refusals return normally for the caller transaction to commit conservative history. No route or production migration mounts this helper, and #401 does not call it. Physical commit/network expiry, production verifier and restore continuity remain explicit external dependencies.

The candidate’s four source/test/doc blobs exactly equal the reviewed original cc05a7f1 blobs; its range against actual main contains only those four files. No conflict resolution or production behavior was added by the base update. Fresh normal CI is running on the integration head; hold stays until it passes and final feedback is checked. Khaliq’s direct remaining-source merge instruction covers the source landing; no deploy/release or live clock authority action is authorized by this review.

@kjgbot kjgbot removed the merge-train:hold Do not merge until the owner gives the go label Dec 1, 2026
@kjgbot
kjgbot merged commit 6ea77ad into main Dec 1, 2026
6 checks passed
@kjgbot
kjgbot deleted the review/t264-trusted-clock branch December 1, 2026 18: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