Skip to content

Epic (M1): the component graph, both projections, on Floci #54

Closed

Description

@lex00

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 the chant CLI (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/edges chant graph returns. 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 deploying awslabs/loom. Six components + a downstream-stub, each a src/components/*.component.ts wrapping a composite. Components have a dependsOn DAG → 4 waves. Deploy is chant 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's package.json scripts, 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:agentcore on :4566, app on :8080). See scripts/local/local-up.sh, e2e test/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 --local brings up its own emulator via chant emulator up (src/emulator.ts, src/server.ts:330), while loomster's local-up.sh brings up its Floci. Decide the single source of truth for the Floci endpoint early (likely: inherit AWS_ENDPOINT_URL=http://localhost:4566 from 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

Related chant work

Activity

  1. added a commit that references this issue on Jul 19, 2026
  2. lex00 commented on Jul 19, 2026

    @lex00
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions