Skip to content

chore(agent): WIP give the agent a run contract instead of the program config (P1) - #1270

Draft
gewenyu99 wants to merge 1 commit into
posthog/split-agent-store-tuifrom
posthog/split-p1-contract
Draft

gewenyu99 wants to merge 1 commit into
posthog/split-agent-store-tuifrom
posthog/split-p1-contract

Conversation

@gewenyu99

Copy link
Copy Markdown
Collaborator

P1 of the agent/store/tui split, stacked on the P0 PR: the agent receives a ProgramRunConfig and never reads program steps.

postAuthGateIds and healthCheckDeclared are computed from the steps by runConfigFor and pinned by the P0 goldens. Run steps name the program they run as data and the runners execute them, so posthog-integration no longer imports runAgent. ProgramRun, AbortCase, PromptContext, the agent signal vocabulary, shouldDisableAsk, claude settings, env isolation, and token pricing move out of src/lib/agent. WizardUI gains interactive so wizard-abort stops checking the renderer class. Seeded boundary violations drop from 72 to 38; every frame, flow trace, keyboard, and analytics golden is unchanged.


Created with PostHog Desktop

…nfig

ProgramRunConfig carries the fields the runner reads plus postAuthGateIds and
healthCheckDeclared, computed by runConfigFor from the steps. Run steps name
the program they run as data; the runners execute them. ProgramRun, AbortCase,
PromptContext, the agent signal vocabulary, shouldDisableAsk, claude settings,
env isolation, and token pricing move out of src/lib/agent. WizardUI gains
`interactive` so wizard-abort no longer checks the renderer class.

Generated-By: PostHog Desktop
Task-Id: d14e92bb-6ee1-49b5-8502-39cb80079589
@gewenyu99 gewenyu99 changed the title WIP chore(agent): give the agent a run contract instead of the program config (P1) chore(agent): WIP give the agent a run contract instead of the program config (P1) Sep 18, 2026
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