Skip to content

feat(skills): add supervised skill-effectiveness A/B authoring - #3223

Open
Dimitrios Mavroeidis (dmavroeid) wants to merge 17 commits into
microsoft:mainfrom
dmavroeid:feat/1504-skill-effectiveness
Open

Dimitrios Mavroeidis (dmavroeid) wants to merge 17 commits into
microsoft:mainfrom
dmavroeid:feat/1504-skill-effectiveness

Conversation

@dmavroeid

@dmavroeid Dimitrios Mavroeidis (dmavroeid) commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Description

Add supervised skill-effectiveness authoring: compare the same agent and task
without a focus skill against the same conditions with that complete skill.
Support existing-skill and pinned repository-derived entry routes, preserving
native Vally execution, workspaces, graders and reporting.

The review update separates candidate collection, protected offline
grading and saved-output assessment. It adds scoped session/inventory checks,
bounded media and lifecycle handling, durable audit copies, standalone notices
and the repository's standard Node skill layout. An optional Windows-native
command profile has explicit platform and task-qualification limits.

Current documentation revision: f9e985f.
It only clarifies optional platform-package requirements for the regression
suite. Runtime and test files are unchanged from repair revision
44f71ac.
The original review update 017ecbc is retained, current main was integrated in
c9eb89e, and d13fdf2 plus 44f71ac address the reported CodeQL patterns
and Linux CI installation. The earlier and current validation below are
distinguished; a previous head's green checks are not reused as current proof.

Related Issue(s)

Related to #1504.

CI gating, generalized multi-agent lifecycle, committed baseline studies and
repository-wide effectiveness automation remain deferred. This narrower
contribution does not claim to close the broader proposal or its child issues.

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with hve-builder and addressed all actionable findings
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)
  • Copilot hook (.github/hooks/*/*.json)
  • Eval spec added/updated for changed AI artifacts (evals/)

Note for AI Artifact Contributors:

  • Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review .github/agents/ before creating new ones.
  • Skills: Must include both bash and PowerShell scripts. See Skills.
  • Model Versions: Contributions MUST target models listed in the model catalog (scripts/linting/model-catalog.json) whose provider appears in providerAllowlist and whose status is ga or preview. Run npm run lint:models to validate references.
  • See Agents Not Accepted and Model Version Requirements.

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

The addition includes Node.js .mjs helpers and native Vally YAML
templates. The Other selection is left for human confirmation.

Sample Prompts (for AI Artifact Contributions)

User Request:

Use skill-effectiveness to prepare a fair baseline-versus-with-skill task for
this skill and these public inputs. Author and validate the package only;
do not run candidates or paid reviews.

For repository intake, the user can instead supply a pinned repository and ask
whether its non-obvious conventions justify a focused candidate skill.

Execution Flow:

  1. Discuss the useful task, baseline headroom and claimed benefit.
  2. Author native paired variants with only the complete focus skill differing.
  3. Select execution, source assessment or actual image evidence as appropriate.
  4. Validate package mechanics and required runtime boundaries before separately
    authorized execution.
  5. Interpret both arms, retaining ties, failures, variation and unknowns.

Output Artifacts:

Native eval/experiment specifications, public fixtures, separate protected
grading/review inputs, package configuration and evaluation notes. A typical
notes outline is:

Task and claimed benefit
Pinned sources and complete focus skill
Baseline and treatment conditions
Evidence method and valid alternatives
Runtime qualification and approved scope
Observed results, failures and unknowns

Success Indicators:

Native lint/dry-run and model-free checks pass. Actual inventories and role
bindings are inspected before interpreting outcomes. A passing treatment alone
does not establish benefit; the publisher can explain what changed relative to
baseline and what remains unmeasured.

For detailed contribution requirements, see:

Testing

Current security-pattern and CI repairs

The production readers validate opened descriptors before reading bytes,
retaining canonical/link, size and identity checks. Test snapshots use
descriptors and race fixtures use exclusive copies. No assertion, scanner rule
or alert was skipped, suppressed or dismissed.

The existing hardened installer now receives an explicit optional-package
opt-in only for this skill's Node lane. Other lanes retain their defaults,
--ignore-scripts remains mandatory, and dependency pins/locks are unchanged.

Command / evidence Result
node --test tests/skill-package-architecture.test.mjs from the skill root, for documentation revision f9e985f 12 passed, zero failed or skipped; Node.js 24.22.1 and npm 11.19.1
Explicit edited-guide Markdown validation using repository configuration/custom rules; npm exec --no -- cspell --no-progress --no-summary .github\skills\hve-core\skill-effectiveness\references\experiment-method.md Zero Markdown findings; spelling passed
node --test --test-concurrency=1 --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=$out\coverage-final.lcov --test-reporter=spec --test-reporter-destination=$out\full-package-tests-final.log tests/*.test.mjs from the skill root, at d13fdf2 133 tests: 122 passed, zero failed, 11 explicit skips; 95.61% line, 90.88% branch, 97.14% function coverage
node --test tests/evidence-backup.test.mjs tests/review-images.test.mjs from the skill root Final test-only follow-up: 28 passed, one platform skip, zero failures
npm run test:ps -- -TestPath scripts/tests/security/Test-SharedTestWorkflowHardening.Tests.ps1 All 16 passed
Real GitHub workflow-parser entry point on the two edited workflows Zero findings
Existing shared installer in both modes, using a fixture npm argument recorder Default omits optional packages; opt-in retains them; both retain --ignore-scripts; no package/network execution in this smoke test
npm run lint:permissions, npm run lint:workflow-runner, npm run lint:dangerous-workflow Passed
npm run plugin:validate, npm run docs:generate:check, npm run lint:frontmatter, npm run validate:skills Passed
npm run lint:tables, npm run lint:md, npm run spell-check, npm run lint:public-dependency-feeds, npm run lint:artifact-portability Passed
Linux hosted Node job on d13fdf2 Passed: 133 tests, 122 passed, zero failed, 11 explicit skips; INCLUDE_OPTIONAL=1 verified
CodeQL gate on runtime/test revision 44f71acbc Passed: no results at the security threshold; zero results evaluated
Linux Node job on runtime/test revision 44f71acbc Passed: 133 tests, 122 passed, zero failed, 11 explicit skips; 94.15% line, 89.73% branch, 96.19% function coverage

All PR checks on runtime/test revision 44f71ac finished: 143 succeeded, 11 skipped,
zero failed and zero pending
, verified 2026-10-23.
Its overall validation run
is green. The later documentation-only revision f9e985f has separate local
focused results above; its hosted checks are pending and are not inferred from
44f71ac. Reviewer and human acceptance remain separate from CI.

Local CodeQL is unavailable. Complete local workflow validation also requires
the pinned ShellCheck executable, which is absent on this host. The genuine
parser and policy checks are not claimed to replace those hosted gates.
The first concurrent local suite hit a native mock workspace-export assertion;
the same test passed unchanged in isolation and the full serial suite passed.

Earlier integrated validation: 017ecbc

Integrated working-tree validation, 2026-10-23, Windows, Node.js 24.22.1 and
npm 11.19.1, based on published PR head fe50e0a. These results include the
onboarding documentation and its additional contract test. The validated file
identities match local commit 017ecbc exactly;
the integration worktree is clean. Existing current-lock dependency installations
were reused; no restore or model calls were needed for this pass.

Command Result
npm test from the skill root Passed: 121 passed, zero failed, 11 explicit opt-in/platform skips, 132 total
npm run plugin:validate Passed
npm run docs:generate:check Passed
npm run lint:frontmatter Passed
npm run validate:skills Passed
npm run lint:tables Passed
npm run lint:md Passed using repository exclusions; not a claim of linting every skill line
& .\scripts\linting\Markdown-Link-Check.ps1 -Path @('docs\contributing\skills.md','docs\security\README.md') Passed repository-internal links and selected external-link checks; configured ignored URLs were not fetched
git diff --check Passed
git diff origin/main...HEAD --check Passed for the existing committed contribution
npm run spell-check Passed on the isolated combined tree; the older folder's six legacy generated-document findings did not recur
node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=$out\integrated-coverage.lcov --test-reporter=spec --test-reporter-destination=$out\integrated-coverage.log tests/*.test.mjs Passed from the skill root: 121 passed, 11 explicit skips, zero failures; 95.60% line, 90.86% branch, 97.14% function coverage
npm run plugin:sync Passed; manifest already current
npm run docs:generate Passed after fixture-creating tests finished; 204 pages unchanged
npm run extension:prepare Passed
npm run lint:public-dependency-feeds Passed
npm run lint:models Passed
npm run lint:artifact-portability Passed

For coverage, $out denotes the operator-owned absolute log directory; only its
host-specific value is omitted. The reporter flags and selected tests above are
the executed arguments.
The eight added spelling entries are technical identifiers used by these edits;
no global spelling rule or unrelated component name was suppressed.

The new worked example's approved-feed restore, strict native lint and two-arm
dry-run passed separately. The one overlapping contributor-guide file retains
both the published Python audit guidance and local Node.js support. All 46 other
published advance paths and all original working-folder repair identities are
preserved. A first link-check command had a path-array binding error before
validating files; the correctly typed invocation above passed.

The complete validate:local aggregate and Docusaurus validate:docs suite were
not selected. Docusaurus dependencies are absent; no browser/service or package
installation was inferred. An independent standalone restore of the final
revision remains pending. Current hosted status is recorded above; earlier
green CI applies only to its earlier SHA and is not reused as current proof.

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

AI Artifact Contributions

  • Used hve-builder review mode to review contribution
  • Addressed all actionable findings from the hve-builder review
  • Verified contribution follows common standards and type-specific requirements

Required Local Checks

The following local-safe validation commands must pass before merging:

  • Local validation aggregate: npm run validate:local
  • Documentation validation (if docs changed): npm run validate:docs
  • Spell checking: npm run spell-check
  • Link validation: npm run lint:md-links

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

The generic authoring path is not a default OS sandbox or financial controller.
The optional Windows profile and offline Linux grading have explicit tested
boundaries and limits. Paid convenience aliases are omitted, but manual native
execution remains possible. A required enforced spending maximum must come
from the provider/runtime; timeout and operator approval do not provide it.

Earlier spending-stop wording implied enforcement that the pinned runtime did
not actually provide. This update corrects and narrows that claim rather than
implementing a hard-cap controller. The workflow retains supervised scope/
budget approval, usage/retry disclosure and separate rerun approval. If an
enforced monetary maximum is required, execution stops until the provider/runtime
can supply it. Those guardrails do not guarantee that credits cannot be exceeded.

Audit backups and in-memory digest comparison are supervised integrity checks,
not independent host attestation. Reviewer acceptance of this narrower MVP
boundary remains explicit. Selected prompts/images can be disclosed to model
services, and raw local evidence requires publication review.

GHCP Membership Changes

  • Add the skill-effectiveness skill and its declared support package to the
    existing hve-core plugin. No agent, prompt, instruction or hook is introduced.
  • Current npm run plugin:validate and npm run docs:generate:check pass.

Additional Notes

The refreshed evidence supplement is prepared for a separate PR attachment,
not upstream runtime content. It records 160 primary attempts, ten source-only
Zulip candidates and 241 eligible saved-review attempts: 238 completed and three
retained errors without reruns. Architecture shows the clearest task-specific
benefit; notebook findings are mixed, catalog contract adoption does not imply
better quality, and p-map behavior ties.

The old and fresh studies differ in models and authoring-time self-testing.
No causal claim that leakage correction explains their difference is made.
The catalog validator invocation was corrected separately without changing the
validator, frozen reviewer inputs or model judgments.

The expanded evidence supplement
is attached separately, not committed runtime content. Its 216 files include
109 native YAML definitions, with original/publication hashes and explicit
omissions. These are as-executed study snapshots; post-study security/CI repairs
do not rewrite the collected evidence or require paid evaluations to be repeated.
Review threads and human attestations remain open for acceptance; publishing
this revision does not constitute reviewer approval.

- preserve existing-skill and repository-derived routes
- integrate security model, plugin membership, and reference docs
- leave canonical lockfile regeneration and runtime validation pending

🧪 - Generated by Copilot

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

Codecov Comments Bot (codecov-commenter) commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.28%. Comparing base (42a1697) to head (fbd5f80).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3223      +/-   ##
==========================================
- Coverage   87.69%   85.28%   -2.42%     
==========================================
  Files         116      214      +98     
  Lines       17771    40920   +23149     
  Branches        0      264     +264     
==========================================
+ Hits        15585    34898   +19313     
- Misses       2186     5940    +3754     
- Partials        0       82      +82     
Flag Coverage Δ
docusaurus 90.58% <ø> (?)
pester 86.85% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 102 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

🧪 - Generated by Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: dmavroeid <150132758+dmavroeid@users.noreply.github.com>
📚 - Generated by Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmavroeid
Dimitrios Mavroeidis (dmavroeid) marked this pull request as ready for review October 13, 2026 13:33

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for adding this! It gives skill authors a useful way to ask not just whether an output passes, but what the skill actually contributes beyond a capable baseline. The matched A/B workflow, evidence guidance, and explicit limitations add value alongside hve-builder's broader authoring workflow.

Before merging, please add the required third-party notice with public, verifiable source and license links, and resolve the standalone test failure around the security-model documentation link. That relative link follows an existing repo convention, but the copied package currently fails its documented npm test path. Switching it to a public URL made the model-free suite pass in a disposable review copy; a narrowly scoped validation adjustment is another option if we retain the convention.

A short explanation of when to choose this skill versus hve-builder or vally-tests, together with setup guidance, would also help users get the most from the addition.

## Attribution and Licensing

The contribution originates from `gim-home/agent-skill-bench` at commit
`9187c65`, authored by Dimitrios Mavroeidis, with HVE integration adaptations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

F1 (High): Add the imported-source notice before redistribution.

Thanks for identifying the source and separating the material licenses here. The repository licensing posture also requires a root THIRD-PARTY-NOTICES entry with source/license URLs, the material used, and integration changes. This PR adds no entry for gim-home/agent-skill-bench, and this attribution provides no usable upstream source or license links.

Please add the notice and public, verifiable source/license links here, retaining applicable upstream notices. My lookups at the cited revision returned HTTP 404, so I could not independently verify the terms; that does not establish that the material is unlicensed. Please confirm the public provenance rather than using an internal or non-public source.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this. The reference was to my non-public development repository and wasn't useful for public verification. I've removed that reference in 8bfb5d6 and retained the material-by-license breakdown with public license links.

Separately, I checked the pinned public sources referenced in the supporting evaluations:

Their repository source code and experimental candidate skills are not included in this code contribution; the supporting evidence retains the source references. I therefore haven't added third-party notices solely for those evaluation subjects.

external model review. Each bucket enumerates all six STRIDE categories.
Tests use mocks by default; native startup smoke coverage is separately opt-in.

> See also: [repo-wide STRIDE model](../../../../docs/security/security-model.md#skill-security-models).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

F2 (Medium): Reconcile this link with the documented standalone validation path.

This relative link follows the existing repository convention, so the link format alone is not a new standards violation. However, the skill advertises copying its folder without parent-repository helpers and running npm ci and npm test. In that standalone copy, the architecture test requires this external documentation target to exist locally and fails: 22 passed, 1 failed, 1 skipped. Changing only this link to a public documentation URL in a disposable review copy produced 23 passed, 0 failed, 1 skipped.

Please use a public URL for this supplemental repo-wide reference, or narrowly distinguish repository-only documentation from required package-local links in standalone validation. Keep package-internal link checks and standalone-copy coverage. A repository-wide link or packaging policy change can remain separate follow-up work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed: the repository-relative link worked in the HVE checkout but conflicted with the documented standalone-copy path. In 8bfb5d6 I've replaced this supplemental reference with a public HVE URL and retained package-internal link checks.

I also extended the architecture test to validate links in a disposable standalone copy and assert that a deliberately missing package-internal link is still rejected.

Verified GitHub-hosted validation on the exact commit, using Node.js 24.21.0 and npm 11.19.0:

  • Repository ordinary and coverage suites: each 23 passed, 0 failed, 1 intentionally skipped native-startup test.
  • Independently restored standalone ordinary and coverage suites: each 23 passed, 0 failed, 1 intentionally skipped native-startup test.
  • The standalone-link regression and its missing-internal-link negative assertion passed in all four runs.

In both folders, the following commands passed, with the native-startup flag unset and telemetry disabled:

npm ci --ignore-scripts --omit=optional --no-audit --no-fund
npm test
node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage-node.info --test-reporter=spec --test-reporter-destination=stdout assets/*.test.mjs

The standalone copy had its own dependency restore, with no copied or symlinked node_modules and no parent HVE documentation. Lockfiles, pins, and overrides were unchanged; no real SDK startup or paid/model evaluation ran. Fresh PR CI also completed with 140 passed checks, 11 skipped, and no failures or pending checks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Follow-up to distinguish the current package from my earlier validation: the 23-test results and assets/*.test.mjs command above belong to 8bfb5d65. They are historical, not current setup instructions.

Use the complete package and the current repository-shaped copy recipe, including the additional root LICENSE used by the canonical-notice regression. An arbitrary flat-folder copy does not satisfy that test layout.

Keep optional platform packages installed. Mocked model responses do not remove Vally/SDK setup's Copilot package dependency or the native Sharp decoder. The old --omit=optional restore is not suitable for this suite. With Node.js 24+ and any organization-required registry already supplied through the approved environment configuration, run from the documented copy:

npm ci --replace-registry-host=always --ignore-scripts --include=dev --no-audit --no-fund
npm test

The doc-only clarification is f9e985feb; its 12 focused documentation/packaging contracts passed. Runtime/test files are unchanged from 44f71acbc, whose Linux suite recorded 133 tests: 122 passed, zero failed and 11 explicit skips. This is not a claim of a new independently restored standalone full suite or an opt-in native startup run at the documentation revision. Authoring validation does not authorize paid execution.

Clarify licensing and setup, use a portable security reference, and cover standalone documentation links.

🔧 - Generated by Copilot

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

Copy link
Copy Markdown
Contributor Author

Thanks for the encouraging review, Katrien De Graeve (@katriendg). In 8bfb5d6 I've added a concise guide explaining when to choose skill-effectiveness versus hve-builder or vally-tests, together with setup guidance linking to the existing copy-and-test instructions. It clarifies that dependency installation does not register the skill with the chat host and that paid execution requires separate authorization.

I've replied in the F1 and F2 threads with the licensing clarification and verified repository/standalone test results. Fresh CI for this commit is green: 140 checks passed, 11 skipped, and none failed or pending. The review threads remain open for your assessment.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the substantial work on this contribution, Dimitrios Mavroeidis (@dmavroeid). The matched A/B workflow, separation of execution from judgment, security model, transparency note, standalone validation, and careful limitation language show a lot of thoughtful iteration. I also verified that the two earlier review threads about the private source reference and standalone security-model link are addressed, so I have not repeated them.

I am requesting changes because four execution boundaries need to be resolved before this can be distributed safely: the repository-intake path does not activate HVE Core's existing untrusted-content authority; the pinned Vally candidate executor auto-approves host capabilities; the grader executes a candidate-writable checker; and the generated paid entry points do not have an enforceable spending ceiling. The inline comments explain those blockers and the remaining reliability, evidence-integrity, privacy, accessibility, packaging, licensing, and readiness changes. Where HVE Core already has an instruction, validator, packaging filter, evidence framework, or implementation pattern, the feedback points to that owner rather than asking you to create a parallel control.

Three PR-package items cannot be attached to a source line:

  1. Complete the existing PR readiness checklist with exact-head evidence. The backwards-compatibility item, required local checks, AI-artifact attestations, and security attestations remain unchecked. Please use .github/PULL_REQUEST_TEMPLATE.md and the pull-request skill's CI-confidence contract. Keep human or hosted attestations unchecked unless the appropriate owner has actually completed them, and document any maintainer-approved exception rather than inferring a pass.
  2. Refresh detailed validation at the reviewed SHA. The package, standalone, coverage, HVE Builder, and hosted evidence in the description is tied to 8bfb5d65, with lockfile repair evidence at 4052f37c..., while this review is against fe50e0a... after a merge from main. Please rerun or link immutable evidence for the material package-specific checks at the current head, including Node/npm versions and the exact commands and outcomes. A green aggregate status does not prove those detailed paths reran.
  3. Correct the Type of Change summary. Keep New feature and Copilot skill; remove Bug fix unless you can name a pre-existing base defect this PR fixes. Because the current Script/automation label names only .ps1, .sh, and .py, use Other to describe the Node.js runtime and native Vally templates rather than checking a label that does not currently cover .mjs.

The issue #1504 proposal is broader than this PR's revised scope. That narrower supervised-authoring contribution can be reasonable, but the PR should state clearly that CI gating, a generalized multi-agent lifecycle, committed baseline studies, and repository-level effectiveness automation remain deferred rather than implied as delivered.

Please feel free to ask about any comment or propose a smaller control that proves the same boundary. Given the size of this first pass, addressing the four blocking items and the shared structural changes first will make the follow-up review much easier to evaluate.

## Adversaries

| Id | Adversary | In-scope mitigations |
|-------|--------------------------------------------------------|----------------------------------------------------------------------------|

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Blocking: connect repository intake to the existing untrusted-content authority.

The mitigation in this row is accurate for review-images.mjs, where the replacement system message treats artifacts as data and the session has no tools. It does not cover the repository-derived route: that route reads an arbitrary repository with ordinary tools, while the canonical .github/instructions/shared/untrusted-content-boundary.instructions.md is not activated or referenced here.

Please reuse that shared instruction rather than copying its policy into this skill. Wire repository intake through a supported portable reference or activation path, prove that the reference survives the documented standalone copy, and then update this model's data flow, boundary table, adversary mitigation, STRIDE analysis, risk rating, and gap register to distinguish the tool-using intake route from the no-tools image reviewer. An adversarial intake fixture containing embedded authority-changing instructions would make this boundary testable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The repository intake now requires reading and applying the complete pinned
canonical untrusted-content instruction before target-source inspection. It
stops when that authority cannot be loaded and records its identity in the
evaluation notes. This is required policy activation, not an assertion of
prompt-injection immunity or OS containment.

Updated in 017ecbc0; see repository-intake.md.

runs: 1
timeout: 60m
executor: copilot-sdk
model: "${AGENT_MODEL=MUST-SET-AGENT-MODEL}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Blocking: the pinned candidate executor is not safe for untrusted skills or fixtures.

I traced Vally 0.17.0's copilot-sdk executor. It creates a normal Copilot session with onPermissionRequest: approveAll, configuration discovery enabled, and the candidate working directory. Because repository-derived skills and fixtures are an intended input, embedded instructions can reach host shell, filesystem, inherited environment, and network capabilities without an interactive permission boundary. An isolated Copilot config directory is not an OS sandbox.

Please fail closed on untrusted execution until the selected executor can enforce deny-by-default permissions, an explicit tool allowlist, environment scrubbing, filesystem containment, and restricted egress. If a newer supported Vally path provides those controls, pin and document it and add adversarial tests showing that a candidate cannot read an environment canary, open an out-of-workspace file, spawn an arbitrary command, or make an undeclared network request. The shared untrusted-content instruction is still useful policy, but it cannot replace this runtime boundary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The candidate template uses the scoped session-policy adapter rather than the
unrestricted approving path. It checks actual offered tools, instructions and
skills before allowing a prompt. Fresh sessions only are supported. The optional
Windows-native command profile has separate runtime tests and explicit platform
limits; the generic adapter is not claimed to provide an OS sandbox. Untested
task profiles remain blocked rather than silently falling back to unrestricted
execution.

Updated in 017ecbc0; see restricted-copilot-executor.mjs.

- type: run-command
name: behavior
config:
command: node

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Blocking: do not execute a checker from the candidate-writable workspace.

task-fixture/check.mjs is staged into the same workspace the candidate can edit, its location is disclosed in the prompt, and this grader later runs that path with Node. A candidate only needs file-write capability to replace the checker, fabricate a pass, or plant code that reads credentials or performs network activity. Tightening model tool permissions alone does not protect this step.

Please configure a deny-by-default terminal sandbox for candidate tool activity if the pinned stack supports one, but keep checker integrity and grader containment as separate requirements. Execute an immutable grader-owned checker outside candidate write authority, verify its hash immediately before use, and run the grader process itself in an OS sandbox with no credentials or egress and read-only access to the fixture plus submitted artifact. Do not assume Vally's temporary workspace or Copilot's terminal sandbox wraps the grader subprocess. Add a regression where the candidate overwrites the visible checker and attempts egress; neither action should affect or escape grading.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

Candidate collection and protected grade-only specifications are separate.
The grade prelude requires disjoint native roots and authenticates the trusted
checker entry against an operator-pinned digest immediately before execution.
Qualified grading supplies readonly inputs and a separate credential-free
offline toolchain. Authentication alone is not readonly enforcement, dependency
provenance or proof of arm binding; the operator must retain those bindings.
The fresh study preserves original records and separate grade results.

Updated in 017ecbc0; see native-grade-eval.template.yaml.

},
"scripts": {
"study:dry-run": "node node_modules/@microsoft/vally-cli/dist/index.js experiment run --dry-run",
"study:run": "node --import ./scripts/native-inventory.mjs node_modules/@microsoft/vally-cli/dist/index.js experiment run",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Blocking: make the documented spending stop rule executable.

This generated package exposes the paid run directly even though the pinned stack cannot enforce the hard credit ceiling required by the skill's own stop rules. Operator authorization and a timeout do not bound spend: an edited experiment can increase tasks, variants, runs, prompt graders, reminders, retries, and image reviews under the operator's account.

Please omit or replace study:run and review:images with a fail-closed preflight while no provider-side ceiling is available. When an enforceable cap exists, expand the complete plan before startup, count every candidate and judge path, compare it with the authorized cap, and refuse the run when the guarantee cannot be established. Tests should cover extra tasks, variants, runs, graders, retry/reminder behavior, and repeated image reviews; mocked calibration and elapsed-time limits should remain explicitly non-spending controls.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The previous version implied that its spending stop rule provided an enforceable
budget boundary. It did not: the pinned execution path had no hard credit cap,
and authorization, timeouts and post-run usage reports did not supply one.
That was an overstated guarantee, not a working control.

This update narrows the claim instead of implementing a hard-cap mechanism.
The contribution is supervised authoring, not financially bounded unattended
execution. We chose the omission alternative offered in the review: generated
packages no longer declare study:run or review:images. Manual native execution
remains possible, so removing those conveniences is not financial enforcement.

The retained workflow guardrails require explicit approval of candidate and
review scope, disclosure of native retries/reminders and unknown usage, and
separate approval for manual reruns or scope changes. When an enforced monetary
maximum is required, execution must stop until the provider/runtime can enforce
it; approval of a supervised target cannot satisfy that requirement or waive
the security prerequisites.

These are supervised decision/stop conditions, not an automatic spending
controller or a guarantee that credits cannot be exceeded. Please assess this
as a corrected and reduced guarantee with guardrails, not as completion of the
hard-cap implementation path.

Updated in 017ecbc0; see package.template.json.


export async function captureInventory(session, config, directory) {
assert.ok(typeof session.sessionId === "string" && session.sessionId.length > 0, "Session ID required for inventory capture");
await session.rpc.tools.initializeAndValidate();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Important: bound each startup RPC and the failure-path disconnect.

These two additional RPCs run before Vally receives the session, but neither has a deadline. A stalled initialization or skill-list request can leave the experiment pending forever without an inventory failure record, and the catch path can then hang again during disconnect().

Please reuse the tested runWithTimeout lifecycle pattern from the accessibility runtime: give initialization, listing, and disconnect separate deadlines, clear each timer, and preserve the primary and cleanup failures together. Add never-settling RPC and disconnect fixtures similar to the existing hung-startup tests. Because a Promise.race only bounds the caller's wait, also document and verify the cleanup behavior for the still-pending underlying operation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

Inventory initialization/listing and failure-path disconnect are bounded and
retain their failures. Tests cover hung RPCs, late settlement and cleanup.
A timeout is not described as cancellation or proof of shutdown.

Updated in 017ecbc0; see native-inventory.mjs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Current-code follow-up: the RPC deadline and cleanup changes linked above remain in place. A later repair in d13fdf2e8 additionally changed evidence reads to open the descriptor first, then validate regular-file type, size and path/descriptor identity before reading. The final test-only follow-up is 44f71acbc.

The immutable current-code pointers are native-inventory.mjs and evidence-backup.test.mjs. The latter retains the replacement-after-open rejection, zero-content-read and descriptor-close assertions.

The CodeQL gate and Linux package suite passed on that revision. This does not change the earlier limitation: a bounded wait is not cancellation or proof of shutdown.

const extension = extname(path).toLowerCase();
const mimeType = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg" }[extension];
if (!mimeType) throw new Error(`Unsupported image extension: ${extension}; use PNG or JPEG`);
const bytes = readFileSync(resolve(path));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Important: extension checking does not protect the external disclosure boundary.

readFileSync(resolve(path)) follows symlinks and accepts any bytes behind a .png or .jpg name. A candidate-controlled output can therefore point an apparent image at a readable local secret; this helper then copies and base64-encodes those bytes for the external model before malformed-media rejection could help.

Please reuse the repository's path-safety patterns: constrain inputs to an approved artifact root, reject traversal plus every symlink/reparse point, open without following links, and compare the opened file identity with the validated path to close replacement races. Validate PNG/JPEG signatures and decode locally before creating the output directory or contacting the SDK. Add file/directory symlink, junction, replacement-race, fake-extension, truncated-media, and outside-root tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

Image input must be an evaluator-owned approved copy beneath an explicit root.
Links, redirects, outside-root paths, invalid signatures and failed full decoding
reject. The exact preflight bytes are copied and attached. These controls do not
claim hostile same-user filesystem-race immunity.

Updated in 017ecbc0; see review-images.mjs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Follow-up with the later reader repair rather than silently replacing the 017ecbc0 links above: d13fdf2e8 opens the image descriptor first, validates type/size/identity before reading, and retains the approved-root, link, canonical-path, signature and full-decoding checks. 44f71acbc contains the final replacement-race test-fixture follow-up.

See the current reader and the regression tests, including rejection when the named file is replaced after descriptor acquisition, before any content read, and the closed-descriptor assertion.

The CodeQL gate passed with zero results evaluated at the threshold. No alert was dismissed or rule suppressed. These scoped controls still do not claim general hostile same-user filesystem-race immunity.

typeof skill?.name === "string" && typeof skill.enabled === "boolean"),
"Runtime skill inventory or enabled-state missing");
mkdirSync(directory, { recursive: true });
const file = path.join(directory, `${encodeURIComponent(session.sessionId)}.json`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Important: exclusive creation is not an evidence-authority boundary.

wx prevents an initial collision, but the completed inventory remains an ordinary file. The candidate runtime inherits SKILL_EVAL_INVENTORY_DIR and, under the selected executor, has host filesystem capability. A treatment can discover this location and edit or remove the very record used to check contamination.

Please persist authoritative inventories through a parent-owned location that is not mounted into, named in, or writable by candidate sessions, and scrub the directory variable after interception is installed. Reuse the repository's hash-manifest and atomic-write patterns for integrity and failure safety, but do not treat them as protection from a same-authority process. Add a hostile-candidate test that attempts to discover, alter, and delete its record while the authoritative copy remains unchanged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The proposed MVP keeps audit paths outside candidate workspaces, removes the
evidence variable before session creation and verifies independent retained
copies against an in-memory digest after native cleanup. The Windows candidate
profile also denies the protected audit paths, with scoped runtime tests.

This is not independent host attestation against equivalent process authority.
The security model leaves that stronger assurance gap open. Please confirm
whether these supervised controls and explicit stop conditions are acceptable
for this narrower authoring MVP; this response does not mark your stronger
request fulfilled or waived.

Updated in 017ecbc0; see SECURITY.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Current evidence pointers are SECURITY.md, native-inventory.mjs and evidence-backup.test.mjs. They include the later descriptor-first evidence-reader checks while retaining the independent-copy and digest-comparison tests.

The stronger acceptance question in my earlier reply is unchanged: copies and digests are supervised integrity checks, not independent host attestation against equivalent process authority. The green CodeQL and package checks do not fulfill or waive that request. This thread remains open for your assessment of the narrower MVP.

description: "Use when creating, reviewing or improving a native Vally A/B evaluation of whether an Agent Skill helps on a realistic task, including deriving a candidate skill from repository knowledge."
license: MIT AND CC-BY-4.0
user-invocable: true
compatibility: "Node.js 24+, Vally 0.17.0, Copilot CLI 1.0.85 and SDK 1.0.14. Windows is the tested native platform."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Important: bind this compatibility claim to the exact-head native preflight.

The PR description says local Windows revalidation and the real SDK startup smoke were deferred, while this frontmatter advertises Windows as the tested native platform. Paid candidate/judge/image calls should remain deferred under the spending stop rule, but this package already contains an opt-in model-free startup test that can validate the pinned native stack without spending model credits.

Please perform a clean restore on Windows at the current PR head, set SKILL_EFFECTIVENESS_NATIVE_PREFLIGHT=1, and run the package test command, recording the SHA plus Node/npm versions and result. If that cannot be done before merge, narrow this compatibility statement to the evidence actually available and keep real candidate, judge, and image paths explicitly unvalidated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

Compatibility claims are tied to pinned public package versions and scoped runtime evidence, distinguishing simulations, actual no-prompt startup, native containment checks and model-driven task observations. Windows-only controls are not called portable. The local package and coverage checks are bound to the exact files in 017ecbc: 121 tests passed, zero failed and 11 explicit opt-in/platform skips; line coverage is 95.60%. This is not a claim of a new hosted native preflight or universal task/runtime qualification, and earlier hosted results are not reused as this revision's CI evidence.

Updated in 017ecbc0; see experiment-method.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Follow-up to make the alternative taken here explicit: the compatibility claim was narrowed, not replaced with an assertion of a new clean-restore Windows native preflight. The SKILL.md frontmatter and execution-status boundary require separate task/runtime qualification and say model-free checks do not establish containment. The evidence-scope table keeps ordinary tests, no-prompt startup, platform-specific controls and model-driven tasks distinct.

The 121 passes/95.60% line coverage above belong to 017ecbc0. Full Windows serial validation at d13fdf2e8 recorded 122 passed, zero failed and 11 skips, with 95.61% line coverage; the final two-file Windows follow-up at 44f71acbc passed 28 tests with one platform skip. The full hosted Linux suite at 44f71acbc recorded 133 tests: 122 passed, zero failed, 11 explicit skips and 94.15% line coverage. These are separately scoped results, not universal task/runtime qualification.

The latest doc-only clarification f9e985feb passed 12 focused documentation/packaging contracts on Node.js 24.22.1 and npm 11.19.1. I have not rerun a clean independent full restore or SKILL_EFFECTIVENESS_NATIVE_PREFLIGHT=1 on that revision, and I am not reusing the earlier head's green CI as its hosted result. Paid candidate/judge/image invocations remain separately authorized.

## Fair Comparison

<Link the public task, original pinned inputs, focus skill, native eval and
experiment blocks. Both arms have identical conditions except the focus skill.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggestion: reuse the existing COGA authoring pattern here.

This block asks the publisher to extract and remember many separate decisions from four prose placeholders: evidence method, limitations, reviewer inputs, alternatives, accessibility states, rubric anchors, unavailable evidence, and retained outputs. HVE Core's canonical COGA references already own the relevant patterns for separating instructions, step-by-step guidance, and persistent context.

Please keep that framework guidance in the accessibility skill and reshape only this template into a numbered checklist or compact table. Persistent fields for the claim, affected users, method, inputs, good/poor outcomes, valid alternatives, unavailable evidence, approval state, and Not applicable rationale would reduce omission risk without copying the COGA prose into this package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The notes template uses a compact claim/users/method/sources/outcomes/alternatives/
unknowns/approval decision table and routes nonvisual claims to the canonical
accessibility owner. It does not introduce another framework or numerical
accessibility score.

Updated in 017ecbc0; see EVALS.template.md.

Comment thread plugin.json
".github/skills/hve-core/git-setup",
".github/skills/hve-core/hve-builder",
".github/skills/hve-core/pull-request",
".github/skills/hve-core/skill-effectiveness",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggestion: update the existing user-visible capability inventory with this membership change.

The manifest and generated skill reference now include skill-effectiveness, but docs/plugins/hve-core.md still omits supervised effectiveness evaluation from its capability areas. That page is the existing human-readable plugin inventory used by extension preparation; a second catalog is not needed.

Please add a concise capability entry there, then run the existing plugin and documentation checks described in docs/contributing/skills.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The existing plugin capability documentation and generated skill reference are
updated through their owners. No parallel capability registry or new CI lane is
introduced.

Updated in 017ecbc0; see hve-core.md.

Comment thread docs/security/README.md Outdated
Comment on lines +39 to +42
The [Skill Effectiveness security model](https://github.com/microsoft/hve-core/blob/main/.github/skills/hve-core/skill-effectiveness/SECURITY.md)
covers native inventory capture, Copilot SDK image review, model data disclosure,
and the absence of enforced isolation or hard spending limits.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we drop this paragraph, since the table row below already links the security model, or move it below the table? As placed, it sits ahead of the intro that explains which skills carry a security model, so it reads detached from the table it describes.

Could we also bold the new row's name (**skill-effectiveness**) to match the other rows in the table?

Suggested change
The [Skill Effectiveness security model](https://github.com/microsoft/hve-core/blob/main/.github/skills/hve-core/skill-effectiveness/SECURITY.md)
covers native inventory capture, Copilot SDK image review, model data disclosure,
and the absence of enforced isolation or hard spending limits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this.

The duplicate introductory paragraph is removed, leaving the general explanation
before the existing table. The skill-effectiveness name is bold to match the
other rows. The page date is updated and the table uses the existing formatter.

Updated in 017ecbc0; see README.md.

- separate candidate collection from protected grading and saved review
- validate session boundaries, durable audits and bounded media review
- document first-use authoring and preserve licensing and runtime limits

🛠️ - Generated by Copilot

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

Dimitrios Mavroeidis (dmavroeid) commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor Author

skill-effectiveness-fresh-evidence-expanded-20261023.zip
Thanks for the detailed review. The update is in
017ecbc0,
preserving the previous merge from main. The PR description now follows the
repository template, corrects the change-type summary and records current
validation rather than carrying forward the earlier head's CI claims.

Execution, grading and reliability

  • Repository intake explicitly activates the pinned canonical untrusted-content
    policy before source inspection.
  • Candidate collection uses the scoped session-policy adapter and actual startup
    tool/instruction/skill checks. Its generic path is not an OS sandbox; the
    optional Windows command profile has explicit qualification limits.
  • Protected executable grading is separate from candidate staging. The trusted
    checker entry is authenticated, with readonly inputs and correct arm/snapshot
    binding remaining separately required.
  • Inventory RPCs, media decoding/aggregate limits, cleanup and error persistence
    have focused negative tests. Runtime helpers and tests now follow the existing
    Node.js skill layout.

Spending claim corrected, not a hard cap implemented

The previous version implied an enforceable spending stop rule that the pinned
runtime did not actually provide. That was an overstated guarantee, not a
working control. This update narrows the claim instead of implementing a
hard-cap controller.

Following the omission alternative offered in the review, generated packages
no longer expose study:run or review:images. Manual native execution remains
possible; omission is not financial enforcement. The workflow retains explicit
scope/budget approval, retry and unknown-usage disclosure, and separate approval
for reruns or scope changes. If an enforced monetary maximum is required,
execution must stop until the provider/runtime can enforce it. Those supervised
guardrails do not guarantee that credits cannot be exceeded.

Evidence authority remains a scoped limitation

Audit records are kept outside candidate workspaces, copied independently and
checked against an in-memory digest after native cleanup. The tested Windows
profile also denies the audit paths. These are supervised controls, not
independent host attestation against equivalent authority. The security model
leaves that stronger assurance gap open; please assess whether the narrower
MVP boundary is acceptable rather than treating the stronger request as
fulfilled or waived.

Documentation, licensing and accessibility

LICENSE and NOTICE travel with copied helpers; the mixed-content allocation
does not assign a license to independently authored datasets or findings.
Standalone link and notice regressions remain tested. Visual-review guidance
routes nonvisual accessibility claims to the existing method-adequacy owner.

There is now a short
first-evaluation walkthrough
in the skill's references, linked from its entrypoint and user documentation.
It shows inputs, a complete native pair, exact model-free lint/dry-run commands
and the stop before paid execution. The security overview's duplicate paragraph
is removed and its table row matches the existing formatting.

Validation and supporting evidence

The exact committed file identities match the validated combined tree:
121 tests passed, 11 explicit opt-in/platform skips, zero failures;
coverage is 95.60% line, 90.86% branch and 97.14% function. Selected
manifest, documentation, frontmatter, structure, spelling, link, model,
public-feed, portability and patch checks passed. The PR body lists the exact
commands and limitations. New hosted results are not claimed in this comment.

The fresh development study retains 160 primary attempts and ten source-only
Zulip candidates. Of 241 eligible saved-review attempts, 238 completed and three
remain operational errors without reruns. A separate evidence ZIP is prepared
for attachment; it summarizes outcomes, limitations and provenance rather than
publishing raw transcripts or private runtime state. Architecture is the clearest
positive example; notebook effects are mixed, catalog contract adoption is
separate from quality, and p-map behavior ties.

I have left the review threads and human attestations open. CI gating, a
generalized multi-agent lifecycle and repository-wide effectiveness automation
remain outside this supervised-authoring contribution.

- preserve evaluation and media disclosures
- regenerate merged reference indexes
- retain upstream changes and validate documentation

🔀 - Generated by Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- validate descriptor and path identity before reading saved evidence
- retain integrity regressions without unsafe test patterns
- opt the affected Node lane into optional platform packages

🛡️ - Generated by Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- read preservation snapshots through opened descriptors
- create replacement fixtures without overwriting existing files

🧪 - Generated by Copilot

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

Copy link
Copy Markdown
Contributor Author

The CI/security-pattern follow-up is published in
d13fdf2e8
and the test-only follow-up
44f71acbc.

On the latest revision:

Readers now validate opened descriptors before reading, with existing root,
link, size and identity checks retained. Test assertions and race injection are
preserved; no alert was dismissed and no scanner rule was suppressed.

These results supersede the earlier failed CodeQL/Linux check state, not the
historical evidence or its limitations. The attached expanded ZIP remains the
as-executed study snapshot and has not been rewritten. The original 017ecbc
links in prior replies still identify the implementation reviewed at that time.

All PR checks on this revision have now finished: 143 succeeded, 11 skipped,
zero failed and zero pending
. GitHub reports the branch mergeable.
Review threads, human attestations, the spending-cap limitation and the
stronger evidence-authority acceptance question remain unchanged; green CI is
not reviewer approval or a general security certification.

📝 - Generated by Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
"yaml": "2.9.1"
},
"overrides": {
"@modelcontextprotocol/sdk": "1.31.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for pinning this override. The 1.31.0 pin might now be affected by four published advisories (GHSA-22jm-h49p-29qw and GHSA-46jr-4wx8-v453 high; GHSA-6prh-2h8m-c8cw and GHSA-rvq5-wwqv-78pq medium), all fixed in 1.32.0. npm audit in this skill directory reports high-severity findings, and the CI audit step does not cover skill lockfiles. Could we bump the override to 1.32.x here and in assets/package.template.json, the lockfile, the version floor in tests/skill-package-architecture.test.mjs, and the "includes advisory fixes" note in references/experiment-method.md? Could you also re-run npm audit to confirm the remaining findings?

Suggested change
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/sdk": "1.32.2",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for flagging this. At 64bb4bcfc, both skill/generated manifests pin MCP SDK 1.32.1, with the canonical lock, version-floor regression and advisory notes aligned; qs is also 6.16.1, with a guard for body-parser's declared caret requirement and actual installed resolution.

Fresh skill CI reported 135 tests: 124 passed, zero failed and 11 explicit opt-in/platform skips; the dedicated frozen restore and skill audit reports zero vulnerabilities using npm audit --package-lock-only --ignore-scripts --audit-level=low --json.

All upstream CI checks have now concluded: 143 passed and 11 skipped, while the repository-wide npm audit and its aggregate gate still fail on the unchanged shared baseline, tracked separately in draft #3287 where MSAL remains unresolved; this is not an overall green-CI claim.

Comment thread docs/contributing/skills.md Outdated
| Language | Script Extension | Test Framework | Linter / Analyzer | CI Coverage |
|------------|------------------|----------------|---------------------------------------------|--------------------|
| Bash | `.sh` | N/A | shellcheck | Lint only |
| Node.js | `.mjs` | `node:test` | `node --check` | Syntax + tests |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This row might overstate what CI does for Node.js skills. I could not find a node --check step in the workflows or lint scripts, and node-tests.yml only runs node --test with coverage. Could you verify this and either adjust the row, for example Linter N/A and CI Coverage Tests only, or point me to where the syntax check runs?

Suggested change
| Node.js | `.mjs` | `node:test` | `node --check` | Syntax + tests |
| Node.js | `.mjs` | `node:test` | N/A | Tests only |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for checking this. I verified that the shared workflow runs node --test with coverage, not a dedicated node --check lint step, and the supported-languages row now reads N/A and Tests only.

No new linting tool or job was introduced; the existing test/coverage path is preserved. The current head's checks have concluded, with the separate shared npm-audit baseline failure tracked in draft #3287 rather than claimed as passing.

🔒 - Generated by Copilot

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

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- retain upstream canvas inventory and both skill security entries
- preserve skill-effectiveness limitations and optional-dependency CI wiring

🧩 - Generated by Copilot

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- integrate the reviewed security overrides without changing the skill package

🔒 - Generated by Copilot

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

Copy link
Copy Markdown
Contributor Author

Update to the earlier CI status: the shared audit baseline was fixed in #3288, which has merged. Draft #3287 is closed as superseded. I incorporated current main in fbd5f8038; fresh validation completed with 145 checks passed, 11 skipped and no failures, including the repository-wide npm audit. The skill package is unchanged by this integration. Review threads remain open for reviewer assessment.

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.

7 participants