FE-785: M5 agent-graph-integration#163
Conversation
PR SummaryMedium Risk Overview Source topology aligns with D52-L by moving the Pi product tree from Evidence & persistence: a checked-in Housekeeping: Reviewed by Cursor Bugbot for commit b1fed92. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 76ea7a8. Configure here.
| > This note captures a design conclusion that emerged while pressure-testing the current `ln-*` workflow against the product direction in [`docs/architecture/prd.md`](file:///Users/lunelson/Code/hashintel/brunch-next/docs/architecture/prd.md), [`docs/architecture/pi-seam-extensions.md`](file:///Users/lunelson/Code/hashintel/brunch-next/docs/architecture/pi-seam-extensions.md), and [`memory/SPEC.md`](file:///Users/lunelson/Code/hashintel/brunch-next/memory/SPEC.md): a **single start-to-finish spec for the whole product** is a naive and impractical model. | ||
| > | ||
| > This document does not yet change the canonical architecture register. It is a design note intended to sharpen the next round of architecture and planning decisions. | ||
| > The spec-as-initiative identity and the spec↔claim vocabulary are now locked in [`memory/SPEC.md`](file:///Users/lunelson/Code/hashintel/brunch-next/memory/SPEC.md) (D61-L, plus Lexicon `Spec` / `Claim`). The richer model below — cross-spec claim survival/adoption, initiative-status lifecycle, spec-to-spec relationships, current-truth-as-projection — remains a deferred directional bet (SPEC §Future Direction → Spec initiative & claim model), not yet product contract. |
There was a problem hiding this comment.
Absolute local file path committed in documentation
Low Severity
The newly added line introduces a file:///Users/lunelson/Code/hashintel/brunch-next/memory/SPEC.md absolute local filesystem URL. This path is specific to one developer's machine and won't resolve for anyone else. While pre-existing lines in the file already have this anti-pattern, this commit adds a new instance of it.
Reviewed by Cursor Bugbot for commit 76ea7a8. Configure here.
Amp-Thread-ID: https://ampcode.com/threads/T-019e83f6-44c9-741a-a90a-9e9535774b3d Co-authored-by: Amp <amp@ampcode.com>
Relocate Pi extension shell and all product extensions, components,
context builders, and tests from src/tui-client/ to src/.pi/ to
match the D52-L source topology: src/{.pi, agents, db, graph, session, rpc, web}.
Update all import paths, projectRoot() helpers, relative URL depths,
and the build:pi-assets script in package.json.
Amp-Thread-ID: https://ampcode.com/threads/T-019e840d-172b-736c-839e-e441f7308220
Co-authored-by: Amp <amp@ampcode.com>
M5 slice 1: A14-L proof-of-life — the agent can now call commit_graph to atomically create nodes+edges and read_graph to inspect graph state. - command-adapter.ts: Pi tool params → CommandExecutor input translation and CommandResult → tool result text formatting - graph/index.ts registrar: registerBrunchGraph with TypeBox v1.x parameter schemas using StringEnum for enums - Pre-bound GraphSnapshotReaders so extensions never import db/ (I26-L) - Re-export enum const arrays from graph/index.ts for I26-L compliance - Extension shell wires graph tools when options.graph is provided - 9 integration tests: translate, format, end-to-end commit+read, I34-L all-or-nothing rollback, not-found handling Amp-Thread-ID: https://ampcode.com/threads/T-019e840d-172b-736c-839e-e441f7308220 Co-authored-by: Amp <amp@ampcode.com>
Update all src/tui-client/.pi/ path references to src/.pi/ in both canonical planning docs. Mark agent-graph-integration as in-progress with execution pointer noting the topology move and graph tool wiring. Amp-Thread-ID: https://ampcode.com/threads/T-019e840d-172b-736c-839e-e441f7308220 Co-authored-by: Amp <amp@ampcode.com>
- Move session-domain files to src/session/ (coordinator, binding, envelope,
projection-reader, transcript, elicitation/structured-exchange, project-identity)
- Move web-host to src/rpc/, brunch-pi-profile to src/.pi/, web-client/ to
src/web/, test-helpers to src/probes/; delete empty snapshot-{graph,nodes} stubs
- Fix imports (tsc-driven), web entry path, source-path test reads, and
web-host dist-web resolution for the new locations
- Reconcile src/ and session/ READMEs; PLAN branch note; trim specTitle placeholder
SPEC: revise D25-L (orthogonal strategy/lens axes), D40-L (session-agent record, role derived from op_mode); add D58-L (3-layer composition), D59-L (goal axis), D60-L (snapshot pull/render/surface); rewrite §309/§311 to the 3-layer model; update I25-L; add Lexicon terms (Session agent, Goal, AUTO, Capability/skill, Snapshot, Agent definition); retire legacy (lens-catalogue, pinning posture, runtime bundle, flat composition prose). PLAN: register agent-runtime-vocabulary (active) and agents-composition-layer (next) frontiers with dependencies; sequence ahead of the M5 A14-L proof.
- D58-L: thin runtime header + gated prompt-resource manifest; methods
(capability synonym retired); manifest {name,description,location}
metadata code-owned in agents/state.ts, not filesystem-discovered.
- D52-L/lexicon: agents/ topology = methods/; contexts/ is the D60-L
render layer, not a manifest resource family.
- SPEC: concrete agents/ topology (md/ts boundary); posture deferred.
- PLAN: rewrite agents-composition-layer to the manifest model;
oracle design reconciled (already filed as I38-L), not owed.
D58-L manifest model (thin header + read-on-demand resources, not eager packs), D40-L/D59-L state axes (op_mode + goal/strategy/lens, role derived), D60-L contexts-as-render, and the concrete agents/ topology. Fixes stale session.mode/agent vocab, modes/ dir, readiness-context, and the .pi/context migration table.
76ea7a8 to
c77a3fd
Compare
f5780d0 to
227874c
Compare



plan: add branch for M5 agent-graph-integration (FE-785)
Amp-Thread-ID: https://ampcode.com/threads/T-019e83f6-44c9-741a-a90a-9e9535774b3d
Co-authored-by: Amp amp@ampcode.com
move src/tui-client/.pi → src/.pi per D52-L source topology
Relocate Pi extension shell and all product extensions, components,
context builders, and tests from src/tui-client/ to src/.pi/ to
match the D52-L source topology: src/{.pi, agents, db, graph, session, rpc, web}.
Update all import paths, projectRoot() helpers, relative URL depths,
and the build:pi-assets script in package.json.
Amp-Thread-ID: https://ampcode.com/threads/T-019e840d-172b-736c-839e-e441f7308220
Co-authored-by: Amp amp@ampcode.com
wire commit_graph and read_graph Pi tools through CommandExecutor
M5 slice 1: A14-L proof-of-life — the agent can now call commit_graph
to atomically create nodes+edges and read_graph to inspect graph state.
and CommandResult → tool result text formatting
parameter schemas using StringEnum for enums
I34-L all-or-nothing rollback, not-found handling
Amp-Thread-ID: https://ampcode.com/threads/T-019e840d-172b-736c-839e-e441f7308220
Co-authored-by: Amp amp@ampcode.com
reconcile SPEC.md and PLAN.md: path refs → src/.pi/, M5 in-progress
Update all src/tui-client/.pi/ path references to src/.pi/ in both
canonical planning docs. Mark agent-graph-integration as in-progress
with execution pointer noting the topology move and graph tool wiring.
Amp-Thread-ID: https://ampcode.com/threads/T-019e840d-172b-736c-839e-e441f7308220
Co-authored-by: Amp amp@ampcode.com