Skip to content

feat(implementation): read the consumer's own language idioms in implement's type decisions - #16086

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-15835-43540091651-1
Nov 14, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #15835

Summary

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

/implementation:implement now says where its language idioms come from: a file the consuming repository declares for the language a block is written in. The skill finds that file through the ecosystem-resolution steps. An idioms file counts as a language convention, so its record is the standards index row whose Applies-when clues match the block's files. When nothing resolves, the run reports language idioms: none declared for <language> and applies the language-neutral type rules alone. The plugin ships no idioms file and never reads a language page another plugin ships. Choice of means: the contract's carrier rule says a skill cites its own plugin's copy of the steps, so the implementation plugin joins as the first carrier of generic-resolution.md (a new line in scripts/shared-copies.txt plus the generated reference/ecosystem-resolution.md); it does not restate the steps in SKILL.md. Dogfooding step for this repository: docs/standards/README.md has no language rows. Running /implementation:implement here on a block that declares or changes a type should report language idioms: none declared for <language> and go on with the type rules. Adding a row such as | javascript | **/*.mjs; JavaScript code | <file> | should make the next run cite that file.

Remaining work

  • Run the two-version non-inferiority compare of the implement eval cases (opus and sonnet, three runs per side, --case filter, --max-cost-usd ceiling) plus new cases 45 and 46 in the local eval-runner session, and land the record; the pull request carries do-not-merge until then

Not verified

  • Non-inferiority compare of the skill's existing implement eval cases (two-version, opus and sonnet aliases, three runs per side, --case filter, --max-cost-usd ceiling) and runs of new cases 45 and 46: done-when places these in the one local eval-runner session, which this lane cannot run
  • The do-not-merge label until the compare record lands: done-when asks for it, but this lane cannot set labels, so a person must add it to the pull request
  • Tidy skipped: the change touches scripts/shared-copies.txt, a listed shared path, and spans two areas (plugins/implementation and scripts)
  • eval-cases validator (validate-cases.py) and evals-schema are CI-only checks, left to the PR's CI
  • The lane instructions say to leave changes uncommitted for the runner to turn into a patch, so this run made no commits (ci-mode's commit step was not followed)

Fix

  • plugins/implementation/skills/implement/SKILL.md: new 'Language idioms (type decisions)' paragraph after the Step 2 execution cadence, which resolves a consumer-declared idioms file per language through the plugin's ecosystem-resolution copy and reports when none is declared or a tie is found.…
  • plugins/implementation/skills/implement/evals/evals.json: case 45 (a declared TypeScript idioms file is resolved from the standards index row and cited, and the cast becomes a zod parse held with satisfies) and case 46 (an unattended Python run with no declaration reports the missing source,…
  • scripts/shared-copies.txt: registers docs/contracts/ecosystem-resolution/generic-resolution.md -> plugins/implementation/reference/ecosystem-resolution.md (implementation joins as a carrier per the contract's carrier rule).
  • plugins/implementation/reference/ecosystem-resolution.md: new generated copy of the ecosystem-resolution steps (contract 1.0.0), written by scripts/sync-shared-copies.sh.
  • .changes/implementation/work-resolve-issue-issue-15835-43540091651-1-84877a7f.md: minor changelog fragment for the implementation plugin.

Verification

The runner ran each check from the base copy against 7bdd5ff:

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

The run reports:

  • check-changelog-fragments: all 37 fragments valid
  • check-changed-skills: implement PASS, 0 errors, 4 warnings (description length, body length, token size and growth of 296 -> 298 lines; all are advisory warnings about the skill's existing size)
  • check-affected: 14 passed, 7 skipped (tools not installed or CI-only)
  • check-evals-quality plugins/implementation/skills/implement/evals/evals.json: PASS, 0 warnings
  • sync-shared-copies --check: all 849 registered copies match their canonical sources
  • fresh-context review subagent over the whole diff: no critical findings. It raised 2 important findings and 3 suggestions, all fixed: case 46 now requires a typed Settings record so the type-decision path runs; the report now covers an unattended tie; the record is matched by Applies-when clues,…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43540091651

Left out: the items under Not verified.

Related

#15835

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 7bdd5ffdb154b9cd9c5dfee001c780c089c38543. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16086 (head 7bdd5ffd)

No security issues found.

I read every hunk in all 5 changed files. None of them match a trusted-path glob, and the PR changes no plugin manifest, so no manifest <field> lines apply.

What changed

  • plugins/implementation/skills/implement/SKILL.md: this edit only adds text. It removes or weakens no existing rule. The new "Language idioms (type decisions)" paragraph tells the skill to find an idioms file the consuming repository declares for a language. It finds that file through the plugin's copy of the ecosystem-resolution steps, then reports the result. The file is guidance for type decisions only. It does not reach a command, a tool input, a hook or a script. It comes from the repository the skill is already working in, so it adds no new untrusted-text path into a lane that holds credentials.

  • plugins/implementation/reference/ecosystem-resolution.md: a new copy generated from docs/contracts/ecosystem-resolution/generic-resolution.md. It brings its own limits for unattended runs. Such a run:

    • runs only commands the record holds, the repository states, or its files imply;
    • installs nothing;
    • copies no command text out of CI workflow files;
    • writes no record.

    Records are written only in attended runs, after the person says yes (L49-L90). Nothing here widens what the skill may run.

  • scripts/shared-copies.txt: adds one line registering the copy above. It changes nothing that runs or grants anything.

  • plugins/implementation/skills/implement/evals/evals.json: adds two eval cases (45 and 46). These are test data only.

  • The changelog fragment: text only.

Instruction-surface lens: this does not apply, because the PR deletes, narrows or softens no standing instruction.

Embedded text: the PR context contains no instruction aimed at this review lane. It does say a person must add the do-not-merge label until the non-inferiority eval compare lands. That is process work for the owner, not a security matter.

Spend: the two new eval cases add to local eval-runner usage (prepaid API credits). This is not a hold.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16086, 0 findings

Coverage: I read every hunk of all 5 changed files in .claude-lane/pr.diff.

What the PR changes: /implementation:implement now looks up the consuming repository's own language idioms file before it makes a type decision. It finds the file through a new synced copy of the ecosystem-resolution steps. The PR registers that copy in scripts/shared-copies.txt and adds eval cases 45 and 46 plus a minor changelog fragment.

Checks I ran with Read and Grep:

  • Synced copy matches its source. plugins/implementation/reference/ecosystem-resolution.md is word-for-word the same as docs/contracts/ecosystem-resolution/generic-resolution.md (contract 1.0.0). The only difference is the generated header, which comes after the frontmatter as scripts/sync-shared-copies.sh places it. The new line in shared-copies.txt follows the existing <canonical> <copy> format.
  • Carrier rule. docs/contracts/ecosystem-resolution/README.md says a carrier's skill cites its own copy and never restates the steps. The new SKILL.md paragraph cites ${CLAUDE_PLUGIN_ROOT}/reference/ecosystem-resolution.md and does not restate the steps.
  • Matches the type-discipline copy. The new paragraph fits reference/type-discipline.md, which already says each reading skill names where its language idioms live and that a language without an idioms file uses the rules with its own sum types and exhaustiveness check. The unresolved-tie report follows step 7 of the resolution text.
  • Evals. Case IDs 45 and 46 continue the sequence with no duplicates. Case 45 is attended and case 46 is unattended, which matches the run-kind split. Both prompts are synthetic, so .claude/rules/eval-case-transcripts.md is satisfied.
  • Changelog. A minor bump fits a new capability.
  • Path-scoped rules. cost-claims.md and skill-bodies-state-current-rules.md match the changed files. Nothing in the diff breaks either rule.

Not applicable:

  • Paved paths: the standards index has no paved-path row.
  • Plugin manifests: no plugin manifest changed.
  • Closing issue: the PR only says Refs: #15835, and the PR context has no closing-issue section, so there are no acceptance criteria to check.

Open items from the PR body (author-stated; I did not verify them):

  • The non-inferiority compare and runs of cases 45 and 46 have not been done. They are meant for the local eval-runner session.
  • The author asks for a do-not-merge label until that compare record lands. The lane says it cannot set labels, so a person needs to add it.
  • The verification results in the PR body (sync-shared-copies --check, check-changed-skills, check-evals-quality) were reported by the author or the runner. I did not run them.

Spend note: none. The change adds no lane runs, schedules or model settings.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 7bdd5ff

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-16086-7bdd5ffdb154b9cd9c5dfee001c780c089c38543, expires on 2026-12-14.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=7bdd5ffdb154b9cd9c5dfee001c780c089c38543 rubric=8.7.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 14, 2026
Merged via the queue into main with commit e4055f4 Nov 14, 2026
57 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15835-43540091651-1 branch November 14, 2026 03:00
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

0 participants