<init_workspace_flow_verification>
<description_and_purpose>
Without a final verification pass, incomplete or inconsistent documentation ships silently. Phase 9 runs a centralized checklist, ensures nothing was missed, and enforces new-chat requirement.
</description_and_purpose>
<workflow_context>
- Phase 9 of 9 in init-workspace-flow (final phase)
- Prerequisite: Phases 1-8 complete
- Output: verification report, next steps, new-chat enforcement
</workflow_context>
<phase_steps>
- Read state file and confirm prerequisites
- Execute verification checklist
- Suggest next steps
- Enforce new chat and mark COMPLETE
</phase_steps>
<read_state step="9.1">
- Read
agents/init-workspace-flow-state.md
- Confirm Phases 1-8 all marked complete
- Collect unresolved gaps from Phase 8
</read_state>
<execute_verification step="9.2" subagent="built-in" role="Workspace initialization auditor" subagent_recommended_model="claude-sonnet-5-5,gpt-6-luna-high">
Act as a senior workspace initialization auditor. This is the final phase of workspace initialization. Consolidates all init-phase outputs into a single completeness audit, runs catch-up for gaps, and revalidates assumptions.
<core_concepts>
- All Rosetta prep steps MUST be FULLY completed, load-project-context skill loaded and fully executed
</core_concepts>
<verification_process>
Run every checkpoint. Each must pass or have documented justification.
FILE EXISTENCE (non-empty, correct scope):
- TECHSTACK.md — detected technologies, frameworks, build tools
- CODEMAP.md — markdown headers, 3-4 levels, recursive children counts
- DEPENDENCIES.md — direct dependencies only (project, package, version)
- CONTEXT.md — business context only, no technical details
- ARCHITECTURE.md — technical architecture, references CODEMAP.md, no business context
- IMPLEMENTATION.md — current state, DRY references
- ASSUMPTIONS.md — unknowns with forward references
- AGENT MEMORY.md — self-defined purpose and initial entries
- Each document includes self-definition (purpose, content type, style)
INIT INTEGRITY:
- Init mode: exactly one of install, upgrade, plugin
- Composite workspace: top-level docs as registries if composite
- File inventory built before creation/update decisions
- Shell files: frontmatter + single ACQUIRE, zero inline logic
- load-project-context shell and bootstrap rule installed
- Shells match schema — no structural deviations, no absolute paths
- Only if phase 5 ran: docs/PATTERNS/ with INDEX.md; each pattern in 2+ locations; INDEX.md is consistent
CROSS-FILE CONSISTENCY:
- TECHSTACK frameworks appear in ARCHITECTURE
- CONTEXT, ARCHITECTURE, IMPLEMENTATION complement — no duplication
- skill
coding loaded and used as file creation reference
- greppable headers used in all files
CONDITIONAL (if rules requested, N/A otherwise):
- KB SEARCHED for IDE/Agent rules — agent's built-in knowledge is obsolete, verify KB was queried
- Existing rules checked before creating new
- Root agents file uses mcp-files-mode.md template
- Tech-specific agent files created
- Local instructions with MoSCoW emphasis
- Weekly check mechanism with release version
- Subagents/commands initialized via KB instructions if supported
QUESTIONS:
- HIGH priority gaps addressed via targeted questions
CATCH-UP: For failed checkpoints — identify owning skill, execute, re-verify.
ASSUMPTIONS REVALIDATION:
- Resolved entries: mark with evidence
- Duplicates: keep most detailed
- Forward references: verify target files exist
- New assumptions: track any discovered during verification
</verification_process>
</execute_verification>
<next_steps step="9.3">
- If verification found failed checkpoints: list specific remediation actions
- Suggest next steps based on workspace state:
- Run coding workflow for first feature
- Review and customize generated docs
- Add project-specific patterns
</next_steps>
<enforce_new_chat step="9.4">
- EMPHASIZE: MUST start a new chat session after init completes
- Current session context is polluted with init-specific state
- Mark state as COMPLETE in
agents/init-workspace-flow-state.md
</enforce_new_chat>
<validation_checklist>
- Verification skill ran and reported pass/fail per checkpoint
- Failed checkpoints have documented remediation
- State file shows COMPLETE status
</validation_checklist>
</init_workspace_flow_verification>