# Completion reports ## Success Output **User-runnable refresh rendering.** The reports below print a refresh invocation for the user to copy. Default to `/ce-compound refresh `; use `$ce-compound refresh ` only when the active host is Codex or explicitly documents dollar-prefixed skill invocation. Render only the invocation as inline code and output one form only. ### Non-interactive mode Emit a structured terminal report as the last thing this skill writes. No "What's next?" question, no blocking prompt. The report ends this skill, not the turn. When a caller invoked this skill, its next step follows the report in the same session; otherwise end the turn. End with `Documentation complete` as the terminal signal so callers can detect completion. For `depth:lightweight`, use this lower-overhead report after the Lightweight Mode workflow: ``` ✓ Documentation complete (non-interactive lightweight mode) File: /solutions//.md (created | updated) | none Also written: | none Recommended form: none |
: Track: Category: Grounding: Discoverability: CONCEPTS.md: CONCEPTS.md discoverability: Refresh recommendation: > Documentation complete ``` For `depth:full` or backward-compatible non-interactive calls with no depth token, use the Full report: ``` ✓ Documentation complete (non-interactive mode) File: /solutions//.md (created | updated) | none Also written: | none Recommended form: none | : Track: Category: Overlap: | high — existing doc updated> Grounding: Instruction-file edit: CONCEPTS.md: Refresh recommendation: > Documentation complete ``` `Documentation complete` means the run wrote something, including when the only file written is a test or a standard. Track, Category, Overlap, and Grounding then read `n/a`. When the run wrote nothing (e.g., non-interactive invoked on a session where the problem is not yet solved), emit a structured failure instead and end with `Documentation skipped` so callers can distinguish success from no-op: ``` ✗ Documentation skipped (non-interactive mode) Reason: Documentation skipped ``` ### Interactive mode ``` ✓ Documentation complete Ran Full mode. Auto memory: 2 relevant entries used as supplementary evidence Research Results: ✓ Classified: performance_issue in background_job (component from corpus), category: performance-issues/ ✓ Drafted: 3 code fixes, prevention strategies ✓ Related Docs Finder: 2 related issues ✓ Session History: 3 prior sessions on same branch, 2 failed approaches surfaced Grounding Validation: ✓ Mechanical check: 14 paths, 2 SHAs, 3 links checked — 1 flag annotated as historical ✓ Semantic validator: 9 claims verified, 1 merge-state claim softened to pending Specialized Agent Reviews (Auto-Triggered): ✓ performance-oracle: Validated query optimization approach ✓ Code simplification review: Code examples are appropriately minimal Files written: - /solutions/performance-issues/n-plus-one-brief-generation.md (created) - CONCEPTS.md (created with 3 entries: BriefSystem, EmailQueue, Brief Status) This documentation will be searchable for future reference when similar issues occur in the Email Processing or Brief System modules. Refresh recommendation: none ``` `Files written:` lists everything the run wrote: any test, lint rule, or standard with how it was proven, and the destination the assembly step settled on. That destination is a pack rule's path (`/.md`) when the user routed the capture into a writable pack, and the `/solutions/` path otherwise. Add a `Recommended form:` line when a check or owner consolidation was reported rather than written. When the lesson met the standard form but the repo has no `CODING_STANDARDS.md`, add this one line and ask nothing: `This could be a coding standard if you adopt them.` Only an attended report carries it. Non-interactive reports read `Recommended form: none` for this case, so it never reaches a pull request. **The summary is the last thing this skill writes. When a caller invoked this skill, its next step follows the summary in the same session; otherwise end the turn. `ce-compound` does not present a "What's next?" menu.** The lesson is written and any cross-references the workflow found are already in it. Cross-doc maintenance (fixing references in *other* docs, consolidation) is left to a refresh, through the `Refresh recommendation` line above. It is not applied here, because that would edit tracked docs beyond this run's deliverable. If the user wants to view the file or take a follow-up action, they will ask. (Interactive mode only.) **Alternate interactive output (when updating an existing doc due to high overlap):** in non-interactive mode, this case is communicated via the `Overlap: high — existing doc updated` line of the non-interactive terminal report above, not as a separate output block. ``` ✓ Documentation updated (existing doc refreshed with current context) Overlap detected: /solutions/performance-issues/n-plus-one-queries.md Matched dimensions: problem statement, root cause, solution, referenced files Action: Updated existing doc with fresher code examples and prevention tips File updated: - /solutions/performance-issues/n-plus-one-queries.md (added last_updated: 2026-03-24) ``` ## Common Mistakes to Avoid | ❌ Wrong | ✅ Correct | |----------|-----------| | Subagents write product files into `docs/` or edit tracked paths | Subagents write only scratch artifacts under `/` and return the path; orchestrator writes the final form | | Subagent returns a long prose body only as its inline response | Subagent writes full output to its run artifact; orchestrator Reads it back (inline return is fallback only) | | Research and assembly run in parallel | Research completes → then assembly runs | | Non-interactive Discoverability Check edits AGENTS.md/CLAUDE.md | non-interactive Full reports `Instruction-file edit: gap noted, not applied`; non-interactive Lightweight emits a discoverability tip; only interactive Full applies the edit after consent | | Creating a new doc when an existing doc covers the same problem | Check overlap assessment; update the existing doc when overlap is high | | Asserting code behavior or merge-state from conversation memory | Read the defining source line before asserting; cite PR numbers over SHAs; soften unverifiable claims (Phase 1 extractor rules, re-checked in Phase 2.45) | | Batching several learnings through one run and stitching cross-references between drafts | One learning per run; run the skill sequentially for each additional learning |