Inloom product strategy and architecture
Status: proposed; phase-specific Design First approval required.
Product scope
Support manual engineering first, optional AI assistance, and reviewed agent-driven work in the same project. Switching modes does not grant permissions. Manual editing works without a configured model or network; unavailable governance checks must not be reported as passed.
Inloom owns document interaction, selection, editing commands, editor state, navigation, decorations and editor-specific adapters. Intentloom owns project policy, agent execution (Neutron), approved Apply, evidence, memory, knowledge graphs, managed extensions and review. Reuse shared project and workspace operations instead of creating another AI platform.
Dependency and integration boundary
flowchart TD
D[Intentloom Desktop composition] --> U[Inloom editor surface]
U --> E[Editor application and ports]
E --> A[Editor engine adapter]
E --> H[Workspace host port]
H --> I[Intentloom application operations]
I --> N[Neutron and approved Apply]
I --> K[Knowledge and evidence]
F[Future optional standalone host] --> UCore, CLI and MCP must work without the editor. The existing Desktop composition root may depend on Inloom; canonical application, protocol and validator layers must not import renderer types. Standalone extraction means composing the same editor contracts with another host adapter, not duplicating governance or guaranteeing an independently shipped product. No package is created until a real vertical slice needs it. The current workspace uses flat package discovery; exact package names and topology require the initial design review. No Nx migration or second desktop shell is implied.
Document ownership and synchronization
Define a minimal engine-independent document identity, revision and selection contract, edit batches, dirty state, commands, undo/redo, diagnostics and capability negotiation. Specify offset encoding, newline and Unicode behavior, including UTF-16 boundaries used by language tools. Choose one authoritative mutable buffer per document in each design. If a native service mirrors unsaved text, send bounded revisioned deltas with acknowledgments and resynchronization, not full text per keystroke. Use local input immediately; do not wait on IPC, graph refresh or AI.
Manual saves must check root, path, symlink, expected disk revision and ownership; never silently replace external or agent edits. Detect stale proposals and dirty-buffer conflicts, offer explicit diff/reload/rebase choices, and recover unsaved work safely. AI changes use the existing prepare, review, approve, revalidate and transactional Apply path. Editor Undo is distinct from repository or agent transaction rollback.
Integrated development experience
Link editor selections to Architecture Live Sync with revision-bound approved versus observed graph mappings. Reuse Project Lantern for explanations and isolated practice, and evidence for history and provenance. Show agent activity and scoped write reservations without implying file locks where none exist. Use existing work-graph handoffs; future human and agent communication is a separate capability, not a second scheduler.
Manual, hybrid and agent-driven views share one editor experience. Use existing design tokens: matte black monochrome by default, restrained glass accents on selected controls, accessible contrast, keyboard focus, reduced motion and readable syntax. No visual style may degrade typing.
Native and web evolution
Desktop first, using current React and Tauri. Prefer standard language services and bounded native operations where measurements justify them. GPU-native rendering is an optional later host/surface research path, not a drop-in React component. Web and embedded clients may use a web adapter with explicit host capabilities; mobile is review/focused interaction first. Do not promise desktop parity or arbitrary local filesystem access.
Security and extraction gates
Use typed, bounded host operations; no generic shell, arbitrary filesystem access, automatic extension installation or provider access. Keep secrets outside editor exports and model context. Treat language servers, source text, plugins and model output as untrusted. Review processes, network, resource limits, crash recovery, licensing and accessibility independently.
A host-neutral contract test with an in-memory document host proves the editor can operate without Intentloom services. Standalone packaging, commercial distribution and a public SDK require separate product, compatibility and license decisions.