Norn/state/map.yaml

152 lines
7.1 KiB
YAML
Raw Normal View History

2026-05-25 17:58:21 +01:00
experiment:
name: Norn
status: active
2026-05-25 22:02:48 +01:00
phase: in_repo_rust_solver_authority
2026-05-25 17:58:21 +01:00
premise: >
2026-05-25 22:02:48 +01:00
Test whether a Rust hybrid Sugiyama / Kamada-Kawai 2D and 3D layout solver
with React/WASM and C# windows can make typed Epiphany machine maps
inspectable without drowning humans or agents in transcript fog, static
export artifacts, or engine furniture.
2026-05-25 17:58:21 +01:00
objective:
primary: >
2026-05-25 22:02:48 +01:00
Provide the Rust hybrid graph layout solver for Epiphany-style typed state:
architecture graphs, dataflow graphs, and cross-links rendered through
React/WASM and C# windows.
2026-05-25 17:58:21 +01:00
current: >
2026-07-10 02:49:28 +01:00
Publish Norn graph semantics through a runtime-independent Eve plugin
sidecar while keeping the Rust solver authoritative and treating renderers
as projections rather than semantic owners.
2026-05-25 17:58:21 +01:00
constraints:
- Keep persistent state small enough to rehydrate quickly.
- Prefer typed graph contracts over engine-specific public controls.
2026-05-25 18:03:56 +01:00
- Do not let root C# project shape, MSAGL support code, or MCP exports define
repo identity.
2026-05-25 17:58:21 +01:00
- Do not add fallback layout truth behind the Rust solver for realtime viewer
modes.
- Treat benchmarks and rendered inspection as the proof layer for visual
claims.
2026-05-25 18:03:56 +01:00
- Keep C# bridge work peripheral unless it explicitly routes to the Rust
solver and protects a named consumer contract.
2026-05-25 17:58:21 +01:00
invariants:
- `state/map.yaml` is canonical slow memory, not a running diary.
- `state/scratch.md` is disposable task memory.
- `notes/fresh-workspace-handoff.md` is the short re-entry packet.
2026-05-25 22:02:48 +01:00
- `crates/norn-rs` is the Rust layout solver source and crate authority.
2026-07-10 02:49:28 +01:00
- `crates/norn-eve-plugin` owns Eve plugin ABI dispatch and stdio framing.
- Provider state remains provider-owned; the plugin returns semantic and
measurement results but cannot commit provider commands or receipts.
2026-05-25 18:03:56 +01:00
- `web/norn-viewer` is the live React/WASM client package.
- The .NET generator and MCP server are peripheral support surfaces for
Obsidian exports, legacy inspection, package tooling, and benchmark
fixtures.
- The Rust solver WASM bundle is the layout authority for 2D and 3D hybrid
layout modes; failures should be visible rather than silently replaced.
2026-05-25 17:58:21 +01:00
- Public viewer API remains coarse: state, layout intent, motion/performance
knobs, selection/focus, expanded node, and callbacks.
- Visual or layout improvements require visible inspection, benchmark output,
or both.
data_flow:
observe:
- typed Epiphany graph state from host applications
2026-05-25 22:02:48 +01:00
- Rust solver source and exported WASM from `crates/norn-rs`
2026-05-25 18:03:56 +01:00
- Obsidian vault notes only for legacy static graph generation
2026-05-25 17:58:21 +01:00
- benchmark corpora and blind graph-truth probes
- rendered viewer or SVG output as the user-visible truth layer
process:
- validate and normalize graph state at the viewer boundary
2026-05-25 18:03:56 +01:00
- call the Rust solver through the WASM bridge for authoritative layout
- treat browser motion as presentation around the solver anchor
2026-05-25 17:58:21 +01:00
- render graph partitions, cross-links, labels, selection, and detail panes
- measure visual usefulness through benchmark artifacts when tuning
2026-07-10 02:49:28 +01:00
- dispatch typed Eve plugin requests and route graph measurement to the
Rust solver without importing any provider or renderer implementation
2026-05-25 17:58:21 +01:00
output:
- React `NornViewer` package exports
2026-05-25 18:03:56 +01:00
- embedded solver WASM bytes under `web/norn-viewer/src/lib`
2026-05-25 17:58:21 +01:00
- demo build artifacts under `web/norn-viewer/dist`
- static SVG/JSON generator output under requested output directories
- benchmark baselines and review artifacts under `benchmarks/` or `out/`
2026-07-10 02:49:28 +01:00
- Norn-owned plugin advertisements, ABI fixtures, and schemas
- sequential NDJSON plugin responses over stdio
2026-05-25 17:58:21 +01:00
active_subgoals:
2026-05-25 18:03:56 +01:00
- Keep the React/WASM viewer API stable and coarse.
- Preserve Rust solver authority for hybrid Sugiyama / Kamada-Kawai 2D and 3D
layout.
2026-05-25 17:58:21 +01:00
- Use benchmark harnesses before claiming visual usefulness or realtime budget
improvement.
- Keep persistent project state distilled and current.
2026-07-10 02:49:28 +01:00
- Add CultMesh transport as another carrier for the same typed request and
response model when the daemon host contract is ready.
2026-05-25 17:58:21 +01:00
accepted_design:
2026-05-25 22:02:48 +01:00
- The Rust crate under `crates/norn-rs` is the primary product surface and
solver authority.
- The React/WASM viewer backed by the Rust solver is the primary inspection
client.
2026-05-25 18:03:56 +01:00
- The root .NET generator and MCP server remain bridge/export/support
surfaces.
2026-05-25 17:58:21 +01:00
- Viewer motion is a presentation layer around the base layout anchor, not a
second durable graph truth.
- Benchmark probes should measure whether rendered graphs improve graph-truth
recovery, not whether they look impressive.
2026-07-10 02:49:28 +01:00
- The Eve sidecar is transport and ABI ownership around `norn-rs`; it is not
a Unity, web, Sai, or provider-specific plugin host.
2026-05-25 17:58:21 +01:00
rejected_paths:
- name: dual_client_surface
reason: >
2026-05-25 18:03:56 +01:00
Making the C# generator and React/WASM viewer equal consumer surfaces
would split authority and force clients to understand implementation
history.
2026-05-25 17:58:21 +01:00
- name: shadow_solver_fallback
reason: >
Quietly replacing failed Rust solver output would create a second layout
truth and hide the failure mode from consumers.
- name: visual_vibes_as_evidence
reason: >
Attractive graph output is not proof that agents or humans can recover
graph truth from the render.
2026-05-25 18:03:56 +01:00
- name: csharp_repo_identity
reason: >
The root `.csproj` is peripheral bridge/export machinery. Treating it as
the repo's identity hides the React/WASM frontend and Rust solver body.
2026-05-25 17:58:21 +01:00
current_status:
summary: >
2026-07-10 02:49:28 +01:00
Norn owns its first executable Eve graph plugin sidecar. The sidecar
validates and measures graph documents through the Rust solver over a
bounded NDJSON stdio protocol; React/WASM, C#, Unity, and other runtimes
remain consumers that project the result.
2026-05-25 17:58:21 +01:00
next_action: >
For the next feature or fix, rehydrate from this map, identify the owning
2026-05-25 18:03:56 +01:00
surface, then verify against the solver, WASM bridge, viewer, or visible
render layer that actually carries the invariant.
2026-05-25 17:58:21 +01:00
verification:
default_checks:
- command: "npm run typecheck"
cwd: "E:\\Projects\\Norn\\web\\norn-viewer"
use_when: "React viewer TypeScript or API changes"
- command: "npm run build"
cwd: "E:\\Projects\\Norn\\web\\norn-viewer"
use_when: "React viewer build, package, or demo changes"
- command: "npm run tune:simulation"
cwd: "E:\\Projects\\Norn\\web\\norn-viewer"
use_when: "Realtime simulation budget or sampling changes"
- command: "npm run profile:solver"
cwd: "E:\\Projects\\Norn\\web\\norn-viewer"
use_when: "Rust solver WASM or layout performance claims"
2026-05-25 18:03:56 +01:00
- command: "cargo test"
2026-05-25 22:02:48 +01:00
cwd: "E:\\Projects\\Norn"
2026-05-25 18:03:56 +01:00
use_when: "Rust solver source or algorithm changes"
2026-07-10 02:49:28 +01:00
- command: "cargo clippy --workspace --all-targets -- -D warnings"
cwd: "E:\\Projects\\Norn"
use_when: "Rust solver or Eve plugin sidecar changes"
2026-05-25 17:58:21 +01:00
- command: "dotnet build E:\\Projects\\Norn\\Norn.csproj"
cwd: "E:\\Projects\\Norn"
2026-05-25 18:03:56 +01:00
use_when: "Peripheral C# bridge, export, or MCP changes"