Skip to content

feat: estate-read batch 5, --discover reads, catalog edges, Backstage tab (#1079 #1080 #1076) - #1094

Merged
lex00 merged 3 commits into
mainfrom
estate/int-behold-5
Nov 15, 2026
Merged

lex00 merged 3 commits into
mainfrom
estate/int-behold-5

Conversation

@lex00

@lex00 lex00 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Part of #1079 (switched on by chant 0.124.98, a maintainer release)
Part of #1080 (switched on by chant 0.124.98, a maintainer release)
Part of #1076 (the single-file viewer path waits on INTENTIUS/pinhole#133 and pinhole 0.6.0)

Batch 5 of the estate-read work in behold (INTENTIUS/chant#5105, epic #1049). Both chant features sit behind a floor (WORKSPACE_DISCOVER_CHANT_FLOOR, REFERENCE_CATALOG_CHANT_FLOOR, both 0.124.98). Below the floor behold reads and draws exactly as it does today, so this merges ahead of the chant release.

#1079: read a folder through chant workspace graph --discover

  • On the fixture, nodes come from infra/net and argo, and none from the module (src/discover-read.test.ts, against a document recorded from chant main).
  • The fixture is unchanged afterwards, and no behold-tf-* scratch project is written.
  • example-terraform-estate draws the same: it holds a declaration, so discovery never applies.
  • Ties show as a note naming each tied directory and the kinds that claim it.
  • The floor is in src/chant-floors.ts, and behold doctor lists it.
  • Applied against a real chant release. Waits on chant 0.124.98.

Measured on kubernetes/k8s.io infra/ (55 members): behold's own Terraform reader takes 3.5 s cold, and --discover through behold takes 34.5 s cold (1.3 s on a reread). So by default (auto) behold discovers only folders it cannot draw itself: no member kind claims them, or they mix Terraform with Kubernetes or Helm. BEHOLD_DISCOVER=always|never|auto overrides this. The Terraform scratch project stays, because search, the plan read, choudoufu and the behaviour delta still use it.

#1080: catalog edges with their rule, dangling and ambiguous references, and a legend

  • Each kind is drawn: one joined edge, one placeholder card and two dotted (ambiguous) edges, each with a legend row (src/catalog-route.test.ts, src/catalog-draw.test.ts, recorded chant fixtures).
  • With two clusters declared, Kubernetes nodes anchor to prod only.
  • With the Terraform cluster renamed, nothing is anchored, and a note says why.
  • behold-graph/1: a versioned graph document and schema in node graph field names #1066's edge rule is extended to placeholder and ambiguous edges; no second field is added.
  • Applied against a real chant release. Waits on chant 0.124.98.

A discovered folder reuses #1079's cached read for its catalog. A declared workspace does one whole-workspace read behind the floor, because a read per member cannot see references across members.

#1076: Backstage tab

  • On the new frontend system (createFrontendPlugin, EntityContentBlueprint), an annotated component (behold.intentius.io/roots) draws only its root. Checked on a scaffolded Backstage 1.56 app.
  • The same on a legacy app through <EntityLayout.Route>.
  • No annotation, no tab.
  • A private bucket reads through proxy.endpoints, with no backend plugin. The Backstage token goes only to the proxy.
  • The single-file viewer in the tab. Unit-tested against the viewer's post transport. A real run waits on pinhole 0.6.0, and until then the tab draws its own SVG plus the cut's Mermaid text.

The plugin is in surfaces/backstage-plugin-behold/. Its npm publish and the directory listing are #1077.

Gates on this branch

  • just check: 371 files passed. The one failure, read-stats.test.ts (a timing test, run under load), passed three times in a row alone.

… --discover (#1079)

A Kubernetes or Helm tree, or a folder that mixes them with Terraform, is
read as a workspace whose members chant found by the kinds' probes. One chant
call per folder, composed the way a declared workspace is, with the ties and
the directories left out named in the note. Gated on chant 0.124.98
(WORKSPACE_DISCOVER_CHANT_FLOOR): below it a folder is read as before.

A Terraform or choudoufu folder with no Kubernetes or Helm file stays on
behold's own reader, which takes 3.5 s on a 55-member tree where --discover
takes 44 s. BEHOLD_DISCOVER=always|never|auto overrides the choice.
…rences, with a legend (#1080)

A declared workspace read by chant 0.124.98 or newer carries the reference
catalog (chant#5097). behold reads it once for the whole workspace and draws
a joined edge for each catalog rule, a dashed placeholder card for a reference
that names nothing, and a dotted edge to each candidate of one that names
several, with a legend row for each. The cluster anchor follows chant's cluster
join: a member's objects anchor to the cluster its Secret joins, or to none,
with a note saying why. Gated on REFERENCE_CATALOG_CHANT_FLOOR; older chants
draw what they always drew.
@lex00
lex00 merged commit 214308a into main Nov 15, 2026
3 checks passed
@lex00
lex00 deleted the estate/int-behold-5 branch November 15, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant