Customized domain spec: VC to developer knowledge brain#4
Customized domain spec: VC to developer knowledge brain#4chapter37haptics wants to merge 10 commits into
Conversation
…veloper rewrite 10-file change manifest for customizing gbrain from VC/executive use case to developer knowledge base. Three rounds of analysis (write-side only, Codex read-side audit, closed-loop full audit) expanded scope from 3 files to 10. Key finding: quality.md Iron Law is the delegation root that all other files inherit from — must be patched first. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ce, Codex reviews Adds intro, important files layered diagram, closed-loop 6-phase audit (quality.md delegation chain, brain-ops 8-site patch, types.ts compile gate), architecture compliance section with fixes from Codex (FS-canonical framing, brain-routing.md retained, PageType union blocker, inferType ordering). File count: 3 rewrites + 3 skill patches + 4 code patches + 1 entrypoint = 13. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…iew 4 Narrowed from 10 developer entity types to 4: projects (hub), decisions (ADRs), processes (repeatable workflows), concepts (tools + patterns + mental models). project and concept already exist in PageType; only decision and process are new. Halves the code surface: 2 new PageType entries, 2 DIR_PATTERN additions. Added page templates for all 4 types + structured debug-trail timeline entry format. Added concepts/ notability criteria (junk-drawer prevention). Updated change manifest, architecture compliance, and file counts throughout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…t sections Adds comprehensive Context section covering: what gbrain is, how the agent learns to use the brain (boot sequence), what this spec changes, the two repos involved, the user's workflow, what the agent watches for after implementation, existing PageType values, and key architectural constraints. Removes Goal section (absorbed into Intro + Context) and "What was missed" section (covered by Analysis History + Reviews). Net: +120 lines of context, -30 lines of overlap. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
goals/ maps 1:1 to /goal invocations and is cleanly ME with the other 3 types (context-bound episode vs reusable artifact). projects/ had HIGH overlap with decisions/, processes/, concepts/ because the "does it transfer?" test was a judgment call. goals/ eliminates that: capture in goals/ first, promote out when reusable. New PageType additions: 3 (goal, decision, process). DIR_PATTERN: 3. Added MECE boundary table with hard rules for all 6 entity pairs. Goal page template replaces project page template. Codex review 5 added. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6 rules codified from recurring manual requests during this session: commit after every update, Codex second opinion before decisions, architecture compliance checks, Reviews section maintenance, MECE verification on entity changes, Context section kept current. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rules are meta-instructions for working on the spec. A new session should see them before the content they'll be modifying. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Keep the original as CLAUDE-original-read-only.md for reference when making improvements, but the full 1445-line / 226KB file is too large to use as the active system prompt for implementing the customized-domain spec. The new CLAUDE.md (192 lines / 14KB) preserves exact text from the original for sections relevant to the spec work. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codex Review (gpt-5.3-codex) — PR #4Gate: PASS | Tokens: 68,137 Findings (3 fixed, 2 noted)1. Tier inconsistency — types.ts and markdown.ts placement (FIXED)
Fix applied: Moved both to the Tier 1 "Code/config files to PATCH" section (items garrytan#9 and garrytan#10). Removed from Tier 2 table. 2. Execution order — code-layer must precede skill-layer (FIXED) The original execution order put Fix applied: Reordered to code-first:
3. Missing PageType audit step (FIXED) The spec names 10 specific files but doesn't require a grep pass to find all Fix applied: Added verification step 10: 4. CE weakness — scope boundary implicit (NOTED) The 4-way MECE is strong on mutual exclusivity but collective exhaustiveness only holds under the assumption of "goal-driven developer memory." External references, long-lived project containers, and documentation artifacts are implicitly forced into 5. CLAUDE.md surface area (NOTED) For a spec-only PR, replacing Recommendation: Address finding #1 (tier inconsistency) before implementation because an implementer following the spec literally could defer compile-time prerequisites, causing type errors that block all downstream changes. Findings #4 and #5 are cosmetic for v1 scope. 🤖 Reviewed by Codex (gpt-5.3-codex) via |
…p (Codex review 6) - Moved types.ts and markdown.ts from Tier 2 to Tier 1 code/config (items garrytan#9, garrytan#10) - Reordered execution: code-layer first (types→markdown→link-extraction), then skills - Added verification step 10: grep for hidden PageType consumers - Added Codex review 6 (gpt-5.3-codex PR review, 5 findings, 3 fixed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… test 1) Same exemption as CLAUDE.md — it's a read-only backup of the original project instructions that references the banned name in meta-rule docs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
63b880a to
11dc2cf
Compare
Experiment 1: tested whether gbrain fires during a /goal session with customized-domain skills loaded. Result: zero brain interactions across 288 session log lines. Root cause: advisory instructions ignored under task execution pressure. Includes cross-model analysis (Claude + Codex), ideal session flow, fix priority, and CLAUDE.md patch for fix #4. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
docs/architecture/Test plan
docs/specs/customized-domain.md(Context section first)🤖 Generated with Claude Code