Skip to content

feat(ledger): list_event_handlers, with approval state - #275

Merged
jfrench9 merged 1 commit into
mainfrom
feature/event-handlers-read
Oct 22, 2026
Merged

jfrench9 merged 1 commit into
mainfrom
feature/event-handlers-read

Conversation

@jfrench9

Copy link
Copy Markdown
Member

Summary

list_event_handlers: the read roboledger-app's event-handler screen needs — every handler on the graph, highest priority first, with awaiting_approval for an AI client's suggestion that a person has not approved. Regenerated against the local stack on robosystems feature/event-handler-approval-gate (robosystems #1918); the eventHandlers field waits on the robosystems release that carries it.

Changes

  • Facade (clients/ledger_client.py): list_event_handlers(graph_id, event_type=None, is_active=None, awaiting_approval=None, limit=100, offset=0) → the typed page.
  • Query documents graphql/operations/ledger/ListLedgerEventHandlers.graphql and its ariadne-codegen models; the schema snapshot refreshed.
  • Generated models: EventHandlerResponse gains awaiting_approval. The regen also removes the generated types of the rollforward Information Block arm that robosystems #1915 removed (CreateRollforwardArm / UpdateRollforwardArm / DeleteRollforwardArm, their requests, AttributionFilter, LineItemMetadataPredicate, RollforwardMechanics) — dead surface: the arm never produced a fact, nothing in the apps or the integration template referenced them, and removal changes symbol resolution only. The information-block facades named the arm in their body type; they now name the forecast arm, which the server accepted all along.

Compatibility

ADDITIVE for the facade (one new method); the information-block body types swap the dead rollforward arm for the forecast arm. Generated tier: the rollforward types above are removed, which rides this client minor per the SDK contract's dead-surface rule.

Testing

ruff check, ruff format --check, basedpyright, pytest (720 passed, 17 skipped). just refresh-schema, just generate-graphql and bin/generate-sdk.sh ran against the local stack serving the robosystems branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VPxBBHkqhwkZ6Eq8EXSBR6

The read the app's event-handler screen needs: every handler on the graph,
highest priority first, with awaiting_approval for an AI client's
suggestion that a person has not approved (robosystems #1918). The regen
also drops the removed rollforward block arm's generated models
(robosystems #1915); the information-block facades now type their bodies
with the forecast arm in its place.

Claude-Session: https://claude.ai/code/session_01VPxBBHkqhwkZ6Eq8EXSBR6
@jfrench9
jfrench9 merged commit f4e8c7a into main Oct 22, 2026
6 checks passed
@jfrench9
jfrench9 deleted the feature/event-handlers-read branch October 22, 2026 01:19
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