Context Passport (Identity Lock) had no Dockerfile and no deploy
scaffolding at all, unlike Vend/Toolgate. Added a standalone distroless
Dockerfile + Dockerfile.dockerignore: like apps/turnstile, this workspace
path-depends on apps/mint/crates/mint-protocol (and its siblings
mint-core/mint-store/mint-receipts/mint-ledger) outside its own workspace,
so the build context is the repo root, trimmed to exactly those crates.
Deployed it on railyard-box wired to the real, already-live Mint (via
well-known key discovery, confirmed in the boot log) and a real minted
Relay key, and ran the full core loop against the deployed container:
create -> lock -> resolve -> generate.
Found and fixed a real bug this way: passport-relay-client sent
X-API-Key to Relay's /v1/passport/generate, but Relay only accepts
Authorization: Bearer there -- every real call failed 401 before this
fix, invisible to every existing test because they all exercise
build_inference_request/payment_evidence directly, never the real
reqwest call ("tests fake the sink via FakeRelay"). Fixed the header and
added a real regression test with a genuine local axum server (no
fakes) asserting the actual outbound header through a real generate()
call. Full workspace suite: 59/59 (was 58/58). Clippy clean.
After the fix, generate genuinely reaches Relay and runs a real
inference (confirmed with provider:"groq", Relay's live funded default),
then correctly fails closed on a missing AITP-Receipt -- Relay's own
billing is globally off in this environment, the same funding-wall
boundary every other Railyard sub-app hit this session, not a bug here.
This app's own design intent is to never fabricate settlement evidence,
and it doesn't.
Full detail in apps/context-passport/README.md's new "Deployed" section.
20 lines
577 B
TOML
20 lines
577 B
TOML
[package]
|
|
name = "passport-relay-client"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "Real reqwest client implementing RelayConditioningSink: submits resolved conditioning to the Relay gateway for generation."
|
|
|
|
[dependencies]
|
|
passport-core = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
mint-protocol = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
hex = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true }
|
|
axum = { workspace = true }
|