원클릭으로
gpd-audit-milestone
Audit research milestone completion against original research goals
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Audit research milestone completion against original research goals
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Add research phase to end of current milestone in roadmap
Capture idea or task as todo from current research conversation context
Prepare a paper for arXiv submission with validation and packaging
Create a hypothesis branch for parallel investigation of an alternative approach
List pending research todos and select one to work on
Archive historical entries from STATE.md to keep it under the 150-line target
| name | gpd-audit-milestone |
| description | Audit research milestone completion against original research goals |
| argument-hint | [version] |
| context_mode | project-required |
| requires | {"files":[".gpd/ROADMAP.md",".gpd/STATE.md"]} |
| allowed-tools | ["read_file","glob","grep","shell","write_file"] |
<codex_runtime_notes> Codex shell compatibility:
gpd on PATH.GPD_ACTIVE_RUNTIME=codex uv run gpd ....
</codex_runtime_notes>This command IS the orchestrator. Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates open questions and deferred gaps, then spawns an integration checker for cross-phase consistency (e.g., do numerical results match analytical predictions? do approximations used in phase 3 remain valid given the parameter regime explored in phase 5?).
<execution_context>
Verify research milestone achieved its definition of done by aggregating phase verifications, checking cross-phase consistency, and assessing research completeness. Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates open questions and deferred analysis, then spawns consistency checker for cross-phase physics validation.Key questions: Are all claims supported? All calculations verified? All comparisons made? Ready for publication or next research stage?
<required_reading> Read all files referenced by the invoking prompt's execution_context before starting. </required_reading>
INIT=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local init milestone-op)
if [ $? -ne 0 ]; then
echo "ERROR: gpd initialization failed: $INIT"
# STOP — display the error to the user and do not proceed.
fi
Extract from init JSON: milestone_version, milestone_name, phase_count, completed_phases, commit_docs, project_exists.
Read mode settings:
AUTONOMY=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local --raw config get autonomy 2>/dev/null | /Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local json get .value --default balanced 2>/dev/null || echo "balanced")
Mode-aware behavior:
autonomy=supervised: Pause after each audit criterion for user discussion of gaps.autonomy=balanced (default): Complete the full audit and generate a gap-closure plan when needed. Pause only if critical gaps or milestone-scope questions need user judgment.autonomy=yolo: Complete audit, auto-approve milestone if > 80% criteria met.Run centralized context preflight before continuing:
CONTEXT=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local --raw validate command-context audit-milestone "$ARGUMENTS")
if [ $? -ne 0 ]; then
echo "$CONTEXT"
exit 1
fi
If milestone_version is null/empty:
ERROR: No active milestone found.
A milestone audit requires a project with phases.
Run $gpd-new-project first, then complete phases before auditing.
Exit.
Resolve consistency checker model:
CHECKER_MODEL=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local resolve-model gpd-consistency-checker)
# Get phases in milestone (sorted numerically, handles decimals)
/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local phase list
For each phase directory, read the VERIFICATION.md:
cat .gpd/phases/01-*/*-VERIFICATION.md
cat .gpd/phases/02-*/*-VERIFICATION.md
# etc.
From each VERIFICATION.md, extract:
If a phase is missing VERIFICATION.md, flag it as "unverified phase" -- this is a blocker.
With phase context collected:
Runtime delegation: Spawn a subagent for the task below. Adapt the
task()call to your runtime's agent spawning mechanism. Ifmodelresolves tonullor an empty string, omit it so the runtime uses its default model. Always passreadonly=falsefor file-producing agents. If subagent spawning is unavailable, execute these steps sequentially in the main context.
task(
prompt="First, read ./.codex/agents/gpd-consistency-checker.md for your role and instructions.
Check cross-phase physics consistency and end-to-end research coherence.
Phases: {phase_dirs}
Phase results: {from SUMMARYs}
Key equations: {equations derived/used}
Parameters: {shared parameters and their values}
Verify:
- Notation consistency across phases (same symbols mean same things)
- Parameter values used consistently (no contradictory assumptions)
- Results from early phases correctly used in later phases
- Approximations compatible across phases (not contradictory limits)
- Physical units consistent throughout
- Overall narrative coherence (do the phases tell a complete story?)",
subagent_type="gpd-consistency-checker",
model="{checker_model}",
readonly=false
)
If the consistency checker agent fails to spawn or returns an error: Proceed without cross-phase consistency checks. Note in the audit report that consistency verification was skipped. The phase-level checks (step 2) still provide individual phase validation. The user should run $gpd-validate-conventions separately after the audit.
Combine:
For each requirement in REQUIREMENTS.md mapped to this milestone:
Create .gpd/v{version}-MILESTONE-AUDIT.md with:
---
milestone: { version }
audited: { timestamp }
status: passed | gaps_found | open_questions
scores:
requirements: N/M
phases: N/M
consistency: N/M
completeness: N/M
gaps: # Critical blockers
requirements: [...]
consistency: [...]
completeness: [...]
open_questions: # Non-critical, deferred
- phase: 01-model-setup
items:
- "Open: higher-order corrections not yet computed"
- "Warning: approximation validity not tested near phase boundary"
- phase: 03-numerics
items:
- "Deferred: finite-size scaling analysis"
- "Open: alternative discretization schemes not compared"
---
Plus full markdown report with tables for requirements, phases, consistency, open questions.
Status values:
passed -- all requirements met, no critical gaps, research is coherent and completegaps_found -- critical blockers exist (missing derivations, contradictory results, unverified claims)open_questions -- no blockers but accumulated deferred analysis needs review before publicationIf enabled in config (referee_review: true in .gpd/config.json) or if the user requests it, spawn the referee agent for a simulated peer review of the milestone's research outputs. This provides an independent critical assessment before the researcher decides on next steps, with a canonical Markdown report plus a polished LaTeX companion artifact.
Check config or ask user:
REFEREE_ENABLED=$(python3 -c "
import json, pathlib
try:
c = json.loads(pathlib.Path('.gpd/config.json').read_text())
v = c.get('referee_review')
print('unset' if v is None else str(v).lower())
except Exception:
print('unset')
")
true: proceed with referee reviewfalse: skip to step 8unset: ask the user — "Run a mock peer review of this milestone? This spawns a referee agent that evaluates the research across 10 dimensions (correctness, novelty, significance, etc.) and produces a structured report. Recommended before paper writing."If proceeding:
Resolve referee model:
REFEREE_MODEL=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local resolve-model gpd-referee)
Runtime delegation: Spawn a subagent for the task below. Adapt the
task()call to your runtime's agent spawning mechanism. Ifmodelresolves tonullor an empty string, omit it so the runtime uses its default model. Always passreadonly=falsefor file-producing agents. If subagent spawning is unavailable, execute these steps sequentially in the main context.
task(
subagent_type="gpd-referee",
model="{referee_model}",
readonly=false,
prompt="First, read ./.codex/agents/gpd-referee.md for your role and instructions.
Conduct a mock peer review of milestone {milestone_version} research outputs.
Scope: Full milestone review
Milestone: {milestone_version} -- {milestone_name}
Files to read:
- ROADMAP.md (research goals and phase structure)
- All SUMMARY.md files from completed phases in .gpd/phases/
- STATE.md (conventions, notation, parameters)
- All VERIFICATION.md files from completed phases
- Any manuscript .tex files (if they exist)
- .gpd/v{milestone_version}-MILESTONE-AUDIT.md (audit results)
Evaluate across all 10 dimensions:
1. Correctness -- dimensional analysis, limiting cases, sign conventions
2. Completeness -- all promised results delivered, error analysis present
3. Technical soundness -- methodology appropriate, approximations justified
4. Novelty -- comparison with prior work
5. Significance -- importance to the field
6. Literature context -- key references, comparisons
7. Reproducibility -- parameters stated, methods described
8. Clarity -- logical flow, notation consistency
9. Presentation quality -- organization, figures
10. Publishability -- overall assessment
Write `.gpd/REFEREE-REPORT.md` and the matching `.gpd/REFEREE-REPORT.tex` companion.
Return REVIEW COMPLETE with recommendation and issue counts."
)
If the referee agent fails to spawn or returns an error: Proceed without mock peer review — note in the audit report that peer review was skipped. The audit is still valid based on consistency checks and phase-level verification. The user should run $gpd-verify-work separately after the audit.
After referee report:
Verify the promised referee artifacts before trusting the handoff text:
.gpd/REFEREE-REPORT.md exists and contains a recommendation plus issue counts..gpd/REFEREE-REPORT.tex exists as the matching companion artifact.Read the report and include a summary in the presented results:
### Mock Peer Review
**Recommendation:** {accept | minor_revision | major_revision | reject}
**Major issues:** {N}
**Minor issues:** {N}
**Report:** .gpd/REFEREE-REPORT.md
**LaTeX report:** .gpd/REFEREE-REPORT.tex
{2-3 sentence summary of key findings}
If the referee found major issues, append them to the gaps in the milestone audit report.
Route by status (see <offer_next>).
<offer_next> Output this markdown directly (not as a code block). Route based on status:
If passed:
Score: {N}/{M} requirements satisfied Report: .gpd/v{version}-MILESTONE-AUDIT.md
All requirements covered. Cross-phase consistency verified. Research is complete and coherent.
Complete milestone -- archive and tag
$gpd-complete-milestone {version}
/clear first -> fresh context window
If gaps_found:
Score: {N}/{M} requirements satisfied Report: .gpd/v{version}-MILESTONE-AUDIT.md
{For each unsatisfied requirement:}
{For each consistency gap:}
{For each completeness gap:}
Plan gap closure -- create phases to complete research
$gpd-plan-milestone-gaps
/clear first -> fresh context window
Also available:
If open_questions (no blockers but accumulated deferred analysis):
Score: {N}/{M} requirements satisfied Report: .gpd/v{version}-MILESTONE-AUDIT.md
All requirements met. No critical blockers. Accumulated open questions need review.
{For each phase with open items:} Phase {X}: {name}
A. Complete milestone -- accept open questions, track in research log
$gpd-complete-milestone {version}
B. Plan additional analysis -- address open questions before completing
$gpd-plan-milestone-gaps
/clear first -> fresh context window
</offer_next>
<success_criteria>
</success_criteria>
</execution_context>
Version: $ARGUMENTS (optional — defaults to current milestone)Original Research Goals: @.gpd/PROJECT.md @.gpd/REQUIREMENTS.md
Planned Work: @.gpd/ROADMAP.md @.gpd/config.json (if exists)
Completed Work: glob: .gpd/phases//-SUMMARY.md glob: .gpd/phases//-VERIFICATION.md
<inline_guidance>
</inline_guidance>
Execute the audit-milestone workflow from @./.codex/get-physics-done/workflows/audit-milestone.md end-to-end. Preserve all workflow gates (scope determination, verification reading, integration check, requirements coverage, routing).The audit evaluates research completeness across these dimensions: