Skip to content

flags on the graph: on or off per environment, with a change-set preview for a flip (#683) - #737

Merged
lex00 merged 2 commits into
mainfrom
feat/683-flags
Oct 18, 2026
Merged

lex00 merged 2 commits into
mainfrom
feat/683-flags

Conversation

@lex00

@lex00 lex00 commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Closes #683

A Flags tab and flag marks on the graph: each feature flag on or off per environment, with its owner, work item and values. Turning one on is previewed as a change set, never toggled.

  • Reads members[].featureFlags from workspace status <env> --json per environment (chant#4024), through the workspace reader.
  • Which nodes: chant doesn't say which graph nodes read a build parameter, so a flag marks every card of its member, and the tab and docs say so. When a waiting gate's stored change set changes the flag's parameter (an attribute param:<param>), behold uses the node chant mapped for that entry; for a release it is a chant:component entry with no node, which the fixture covers.
  • Preview, never toggle: there is no flag write route (tested). A flip waiting at a gate shows " to waits at gate in " with a "change set " link that opens change sets on the graph: draw a pending gate's change set as a preview overlay #681's overlay. A flag that is off with nothing waiting shows the lines a person runs (chant workspace records amend and git commit) and that its change set appears once a release is cut and promoted.
  • Stale flags (WSP118) are marked "due for removal".
  • Floor (chant version floors: one floor per new read, a degraded mode and a doctor line #691): FEATURE_FLAGS_CHANT_FLOOR 0.124.29, degraded below it.
  • Also: the lane's real-chant test and fixtures accept chant#4072's rollback line (--release v2, or --component <c>), re-recorded from chant main.
  • Docs: using/flags.mdx.

Acceptance

  • Flag marks render for a fixture with one flag on in staging and off in prod (src/feature-flags.test.ts, web/feature-flags.test.js, and the real-chant test).
  • A flag change opens its change-set preview ("opens a flip waiting at a gate as that gate's change set, with no toggle", and the real-chant test reading /api/workspace/change-set for that gate).
  • Flags the stale-flag lint reports are marked, with a fixture (old-banner).
  • Adds a floor constant through chant version floors: one floor per new read, a degraded mode and a doctor line #691's convention.

Checks

npm run tsc, npm test, npm run build, bash scripts/typecheck-floor.sh: pass. Real-chant tests (flags, lane, change-set overlay, run events) pass against chant main. No server was started.

lex00 added 2 commits October 17, 2026 18:41
…eviewed as its change set (#683)

Adds the Flags tab and GET /api/workspace/flags: each member's feature flags from chant workspace status (featureFlags, chant#4024) with owner, work item, values per environment and the stale-flag lint's verdict, and a tag under every card of a flagged member in the environment the tab picks, since chant names no node that reads a build parameter. A flip waiting at a gate is found in that gate's stored change set (param:<name>) and opens the change-set overlay; otherwise the tab shows the records amend and commit lines a person runs. behold writes no flag. Floor FEATURE_FLAGS_CHANT_FLOOR 0.124.29, degraded below it. Fixtures recorded from chant main 0689d28f0, status schema refreshed from it, and a real-chant test. Closes #683
…e to restore, and record the lane's status fixtures again (#683)
@lex00
lex00 merged commit 7f58b96 into main Oct 18, 2026
5 checks passed
@lex00
lex00 deleted the feat/683-flags branch October 18, 2026 03:24
lex00 added a commit that referenced this pull request Oct 19, 2026
…state that was (behold#736)

PR #736's ten rounds (8e9d49f..838bcfa), squashed onto main past
#737-#748:

- terragucci's report minor 34 gives a choudoufu root planned with
  `plan -cone=<base>` a `roots[].cone`: its size (`blocks` of `of`,
  `targets`), or `fallback` with the guard's kind and reason. The server
  (src/terragucci-cone.ts) turns the newest pull request plan into
  `pull_request.cone` on /api/terragucci, every root as the plan took it
  (cone, full, planned, not planned), each cone's planned instances from its
  plan.json beside the report. A plan with no cone gets no `cone`.
- The components view carries the cone from planned on: "planned · 2 of 8
  blocks, as a cone" with the cone's resources under it, "planned in full:
  <reason>" for a fallback, "not planned" dimmed. The frame pinned to a
  pull request's plan or a merge's run view reads again every 5 s while its
  pin isn't written yet; the merge's run view replaces the plan.
- A held small stage in Watch (every root on choudoufu, the whole graph
  readable): one framing through the cycle, nothing over the graph, the
  caption's quiet line carrying the step's words; waves in a row. Any other
  stage is as on main.

Merged with main: the components graph takes both #741's `blocks=1` and
the held stage's `waves=row` (a story's fan-out keeps its blocks); the card
words keep #631's font and middle form with the cone's wrap; the result
card keeps chant's result; Tips and modals keep #631's chant rules with the
held stage's gate; the reports carry #741's blocked and outcomes beside
`binaries` and the cone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
lex00 added a commit that referenced this pull request Oct 19, 2026
…es (#736)

* watch: a cone plan lights what it planned, and says how much of the estate that was (behold#736)

PR #736's ten rounds (8e9d49f..838bcfa), squashed onto main past
#737-#748:

- terragucci's report minor 34 gives a choudoufu root planned with
  `plan -cone=<base>` a `roots[].cone`: its size (`blocks` of `of`,
  `targets`), or `fallback` with the guard's kind and reason. The server
  (src/terragucci-cone.ts) turns the newest pull request plan into
  `pull_request.cone` on /api/terragucci, every root as the plan took it
  (cone, full, planned, not planned), each cone's planned instances from its
  plan.json beside the report. A plan with no cone gets no `cone`.
- The components view carries the cone from planned on: "planned · 2 of 8
  blocks, as a cone" with the cone's resources under it, "planned in full:
  <reason>" for a fallback, "not planned" dimmed. The frame pinned to a
  pull request's plan or a merge's run view reads again every 5 s while its
  pin isn't written yet; the merge's run view replaces the plan.
- A held small stage in Watch (every root on choudoufu, the whole graph
  readable): one framing through the cycle, nothing over the graph, the
  caption's quiet line carrying the step's words; waves in a row. Any other
  stage is as on main.

Merged with main: the components graph takes both #741's `blocks=1` and
the held stage's `waves=row` (a story's fan-out keeps its blocks); the card
words keep #631's font and middle form with the cone's wrap; the result
card keeps chant's result; Tips and modals keep #631's chant rules with the
held stage's gate; the reports carry #741's blocked and outcomes beside
`binaries` and the cone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* watch: the cone on fan-out-choudoufu, fifteen estates in the kiosk's story (behold#736)

terragucci folded the standalone cone scenario into fan-out-choudoufu
(terragucci#1167/#1168). Its fix's pull request plans cluster-a as a cone
(1 of 5 blocks) and app-01 to app-06 in full on an empty cone; chapter 1's
release and the merges plan every estate in full.

- A fallback's card says the guard's kind, "planned in full: empty cone"
  (cone.js fallbackKind); its reason is the tooltip's, "choudoufu planned
  it in full: <reason>" (fallbackWhy). Six apps fall back at once, and a
  card holds a few words.
- The plan line groups roots the plan treated alike: "cluster-a: 1 of 5
  blocks, as a cone · app-01 to app-06 planned in full: empty cone · 8
  others not planned".
- A story's stage (a chapter-carrying scenario, behold#741) is never held:
  it keeps its blocks, its result card, #745's pills and #748's outside
  mark. Its carry-over ("applied earlier") wins over "not planned".
- Tests over the stack's own fix report (fe809a32) and cluster-a's
  plan.json, and chapter 1's full plan with no cone.

No per-estate badge on the track: the track is the cycle's steps, not its
estates, and the cone already reads on each estate's card.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* watch: a fallback's card breaks after "planned in full", and a wave's box names whose cone it is (behold#736)

On fan-out-choudoufu's fix a wave holds several estates: wave 3's box said
"planned in full: empty cone" for twelve cards, six of which the plan
never held. The box now says "app-01 to app-06 planned in full: empty
cone" and "cluster-a: 1 of 5 blocks, as a cone" (cone.js rootNames). A
fallback's words that don't fit its card break after "planned in full",
the kind on the line under it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* watch: the cone's lines at a story card's size, no false run of names, and a story's failure modal goes with its pull request (behold#736)

From the live fan-out-choudoufu cycle 602 at 1920x1080:

- The lines under a story card (cardFont 15) were drawn at 11.5: "empty
  cone" read as a smudge. They follow the card's size, a step smaller.
- Chapter 1's release (network falls back on a cone too large, fourteen
  plan with no cone) said "app-01 to cluster-b: planned". A group of names
  is a run only when the numbers follow on (app-01 to app-06); else
  "14 estates".
- The failure modal ("Wave 3 failed") stayed over the fix's cone plan: the
  rule that closes it on a new pull request or step was chant's alone. A
  terragucci story's (#741) closes the same way.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@lex00 lex00 mentioned this pull request Oct 19, 2026
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.

flags on the graph: on or off per environment, with a change-set preview for a flip

1 participant