Skip to content

Conversation

@movito
Copy link
Owner

@movito movito commented Jan 28, 2026

Summary

Introduces a comprehensive quality framework for agents that produce research, analysis, or knowledge documents. This ensures research outputs are factually accurate, well-sourced, and defensible.

The Four Quality Gates

Gate Purpose Key Actions
Citation Integrity Traceable sources Test URLs, mark status (✅⚠️❌)
Factual Accuracy Verified claims Confidence levels, verification hierarchy
Reproducibility Verifiable methodology Search methodology appendix
External Validation Adversarial review adversarial evaluate for high-stakes docs

New Files

.agent-context/workflows/RESEARCH-QUALITY-STANDARDS.md

  • Complete workflow document with all four gates
  • Document lifecycle (Draft → Review → Final)
  • Working Process section template
  • Pre-completion checklist

docs/decisions/starter-kit-adr/KIT-ADR-0020-research-quality-coupling-strategy.md

  • Documents decision to keep tight coupling to adversarial-workflow CLI
  • Trade-off analysis (agent effectiveness vs maintenance)
  • Coupling manifest template
  • Future refactoring path

Template Changes

.claude/agents/AGENT-TEMPLATE.md

  • Added "Research Quality Standards" section (optional, for knowledge agents)
  • Added "File Location Standards" section
  • Version: 1.1.0 → 1.3.0

Usage

For knowledge-focused agents (researchers, analysts, specialists):

  1. Keep the Research Quality Standards section from template
  2. Follow Four Quality Gates for all research output
  3. Use adversarial evaluate for Gate 4

For implementation-focused agents (developers, testers):

  1. Delete the Research Quality Standards section
  2. Keep File Location Standards

Coupling Decision (KIT-ADR-0020)

We chose tight coupling (inline CLI commands in agents) over loose coupling (reference-only) because:

  • Agents need explicit, actionable commands to reliably execute
  • adversarial-workflow CLI is stable
  • Coupling is documented for future refactoring if needed

Test Plan

  • Workflow document created with all four gates
  • ADR documents coupling decision with manifest template
  • Template updated with optional section
  • Create a knowledge agent using template

🤖 Generated with Claude Code

@coderabbitai
Copy link

coderabbitai bot commented Jan 28, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Added comprehensive Research Quality Standards with four quality gates (Citation Integrity, Factual Accuracy, Reproducibility, External Validation), checklists, templates, and lifecycle guidance
    • Updated agent template metadata to the new template version and incorporated mandatory file-location and quick-check standards
    • Added an architectural decision record describing the coupling strategy for research quality integration and maintenance practices

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

Adds formal Research Quality Standards documentation, updates an agent template with the new standards and a template version bump, and introduces an ADR establishing a coupling strategy between agent definitions, the Research Quality workflow, and the adversarial-workflow CLI.

Changes

Cohort / File(s) Summary
Research Quality Standards
\.agent-context/workflows/RESEARCH-QUALITY-STANDARDS.md
New file defining Four Quality Gates (Citation Integrity, Factual Accuracy, Reproducibility, External Validation), verification steps, handling guidance, Iteration Protocol, Document Lifecycle with checklists, Working Process template, Quick Reference, and Version History.
Agent Template Updates
\.claude/agents/AGENT-TEMPLATE.md
Inserted Research Quality Standards section (appears as duplicated insertion in diff), updated template metadata (Template Version → 1.3.0), and adjusted file-location/standards content.
Architecture Decision Record
docs/decisions/starter-kit-adr/KIT-ADR-0020-research-quality-coupling-strategy.md
New ADR documenting decision to keep tight coupling between agent definitions, Research Quality workflow, and adversarial-workflow CLI; includes coupling manifest template, discovery commands, analysis of abstraction levels, trade-offs, consequences, and refactoring guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰✨ I hopped through docs to plant a seed,
Gates and checklists sown for every need,
Citations neat and findings true,
Draft to final — a tidy view,
🥕📋 Hooray for standards — hop, review, proceed!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly describes the main addition: introducing Research Quality Standards for knowledge-focused agents, which aligns with all three new files and the template updates in the changeset.
Description check ✅ Passed The description is comprehensive and directly related to the changeset, explaining the Four Quality Gates, documenting new files, template changes, usage guidance, and the coupling decision.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • ADR-0020: Entity not found: Issue - Could not find referenced Issue.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.claude/agents/AGENT-TEMPLATE.md:
- Around line 342-343: Update the metadata "Last Updated" field in the
AGENT-TEMPLATE.md header to the correct date 2026-01-28 (replace the incorrect
2025-01-28), keeping "Template Version: 1.3.0" unchanged; locate the "Template
Version" and "Last Updated" lines in the file and change only the date string
for "Last Updated" so the metadata reflects the PR creation date.

Comment on lines 342 to 343
**Template Version**: 1.3.0
**Last Updated**: 2025-01-28
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix the date inconsistency in metadata.

The "Last Updated" date changed from 2025-11-27 to 2025-01-28, which moves backwards in time (November to January within the same year). Given that this PR was created on 2026-01-28, the correct date should likely be 2026-01-28.

📅 Proposed fix for the date
 **Template Version**: 1.3.0
-**Last Updated**: 2025-01-28
+**Last Updated**: 2026-01-28
 **Project**: agentive-starter-kit
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Template Version**: 1.3.0
**Last Updated**: 2025-01-28
**Template Version**: 1.3.0
**Last Updated**: 2026-01-28
🤖 Prompt for AI Agents
In @.claude/agents/AGENT-TEMPLATE.md around lines 342 - 343, Update the metadata
"Last Updated" field in the AGENT-TEMPLATE.md header to the correct date
2026-01-28 (replace the incorrect 2025-01-28), keeping "Template Version: 1.3.0"
unchanged; locate the "Template Version" and "Last Updated" lines in the file
and change only the date string for "Last Updated" so the metadata reflects the
PR creation date.

Introduces a comprehensive quality framework for agents that produce
research, analysis, or knowledge documents.

Workflow document establishing the Four Quality Gates:
- Gate 1: Citation Integrity (verify URLs, mark status)
- Gate 2: Factual Accuracy (confidence levels, verification hierarchy)
- Gate 3: Reproducibility (search methodology documentation)
- Gate 4: External Validation (adversarial evaluation)

Includes document lifecycle, working process template, and checklists.

Documents the architectural decision to keep tight coupling between
agent definitions and adversarial-workflow CLI commands:
- Analysis of abstraction levels (tool-specific vs mechanism-aware)
- Trade-off evaluation favoring agent effectiveness
- Coupling manifest template for tracking
- Future refactoring path if needed

- Added "Research Quality Standards" section (marked optional for non-knowledge agents)
- Added "File Location Standards" section
- Template version: 1.1.0 → 1.3.0

Knowledge-focused agents (research specialists, analysts, etc.) should:
1. Include the Research Quality Standards section from template
2. Follow the Four Quality Gates for all research output
3. Use `adversarial evaluate` for Gate 4 validation

Implementation-focused agents can delete the Research Quality section.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@movito movito force-pushed the upstream-research-quality-standards branch from 8746e86 to 4e5b7c3 Compare January 28, 2026 12:35
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Fix all issues with AI agents
In @.agent-context/workflows/RESEARCH-QUALITY-STANDARDS.md:
- Line 4: Update the metadata line that currently reads "**Last Updated**:
2025-01-28" to the correct date matching the PR creation date, i.e. "**Last
Updated**: 2026-01-28", so the timestamp in the
.agent-context/workflows/RESEARCH-QUALITY-STANDARDS.md file is consistent with
the changes.

In @.claude/agents/AGENT-TEMPLATE.md:
- Line 342: Add a single trailing newline character to the end of the Markdown
file that currently ends with the text "**Template Version**: 1.3.0" so the file
ends with exactly one newline (satisfying MD047); open
.claude/agents/AGENT-TEMPLATE.md, move the cursor to the end of the file after
the "Template Version: 1.3.0" line and insert a single newline, then save.

In
`@docs/decisions/starter-kit-adr/KIT-ADR-0020-research-quality-coupling-strategy.md`:
- Line 4: Update the ADR metadata Date field in
KIT-ADR-0020-research-quality-coupling-strategy.md: change the existing `Date:
2025-01-28` entry to `Date: 2026-01-28` so the ADR date matches the PR creation
date; locate the `**Date**:` line in that file and replace the year accordingly.

# Research Quality Standards

**Version**: 1.0.0
**Last Updated**: 2025-01-28
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix the date inconsistency in metadata.

The "Last Updated" date is 2025-01-28, but this PR was created on 2026-01-28. The year appears to be incorrect.

📅 Proposed fix
-**Last Updated**: 2025-01-28
+**Last Updated**: 2026-01-28
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Last Updated**: 2025-01-28
**Last Updated**: 2026-01-28
🤖 Prompt for AI Agents
In @.agent-context/workflows/RESEARCH-QUALITY-STANDARDS.md at line 4, Update the
metadata line that currently reads "**Last Updated**: 2025-01-28" to the correct
date matching the PR creation date, i.e. "**Last Updated**: 2026-01-28", so the
timestamp in the .agent-context/workflows/RESEARCH-QUALITY-STANDARDS.md file is
consistent with the changes.

**Template Version**: 1.2.0
**Last Updated**: 2025-01-28
**Project**: agentive-starter-kit
**Template Version**: 1.3.0 No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add trailing newline at end of file.

Markdown files should end with a single newline character for better compatibility with version control systems and text processing tools.

📝 Proposed fix
 **Template Version**: 1.3.0
+

As per coding guidelines: markdownlint rule MD047 (single-trailing-newline).

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Template Version**: 1.3.0
**Template Version**: 1.3.0
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

342-342: Files should end with a single newline character

(MD047, single-trailing-newline)

🤖 Prompt for AI Agents
In @.claude/agents/AGENT-TEMPLATE.md at line 342, Add a single trailing newline
character to the end of the Markdown file that currently ends with the text
"**Template Version**: 1.3.0" so the file ends with exactly one newline
(satisfying MD047); open .claude/agents/AGENT-TEMPLATE.md, move the cursor to
the end of the file after the "Template Version: 1.3.0" line and insert a single
newline, then save.

# KIT-ADR-0020: Research Quality Standards Coupling Strategy

**Status**: Accepted
**Date**: 2025-01-28
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix the date inconsistency in ADR metadata.

The date is 2025-01-28, but this PR was created on 2026-01-28. The year appears to be incorrect.

📅 Proposed fix
-**Date**: 2025-01-28
+**Date**: 2026-01-28
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Date**: 2025-01-28
**Date**: 2026-01-28
🤖 Prompt for AI Agents
In
`@docs/decisions/starter-kit-adr/KIT-ADR-0020-research-quality-coupling-strategy.md`
at line 4, Update the ADR metadata Date field in
KIT-ADR-0020-research-quality-coupling-strategy.md: change the existing `Date:
2025-01-28` entry to `Date: 2026-01-28` so the ADR date matches the PR creation
date; locate the `**Date**:` line in that file and replace the year accordingly.

@movito movito merged commit 1d97df4 into main Jan 28, 2026
3 checks passed
@movito movito deleted the upstream-research-quality-standards branch January 28, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants