What happened
On PR #5868, the review agent's correctness subagent (run 30845101251) investigated the glossary's env/runner_env merge semantics claim. It grepped Go source code, found the EnvConfig struct definition, and read a code comment stating Replaces runner_env (ADR 0055). Despite seeing this ADR reference, the subagent never read ADR 0055. It recognized that env is a struct (not a flat map) but concluded the glossary description was 'close enough' and filed no finding. The human reviewer (waynesun09) subsequently identified the same structural inaccuracy, plus the missing deprecation note and missing ADR 0055 citation — adding a third commit to the PR that could have been avoided.
What could go better
The correctness subagent's current guidance (in sub-agents/correctness.md) includes cross-file verification ('MUST read that file before asserting what it contains') and technical docs surface area rules, but neither instructs the agent to follow ADR references it discovers in code comments during its own investigation. The existing guidance in the orchestrator (skills/pr-review/SKILL.md) has the correctness subagent check 'design document alignment — if the plan references a design document or ADR, are the claims consistent with the referenced source,' but this is scoped to ADRs referenced by the plan/PR, not ADRs discovered in code during investigation.
This is a distinct gap from existing issues: #3007 covers ADRs cited in PR descriptions; #269 covers plan/spec documents linked from PR descriptions; #1568 covers superseded ADRs in ADR files. None cover the pattern where the agent discovers an ADR reference in source code during its own investigation and should follow it.
Confidence: High. The transcript shows the agent saw 'ADR 0055' in the code comment and did not read it. Reading it would have provided unambiguous evidence of the deprecation and struct semantics.
Proposed change
Add guidance to sub-agents/correctness.md in the fullsend-ai/agents repo, in the 'Technical documentation with correctness surface area' section or as a new 'Reference discovery during investigation' section:
-
Follow discovered ADR/doc references: When you read source code or configuration during investigation and encounter a reference to an ADR, design doc, or spec (e.g., a code comment like // See ADR-0055 or // Replaces X (ADR-NNNN)), read the referenced document before finalizing your assessment. ADR references discovered in code are as important as those cited in the PR — they often contain deprecation notices, precise semantics, or constraints that the PR text omits.
-
Do not dismiss structural inaccuracies in reference documentation: When reviewing documentation whose purpose is to describe technical semantics (glossary entries, architecture docs, API reference), report discrepancies between the documentation and verified code/ADR behavior as findings rather than rationalizing them as 'close enough.' A glossary entry that says 'env merges as a map' when env is actually a struct with independent sub-maps is a medium-severity accuracy finding, not a tolerable simplification.
Validation criteria
On the next 3 docs PRs in fullsend-ai/fullsend that describe technical merge/composition/configuration semantics, the correctness subagent should: (1) follow any ADR references it discovers in code during investigation (observable in the transcript as Read tool calls to ADR files discovered during grep/code-reading, not just ADRs cited in the PR), and (2) report structural inaccuracies in reference documentation rather than dismissing them. Success means no human reviewer needs to catch an accuracy issue that the agent saw evidence for but dismissed.
Generated by retro agent from fullsend-ai/fullsend#5868
What happened
On PR #5868, the review agent's correctness subagent (run 30845101251) investigated the glossary's
env/runner_envmerge semantics claim. It grepped Go source code, found theEnvConfigstruct definition, and read a code comment statingReplaces runner_env (ADR 0055). Despite seeing this ADR reference, the subagent never read ADR 0055. It recognized thatenvis a struct (not a flat map) but concluded the glossary description was 'close enough' and filed no finding. The human reviewer (waynesun09) subsequently identified the same structural inaccuracy, plus the missing deprecation note and missing ADR 0055 citation — adding a third commit to the PR that could have been avoided.What could go better
The correctness subagent's current guidance (in
sub-agents/correctness.md) includes cross-file verification ('MUST read that file before asserting what it contains') and technical docs surface area rules, but neither instructs the agent to follow ADR references it discovers in code comments during its own investigation. The existing guidance in the orchestrator (skills/pr-review/SKILL.md) has the correctness subagent check 'design document alignment — if the plan references a design document or ADR, are the claims consistent with the referenced source,' but this is scoped to ADRs referenced by the plan/PR, not ADRs discovered in code during investigation.This is a distinct gap from existing issues: #3007 covers ADRs cited in PR descriptions; #269 covers plan/spec documents linked from PR descriptions; #1568 covers superseded ADRs in ADR files. None cover the pattern where the agent discovers an ADR reference in source code during its own investigation and should follow it.
Confidence: High. The transcript shows the agent saw 'ADR 0055' in the code comment and did not read it. Reading it would have provided unambiguous evidence of the deprecation and struct semantics.
Proposed change
Add guidance to
sub-agents/correctness.mdin thefullsend-ai/agentsrepo, in the 'Technical documentation with correctness surface area' section or as a new 'Reference discovery during investigation' section:Follow discovered ADR/doc references: When you read source code or configuration during investigation and encounter a reference to an ADR, design doc, or spec (e.g., a code comment like
// See ADR-0055or// Replaces X (ADR-NNNN)), read the referenced document before finalizing your assessment. ADR references discovered in code are as important as those cited in the PR — they often contain deprecation notices, precise semantics, or constraints that the PR text omits.Do not dismiss structural inaccuracies in reference documentation: When reviewing documentation whose purpose is to describe technical semantics (glossary entries, architecture docs, API reference), report discrepancies between the documentation and verified code/ADR behavior as findings rather than rationalizing them as 'close enough.' A glossary entry that says 'env merges as a map' when
envis actually a struct with independent sub-maps is a medium-severity accuracy finding, not a tolerable simplification.Validation criteria
On the next 3 docs PRs in fullsend-ai/fullsend that describe technical merge/composition/configuration semantics, the correctness subagent should: (1) follow any ADR references it discovers in code during investigation (observable in the transcript as Read tool calls to ADR files discovered during grep/code-reading, not just ADRs cited in the PR), and (2) report structural inaccuracies in reference documentation rather than dismissing them. Success means no human reviewer needs to catch an accuracy issue that the agent saw evidence for but dismissed.
Generated by retro agent from fullsend-ai/fullsend#5868