Skip to content

fix(visualization): cut the TypeScript and React code-shape examples - #17464

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16803-44560075773-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16803-44560075773-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16803

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Cuts the model-read ecosystem specifics from visualization (ADR 0101, rules revision 5). Row count: 1.

Row Rule Kind Outcome
F0521 R11 K7 Cut. The tsx component-tree fence, the ts types-and-signatures fence and the ts whole-block fence in plugins/visualization/skills/visualize/context/code-shapes.md are deleted with no replacement example. This file is not a routing site where the skill takes a language-specific step. Each section keeps its prose guidance.

Script-reader search for F0521: the lane cannot run git grep, so I ran the same fixed-string search with ripgrep (the Grep tool) for code-shapes.md over plugins/, scripts/ and .github/. It found four hits, all prose and none in a script: plugins/visualization/CHANGELOG.md:780, plugins/visualization/CHANGELOG.md:800, plugins/visualization/skills/visualize/SKILL.md:82 and plugins/visualization/skills/visualize/context/decision-matrix.md:191. No script reads the file, so the row is cut here.

Whole page or part: code-shapes.md is a partial cut (3 of its 11 fences); the page stays. The prose that said each form has one example was reworded to 'a section per form, most with an example' in code-shapes.md, SKILL.md and decision-matrix.md. A partial cut takes a detection-control result in the host-session eval.

Cases that read the cut text: no case's prompt names code-shapes.md, and I traced no run, so which runs read the file is inferred from the case prompts. viz-reset-button-diff (a diff over a component tree from history) is the existing case most likely to read the cut component-tree section. viz-ambiguous-code (offers code-shape forms, types and signatures among them) may read the types-and-signatures section. The lane ran neither.

References outside the plugin: removed the file's skill-stack-fences ceiling (3) from .performance/ratchets.json. Its only remaining fences are tagged text and diff, so the counter now gives 0, and scripts/skill-stack-fences.py lists only files whose count is above 0. Updated the two rows of docs/upstream/humanlayer-skills.md that recorded the removed <SessionPage> and slugify examples as shipped. AC10: no enforcement-placing skill is added.

Not verified

  • Tidy not run: the change spans 3 areas (plugins/visualization, .performance, docs/upstream), above the tidy cutoff of 1 area
  • check-affected skipped comment-hygiene (it could not fetch from the ci-workflows repository, network denied), size-check (script missing in the lane), typos (not installed), and the validate-plugins and changed-skills steps that run code from the checked tree; the PR's CI runs them
  • Eval cases not run: the host session runs the targeted before-and-after case and the detection control on the PR
  • Script-reader search ran as a ripgrep search (Grep tool), not the literal git grep command, because the lane allows no git grep
  • Outside this issue's row, so not cut: the 'A component change' diff fence in code-shapes.md (about lines 61-70) still uses React JSX and hook syntax (<SessionPage>, useSessionEvents()). The fence counter misses it because it is tagged diff. Worth classifying on #15730.

Fix

  • plugins/visualization/skills/visualize/context/code-shapes.md: deleted the tsx component-tree, ts types-and-signatures and ts whole-block example fences; the intro now says each code-shape row has a section, most with an example
  • plugins/visualization/skills/visualize/SKILL.md: Step 2's pointer to code-shapes.md now says a section per form, most with an example, instead of one example per form
  • plugins/visualization/skills/visualize/context/decision-matrix.md: same pointer rewording in the Code-shape sketches section
  • .performance/ratchets.json: removed the skill-stack-fences ceiling entry for code-shapes.md (its count is now 0)
  • docs/upstream/humanlayer-skills.md: the Component tree and whole-block rows record that their examples were removed under ADR 0101
  • .changes/visualization/work-resolve-issue-issue-16803-44560075773-1-e00b657d.md: new patch changelog fragment (Removed) for the visualization plugin

Verification

The runner ran each check from the base copy against ac5b985:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 3 fragments under .changes/ valid (run before and after the review fixes)
  • check-changed-skills: CHECK-SKILL visualize PASS, 0 errors, 4 warnings, none of them about the edited lines (description length, body length, token count, decision-matrix TOC)
  • check-affected: 14 passed, 9 skipped over 6 changed files, with no failures
  • Grep for code-shapes.md over plugins/, scripts/ and .github/: 4 prose hits and no script reader
  • Read scripts/skill-stack-fences.py: text and diff are excluded tags, and files with a count of 0 are not printed, so the ratchet entry is removed rather than set to 0
  • Fresh-context review subagent over the whole diff: JSON is valid, the file's fence count is 0, and nothing else in the repo goes stale; its three wording findings were fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44560075773

Left out: the items under Not verified.

Related

#16803

Lane-Activity: work-resolve-issue/resolve-issue
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for the before-and-after eval that cut item #16803 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 44564985100

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed ac5b98548562ab1d14e8ea27d3501b94df6cbb4e: read 6 of 6 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #17464, cut the TypeScript/React code-shape examples from visualize

The change is documentation only, across six files. It deletes three example fences from code-shapes.md: the tsx component tree, the ts types and signatures, and the ts whole block. It rewords the three "one example per form" pointers in code-shapes.md, SKILL.md and decision-matrix.md. It drops the file's skill-stack-fences ceiling, updates two attribution rows in docs/upstream/humanlayer-skills.md, and adds a patch changelog fragment.

Against closing issue #16803:

  • Row F0521 is cut. At 5b66a7fa, the cited ranges 33-44, 57-69 and 123-134 map exactly onto the three deleted fences. Each section keeps its prose.
  • Fence ratchet is met. The ratchet goal says no file may gain a fence, so a file not in the ceiling list effectively has a ceiling of 0. Removing the entry therefore takes it from 3 to 0, which tightens the check. I read scripts/skill-stack-fences.py: text and diff are excluded tags (line 47) and files with a count of 0 are not printed (lines 141-142), so the remaining fences count 0.
  • "Most with an example" is accurate. 4 of the 7 code-shape sections keep an example.
  • PR-body items are present. The row count, the script-reader search, the cases that read the cut text, and whole page versus part are all in the PR body. I did not rerun the search or the checks the body lists; those are author-claimed and unverified.
  • Left for later: the issue's eval-evidence steps belong to a later host session.
  • Known leftover: the diff fence "A component change" (code-shapes.md:63-70) still uses React JSX and a hook (<SessionPage>, useSessionEvents()). It is outside row F0521, and the PR body already flags it for Classify the remaining guidance rows blind and count the cuts per plugin #15730. The one inline finding is that the changelog fragment's wording overstates the cut because of this fence.

Trusted path: docs/upstream/humanlayer-skills.md matches docs/upstream/**. Its change only rewrites the attribution notes of two table rows, and it gates nothing.

No embedded instructions found in the PR context.

Loosened-check verdict: fail (default; no loosened_check_verdict:/loosened_check_patterns: lines in the prompt); patterns: 0. No loosening found: removing the ratchet entry is a tightening. The citation requirement was not checked because there is no loosened_check_decision_record: line.

No subagent verifier was dispatched for this small diff; the one candidate was checked inline against the head file.

Verifier dropped 0 of 1 candidates.

critical-findings: 1

Findings not posted inline (their lines are not in the diff):

  • .changes/visualization/work-resolve-issue-issue-16803-44560075773-1-e00b657d.md:15 (RIGHT): Advisory: the changelog claims more than the cut does. The last sentence, "shipped skills carry no examples tied to one language or framework", is not true at this head. The same file still ships a React JSX/hook example in the diff fence "A component change" (plugins/visualization/skills/visualize/context/code-shapes.md:63-70: <SessionPage>, useSessionEvents(), <RunSkillButton />). The PR body itself defers that fence to Classify the remaining guidance rows blind and count the cuts per plugin #15730.

A reader of the release notes would conclude the plugin is free of framework-specific examples, and code-shapes.md shows it is not. Scope the sentence to the three cut sections:

- The `visualize` skill's code-shape sketches no longer carry the React `tsx` component-tree
  example or the TypeScript `ts` examples for types and signatures and for the whole block. The
  sections keep their guidance and now carry no example tied to one language or framework.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed ac5b98548562ab1d14e8ea27d3501b94df6cbb4e: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read every hunk of all 6 changed files. There is nothing to hold.

  • plugins/visualization/skills/visualize/context/code-shapes.md: deletes three example fences (tsx component tree, ts types and signatures, ts whole block). Each section keeps its guidance prose, and the intro is reworded to "a section per form, most with an example". Under the instruction-surface lens, the change removes illustrations only. No standing rule, guardrail, block list or allowlist is removed or softened. The rendered-views escape baseline in decision-matrix.md ("never rendered to HTML until this lane is wired through the rendered-views escape helper") is unchanged.
  • SKILL.md and decision-matrix.md: the same pointer rewording, with no change to what the skill allows or forbids.
  • docs/upstream/humanlayer-skills.md (trusted path docs/upstream/**): I read its whole change. It updates two attribution rows to record the removed examples. It is provenance prose and gates no trust decision, token scope or merge hold.
  • .performance/ratchets.json: removes a skill-stack-fences ceiling entry for a file whose counted fences are now 0. This is a performance ratchet, not a security control.
  • .changes/... fragment: a new patch changelog fragment, prose only.

No plugin manifest, workflow, trust control, token request or kill-switch path is touched. The PR context file has no embedded directives aimed at the review.

critical-findings: 0

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.328 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: a pure cut of one R11 K7 row (F0521), part of the page: skills/visualize/context/code-shapes.md drops the React tsx component-tree example and the TypeScript ts examples under 'Types and signatures' and 'The whole block'; each section keeps its rule text. SKILL.md and decision-matrix.md only reword the pointer sentence ('one example per form' becomes 'a section per form, most with an example'). Measured: F0521 by p17464-viz-settings-component-tree (the component-tree site), counted only when 2 of 3 runs a side opened code-shapes.md. Unmeasured: the 'Types and signatures' and 'The whole block' sites of F0521 have no case.

  • Reworded copy p17464-viz-settings-component-tree: from plugins/visualization/evals/viz-retry-pseudocode (identical at both shas); single-fence, no-page-or-mermaid and no-question are copied verbatim, the prompt is new (a settings screen described in prose, the component tree named) and pseudocode-fence is replaced by tree-save-path, hook-kept, no-unrelated-branch and paths-in-parens. No skill-fired grader existed to remove.

  • Unmeasured rows: the 'Types and signatures' and 'The whole block' parts of F0521 have no case; no existing case renders either form.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: a0ee0857780da8fa464f075597b442710c6d543f (merge base with main)

  • After: ac5b98548562ab1d14e8ea27d3501b94df6cbb4e (pull request head; live head when this was written: ac5b98548562ab1d14e8ea27d3501b94df6cbb4e)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17464-viz-settings-component-tree tree-save-path 3/3 3/3
p17464-viz-settings-component-tree hook-kept 3/3 3/3
p17464-viz-settings-component-tree no-unrelated-branch 0/3 0/3
p17464-viz-settings-component-tree single-fence 3/3 2/3
p17464-viz-settings-component-tree no-page-or-mermaid 3/3 3/3
p17464-viz-settings-component-tree no-question 3/3 3/3
p17464-viz-settings-component-tree paths-in-parens 0/3 0/3
p17464-viz-settings-component-tree mean case score 0.714 0.667

Graders that cannot show a loss, because they failed on the old text in every run:

  • p17464-viz-settings-component-tree no-unrelated-branch: cannot show a loss: failed on the old text in every run (0/3)
  • p17464-viz-settings-component-tree paths-in-parens: cannot show a loss: failed on the old text in every run (0/3)

Changed files the compare runs opened, per case and side:

  • p17464-viz-settings-component-tree before: opened no changed file in 3 runs
  • p17464-viz-settings-component-tree after: opened no changed file in 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • none

Rows these runs did not measure:

  • F0521 (skills/visualize/context/code-shapes.md, case p17464-viz-settings-component-tree): opened in 0 of 3 before, 0 of 3 after runs: below the measured line

Verdicts:

  • verdict p17464-viz-settings-component-tree (visualize): PASS (no loss: after 0.667, before 0.714)

Cost: 0.78 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17464-viz-settings-component-tree

prompt.md:

---
description: "Reworded copy of plugins/visualization/evals/viz-retry-pseudocode (its single-fence, no-page-or-mermaid and no-question graders kept verbatim; its prompt and pseudocode-fence grader replaced). A UI described in prose, with the form named, takes the component-tree code-shape sketch (SKILL.md Step 2 row 'a component tree with file paths'; context/code-shapes.md 'Component tree': keep the state hooks and module boundaries that matter, leave everything else out, file paths in parentheses) as one fence in the terminal. tree-save-path grades SettingsPage and SaveButton in the first fence, hook-kept the state hook, no-unrelated-branch that the profile and notifications branches stay out, paths-in-parens a component line carrying its file path in parentheses: the rule whose example the cut removed."
tags: [visualization, visualize, outcome, code-shape, no-network, routine]
max_turns: 10
timeout_seconds: 300
allowed_tools: [Skill, Read]
expected_outcome: "One fenced component tree of the save path: SettingsPage with its file path in parentheses, the useSettingsDraft hook, SettingsForm and SaveButton with their paths, and none of the profile or notifications branches, with no page, mermaid diagram or question."
---

/visualization:visualize I'm about to change how saving works on the settings screen. The screen is SettingsPage, which lives in src/routes/settings/page. It calls the state hook useSettingsDraft, which holds the draft values, the last saved copy and a dirty flag. Inside SettingsPage sit four children: ProfileSection, which lives in src/routes/settings/profile and renders AvatarUpload from packages/ui; NotificationsSection, which lives in src/routes/settings/notifications and renders EmailToggle from packages/ui; SettingsForm, which lives in src/routes/settings/form; and SaveButton from packages/ui. Only the save path matters for this change. Show me its component tree.

case.yaml:

schema_version: "1.1"
name: p17464-viz-settings-component-tree
graders:
  - name: tree-save-path
    type: 'regex'
    pattern: '^(?:(?:(?!```|~~~)[\s\S])*?(?:```|~~~)(?:(?!```|~~~)[\s\S])*?(?:```|~~~))*?(?:(?!```|~~~)[\s\S])*?(?:```|~~~)[^\n]*\n(?=(?:(?!```|~~~)[\s\S])*?SettingsPage)(?=(?:(?!```|~~~)[\s\S])*?SaveButton)'
    target: 'last_message'
  - name: hook-kept
    type: 'regex'
    pattern: '^(?:(?:(?!```|~~~)[\s\S])*?(?:```|~~~)(?:(?!```|~~~)[\s\S])*?(?:```|~~~))*?(?:(?!```|~~~)[\s\S])*?(?:```|~~~)[^\n]*\n(?:(?!```|~~~)[\s\S])*?useSettingsDraft'
    target: 'last_message'
  - name: no-unrelated-branch
    type: 'regex'
    pattern: '^(?:(?:(?!```|~~~)[\s\S])*?(?:```|~~~)(?:(?!```|~~~)[\s\S])*?(?:```|~~~))*?(?:(?!```|~~~)[\s\S])*?(?:```|~~~)[^\n]*\n(?:(?!```|~~~)[\s\S])*?(?:AvatarUpload|EmailToggle|ProfileSection|NotificationsSection)'
    match: 'not_contains'
    target: 'last_message'
  - name: single-fence
    type: 'regex'
    pattern: '^[ \t]*(?:```|~~~)'
    flags: 'm'
    match: 'count:2'
    target: 'last_message'
  - name: no-page-or-mermaid
    type: 'regex'
    pattern: '<!doctype\s+html|<html\b|<body\b|<head\b|<div\b|<section\b|<svg\b|<x-embed\b|<script\b|visualize\.html|claude\.ai/(?:code/)?artifact|```mermaid'
    flags: 'i'
    match: 'not_contains'
    target: 'last_message'
  - name: no-question
    type: 'regex'
    pattern: '\?[ \t]*(?:\*\*|__|\*|_)?[ \t]*$'
    flags: 'm'
    match: 'not_contains'
    target: 'last_message'
  - name: paths-in-parens
    type: 'regex'
    pattern: '^(?:(?:(?!```|~~~)[\s\S])*?(?:```|~~~)(?:(?!```|~~~)[\s\S])*?(?:```|~~~))*?(?:(?!```|~~~)[\s\S])*?(?:```|~~~)[^\n]*\n(?:(?!```|~~~)[\s\S])*?(?:SettingsPage|SettingsForm|SaveButton)[^\n(]{0,60}\([^)\n]*/[^)\n]*\)'
    target: 'last_message'

Posted by an agent session.

@kyle-sexton

Copy link
Copy Markdown
Member

Note on the eval record above: this PASS is weak evidence for the cut.

  • The cut row was not measured. No run on either side opened skills/visualize/context/code-shapes.md (0 of 3 before, 0 of 3 after), so row F0521 is below the measured line. The runs answered from the loaded skill text alone.
  • The one grader that could show a loss could not. paths-in-parens failed in every run on the old text (0/3) as well as the new (0/3), and so did no-unrelated-branch.
  • What the runs do show: with the three TypeScript and React example fences gone, a component-tree request still returns a single fenced tree with the save path and the hook (tree-save-path and hook-kept 3/3 on both sides). single-fence read 3/3 before and 2/3 after, one run under the 2-run loss line.
  • Not tested: the types-and-signatures and whole-block example sites of the cut; any reply that reads code-shapes.md.

The case is new for this registration (no existing visualization case has a grader that depends on the cut examples). The record is posted as registered because cut items are gated on the no-loss compare alone; the cut removes examples and keeps each section's rule text, and it reverts cleanly.

Spend: 0.78 USD of plan usage, smoke runs included.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head ac5b98548562ab1d14e8ea27d3501b94df6cbb4e, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=ac5b98548562ab1d14e8ea27d3501b94df6cbb4e rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 8ca4944 Nov 19, 2026
110 of 114 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16803-44560075773-1 branch November 19, 2026 17:33
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 8ca49444b70d4ed0f5be1100ab4b0f30339225e7; later checks count it verified from this comment.

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.

Cut the model-read ecosystem specifics from visualization

1 participant