First-principles analysis: reconciling Gentle AI's Organic Driven Development (Problem + Guardrails + DoD) with ce-ai's Living Specifications & Compound Flywheel.
ce-ai is an entirely independent, clean-room Rust CLI and multi-harness manager. It was not built on top of Gentle AI's codebase. While both ecosystems can optionally utilize developer sidecars (such as Engram for memory, CodeGraph for AST indexing, Context7, or RTK), these tools are optional plugins in Gentle AI, and standalone companion sidecars in ce-ai.
Gentle AI's ODD (Organic Driven Development) has evolved to steer away from traditional, rigid Spec-Driven Development (SDD). Instead of demanding exhaustive, prescriptive upfront specification files before exploratory work begins, ODD relies on an agile triad:
Gentle AI's departure from SDD raises a legitimate question: If ODD moves away from heavy upfront specs, is OpenSpec in ce-ai an outdated ceremonial burden?
The short answer is No, but its role must be properly partitioned:
ce-ai governs production-grade AI agent operations under ISO/IEC 27001, ISO 42001, and NIST AI RMF standards. OpenSpec in ce-ai is not just a design document; it is a Living System of Record. It provides:
openspec/specs/): Persistent source of truth across sessions for system capabilities (specs/workflow.md, specs/gate.md, specs/doctor.md).openspec/changes/<feature>/): Deterministic tracking that links git commits with work units (tasks.md), enabling reconciliation (reconcile_tasks_with_git) and automated spec promotion during archival (ce-ai archive --promote).proposal.md, exploration.md, design.md, spec.md, tasks.md) on a minor fix creates cognitive friction, burns tokens, and slows down development.odd/tasks/ or single-file brief) and the formal living directory (openspec/changes/).ce-ai workflow resume adapts the context banner during session start (SessionStart, PreInvocation).src/commands/gate.rs permits organic fast-path writes while strictly guarding against uncontracted architectural drift.
Implement a deterministic Mode Router directly inside ce-ai workflow resume and the Turn-0 session start hooks (Claude Code, Codex, Cursor, Antigravity PreInvocation).
Critique of LLM-based routers: Calling an LLM agent to route requests introduces 1.5–3.5s of latency, costs recurring tokens, and suffers from prompt hallucinations.
Instead, ce-ai evaluates the workspace state in under 5ms using deterministic heuristics:
ce-ai workflow --mode [odd|compound] or user prompt directive (--odd / --compound).openspec/changes/<feature>/ exists and is unresolved ➔ Compound Mode (enforces 7-stage workflow).fix/*, chore/*, spike/*, test/* ➔ ODD Mode (Fast-path: Problem + Guardrails + DoD).feat/*, refactor/*, spec/* ➔ Compound Mode (Formal OpenSpec contract required).AdoptionTier::Minimal defaults to ODD mode; AdoptionTier::Full defaults to Compound mode.
direct: src/commands/workflow.rs:355-470:
resume_lines() is already executed by hooks on every single agent turn start.
Enhancing it to inject the appropriate guidance (ODD prompt for bugfixes/chores; Compound FSM for features) eliminates user decision fatigue without introducing external routing overhead.
A common failure mode in organic workflows is that a task begins as a simple exploratory spike or quick fix, but exploration reveals an architectural cross-cutting change touching multiple sub-modules. Under pure ODD, the developer either cuts corners to keep it informal, or has to manually stop, copy-paste notes, and write an OpenSpec package from scratch.
ce-ai should provide a native graduation command:
ce-ai workflow graduate <feature-name>.
This command ingests the active ODD task file (e.g. odd/tasks/<feature>.md or an exploratory scratchpad), maps the Problem Statement to proposal.md, the Guardrails to spec.md, and the DoD checkboxes to tasks.md, automatically registering the change in state.json and advancing the FSM to Stage 3 (Execution Plan).
reasoned: Continuous Refinement Principle: Protects developers from the "spec wall" while strictly preventing uncontrolled scope creep. Developers start in ODD with zero ceremony, and only pay the OpenSpec bookkeeping tax when the problem objectively demands architectural permanence.
Define the formal contract for organic tasks in ce-ai under odd/tasks/<slug>.md.
Rather than leaving organic tasks unformatted or vague, ce-ai standardizes the minimal ODD template that Gentle AI advocates:
external: Gentle AI ODD Specification: Replaces the 5-file OpenSpec requirement for tactical tasks with a single, highly legible markdown file. It gives the AI agent strict boundaries (Guardrails) and an undeniable finish line (DoD) without requiring 200 lines of speculative architectural prose.
Update src/commands/gate.rs (the observe-only gate evaluator) to formally recognize ExecutionMode::Organic.
Currently, gate.rs contains hardcoded exemptions:
We generalize this into a principled Dual-Track Gate Policy:
ExecutionMode::Organic is active (e.g. branch is fix/ or single-file ODD brief exists), file writes are permitted without demanding an OpenSpec directory.
direct: CONTRIBUTING.md §4 & src/commands/gate.rs:
CONTRIBUTING.md already establishes a target of ~200 LOC per atomic work unit. Hooking this threshold into the gate prevents ODD from degenerating into unmonitored monolithic commits while keeping small chores completely unblocked.
Ensure that task state persistence across sessions is unified under Engram persistent memory using a canonical topic key:
tasks/<feature-slug>.
Whether the active task is an organic brief (odd/tasks/<feature>.md) or a formal OpenSpec task list (openspec/changes/<feature>/tasks.md), both serialize their status and checklist into Engram under the same key.
When any agent boots in Claude Code, Codex, or Antigravity, calling mem_context immediately restores the current task, uncompleted checklist items, and active guardrails, completely insulating the developer from context window truncation or harness switches.
direct: RULE[user_global] & Engram Protocol: Engram is the cross-session persistence backbone. By sharing the exact topic key format, context re-hydration works identically across both modes.
| Proposed Concept | Rejection Category | Specific Rationale |
|---|---|---|
| LLM Runtime Router Agent | Latency / Cost / Non-determinism | Invoking an LLM to classify user intent on every prompt introduces 2–4s latency and recurring token costs. Deterministic heuristics (git branch, active changes, explicit flags) achieve >98% accuracy instantaneously. |
| Deprecating OpenSpec in Favor of Pure ODD | Governance & Architectural Collapse | Gentle AI's avoidance of SDD works for smaller tools, but ce-ai requires living contracts (openspec/specs/) for release integrity, cross-harness drift detection, and compliance (ISO/NIST). OpenSpec must be preserved for architectural features. |
| Unrestricted ODD without LOC Ceilings | Risk of Monolithic Drift | Allowing ODD to be used without a LOC ceiling (>200 LOC) allows agents to perform massive 1,000-line refactors without architecture review, defeating ce-ai's quality invariants. |
| Separate Git Worktrees per Mode | Workflow Friction | Forcing ODD into separate git worktrees fragments the local repo. Mode should be a lightweight behavioral attribute of the current session, not a separate disk checkout. |
| Dimension | ODD Fast-Path (Organic Mode) | Compound Flywheel (OpenSpec Mode) |
|---|---|---|
| Target Scope | Bugfixes, chores, spikes, small tweaks (< 200 LOC) | New features, breaking changes, architecture refactors |
| Trigger Signals | fix/*, chore/* branches, ce-debug, or explicit --odd |
feat/* branches, openspec/changes/ dir, or explicit --compound |
| Specification Shape | Single-file brief: Problem + Guardrails + DoD (odd/tasks/) |
5-stage living package: Proposal, Exploration, Design, Spec, Tasks |
| Gate Enforcement | Write permitted without OpenSpec; warning if > 200 LOC | Strict gate: OpenSpec required before work units commence |
| Graduation Path |
ce-ai workflow graduate <feature> promotes ODD brief into OpenSpec package
|
|