Skip to content

Domain audit architecture plan: Three Dragons re-derivation#69

Open
danielbdyer wants to merge 2 commits into
mainfrom
claude/domain-audit-architecture-qOhhJ
Open

Domain audit architecture plan: Three Dragons re-derivation#69
danielbdyer wants to merge 2 commits into
mainfrom
claude/domain-audit-architecture-qOhhJ

Conversation

@danielbdyer
Copy link
Copy Markdown
Owner

Summary

  • First-principles re-derivation of the domain ontology, master architecture, and typed seam contracts through the "Three Dragons" lens (interface intelligence, agentic intervention, recursive self-improvement)
  • Comprehensive 1400-line plan in docs/domain-audit-plan.md covering new type artifacts, law tests, seam contracts, implementation sequencing, and theoretical framing
  • Introduces cross-dragon handoff protocols, external agent model (Claude Code/Copilot/CI as typed participants), intervention sagas, convergence FSM, and performance hyper-parameters

What the plan covers

New type artifacts (2 files):

  • lib/domain/types/dragon.ts — Dragon discriminant, lifecycle FSM, cross-dragon handoff envelope, fold functions
  • lib/domain/types/external-agent.ts — External agent model, saga types, operator-as-improver meta-loop

Extended types (backward-compatible):

  • ConvergencePhase FSM replacing boolean convergence detection in improvement.ts
  • PerformanceConfig for efficiency hyper-parameters alongside accuracy tuning
  • ExtendedObjectiveVector with latency, memory, cache dimensions

Law tests (4 files, 25 laws):

  • Dragon interaction, external agent, convergence FSM, performance config

Documentation updates (3 files):

  • domain-ontology.md — Major rewrite with Three Dragons framing
  • master-architecture.md — Cross-dragon protocols, meta-dragons, performance surface
  • seams-and-invariants.md — 3 new seams (dragon handoffs, external agents, performance)

Theoretical framing:

  • Category-theoretic (functors, natural transformations)
  • Information-theoretic (compression, channel capacity, MDL)
  • Control-theoretic (discrete-time feedback, convergence, BIBO stability)
  • Game-theoretic (cooperative multi-agent, mechanism design)

Test plan

  • Review plan for alignment with existing doctrine (CLAUDE.md, master-architecture.md, domain-ontology.md)
  • Verify all referenced existing types and files are accurate
  • Validate implementation sequencing and critical path
  • Confirm backward compatibility of proposed type extensions
  • Approve before proceeding to implementation phases A-D

https://claude.ai/code/session_01DZvVXFuALcDvhwbfm1pR6a

claude added 2 commits March 24, 2026 00:26
First-principles re-derivation of the domain ontology, master architecture,
and typed seam contracts from the perspective of the three architectural
spines: interface intelligence, agentic intervention, and recursive
self-improvement.

Plan covers:
- Dragon lifecycle FSM and cross-dragon handoff protocols
- External agent model (Claude Code, Copilot, CI as typed participants)
- Intervention sagas with compensation for multi-step workflows
- Operator-as-improver meta-loop closure
- Convergence FSM replacing boolean convergence detection
- Performance hyper-parameters alongside accuracy tuning
- Extended objective vector with efficiency dimensions
- 25 law tests across 4 new test files
- 3 new seams added to invariant contracts
- Implementation sequencing with critical path analysis
- Category-theoretic, information-theoretic, control-theoretic,
  and game-theoretic framing

https://claude.ai/code/session_01DZvVXFuALcDvhwbfm1pR6a
…ation

Replace the Dragon metaphor with first-principles organization around
five measurable improvement surfaces (from recursive-self-improvement.md)
and three architectural spines. Key changes:

- §1-3: Philosophical foundation, five surfaces with derivatives and
  integration formula, three spines with formal definitions and mapping
- §4-6: Spine detail (interface intelligence, agent workbench, recursive
  improvement) with surface mappings and simplified convergence
- §7-9: Meta-concerns, external agent model (saga pattern, operator-as-
  improver), performance hyper-parameters retained per owner directive
- §10-11: Type artifacts (no dragon.ts), law tests (surface-integration
  laws added, convergence-fsm laws removed)
- §12-14: Seams (surface integration seam added), implementation
  sequencing, theoretical framing with calculus-theoretic integration

Zero dragon references. Hyper-parameters fully retained. Third spine
simplified: one actor, one experiment, no 6-phase FSM.

https://claude.ai/code/session_01DZvVXFuALcDvhwbfm1pR6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants