docs(#553): add ADR 0076 for slash command entity-context separation - #5685
Conversation
Record the design decision that /fs-code triggers only from issue contexts and /fs-fix and /fs-review trigger only from PR contexts. Each agent consumes inputs specific to its entity context — running in the wrong context is a category error. The ADR documents the current GitHub Actions enforcement (ISSUE_HAS_PR guards), notes the Go router gap, and identifies CEL trigger expressions (ADR 0061) as the target enforcement mechanism. Updates docs/architecture.md to reference the new ADR under the Slash-command parser + ACL building block. Closes #553
|
🤖 Finished Review · ✅ Success · Started 5:04 PM UTC · Completed 5:17 PM UTC |
Site previewPreview: https://678aac16-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ReviewFindingsMedium
Low
Previous runReviewFindingsLow
Previous run (2)ReviewFindingsLow
Previous run (3)ReviewFindingsLow
Labels: PR adds an ADR documenting slash command dispatch entity-context separation |
Replace the inaccurate reusable-dispatch.yml parenthetical with the scaffold dispatch.yml path where ISSUE_HAS_PR guards actually live. Signed-off-by: Adam Scerra <ascerra@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed the open review finding and re-checked ADR numbering:
|
|
🤖 Review · |
Bring ADR 0076 branch up to date with main.
|
🤖 Review · |
|
🤖 Finished Review · ✅ Success · Started 8:34 PM UTC · Completed 8:47 PM UTC |
Use !has(event.entity.linked_change_proposal) instead of state.change_proposal absence, which is not a reliable proxy. Signed-off-by: Adam Scerra <ascerra@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 Finished Review · ✅ Success · Started 10:26 PM UTC · Completed 10:40 PM UTC |
|
🤖 Finished Review · ✅ Success · Started 11:20 AM UTC · Completed 11:38 AM UTC |
|
🤖 Finished Retro · ✅ Success · Started 7:28 PM UTC · Completed 7:48 PM UTC |
Retro: PR #5685 — ADR 0076 slash command entity-context separationTimeline
What went well
Evidence for existing open issuesReview severity undergrading for docs factual inaccuracies (evidence for #5030): Both genuine findings (wrong file path, wrong CEL field) were graded [low] when they were factual inaccuracies in a normative ADR — the agent's own definition says APPROVED verdict with medium finding (evidence for #1453): The final review found a [medium] Code agent didn't verify file references in generated ADR (evidence for fullsend-ai/agents#461 and fullsend-ai/agents#387): The code agent referenced Inline finding dedup across re-reviews (evidence for #5007): The inconsistent-terminology finding appeared in Reviews 1–4 but shifted target and framing each round (from Overall assessmentThe workflow delivered a good outcome: a well-written ADR with factual corrections made before merge. The review agent's detection capability was strong — it caught errors the code agent introduced. The primary gap is severity calibration: both actionable findings were undergraded, and the verdict never escalated despite the agent's own rules requiring it. All improvement areas are well-tracked by existing open issues. |
Summary
Adds ADR 0076 formalizing the slash command entity-context separation:
/fs-codedispatches only from issue contexts,/fs-fixand/fs-reviewdispatch only from PR contexts. This records the design decision implemented in #533, documenting the rationale (each agent consumes context-specific inputs), the current enforcement mechanism (ISSUE_HAS_PR guards in dispatch routing), and the target state (CEL trigger expressions per ADR 0061).Changes
docs/ADRs/0076-slash-command-entity-context-separation.md— Accepted ADR covering the entity-context constraint, a per-command allowed-context table, and the three enforcement layers (GitHub Actions, Go router, CEL triggers)docs/architecture.md— Added entity-context separation reference under the Slash-command parser + ACL building block (§2)Testing
make lint-md-linkspasses — all markdown links resolveChecklist
!for breaking changes)Closes #553
Post-script verification
agent/553-adr-slash-command-context)b4fd4ae8b290e94e2a8c22918621146e28e92182..HEAD)