Repository navigation
feat: estate-read batch 5, --discover reads, catalog edges, Backstage tab (#1079 #1080 #1076) - #1094
Merged
Merged
Conversation
… --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.
… a slice of graph.json (#1076)
…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.
9 of 11 tasks
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 --discoverinfra/netandargo, and none from the module (src/discover-read.test.ts, against a document recorded from chant main).behold-tf-*scratch project is written.example-terraform-estatedraws the same: it holds a declaration, so discovery never applies.src/chant-floors.ts, andbehold doctorlists it.Measured on
kubernetes/k8s.ioinfra/(55 members): behold's own Terraform reader takes 3.5 s cold, and--discoverthrough 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|autooverrides 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
src/catalog-route.test.ts,src/catalog-draw.test.ts, recorded chant fixtures).prodonly.ruleis extended to placeholder and ambiguous edges; no second field is added.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
createFrontendPlugin,EntityContentBlueprint), an annotated component (behold.intentius.io/roots) draws only its root. Checked on a scaffolded Backstage 1.56 app.<EntityLayout.Route>.proxy.endpoints, with no backend plugin. The Backstage token goes only to the proxy.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.