Skip to content

[codex] add controlled state lifecycles#22

Merged
nahiyankhan merged 1 commit into
mainfrom
codex/controlled-state-lifecycle
Jun 11, 2026
Merged

[codex] add controlled state lifecycles#22
nahiyankhan merged 1 commit into
mainfrom
codex/controlled-state-lifecycle

Conversation

@nahiyankhan

Copy link
Copy Markdown
Collaborator

Summary

Adds the remaining small controlled-state surfaces on top of prepared approval actions:

  • opt-in controlled action lifecycle state via controlled: true with pending/done/error keys
  • optional resource empty state via stateKeys.empty and isEmpty(data)
  • runtime/validator support so generated surfaces can render merchant-facing pending, error, success, and no-results states from host-owned truth
  • gallery and docs updates showing the intended usage

Validation

  • pnpm --filter @summon-internal/host test
  • pnpm --filter @summon-internal/engine test
  • pnpm --filter @summon-internal/host typecheck
  • pnpm --filter @summon-internal/engine typecheck
  • pnpm --filter @summon-internal/sandbox-runtime typecheck
  • pnpm --filter @summon-example/surface-gallery typecheck
  • pnpm --filter @summon-example/surface-gallery test
  • pnpm --filter @summon-example/surface-gallery test:e2e
  • pnpm --filter @anarchitecture/summon typecheck
  • pnpm check:public-api
  • git diff --check

Notes

Approval actions remain separate: this keeps ApprovalPrepared, ApprovalRequest, ApprovalStateKeys, and ctx.approval.plan as the approval-specific controlled workflow.

@nahiyankhan nahiyankhan marked this pull request as ready for review June 11, 2026 03:10
@nahiyankhan nahiyankhan merged commit 23f7a96 into main Jun 11, 2026
6 checks passed
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