AT-2: Swap cfg.types[t] consumers to getAgentType() #744
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#744
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bundle directive
This story ships in one PR with #751 (SVC-2) — both swap consumers in
webhook-config.tsand would conflict heavily as separate PRs. The PR closes both (Closes #744 #751).As a platform engineer, I want every runtime read of
cfg.types[t]inapps/server/srcto move togetAgentType(t), so that operator overrides on per-type fields (system prompt, model, identity, routing) take effect without a service restart and without re-readingagents.jsonat runtime.Acceptance criteria
Removal
apps/server/srcshows zero non-builtin-sync.ts/ non-test consumers ofcfg.types[…].mergeAgent()inwebhook-config.tsreads exclusively fromgetAgentType()— nocfg.types[t]access remains.Hot fields covered
git_author,git_email,git_name,branch_prefix,forgejo_user,role.dispatchable.default_assignee,escalation_target,max_escalations_per_day,routes_labels,default_match_labels,reviews_authors,reviews_labels.label_rules,assignee_rules,example_prompts.penpot_mcp.Container fields placeholder
container.enabled,credentials_host_dir,image,env,lifecycle,idle_stop_seconds) are read through the joined container row exposed bygetAgentType(). Behaviour swap of the actual reconcile path lives in AT-3; AT-2 only removes thecfgread.Tests
scope='global'override ondev.git_authorflips the value used by the next dispatch without a restart.Out of scope
References
specs/config-to-db.md§ Story AT-2.webhook-config.ts; ship together to avoid merge conflicts on the same file.