keria: the steward's agent publishes its URL — an env-configured KERIA stored no /loc/scheme, so every agent-to-agent exn went nowhere (GOTCHAS #347) #1883

Merged
ben merged 1 commit from agent/keria-agent-loc into main 2026-09-25 16:01:51 +00:00
Owner

Live on whakatohea-demo (2026-09-25), a member's registration never reached the steward. The applicant's agent POSTed the exn (202), but nothing was ever sent on. Its database had the founder's agent end role and no loc for that agent. No /oobi/… reply from this KERIA carries a /loc/scheme.

Cause: IDSS configures KERIA by environment variable (KERIA_CURLS). KERIA's Agency._loadConfigForAgent writes agent-<caid>: {"curls": [...]} with no dt, and keripy's Hab.reconfigure only applies curls under if "dt" in conf. It also runs only when a hab is created, never on reload. KERIA's poster has no witness fallback when a recipient's agent end role has no loc, so it logs an error and drops the message.

Fix, in idss_patches.py:

  • Wrap _loadConfigForAgent so each agent section carries a dt. New agents then record their loc when created.
  • Repair existing agents on Agent.__init__: if the agent hab's loc is missing or differs from its curls, add it once. The repair is idempotent and follows an apex change.
  • Each repair logs idss-keria-patches: agent <pre> loc scheme set <url>.

Evidence:

  • 13 pytest cases against real keria 0.4.0 + keripy 1.2.13:
    • red upstream;
    • a new agent's OOBI carries /loc/scheme;
    • repair on reload, idempotent, following an apex move;
    • two agents end to end: the applicant's StreamPoster targets the founder agent's URL, and without the fix it sends nothing.
  • The new tests fail when the wrappers are disabled.
  • go test ./internal/clan/ passes.

With #1881, the release lane re-renders keri-stack.nix, so this reaches a standing community with no hand step. After rollout, the applicant re-registers; the app re-resolves the steward's OOBI on each submission.

🤖 Generated with Claude Code

Live on whakatohea-demo (2026-09-25), a member's registration never reached the steward. The applicant's agent POSTed the exn (202), but nothing was ever sent on. Its database had the founder's `agent` end role and **no loc for that agent**. No `/oobi/…` reply from this KERIA carries a `/loc/scheme`. **Cause:** IDSS configures KERIA by environment variable (`KERIA_CURLS`). KERIA's `Agency._loadConfigForAgent` writes `agent-<caid>: {"curls": [...]}` with no `dt`, and keripy's `Hab.reconfigure` only applies curls under `if "dt" in conf`. It also runs only when a hab is created, never on reload. KERIA's poster has no witness fallback when a recipient's agent end role has no loc, so it logs an error and drops the message. **Fix,** in `idss_patches.py`: - Wrap `_loadConfigForAgent` so each agent section carries a `dt`. New agents then record their loc when created. - Repair existing agents on `Agent.__init__`: if the agent hab's loc is missing or differs from its curls, add it once. The repair is idempotent and follows an apex change. - Each repair logs `idss-keria-patches: agent <pre> loc scheme set <url>`. **Evidence:** - 13 pytest cases against real keria 0.4.0 + keripy 1.2.13: - red upstream; - a new agent's OOBI carries `/loc/scheme`; - repair on reload, idempotent, following an apex move; - two agents end to end: the applicant's `StreamPoster` targets the founder agent's URL, and without the fix it sends nothing. - The new tests fail when the wrappers are disabled. - `go test ./internal/clan/` passes. With #1881, the release lane re-renders `keri-stack.nix`, so this reaches a standing community with no hand step. After rollout, the applicant re-registers; the app re-resolves the steward's OOBI on each submission. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
keria: the steward's agent publishes its URL — an env-configured KERIA stored no /loc/scheme, so every agent-to-agent exn (the registration) went nowhere (GOTCHAS #347)
All checks were successful
ci / seam (pull_request) Successful in 10m37s
ci / publish-broker (pull_request) Has been skipped
ci / publish (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
08b4989227
IDSS configures KERIA by env only (KERIA_CURLS). keria 0.4.0's
Agency._loadConfigForAgent then builds the agent hab section with no dt,
and keripy 1.2.13's Hab.reconfigure applies curls only when it has one,
so no agent ever published a URL. The applicant's poster found the
founder's agent end role with empty locs and dropped the exn, with no
witness-mailbox fallback. Diagnosed live on whakatohea-demo.

idss_patches.py now gives the section a dt (new agents) and, on every
Agent.__init__, stores the configured URL for an agent that lacks it or
holds another (existing agents, an apex move). Idempotent, logged once
per repair. test_idss_patches.py proves the red, the new-agent OOBI, the
reload repair plus the unchanged second restart, and two agents in one
KERIA where the applicant's exn poster targets the founder agent's URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben merged commit 9890d3116e into main 2026-09-25 16:01:51 +00:00
ben deleted branch agent/keria-agent-loc 2026-09-25 16:01:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss!1883
No description provided.