Skip to content

refactor(ci): simplify resolve-config and seal-lane-output scripts - #14272

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14100-42530604970-1
Nov 8, 2026
Merged

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

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14100

Summary

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

Simplified three of the seven listed files and left behavior unchanged; net 18 fewer lines. resolve.mjs gains an own helper for the repeated Object.hasOwn(o, k) ? o\[k\] : undefined lookups, one loop for the lane and activity vocabulary checks, a single slots binding in loadConfig, a PASSED_THROUGH key list in place of ten conditional spreads in resolveSlot (same keys, same order), and drops a redundant return undefined. vocabulary.mjs shares a stageOf helper between its two checks and inlines the one-use rest. seal.mjs main returns early when no payload is present instead of building an empty lines array. Choice and basis: I left scan-upload.mjs, write-status.mjs and both action.yml files unchanged. The one scan-upload simplification (reusing the first lstat) would change the printed error when a path vanishes mid-scan, which the issue's identical-printed-text criterion rules out, and the others had no cut that made them shorter without making them harder to read.

Not verified

  • Node test suites for .github/actions/resolve-config, seal-lane-output, open-lane-output and their importers were not run: this lane allows no interpreter; left to the PR's CI
  • tidy not run: the change sits under .github/, a listed shared path for the tidy cutoffs
  • ci-status green on the PR is a CI check this run cannot see; left to the PR's CI
  • Untracked dotfiles in the checkout root (.bashrc, .gitconfig, .idea, .mcp.json, .vscode and others) were not created by this run and were left untouched; they are not part of this change

Fix

  • .github/actions/resolve-config/resolve.mjs: own lookup helper, merged vocabulary-name loops, hoisted slots, PASSED_THROUGH list for the optional slot keys, dropped return undefined
  • .github/actions/resolve-config/vocabulary.mjs: shared stageOf helper; inlined the one-use rest
  • .github/actions/seal-lane-output/seal.mjs: main returns early with no payloads and builds the output lines in one expression

Verification

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

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

The run reports:

  • check-changelog-fragments: all 6 fragments valid (no fragment needed: no plugin changed)
  • check-changed-skills: no changed skills, nothing to gate
  • check-affected: 8 passed, 8 skipped over 3 changed files
  • fresh-context review subagent, every hunk checked against HEAD: equivalent for all static inputs; its one finding (scan-upload stdout text on a mid-scan file deletion) was resolved by reverting scan-upload.mjs
  • source-text assertions checked by the reviewer and by grep: pr-merge/workflow.test.mjs (scan-upload appendFileSync shape), callers.test.mjs:3641 (seal.mjs env.GITHUB_RUN_ID), broker-vendoring.test.mjs (resolve.mjs imports unchanged) still hold
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42530604970

Left out: the items under Not verified.

Related

#14100

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

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #14272 (refactor(ci): simplify resolve-config and seal-lane-output scripts)

No security issues found. I read every hunk of all 3 changed files. This is the first review of this pull request: no earlier heads were reviewed, so this is a full review and not blocking only.

Two of the changed files are trust controls. resolve.mjs and vocabulary.mjs are in the token broker signer's load path. seal.mjs is in the action that controls what untrusted text reaches a lane. So I checked each hunk for any widening, judged from the code alone:

  • own(object, key) helper (resolve.mjs). It returns Object.hasOwn(object, key) ? object[key] : undefined, the same expression it replaces at all four call sites:

    • the activityRules lookup in checkLeaves;
    • the applied-by target lookup in checkAppliedBy;
    • the models.routes lookup in checkModels;
    • the laneRules lookup in loadConfig.

    The lookups are still own-property only, so prototype keys are still not read. The lane-stage, undefined-route, forbidden-by-activity and applied-by rejections fire on the same inputs as before.

  • Merged vocabulary loops (resolve.mjs). Lane names are still checked with checkLaneName before activity names with checkActivityName. It is the same Rejection("vocabulary", …) with the same first-failure order.

  • Hoisted slots (resolve.mjs). This only binds lane.slots ?? [] once. The undefined-activity check and the duplicate-leaf check still run over the same entries.

  • PASSED_THROUGH list (resolve.mjs). It holds the same ten keys in the same order (args … applied-by). The check is still !== undefined, with the same prototype-chain read as the old activity.x === undefined. None of the keys collide with [kind] (skill/script). effect, gating, reads-untrusted, grant and the other security-relevant fields of the resolved slot are unchanged, so the broker mints the same token for the same config (resolve.mjs#L887-L908).

  • Dropped return undefined in checkConfigPath (resolve.mjs). The function now returns undefined implicitly, which is the same value. Its failure paths still throw through fail, and the callers at resolve.mjs:350 and resolve-config.mjs:476 are unaffected.

  • stageOf helper and inlined rest (vocabulary.mjs). The condition stage === undefined || name === stage still gives fn === undefined and so rejects the name. Otherwise the suffix is the same name.slice(stage.length + 1). checkActivityName still rejects names that start with a stage word (vocabulary.mjs#L19-L31).

  • Early return in main (seal.mjs). The old guard lines.length > 0 was true exactly when payloads.length > 0, so outputs are written on the same condition as before. The public-key read and parse, the max-chunks bound and the SealError handling all still run before the return (seal.mjs#L100-L116).

Nothing new on the signer's load path reads or sends the signing key, a minted token or the environment. No token scope, trusted actor, kill-switch path or merge hold is touched. No plugin manifest changed, and the PR context contains no instructions aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #14272, refactor(ci): simplify resolve-config and seal-lane-output scripts

No findings. I read every hunk of all 3 changed files and checked each one against the code at head. Each change leaves behavior the same.

Trusted-path check

.github/actions/resolve-config/resolve.mjs and vocabulary.mjs match the .github/actions/resolve-config/** trusted path, so I read their whole change and the validation it gates:

  • own helper. It behaves the same as the three-way Object.hasOwn(o, k) ? o[k] : undefined lookups it replaces in checkLeaves, checkAppliedBy, checkModels and the lane-rules lookup. The guard against keys inherited from the prototype is kept.
  • Merged vocabulary loops. The order is unchanged: all lane names are checked first, then all activity names. The same Rejection("vocabulary", …) is thrown first.
  • slots binding. Nothing between the old repeated lane.slots ?? [] reads changes lane.slots, so the single binding sees the same value.
  • PASSED_THROUGH. It has the same 10 keys in the same order as the old conditional spreads. They are spread at the same position, after [kind] and before effect, and a key is still skipped when its value is undefined. The key order of the resolved slot is unchanged.
  • Dropped return undefined in checkConfigPath. The function still returns undefined.
  • stageOf in vocabulary.mjs. The inlined rest ran under the same condition (stage === undefined || name === stage), and rest was not used anywhere else, so checkLaneName returns the same value. The name = "<stage>-" edge case still calls longestPrefix with "", as before.
  • seal.mjs early return. The old lines.length > 0 guard was always true whenever payloads.length > 0, so the output is the same in both cases. Nothing in main runs after that point.

Closing issue #14100 acceptance criteria

  • Behavior unchanged: met, per the check above. The tests in resolve.test.mjs, vocabulary.test.mjs and seal.test.mjs exercise these paths. The source-text check in callers.test.mjs:3641 (env.GITHUB_RUN_ID in seal.mjs) still finds its text. The other test references I found to these files are path strings, not checks on their code.
  • Only listed files edited: met. All 3 files are on the issue's list.
  • Within 400 changed lines / 15 files: met.
  • ci-status green: this run cannot see CI. The author's verification is their own claim, and I did not confirm it.

No embedded instructions were found in the PR context.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for d5b9fe8

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14272-d5b9fe8ac4851c3a0f0982c267debe9ca4568ad1, expires on 2026-12-08.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit bb64fbf Nov 8, 2026
66 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14100-42530604970-1 branch November 8, 2026 23:35
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit bb64fbf676fb4a0de2ec938e0ac6855d5cc7bf5d; 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.

Simplify .github: resolve-config, scan-upload, seal-lane-output

0 participants