Skip to content

Runtime policies: an Unchanged rows control that folds what didn't change - #218

Open
agorischek wants to merge 4 commits into
mainfrom
agorischek-runtime-policy-fold
Open

agorischek wants to merge 4 commits into
mainfrom
agorischek-runtime-policy-fold

Conversation

@agorischek

@agorischek agorischek commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: f5e672b83ccb566ad4ae2e71e80bc3564daa1af9

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ New fold.spec and all runtime-policy browser specs pass in every project (47 with the renderer checks).
↑ Unit tests and tools check --fast pass; screenshots reviewed.
↓ Rules inside a changed lane don't fold, by design; CI pending.

A new host control, Unchanged rows (unchanged: show by default, or fold), folds the All scope's unchanged rows in a comparison:

  • Rows: each run of two or more unchanged agents, kernels, policies or workloads becomes one row, e.g. "2 unchanged kernels".
  • Hooks: each run of unchanged hooks becomes one line, e.g. "3 unchanged hooks". Even a single hook folds, because a lane is far taller than its fold.
  • What counts as changed: a row whose own status changed, or one with a chip arriving or leaving inside it.

The folds use the kit's Fold, as the database renderer's unchanged columns do. A fold opens in place and stays above what it lists as "Hide 3 unchanged hooks". A fold row is a row of its table's grid, raised like the rows, with its glyph and label at the names' inset.

A definition presets the control with presentation.rendererOptions: {"unchanged": "fold"} where a change is small beside its unchanged surroundings. The case behind this is the hosted homepage's runtime-policy slide: its 6-change story is about twice the stage's height when every unchanged lane is listed. The Changes scope already leaves unchanged rows out, so it never folds.

  • Scenario: deployment-review-folded presets the control. Folded, it draws 1,940px against 2,656 listed, with every change still drawn.
  • Tests: browser/fold.spec.ts checks that:
    • the folds' labels and their full-width, one-line rows are right;
    • every change is still drawn;
    • a fold opens and closes in place;
    • the Changes scope doesn't fold.
  • README: documents the control.

…ange

A host control, Unchanged rows (show, the default, or fold), folds the All
scope's unchanged rows in a comparison: each run of two or more unchanged
agents, kernels, policies or workloads becomes one row, and each run of
unchanged hooks one line, since a hook's lane is far taller than its fold.
A row counts as changed when it or a chip inside it is. The folds are the
kit's Fold, as the database renderer's unchanged columns are, and open in
place. A definition presets it with presentation.rendererOptions where a
change is small beside its unchanged surroundings, as on a stage too short
to list both. The Changes scope already leaves unchanged rows out, so it
never folds.

The deployment-review-folded scenario presets it; browser/fold.spec.ts
checks the folds, that every change stays drawn, that a fold opens and
closes in place, and that the Changes scope doesn't fold.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical folding bug hides relationship-only changes in side-by-side mode because eligibility relies on chips marked unchanged, requiring revision-aware relationship checks and a regression test.

1 open issue
What changed in this PR

Adds an Unchanged rows control to the runtime-policy renderer, reducing comparison height by folding unchanged content while preserving access through expandable rows.

Changes:

  • Adds folding for unchanged row groups and hook lanes in the All scope.
  • Adds a preset scenario and documents the control.
  • Adds browser checks for fold layout, expansion, change visibility, and Changes-scope behavior.
File Description
packages/​renderers/​runtime-policy/​src/​view.tsx Registers the control and renders expandable folds.
packages/​renderers/​runtime-policy/​src/​styles.css Aligns fold rows with table grids and lane borders.
packages/​renderers/​runtime-policy/​src/​fold.ts Defines the control, change detection, and folding logic.
packages/​renderers/​runtime-policy/​scenarios.json Adds a deployment scenario with folding enabled.
packages/​renderers/​runtime-policy/​README.md Documents folding behavior and configuration.
packages/​renderers/​runtime-policy/​browser/​fold.spec.ts Tests fold presentation, interaction, and scope behavior.

Review effort: Balanced

agorischek and others added 3 commits November 30, 2026 20:58
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The kit's fold button brings an inset fill and dashed rules above and
below; in a runtime-policy table the rows' own rules are its borders, so
those doubled them and left the sign column a different color. As the
kit's table folds do, the button draws neither, and the whole row, sign
column too, takes the hover.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…wn revision's

A side-by-side pane draws one revision, with no chip arriving or leaving,
so folding by the pane's own model folded workloads whose coverage changed
(the deployment review's three, in both panes). What changes is now read
from the diff's model whatever the frame shows (changedRows), and a
side-by-side regression test checks both panes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants