Repository navigation
Run Tier 3 trace-forward against a live stub Pancake, nothing patched - #21
Open
sumerjohal wants to merge 1 commit into
Open
sumerjohal wants to merge 1 commit into
sumerjohal wants to merge 1 commit into
Conversation
…atched Every Tier 3 test patched _resolve_holders and _append_to_meal_chain, so the two HTTP calls that make Tier 3 what it is -- the ledger write to Pancake and the holder lookup from Pancake -- had never been exercised (review ledger AG-016). A stub Pancake now listens on a real socket, implements /audit/events and /fieldlists/holders, checks the headers Pancake checks, and records every request. AR2 is pointed at it through PANCAKE_URL. No function in app/ is replaced. Shown: the ledger packet leaves the process over HTTP with the shared secret and the credential jti; the holder request carries the authority credential and names the matched lots, and its answer is wired into the response; the ledger write precedes holder resolution; an unreachable ledger refuses with 503 and asks for no holders; a holder service that refuses is a 502 after the ledger entry; Tier 1 touches Pancake for nothing, which is the control that attributes the traffic above to Tier 3. The grant minter is added as app/tests/testkit/grants.py, byte-identical to the copy in #19, so the two merge cleanly in either order. stomata run: 12/12. Suite: 177 passed, 1 xfailed (was 172). Lint: 36, unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
sumerjohal
added a commit
that referenced
this pull request
Oct 11, 2026
…popping it Other modules install theirs at import time; popping left later modules running against the real dependency. Surfaced by the same pattern in #21. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
What
Every Tier 3 trace-forward test patched
_resolve_holdersand_append_to_meal_chain, so the two HTTP calls that make Tier 3 what it is, the ledger write to Pancake and the holder lookup from Pancake, had never been exercised in this repository (review ledger AG-016: "the identity tier has never been run end to end").Change
app/tests/test_tier3_live_pancake.py. A stub Pancake listens on a real socket (http.server, ephemeral port), implementsPOST /audit/eventsandPOST /fieldlists/holders, checks the headers Pancake checks, and records every request. AR2 is pointed at it throughPANCAKE_URL. No function inapp/is replaced.Five tests:
..._runs_end_to_end_against_a_live_ledger_and_holder_servicematches; the ledger write comes first..._holder_the_service_does_not_know_is_reported_unresolved..._unreachable_ledger_refuses_the_disclosure_before_asking_for_holders..._holder_service_that_refuses_is_a_502_after_the_ledger_entrytest_tier1_touches_pancake_for_nothingapp/tests/testkit/grants.pyis added byte-identical to the copy in #19, so the two merge cleanly in either order.harness/bin/stomata run: 12/12. Suite 177 passed, 1 xfailed (was 172). Lint 36, unchanged.No production code changes. Review finding A3, 2026-10-08.