PRODUCT SPECIFICATION · T2 · 2026-08-24

AI-native IDE

A local-first workspace for directing coding agents across worktrees while inspecting code-derived architecture, domain/data models, process flow, knowledge, audit history, prompts, and coordinated work as linked visual evidence.

Canonical Markdown specification · Privacy review · Grounding knowledge hub

Part A — Functional specification

Problem and core scenario

Multiple coding agents, terminals, worktrees, code artifacts, infrastructure files, and audit records are currently disconnected. The product must let the operator inspect their relationships without creating a hand-maintained architecture model.

In the core scenario, a technical lead selects a domain aggregate, traces it through data/service/infrastructure relationships, identifies an affected worktree/session, inspects the audit evidence, prepares feedback, and explicitly dispatches that reviewed prompt to the intended ready session.

In scope

  • Derived architecture, domain/class, ERM, flow, dependency, and knowledge views.
  • Worktree/session coordination, work-item board, audit explorer, and staged prompts.
  • Multiple terminal/visual/prompt tabs within a workspace.

Explicit non-goals

  • Replacing a source editor or hand-editing derived diagrams.
  • Perfect extraction of dynamic relationships.
  • Cloud synchronization, multi-user graph writes, or autonomous code changes.
  • Selecting storage, renderer, terminal, or extractor technology before spikes.

Required user outcomes

StoryObservable outcome
Implemented architectureFilter, expand, and inspect code/infra relationships with provenance, confidence, and stale/failed refresh state.
Domain and dataDistinguish hierarchy, aggregate/entity/value-object classifications, ERM evidence, and missing/inferred joins.
Flow and impactShow static and runtime flow differently; return bounded impact results with published limits and continuation.
KnowledgeSearch and navigate source artifacts, knowledge, and audit decisions as distinct, source-backed information spaces.
CoordinationShow work intent separately from current evidence-derived state, session, agent, worktree, dependency, and freshness.
Prompt stagingKeep a revisioned rich-text draft until the user confirms an immutable revision and target session/generation.
Audit historyRead eligible audit entries with integrity/redaction/duration state; never turn missing information into a clean empty result.
Workspace tabsPreserve tab identity/context and provide non-destructive recovery instead of silently retargeting a terminal or view.

Conceptual domain model

The model separates Workspace Registry, Evidence and Projection, Agent Operations, Work Coordination, and Audit Reading so source-derived truth, user intent, and audit evidence cannot silently become the same thing.

Aggregate / factInvariant
Workspace RegistryCanonical repository/worktree membership is unique in the workspace and rejects path-escaped membership.
Relationship Claim + Evidence AssertionEvery displayed relationship has attributable assertion evidence; no evidence renders as not recorded, not a claim.
Agent SessionAn active session has at most one active worktree reference at a time and has a generation-bound readiness state.
Prompt Draft + Delivery ReceiptOne immutable prompt revision, workspace, target session generation, and dispatch key identify one delivery outcome.
Work Item + Work-State AssessmentHuman work intent is distinct from an evidence-derived assessment; stale, unknown, and conflicted override success-shaped status.
Audit Entry / Derived ViewAudit records are append-only source evidence; a view is rebuildable projection and never implementation truth.

Part B — UX specification

The primary operator is an expert working under cognitive load. The experience is dense, not cramped; calm, not passive; powerful, not opaque. Reading evidence is parallel; composing and dispatching a prompt is serial and deliberate.

Workspace

Repositories, worktrees, sessions, and health.

Explore

Architecture, Domain, Data, Flows, Dependencies, Knowledge.

Coordinate

Work board, claims, slices, conflicts.

Compose

Prompt drafts, context references, target session.

Audit

Timeline, prompts, responses, artifacts, decisions.

Every flow has an explicit recovery path: source refresh can retry, inspect provenance, or return to Explore; dispatch can revalidate, retarget, or preserve a draft and exit; coordination can show no-match/conflict/write-failure states; audit and tabs preserve identity when a source/session is unavailable.

Part C — UI specification

The shell uses the B1 Keyboard-Velocity GUI archetype because the dominant job is rapid expert navigation across many sessions and evidence views. It embeds spatial/graph and telemetry views where their jobs require them; it is not a generic equal-weight dashboard.

Archetype signature: Type:OLTP · Arch:SPA · Layout:MasterDetail · Density:Compact · Nav:CommandPalette+Sidebar · Input:KeyboardFirst+PrecisionPointer · A11y:WCAG_2.2_AA

Security, privacy, and verification gates

GateRequired control
Trust boundariesCanonical path containment, safe terminal/renderer behavior, generation-bound prompt binding, default-deny MCP capabilities, bounded parsing, audit integrity, and dependency provenance.
PrivacyWorkspace owner and repository-policy precedence; egress deny by default; source/audit classification before indexing; purpose-minimum retention/deletion; opaque allowlisted telemetry.
Indirect model egressSession declares LocalOnly, ExternalProcessing, or UnknownProcessing. Unknown fails closed for rich prompt/context transfer; external processing requires provider/residency/retention/policy preview.
VerificationVersioned fixtures and deterministic oracles for every user story; red-first security/privacy/accessibility tests and benchmark results before implementation approval.

The linked privacy review adds the LINDDUN-lite data inventory, rights/deletion path, unsafe-audit fail-closed rule, and future external-processing approval requirements.

Flagged risks and handoff

Handoff: proceed to /define-architecture only after the named spikes are planned; no implementation choice is made by this specification.