Skip to main content

Research Promote

System Prompt

EXECUTION DIRECTIVE: When the user invokes /research-promote (or alias /promote), you MUST:

  1. IMMEDIATELY execute — no questions first
  2. Follow the promotion workflow defined below
  3. ALWAYS show dry-run plan first before any file operations
  4. Wait for user approval before executing promotions

Usage

# Promote artifacts for a specific topic (shows dry-run first)
/research-promote agent-labs

# Promote to a specific stage
/research-promote --topic "agent-labs" --to analysis
/research-promote --topic "agent-labs" --to integration --artifacts sdd,tdd,adrs

# Generate manifest only (no file promotion)
/research-promote --topic "agent-labs" --manifest-only

# Dry-run only (no execution, just show plan)
/research-promote --topic "agent-labs" --dry-run

# Archive superseded research
/research-promote --archive "palantir-2025" --reason "superseded by palantir-2026"

# List all staging directories with status
/research-promote --list

# Batch promote recent research (last N days)
/research-promote --recent 30

Options

OptionDescriptionDefault
topicResearch topic name (positional or --topic)Required
--to STAGETarget stage: analysis or integrationanalysis
--artifacts TYPESComma-separated artifact types to promoteAll eligible
--manifest-onlyGenerate manifest without promoting filesfalse
--dry-runShow plan without executingfalse
--archive TOPICArchive superseded research-
--reason TEXTReason for archivalRequired with --archive
--listList staging directories with promotion status-
--recent NBatch promote research from last N days-
--category CATOverride auto-detected categoryAuto-detect
--forceSkip dry-run preview (use with caution)false

Execution Steps

Step 1: Discovery

# Locate staging directory
staging_dir = f"analyze-new-artifacts/{topic}/"
if not exists(staging_dir):
# Search for partial matches
matches = glob("analyze-new-artifacts/*{topic}*")
if matches:
present_matches_for_selection()
else:
error(f"No staging directory found for '{topic}'")
list_available_dirs()
return

# Scan for artifacts
artifacts = scan_staging_dir(staging_dir)

Step 2: Classification

Auto-classify into one of 6 ADR-207 categories:

CategoryDetection Heuristic
technology-evaluationGitHub repo input, SDD/TDD present, integration assessment
academicPDF/arXiv input, paper references, no SDD
competitive-intelligenceCompetitor name in topic, market positioning content
business-marketFinancial model, business case, market sizing
domainIndustry-specific terms (FDA, HIPAA, etc.)
process-internalCODITECT internal tooling, pipeline improvements

Step 3: Promotion Plan (Dry-Run)

Present a table for user review:

┌─────────────────────────────────────────────────────────────┐
│ /research-promote: agent-labs │
│ Category: technology-evaluation (auto-detected) │
│ Stage: analysis │
├─────────────────────────────────────────────────────────────┤
│ PROMOTION PLAN │
│ ─────────────── │
│ ✅ executive-summary.md │
│ → internal/research/executive-summaries/ │
│ 2026-02-16-agent-labs-executive-summary.md │
│ │
│ ✅ assessment (existing in analysis) │
│ → internal/analysis/agent-labs-scaling/ │
│ Already promoted │
│ │
│ ⏳ sdd.md (requires Go decision) │
│ → internal/architecture/sdd/agent-labs-sdd.md │
│ Status: DEFERRED — no ADR with Accepted status │
│ │
│ ⏳ tdd.md (requires Go decision) │
│ → internal/architecture/tdd/agent-labs-tdd.md │
│ Status: DEFERRED — no ADR with Accepted status │
│ │
│ ✅ glossary.md (14 terms — meets 10+ threshold) │
│ → internal/research/glossaries/ │
│ agent-orchestration-glossary.md │
│ │
│ ✅ quick-start.md │
│ → internal/research/quick-start-guides/ │
│ agent-labs-quick-start.md │
│ │
│ ❌ system-prompts/ (NEVER promoted) │
│ ❌ pipeline-report.json (NEVER promoted) │
│ ❌ research-context.json (NEVER promoted) │
│ │
│ ✅ MANIFEST │
│ → internal/research/manifests/ │
│ 2026-02-16-agent-labs.yaml │
│ │
├─────────────────────────────────────────────────────────────┤
│ Summary: 4 promote, 2 deferred, 3 skipped, 1 manifest │
│ Proceed? [y/N] │
└─────────────────────────────────────────────────────────────┘

Step 4: Execute

After user approval:

  1. Copy files from staging to permanent locations
  2. Rename per ADR-207 naming conventions
  3. Update frontmatter in promoted files
  4. Generate YAML manifest
  5. Validate manifest against schema
  6. Update registry README.md files
  7. Stage all changes with git add
  8. Report summary

Step 5: Commit

git commit -m "feat(ADR-207): Promote {topic} research artifacts

Promoted: {count} artifacts from staging to permanent locations
Category: {category}
Manifest: internal/research/manifests/YYYY-MM-DD-{topic}.yaml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>"

Archive Mode

/research-promote --archive "palantir-2025" --reason "superseded by palantir-2026"

Archive workflow:

  1. Move artifacts from internal/analysis/{topic}/ to internal/research/archive/{topic}/
  2. Create SUPERSEDED.md in archive directory with reason and replacement reference
  3. Update manifest status to archived
  4. Update original location README to remove entry

List Mode

/research-promote --list

Shows all staging directories with promotion status:

┌────────────────────────────────────────────────────┐
│ Staging Directories (98 total) │
├────────────────────────────────────────────────────┤
│ PROMOTED (20) │
│ ✅ codestoryai-sidecar (2026-02-09) │
│ ✅ copilotkit (2026-01-28) │
│ ... │
│ │
│ READY TO PROMOTE (12) │
│ ⏳ agent-labs (2026-02-16) — assessment exists │
│ ⏳ kimi-2.5 (2026-02-14) — assessment exists │
│ ... │
│ │
│ NOT READY (66) │
│ ❌ llm-routing (2026-01-20) — no assessment │
│ ... │
└────────────────────────────────────────────────────┘

Success Output

✅ COMMAND COMPLETE: /research-promote
Topic: agent-labs
Category: technology-evaluation
Stage: analysis
Promoted: 4 artifacts
Deferred: 2 artifacts (awaiting Go decision)
Skipped: 3 artifacts (NEVER rules)
Manifest: internal/research/manifests/2026-02-16-agent-labs.yaml
Registry: Updated

Completion Checklist

Before marking complete:

  • Staging directory scanned
  • Category auto-detected or specified
  • Dry-run plan presented to user
  • User approved promotion
  • Files copied to permanent locations
  • Naming conventions applied
  • Manifest generated and validated
  • Registry README updated
  • Changes staged and committed

Failure Indicators

This command has FAILED if:

  • Staging directory not found
  • No artifacts eligible for promotion
  • Schema validation fails for manifest
  • File copy operation fails
  • User rejects promotion plan

When NOT to Use

  • Research is still in progress (use staging)
  • No assessment document exists (research incomplete)
  • Topic has already been fully promoted
  • Agent: artifact-promoter (implements promotion logic)
  • ADR: ADR-207 Research Artifact Organization Taxonomy
  • ADR: ADR-206 Autonomous Research Pipeline
  • Schema: config/schemas/research-manifest-v1.schema.json
  • Pipeline: /research-pipeline (generates artifacts this command promotes)

Command Version: 1.0.0 Created: 2026-02-16 Author: Claude (Opus 4.6)