Skip to content

feat: curator agent for /dewey-distill with enforced human gates #152

Closed

Description

@jflowers

Part of #153. Depends on #145 (which introduces /dewey-distill). Pairs with jflowers/opencode-supervisor#48 (per-agent overrides) and jflowers/opencode-auto-question#1 (human-gate marker).

Summary

Ship a dedicated curator agent for knowledge work and bind /dewey-distill to it, so curation never requires loosening supervisor guards in a repo's committed config — and so its human gates can't be auto-answered.

Proposal

  1. Agent definition with knowledge-store-only permissions: edits limited to .uf/dewey/**; no git commit / push; no source or test edits.
  2. Command binding: /dewey-distill declares agent: curator in frontmatter (the pattern UF commands already use, e.g. gaze.md → agent: gaze-reporter). Normal development sessions never run under it.
    • To verify: that command agent: frontmatter switches the agent even when the session is on another agent.
  3. Human gates are enforced: /dewey-distill's scope and review questions must be answered by a human. At startup the command refuses to run if the session agent is configured for automatic question answering (e.g. opencode-auto-question's agents list). Questions carry a human-gate marker that auto-answer plugins honor.
  4. Dewey ships the agent definition; any guard relaxation for it is granted from the user's global supervisor config, never from the repo.

Why

Corpus-scale curation trips the supervisor's reward-hacking and path-trace guards (it quotes --no-verify, names hundreds of paths). The workaround used so far — committing blockRewardHacking: false and requireStepReferenceInTools: false to project config — is unsafe if copied into a development repo. A narrow-permission agent makes narrowed guards safe; the guard-side changes are tracked in opencode-supervisor.

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions