Skip to content

quiet-endpoints: read status from status parts, not an item's own name - #415

Open
agorischek wants to merge 3 commits into
mainfrom
agorischek-upgraded-funicular
Open

agorischek wants to merge 3 commits into
mainfrom
agorischek-upgraded-funicular

Conversation

@agorischek

Copy link
Copy Markdown
Collaborator

What changed

The renderer check No status text at the endpoints (quiet-endpoints) matched status words (Added, Removed, Modified, Renamed, Moved) anywhere in an entity's visible text. An item whose own name holds one of those words therefore failed at Before and After, for example a custom endpoint renderer drawing the route POST /Library/Movies/Added, or the graph renderer on a comparison with no changes, where a label contained "Removed".

The check now reads status structurally, with a narrower textual fallback:

  • Status parts. The probe records the visible text of each part that states a change's status (data-change-status, and the kit's .badge, .pk-status-text, .pk-status-tab, .pk-svg-status and .pk-change-status) as EntitySample.status, outermost parts only, excluding nested entities and never counting the entity element itself. Any status word there fails, even when the item's name holds the same word.
  • Other text. A status word elsewhere in the entity's text fails only when the item's own ID, label and data (every string the entity or relationship with that ID holds in either revision) don't contain it. This keeps coverage for custom renderers that write a loose "Added" without the kit's markup.

The check's catalog description is updated to match.

Evidence

  • npm run tools -- check --fast: pass (format, lint, typecheck of packages/renderers/testing, considered, boundaries, changelog and the other gates; harness typecheck and lint need the engine build and are left to CI).

  • npm run tools -- test packages/renderers/testing: pass (29 tests). The new test quiet-endpoints reads status from status parts, not from an item's own name covers (1) labels containing Added or Removed passing at both endpoints, (2) a status badge at an endpoint failing even next to a name containing the same word, and (3) unmarked status text that the name doesn't contain still failing.

  • Regression confirmed: with the previous endpoints.ts, the new test fails with At Before (progress 0), "endpoint:POST /Library/Movies/Added" shows "Added"; endpoints carry no status.

  • New browser spec packages/renderers/harness/browser/status-parts.spec.ts (chromium-desktop) checks that the probe reads status parts apart from names, skips faded status and never treats the entity element as a status part. Not run locally (it needs the engine build); left to CI.

  • Documentation that this change affects is updated, and generated reference
    pages are regenerated (npm run docs:generate).

  • Fixes include a regression test.

  • A changelog fragment at changelog.d/<this PR's number>.md describes what
    users will notice, or the PR has the no changelog label (see
    changelog.d/README.md).

  • No credentials, private source or machine-specific paths are included.

agorischek and others added 2 commits December 5, 2026 03:13
The check failed any entity whose text held a status word, so a route
/Library/Movies/Added or a member named Removed failed at Before and After.
The probe now records the text of status parts (data-change-status, the
kit's badges, status lines and tabs) apart; a status word there fails, and
one elsewhere fails only when the item's own ID, label and data don't hold it.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+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

Active issues cause false quiet-endpoints failures for hidden or nested status text and deeply nested data, while repeated full-collection scans introduce a scalability regression.

4 open issues
What changed in this PR

Updates quiet-endpoints to distinguish change-status indicators from words in an item’s own content.

Changes:

  • Records status-part text separately from entity text.
  • Checks unmarked status words against item content in both revisions.
  • Adds regression coverage and updates documentation.
File Description
packages/​renderers/​testing/​test/​helpers.test.mjs Covers names, badges, and unmarked status text.
packages/​renderers/​testing/​src/​types.ts Adds optional status-part samples.
packages/​renderers/​testing/​src/​measure/​entities.ts Collects text from status elements.
packages/​renderers/​testing/​src/​checks/​comparison/​endpoints.ts Separates status indicators from item content.
packages/​renderers/​testing/​src/​checks/​catalog.ts Updates the check’s description.
packages/​renderers/​harness/​browser/​status-parts.spec.ts Adds browser coverage for status sampling.
changelog.d/​415.md Documents the endpoint-check correction.

Review effort: Balanced

…n and nested status parts

Addresses review: names are indexed once per check and collected only when a
status word asks; data is walked iteratively without a depth limit; a nested
entity or a part only assistive technology hears is never a status part.

Co-authored-by: copilot-swe-agent[bot] <198982749+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