fix: route PM briefs through fjx prompt commands #13
No reviewers
Labels
No labels
agent
build
agent
dev
agent
new
agent
release
agent
review
agent
test
agent
working
priority
high
priority
low
priority
medium
risk
high
risk
low
risk
medium
type
bug
type
chore
type
feature
type
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tfks/fjx!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pm-prompt-refs"
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?
Summary
Closes #7.
The PM was emitting briefs pointing working agents at
wiki/workflow/prompts/<file>.md, but those files were moved into the CLI as bundled prompts accessed viafjx <role> prompt <name>. Briefs now point at the CLI command directly.src/pm/render.ts:PHASE_PROMPTnow maps phase → prompt name.renderBriefemitsRun `fjx <role> prompt <name>` for the cycle protocol.Justfile:agent-dev/agent-testloops invokefjx <role> prompt bootstrap | codex exec -instead ofcodex exec - < wiki/workflow/prompts/<role>-bootstrap.md.src/prompts/pm.md: brief-context guidance now points atfjx <role> prompt <name>; wiki section drops the deadwiki/workflow/fjx.mdref in favour offjx wiki --help.src/prompts/usage.md: example brief updated.src/commands/pm.ts: comment now points atsrc/prompts/pm.md(the in-CLI source) instead ofwiki/workflow/prompts/pm.md.Out of scope (follow-up)
Audit found a much larger set of
wiki/workflow/*references in prose docs (src/doc/,openspec/specs/,AGENTS.md,wiki/findings/2-better-agent-bootstrap.md) pointing atPR.md,ISSUE.md,README.md,SCENARIOS.md,fjx.md,agent-bootstrap.md,prompts/pm.md. Those files no longer exist; the live equivalents are insrc/doc/. Surfaced as a follow-up issue rather than fixed here — the migration is non-trivial and unrelated to PM brief emission.Test plan
just check(format, lint, types) passes.deno test -A src/— 85 passed, 0 failed. (Note:just validatepicks up a stale sibling worktree under.claude/worktrees/fjx-8that contains old test fixtures; that worktree is unrelated to this branch.)fjx dev prompt applyetc. are the intended verb form for briefs.The wiki/workflow/ tree no longer exists; canonical homes are: - wiki/workflow/ISSUE.md -> src/doc/forgejo/issue.md - wiki/workflow/PR.md -> src/doc/forgejo/pr.md - wiki/workflow/README.md -> src/doc/index.md - wiki/workflow/SCENARIOS.md -> src/doc/scenarios.md - wiki/workflow/prompts/pm.md -> src/prompts/pm.md - wiki/workflow/prompts/dev-* -> `fjx dev prompt <name>` - wiki/workflow/fjx.md -> `fjx --help` / `fjx wiki --help` Touched: AGENTS.md, openspec/specs/{fjx-core,fjx-workflows}/spec.md, src/doc/{index,scenarios}.md, src/doc/forgejo/{issue,pr}.md, src/doc/roles/pm.md. The two remaining refs in wiki/findings/2-better-agent-bootstrap.md are forward-looking proposals for a doc that never existed; leaving the finding intact as a historical record of that investigation.Implemented the "Out of scope" follow-up in this same PR (commit
docs: migrate wiki/workflow/* refs to src/doc/* and fjx help):wiki/workflow/ISSUE.md→src/doc/forgejo/issue.mdwiki/workflow/PR.md→src/doc/forgejo/pr.mdwiki/workflow/README.md→src/doc/index.mdwiki/workflow/SCENARIOS.md→src/doc/scenarios.mdwiki/workflow/prompts/pm.md→src/prompts/pm.mdwiki/workflow/prompts/dev-*→fjx dev prompt <name>wiki/workflow/fjx.md→fjx --help/fjx wiki --helpTouched:
AGENTS.md,openspec/specs/{fjx-core,fjx-workflows}/spec.md,src/doc/{index,scenarios}.md,src/doc/forgejo/{issue,pr}.md,src/doc/roles/pm.md.rg wiki/workflowis now clean except for two refs inwiki/findings/2-better-agent-bootstrap.md— those are forward-looking proposals for a doc that never existed; leaving the finding intact as a historical record.