Skip to content

Commit dfe9ba8

Browse files
committed
docs: add comprehensive L3 specs across all crates with architecture design, traceability, and L2 refinements
1 parent 9031e8e commit dfe9ba8

93 files changed

Lines changed: 8093 additions & 48 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

specs/L2/agent/L2-DES-AGENT-001-execution-engine.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ The final user-facing response should summarize the outcome, changed files where
289289
| related-to | L2-DES-MODEL-001 | 1 | specs/L2/model/L2-DES-MODEL-001-model-provider-binding.md | Model resolution provides runtime invocation profiles. |
290290
| related-to | L2-DES-TOOL-001 | 1 | specs/L2/tool/L2-DES-TOOL-001-built-in-tool-system.md | Defines tool registry, lifecycle, and plan tool behavior used by dispatch. |
291291
| related-to | L2-DES-GOAL-001 | 1 | specs/L2/goal/L2-DES-GOAL-001-ralph-loop-goals.md | Defines autonomous goal continuation and model-facing goal update behavior layered on the engine. |
292-
| specified-by | TBD | TBD | specs/L3/agent/TBD.md | L3 behavior has not been authored yet. |
292+
| specified-by | L3-BEH-CORE-002 | 1 | specs/L3/core/L3-BEH-CORE-002-turn-execution-engine.md | L3 defines the core turn execution state machine and decision boundaries. |
293+
| specified-by | L3-BEH-SERVER-001 | 1 | specs/L3/server/L3-BEH-SERVER-001-server-runtime-transport.md | L3 defines server orchestration around core turn execution. |
293294

294295
## Revision Notes
295296

specs/L2/agent/L2-DES-AGENT-002-interrupt-resume-control.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ Clients should:
242242
| related-to | L2-DES-AGENT-001 | 1 | specs/L2/agent/L2-DES-AGENT-001-execution-engine.md | Defines the execution runtime being interrupted and resumed. |
243243
| related-to | L2-DES-APP-003 | 1 | specs/L2/app/L2-DES-APP-003-client-server-protocol.md | Protocol methods and events expose interrupt and resume control to clients. |
244244
| related-to | L2-DES-CONV-001 | 1 | specs/L2/conv/L2-DES-CONV-001-session-jsonl-data-model.md | Durable records preserve interrupted and resumed state. |
245-
| specified-by | TBD | TBD | specs/L3/agent/TBD.md | L3 behavior has not been authored yet. |
245+
| specified-by | L3-BEH-SERVER-001 | 1 | specs/L3/server/L3-BEH-SERVER-001-server-runtime-transport.md | L3 defines server cancellation token wiring and active work ownership. |
246+
| specified-by | L3-BEH-SERVER-002 | 2 | specs/L3/server/L3-BEH-SERVER-002-interrupt-resume.md | L3 defines interruption targets, resume turns, active work inspection, and crash recovery. |
246247

247248
## Revision Notes
248249

specs/L2/agent/L2-DES-AGENT-003-subagent-architecture.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ These are injected as developer messages at child session start and are stripped
611611
| related-to | L2-DES-SAFETY-002 | 1 | specs/L2/safety/L2-DES-SAFETY-002-approval-mechanism.md | Subagents route through the same approval flow. |
612612
| related-to | L2-DES-CONV-001 | 1 | specs/L2/conv/L2-DES-CONV-001-session-jsonl-data-model.md | Session data model includes fork references and subagent metadata. |
613613
| related-to | L2-DES-APP-003 | 1 | specs/L2/app/L2-DES-APP-003-client-server-protocol.md | Protocol events expose subagent spawn, status, and completion. |
614+
| specified-by | L3-BEH-SERVER-003 | 2 | specs/L3/server/L3-BEH-SERVER-003-subagent-coordination.md | L3 defines spawn lifecycle, agent tree registry, mailbox, completion watching, and session resumption. |
614615

615616
## Revision Notes
616617

specs/L2/app/L2-DES-APP-001-memory-efficient-rust-data-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Memory optimizations must be measurable when they are introduced for performance
7474
| Relationship | Target ID | Target Revision | Target Path | Rationale |
7575
|---|---|---:|---|---|
7676
| refines | L1-REQ-APP-005 | 1 | specs/L1/L1-REQ-APP-005-lightweight.md | Provides technical design guidance for avoiding unnecessary memory growth. |
77-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
77+
| specified-by | L3-DES-ARCH-001 | 1 | specs/L3/L3-DES-ARCH-001-crate-architecture.md | L3 defines crate ownership and efficient data boundary placement. |
7878

7979
## References
8080

specs/L2/app/L2-DES-APP-002-configuration-precedence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Rules:
157157
| related-to | L1-REQ-TUI-006 | 1 | specs/L1/L1-REQ-TUI-006-command-discovery-control.md | Slash commands can trigger session selection or configuration writes. |
158158
| related-to | L1-REQ-APP-012 | 1 | specs/L1/L1-REQ-APP-012-privacy-data-ownership.md | Credential persistence and projection behavior must follow privacy expectations. |
159159
| related-to | L2-DES-APP-005 | 1 | specs/L2/app/L2-DES-APP-005-config-toml-schema.md | Defines the concrete `config.toml` and `auth.json` schemas resolved by this precedence design. |
160-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
160+
| specified-by | L3-BEH-APP-001 | 1 | specs/L3/app/L3-BEH-APP-001-configuration-resolution.md | Defines configuration path resolution, validation, effective merge behavior, inspection projections, and safe persistence mechanics. |
161161

162162
## Revision Notes
163163

specs/L2/app/L2-DES-APP-003-client-server-protocol.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,14 @@ If a client disconnects, the server continues owning active work subject to user
473473
| related-to | L2-DES-TOOL-002 | 1 | specs/L2/tool/L2-DES-TOOL-002-parallel-tool-orchestration.md | Parallel tool groups require parent and child event identifiers for client rendering and replay. |
474474
| related-to | L2-DES-GOAL-001 | 1 | specs/L2/goal/L2-DES-GOAL-001-ralph-loop-goals.md | The protocol exposes user-owned goal controls and canonical goal notifications. |
475475
| related-to | L2-DES-APP-006 | 1 | specs/L2/app/L2-DES-APP-006-fuzzy-search-architecture.md | The protocol exposes fuzzy-search sessions and live result snapshots. |
476+
| specified-by | L3-BEH-CORE-011 | 1 | specs/L3/core/L3-BEH-CORE-011-session-forking-retention.md | L3 defines concrete behavior behind `session.fork`, `session.delete` fork-retention preflight, inherited segment actions, and parent-unavailable fork projection. |
477+
| specified-by | L3-BEH-CORE-012 | 1 | specs/L3/core/L3-BEH-CORE-012-message-edit-workspace-restore.md | L3 defines concrete behavior behind `message.editPrevious`, restore policy, workspace restore events, superseded turns, and replacement turn sequencing. |
476478
| related-to | L2-DES-CLIENT-002 | 1 | specs/L2/client/L2-DES-CLIENT-002-prefixed-input-actions.md | The protocol supports server-owned search providers used by prefixed input. |
477479
| related-to | L2-DES-CONV-001 | 1 | specs/L2/conv/L2-DES-CONV-001-session-jsonl-data-model.md | Durable session events are distinct from live server-client protocol events. |
478480
| related-to | L2-DES-APP-005 | 1 | specs/L2/app/L2-DES-APP-005-config-toml-schema.md | `config.inspect` and `config.update` operate on safe projections and updates derived from the `config.toml` and `auth.json` schemas. |
479-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
481+
| specified-by | L3-BEH-PROTOCOL-001 | 2 | specs/L3/protocol/L3-BEH-PROTOCOL-001-jsonrpc-protocol.md | L3 defines JSON-RPC envelope validation, session subscription, sequencing, broadcasting, turn submission, idempotency, approval races, fork/delete, and message edit requests. |
482+
| specified-by | L3-BEH-SERVER-001 | 1 | specs/L3/server/L3-BEH-SERVER-001-server-runtime-transport.md | L3 defines server runtime transport ownership and event broadcast behavior. |
483+
| specified-by | L3-BEH-CLIENT-001 | 1 | specs/L3/client/L3-BEH-CLIENT-001-connection-subscription.md | L3 defines client connection, subscription, reconnection, and catch-up behavior. |
480484

481485
## References
482486

specs/L2/app/L2-DES-APP-004-observability-architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Telemetry must not include model prompts, model responses, tool outputs, credent
265265
| related-to | L2-DES-AGENT-001 | 1 | specs/L2/agent/L2-DES-AGENT-001-execution-engine.md | Execution phases provide the event capture points for observability. |
266266
| related-to | L2-DES-LLM-003 | 1 | specs/L2/llm/L2-DES-LLM-003-model-usage-observability.md | Defines the model-specific usage and streaming trace data used by this architecture. |
267267
| related-to | L2-DES-TOOL-001 | 1 | specs/L2/tool/L2-DES-TOOL-001-built-in-tool-system.md | Tool lifecycle events and result summaries feed user-facing diagnostics. |
268-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
268+
| specified-by | L3-BEH-APP-002 | 1 | specs/L3/app/L3-BEH-APP-002-observability-runtime.md | Defines structured log records, active diagnostic projection, trace records, redaction, retention, and telemetry runtime behavior. |
269269

270270
## Revision Notes
271271

specs/L2/app/L2-DES-APP-005-config-toml-schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ When a setup flow writes both `config.toml` and `auth.json`, the program should
574574
| related-to | L2-DES-MODEL-001 | 1 | specs/L2/model/L2-DES-MODEL-001-model-provider-binding.md | Provides concrete persistence fields for providers and model bindings. |
575575
| related-to | L2-DES-MCP-001 | 1 | specs/L2/mcp/L2-DES-MCP-001-mcp-integration-architecture.md | Provides concrete persistence fields for MCP servers. |
576576
| related-to | L2-DES-SKILLS-001 | 1 | specs/L2/skills/L2-DES-SKILLS-001-agent-skills-architecture.md | Provides concrete persistence fields for skill roots and enablement. |
577-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
577+
| specified-by | L3-BEH-APP-001 | 1 | specs/L3/app/L3-BEH-APP-001-configuration-resolution.md | Defines schema validation, merge behavior, safe inspection, and atomic per-file write behavior for `config.toml` and `auth.json`. |
578578

579579
## Revision Notes
580580

specs/L2/app/L2-DES-APP-006-fuzzy-search-architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Rules:
224224
| related-to | L1-REQ-CLIENT-004 | 1 | specs/L1/L1-REQ-CLIENT-004-prefixed-input-actions.md | The `@` prefix uses fuzzy-search providers for live selection. |
225225
| related-to | L1-REQ-CLIENT-001 | 1 | specs/L1/L1-REQ-CLIENT-001-localization-readiness.md | Search queries and paths must preserve Unicode text. |
226226
| related-to | L2-DES-CLIENT-001 | 1 | specs/L2/client/L2-DES-CLIENT-001-localization-readiness.md | Defines Unicode, IME, and display constraints for client search input. |
227-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
227+
| specified-by | L3-BEH-CORE-010 | 1 | specs/L3/core/L3-BEH-CORE-010-fuzzy-search.md | L3 defines incremental file search workers, matcher behavior, session lifecycle, and provider model. |
228228

229229
## Revision Notes
230230

specs/L2/app/L2-DES-APP-007-cli-onboarding-entry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ If the user is already inside an active TUI session and needs to repair or add m
9090
| related-to | L2-DES-TUI-001 | 1 | specs/L2/tui/L2-DES-TUI-001-onboarding-ui-flow.md | The CLI entry starts the TUI onboarding flow defined there. |
9191
| related-to | L2-DES-APP-002 | 1 | specs/L2/app/L2-DES-APP-002-configuration-precedence.md | Defines persistence target and source precedence for onboarding output. |
9292
| related-to | L2-DES-APP-005 | 1 | specs/L2/app/L2-DES-APP-005-config-toml-schema.md | Defines persisted config and credential schema written by onboarding. |
93-
| specified-by | TBD | TBD | specs/L3/app/TBD.md | L3 behavior has not been authored yet. |
93+
| specified-by | L3-BEH-CLI-001 | 2 | specs/L3/cli/L3-BEH-CLI-001-entry-onboarding.md | L3 defines CLI argument parsing, onboarding entry, server lifecycle, signal handling, and exit behavior. |
9494

9595
## Revision Notes
9696

0 commit comments

Comments
 (0)