Repository navigation
Description
Goal: Prove behold's core thesis on a real project. Render loomster's six-component deployment so a developer sees the GitLab CI pipeline and the AWS deployment as one wave-ordered graph, running against the Floci local emulator with no AWS account.
Shared context (read before any child issue)
Repos (git toplevel is ~/checkouts/..., not ~/Documents/checkouts/...):
- behold —
~/checkouts/intentius/behold(INTENTIUS/behold). The GUI. A thin Node/Hono service that shells thechantCLI (src/chant.ts) and renders the returned IR with pinhole (src/render.ts, dagre layout). Browser is a vanilla-JS SPA (web/app.js,web/index.html). behold has zero per-substrate logic — it paints whatever nodes/edgeschant graphreturns. Most work here is (a) which chant command behold runs and (b) how the SPA presents the result. - loomster —
~/checkouts/intentius/loomster(INTENTIUS/loomster). A chant project deployingawslabs/loom. Six components + adownstream-stub, each asrc/components/*.component.tswrapping a composite. Components have adependsOnDAG → 4 waves. Deploy ischant run --components all(wave-ordered). - chant —
~/checkouts/intentius/chant(INTENTIUS/chant). Read it to confirm CLI flags and lexicon behavior.
The key structural fact (the whole epic rests on this): loomster's AWS deployment and its GitLab CI are two projections of one graph — the component dependsOn DAG. The aws lexicon projects it into CloudFormation stacks; the gitlab lexicon projects the same src/components/*.component.ts DAG into a pipeline where waves = stages, components = jobs, dependsOn = needs: (see the committed .gitlab/components.yml). So the deliverable is: render the component DAG, wave-laned, colored by live deploy status. Read one way it is the pipeline; read the other it is the deployment. The seam between the two lexicons is the component itself.
Hard constraints (do not violate):
- behold is read-only for this epic. No writes, no Ops triggering. That is a later epic.
- Do NOT rely on cross-substrate live overlay.
src/overlay.ts sourceAnchoredOverlay()throws — the live overlay (chant graph --live --overlay) flattens topology into per-substrate islands. This was tracked as chant deps: chant 0.124.32 #821 (now closed upstream, but behold has not adopted it). This epic avoids it by design: the graph spine is the component DAG from source; live status hangs off nodes as single-substrate AWS (where deps: chant 0.124.32 #821 does not bite). Never draw a live edge from a CI node to an AWS node. - Discover chant's CLI, do not assume it. Confirm every flag against
chant <cmd> --help, loomster'spackage.jsonscripts, and the chant source before coding.
Run loop (your test harness):
- Bring loomster up on Floci:
cd ~/checkouts/intentius/loomster && npm install && just local-up(needs Docker, no AWS account; Floci =ghcr.io/lex00/floci:agentcoreon:4566, app on:8080). Seescripts/local/local-up.sh, e2etest/production-floci-e2e.sh/test/gitlab-runtime-e2e.sh. - Serve behold against it: from
~/checkouts/intentius/behold,npm run dev -- serve ~/checkouts/intentius/loomster --local --env <env>→http://localhost:4600. - Integration gotcha: behold's
--localbrings up its own emulator viachant emulator up(src/emulator.ts,src/server.ts:330), while loomster'slocal-up.shbrings up its Floci. Decide the single source of truth for the Floci endpoint early (likely: inheritAWS_ENDPOINT_URL=http://localhost:4566from loomster's already-running Floci). This is what the spike resolves.
Milestone M1 slices (the child issues)
- M1.0 spike — nail the chant CLI contract for the component graph. Blocks all others.
- M1.0 — render loomster's component DAG (waves + dependsOn edges) in behold.
- M1.1 — live AWS status per component, on Floci (blue→green).
- M1.2 — CI projection facet per component (stage/needs/run command).
- M1.3 — unify into one developer view + e2e (the epic's definition of done).
Handoff order: spike → M1.0 → (M1.1 ∥ M1.2) → M1.3. M1.1 and M1.2 are independent once M1.0 lands.
Definition of done
Open behold on loomster/Floci with no AWS account and see a wave-ordered component graph that reads as both the GitLab pipeline and the AWS deployment; drill into any component for its CI job, its stack, and its resources; e2e green.
Later epics (out of scope here, noted for context)
- M2 — env / tier / target as lenses + the observe→reconcile→apply dial per target.
- M3 — delegated writes + lifecycle verbs at scale (structured wave/phase progress, replacing the raw-log-tail now-line).
- M4 — the estate (many loomster instances + other substrates); this is where behold must adopt chant deps: chant 0.124.32 #821's source-anchored overlay.
Issues
- M1.0 spike: nail the chant CLI contract for the component graph #55 — M1.0 spike: chant CLI contract
- M1.0: render loomster's component DAG in behold #56 — M1.0: render the component DAG
- M1.1: live AWS status per component, on Floci #57 — M1.1: live AWS status on Floci
- M1.2: CI projection facet per component #58 — M1.2: CI projection facet
- M1.3: unify into the developer view + e2e #59 — M1.3: unify + e2e
Related chant work
- graph: emit the CI/pipeline projection alongside the component graph chant#989 — emit the CI/pipeline projection from
chant graph(first-class successor to M1.2; non-blocking) - graph: source-anchored overlay — declared topology + live status chant#821 — source-anchored overlay (closed upstream; behold to adopt for the M4 estate view)
Activity
Merge pull request #60 from INTENTIUS/m1-component-view
lex00 commentedon Jul 19, 2026
M1 complete — component graph, both projections, on Floci. All children (#55-59) delivered via PR #60; e2e green. M2/M3/M4 tracked as follow-on epics.
Merge M2: env/tier/target lenses + observe→reconcile→apply dial (#54)
Merge M3: delegated writes + structured wave/phase progress (#54)
Merge M4: the estate + source-anchored overlay adoption (#54)
Merge M5 slice 1: substrate readiness + bring-up (#54)
Merge M5: substrate readiness clarity (#54)