fix: surface Graph evidence for site payment outcomes - #139
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
oneshot | a5beee8 | Sep 13 2026, 01:52 PM |
SuPuHe
marked this pull request as ready for review
September 13, 2026 14:00
selezenart
added a commit
that referenced
this pull request
Sep 13, 2026
Resolves one README conflict. PR #139 rewrote the same activity paragraph this branch had edited. Keep develop's description of the automatic per-payer-wallet subgraph query and the per-request audit rows, and fold this branch's note that Graph evidence capture runs as a durable idempotent outbox job with a backfill for settlements that predate it. Both statements describe code on develop: capture_graph_evidence in apps/worker/src/worker.ts and migration 013_backfill_graph_evidence.sql. Re-running scripts/render-nav-panel.mjs against the merged tree produced byte-identical banners, and the merged API routes still match the table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The API now automatically queries The Graph for every durable payer wallet in the workspace, while OneShot persists an audit row for every site payment outcome (approved, failed, rejected, or uncertain). The cabinet surfaces the OneShot state together with transaction hashes and Graph indexing evidence, without treating Graph as settlement authority.
Scope and acceptance criteria
Product and security invariants
Invariant notes:
The Graph remains observation-only candidate evidence. OneShot/Arc state remains authoritative for payment, settlement, retries, and recovery.
NOT_INDEXEDorUNAVAILABLEis explicitly not treated as proof that a payment did not happen.Validation
Commands and results:
Independent review evidence
Gate A — exact candidate tree before push
Base commit SHA:
65200cc2dfcf22912e532a157232e439d623044fCandidate tree SHA:
3fd55ce69b4902da1a359d3c35194822f7058faaCandidate commit SHA (if already committed but unpushed):
a5beee8e303ea27d248e56f437b98830ed6c5099Reviewer tool:
free-pi-cliReviewer model:
deepseek-v4-flashVerdict:
VERDICT: PASS(manual run reported by requester)Findings or residual risks: Graph indexing is event-based; a reverted or otherwise non-emitted transfer cannot become indexed evidence. OneShot/Arc state remains authoritative.
The reviewed tree equals the committed tree.
Gate B — exact remote PR head
Pull request URL/number: pending
Remote head commit SHA: pending
Remote head tree SHA: pending
Reviewer tool:
free-pi-cliReviewer model:
deepseek-v4-flashVerdict: pending
Findings or residual risks: pending
Gate B reviewed the current remote head and matches Gate A's approved tree, or a fresh Gate A was run for the changed tree.
Agent policy / repository-policyand all applicable CI checks pass.Risk and rollback
a5beee8e303ea27d248e56f437b98830ed6c5099; no database schema migration was added.Human merge