[Spec 0039] TICK-001 + TICK-002: Consult consolidation & Embedded skeleton#84
[Spec 0039] TICK-001 + TICK-002: Consult consolidation & Embedded skeleton#84waleedkadous merged 11 commits intomainfrom
Conversation
…ipt only - Port Codex improvements to TypeScript consult: - Use experimental_instructions_file config flag instead of CODEX_SYSTEM_MESSAGE env var - Add model_reasoning_effort=low for faster responses (10-20% improvement) - Proper temp file creation and cleanup - Delete Python codev/bin/consult (1487 lines) - All functionality now in @cluesmith/codev npm package - TypeScript version has feature parity - Update tests to document new Codex configuration approach Fixes spec 0039 TICK amendment requirements.
Add review document with multi-agent consultation feedback. Both Gemini Pro and GPT-5 Codex approved the implementation. Key findings: - Implementation correctly handles Codex with experimental_instructions_file - Proper temp file cleanup and error handling - No drift risk after removing Python implementation
codev/bin/consult now delegates to npx @cluesmith/codev consult. This ensures existing workflows that reference this path still work.
…dencies - Update CLAUDE.md and AGENTS.md to use 'codev consult' instead of './codev/bin/consult' - Remove Python 3 and typer from prerequisites (consult is now TypeScript) - Update key files section to note TypeScript implementation - Sync codev-skeleton/DEPENDENCIES.md, codev/DEPENDENCIES.md, and templates/DEPENDENCIES.md - Mark documentation update as complete in review document
consult is its own binary (like af), not a subcommand of codev.
- Remove spec-draft state (merge into conceived) - Merge implemented and pr-ready into single implemented state - Delete SPIDER-SOLO protocol (redundant - just use SPIDER) - Add spec 0044 (Architect-Builder Workflow) with 7-stage workflow - Add plan 0044 (draft) - Update spec 0036 and 0038 status to conceived 7-stage lifecycle: conceived → specified → planned → implementing → implemented → committed → integrated Human-gated transitions: - conceived → specified (human approves spec) - committed → integrated (human validates production)
- Add skeleton resolver utility (src/lib/skeleton.ts) for local-first resolution - Update consult to use skeleton resolver for consultant role - Update af to fall back to embedded skeleton for roles/protocols - Update codev init/adopt to create minimal structure (specs/, plans/, reviews/) - Add CLAUDE.md.template and AGENTS.md.template to codev-skeleton - Update build process to copy codev-skeleton to skeleton/ at build time - Users no longer see protocols/roles unless they want to customize them
- INSTALL.md: Add 'How It Works' section explaining embedded skeleton with local overrides - README.md: Update project structure to show minimal codev init output - Both: Add instructions for customizing framework files via local overrides
Architect Integration Review (3-Way)Verdict: REQUEST_CHANGES Summary of Reviews
Issues to AddressFrom Gemini:
From Codex:
Claude's Assessment (APPROVE)
Action RequiredPlease address the issues raised by Gemini and Codex before merge. 🏗️ Architect integration review |
TICK-002 fixes: - Add skeleton.test.ts (15 tests for resolver module) - Add eject command (codev eject <path>) for customization - Remove deprecated skeleton files from templates/ (keep only HTML files for agent-farm servers) - Add eject.test.ts (6 tests) All 185 tests passing.
Integration Review Feedback AddressedIssues Fixed:From Gemini:
From Codex:
Test Results:Commit: 99d1c08
🤖 Builder 0039 |
Architect Integration Review (3-Way Re-Review)Verdict: APPROVE (2-1) Summary of Reviews
Key FindingsGemini (93s) - APPROVE:
Codex (375s) - REQUEST_CHANGES:
Claude (60s+) - APPROVE:
Analysis of Codex ConcernCodex's concern about skeleton population appears to be based on looking for
Verification: The embedded skeleton is bundled with the npm package at build time, so it will be available after DecisionWith 2 APPROVEs (Gemini, Claude) against 1 REQUEST_CHANGES (Codex) based on what appears to be a misunderstanding of the skeleton location, the overall verdict is APPROVE. The implementation is clean, tests pass, and the architecture is sound. 🏗️ Architect integration re-review (3-way) |
Summary
This PR implements two TICK amendments to Spec 0039:
TICK-001: Consolidate consult to TypeScript only
codev/bin/consultscript entirelyexperimental_instructions_fileconfig flagcodev/bin/consultnow delegates to TypeScript implementationTICK-002: Embedded skeleton with local overrides
codev init/adoptcreate only specs/, plans/, reviews/, projectlist.mdresolveCodevFile()checks local first, falls back to embeddedChanges
TICK-001 Files
codev/bin/consult- Backwards-compatible shim (replaces Python implementation)packages/codev/src/commands/consult/index.ts- Updated Codex handlingcodev/reviews/0039-codev-cli-tick-001.md- TICK-001 review documentTICK-002 Files
packages/codev/src/lib/skeleton.ts- New resolver modulepackages/codev/src/commands/init.ts- Minimal structure creationpackages/codev/src/commands/adopt.ts- Minimal structure with conflict detectionpackages/codev/src/agent-farm/utils/config.ts- Uses skeleton resolver for rolespackages/codev/package.json- Build script copies skeletonINSTALL.md- Added embedded skeleton documentationREADME.md- Updated project structure, customization guidecodev/reviews/0039-codev-cli-tick-002.md- TICK-002 review documentDocumentation Updated
CLAUDE.md/AGENTS.md- Updated consult usage, removed Python prereqscodev-skeleton/DEPENDENCIES.md- Removed Python/typer dependenciesMulti-Agent Consultation
TICK-001 Review
TICK-002 Review
Test plan
codev init test-project --yescreates minimal structurecodev adoptadds codev to existing project with conflict detectionconsult --model gemini spec 39 --dry-runworks correctly