Skip to content

fix(reporting): name the skill in single-skill JSON reports and record the evaluator version - #424

Merged
chrisknvidia merged 29 commits into
mainfrom
naren/port-reporting-json-single-skill-identity
Nov 13, 2026
Merged

chrisknvidia merged 29 commits into
mainfrom
naren/port-reporting-json-single-skill-identity

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

skillevaluator validate skills/simple --tiers 1 --checks schema --no-llm -r json on a clean skill writes a JSON report whose skills list has 10 entries, one per schema check ID (author_format, body_heading, ..., optional_files), instead of simple. The JSON reporter grouped results through a bare HTMLReporter(), which infers a single skill from finding paths, a quality score or the target path. A clean run with a narrowed check list has no finding path or quality score, and the JSON reporter never got the target path. A default run hides the bug because the quality check records the skill name.

  • JSONReporter takes target_path and explicit_skill_name and passes them, with expected_skill_name, to the HTMLReporter it reuses for grouping. explicit_skill_name is the argument HTMLReporter already has.
  • emit_reports gets an explicit_skill_name argument and passes it and target_path to the JSON reporter. validate sets it to the target's recorded name (publication_name, the name BENCHMARK.md already uses) when the resolved type is skill and the target is a directory. Inside a Git checkout with an origin remote the target path is a URL, so only the explicit name fixes that case. Rules, workflows and plugins are unchanged, and catalogs already run validate once per skill. tier1 and tier2 already passed their target path to emit_reports, so their JSON now names a clean skill through the target-path fallback, unless the target is ..
  • JSON reports add root version (__version__), target_path and top_issues. validate records the absolute path, or the browsable URL inside a Git checkout with an origin remote; tier1 and tier2 record the path as given on the command line; single-check commands such as security-scan pass none and give null. top_issues comes from HTMLReporter._compute_top_issues over every tier, the same rows as the HTML report data; the HTML summary panel lists only the Tier 1 rows. Each gating.tiers entry adds validator_policies, one {validator, blocking} per check. The tier's blocking is true when any one check blocks, and a Tier 2 run can mix blocking and advisory checks. The keys are additive; existing keys keep their shape.
  • The three-tier CI from feat(ci): add three-tier onboarding and private report feedback #349 (ci/run_tiers.py) rewrites gating.tiers["2"] in the retained Tier 2 JSON to mark it advisory. It now keeps validator_policies there, with each check's blocking set to false, so the retained file has the same keys as the CLI's report.
  • BenchmarkReporter takes evaluator_version, read after the Tier 3 payload's evaluator_version and summary.evaluator_version through the same _first_publication_safe_label sanitizer. validate passes __version__, so a Tier 1-only card shows the version instead of Evaluator version: not recorded (legacy or non-live result). A version recorded by Tier 3 still wins. The tier3 evaluate card is unchanged.
  • Docs: the "Parse the JSON" table in docs/ci-integration.mdx gets version, target_path, top_issues and gating.tiers rows, each saying which commands write what, and a note on the skills row. The top_issues row says total_count counts raw finding records, the unit of skills[].issue_count: a PII finding that folds repeats of one value counts once, while finding_groups lists each of its locations. docs/reports.mdx says where Evaluator version comes from, after the evaluated source seams. CHANGELOG entries under Unreleased > Added (the JSON keys) and Fixed (skills and contributors for validate, tier1 and tier2, and the card version).
  • Stacked on fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410 (naren/port-tier1-unknown-artifact-applicability); merge that first.

Open PRs touching the same files:

Why

A JSON consumer that reads skills or contributors gets one "skill" per check ID for such a run. It also cannot tell from the report which SkillEvaluator wrote it or which target it covers. The tier-level gating.tiers entry does not say which of its checks block, because its blocking ORs them; validator_policies puts each check's flag next to the tier, which results[].gating already records per result. A Tier 1-only BENCHMARK.md says the evaluator version was not recorded, although validate knows it.

On the base branch, a clean skills/simple run with --tiers 1 --checks schema --no-llm -r json,html lists the 10 check IDs in JSON skills, in a plain folder and in a Git checkout with an origin remote. The JSON has no version, target_path or top_issues, gating.tiers["1"] is {blocking, validators}, and BENCHMARK.md says not recorded. On this branch skills is [simple] in both folders, the new keys are present, and the card shows the version. tier1 skills/simple --checks schema --no-llm -r json in the Git checkout lists the 10 check IDs in skills and contributors on the base branch, and simple with target_path skills/simple on this branch.

Kept from public

  • No HTML code changes. The port reuses HTMLReporter's existing explicit_skill_name and adds no new HTMLReporter argument.
  • The HTML report is not given the explicit name. On HTMLReporter, that argument also turns off the shortening of /<skill>/ finding paths, because the CI retained reports pass a display path there, so passing it would stop shortening finding paths under the skill folder in single-skill HTML reports. Known gap, left for a follow-up: inside a Git checkout with an origin remote, the HTML report of a clean --checks schema run still shows one card per check ID. A plain folder was already right in HTML through the target-path fallback. Fixing the Git case needs an html.py change: a single-skill name for _is_single_skill_mode that does not turn off path shortening, passed from emit_reports for HTML too, with an HTML assertion in the Git checkout test.
  • top_issues leaves out issue_key. The CI templates redact credentials in the JSON report and then recompute every value hashed from finding text (refresh_finding_identities), and they render HTML from the redacted JSON. issue_key is a truncated SHA-1 of the finding text that this refresh does not know about, so keeping it would let a redacted report confirm a guess for the masked text. It is an HTML anchor and JSON consumers do not need it.
  • A Tier 3 run's recorded evaluator version keeps precedence over the version that writes the card, and public's _first_publication_safe_label sanitizer applies to both, so retired names are still normalized.
  • expected_skill_name stays the publication identity for every content type. The explicit name is set only for a skill directory, so plugin, rules and workflows reports keep their grouping. A SKILL.md file target keeps the inferred name (simple), not the file name.
  • Chart.js is already inlined in HTML on main; only the generic reporting part of the source change is ported.

Tests

  • tests/reporting/test_reporters.py, TestJSONReporter, 6 new tests:
    • the explicit name with a URL target gives one simple entry for a clean schema result
    • a local target path that holds a SKILL.md gives simple without an explicit name
    • version and target_path are recorded, and target_path is null by default
    • top_issues equals the HTML report data's rows without issue_key, has exactly the six documented keys, and the JSON text contains no HTML issue key
    • top_issues keeps a Tier 2 similarity row, equal to the HTML report data's rows, while the HTML Tier 1 tab does not list it
    • validator_policies with one Tier 1 check and a blocking and an advisory Tier 2 check
  • tests/reporting/test_reporters.py, 1 new module-level test: the PII scan on a skill that repeats one personal path three times gives one folded finding with 3 finding_groups locations, top_issues total_count 1, and top_issues totals equal to skills[].issue_count. It also checks that the docs top_issues row says total_count of raw finding records and the skills row says issue_count counts raw finding records.
  • tests/test_commands.py, 3 cases:
    • validate skills/simple --tiers 1 --checks schema --no-llm -r json in a plain folder and in a fresh git init repository with an origin remote. The JSON skills is [{name: simple, passed: true, issue_count: 0}], contributors lists only simple, version is __version__, target_path is the local path or the https://github.com/example/skills/... URL, top_issues is empty, validator_policies is set, and BENCHMARK.md shows the skill and the evaluator version. The Git case skips when git is not installed.
    • validate of a two-rule team-rules folder with --checks schema keeps one skills entry per rule file.
  • tests/cli/test_tier_workflows.py, 2 cases: tier1 and tier2 on a clean skill given as a relative path list that skill in skills and contributors, record target_path as typed, and record validator_policies in gating.tiers.
  • tests/ci/test_run_tiers.py: the retained Tier 2 test now checks validator_policies in the evaluator's JSON (blocking: true) and in the retained JSON (blocking: false). tests/ci/test_native_reports.py now expects the key in the retained native Tier 2 JSON. With ci/run_tiers.py from main, 4 cases in these two modules fail; on the branch they give 95 passed.
  • tests/golden/test_benchmark_card.py, 4 new tests: the writer's version on a card without Tier 3; a recorded Tier 3 0.8.2 wins over 9.9.9; retired-name normalization of the writer's version (2 cases).
  • Fail-before: with src/ from the base branch head and this PR's tests, the four modules give 15 failed, 553 passed. The 15 are all the new tests except the rules-folder case, which pins the skill-directory guard: with the explicit name passed for every content type, it fails with one example-team entry.
  • With only the validate explicit-name line removed, the Git checkout case fails (10 check IDs) and the plain folder case passes through the target-path fallback.
  • On the branch: the four modules, 568 passed.
  • tests/reporting, tests/golden, tests/test_commands.py, tests/ci, tests/cli, tests/test_artifact_applicability.py, tests/test_publication_evidence.py, tests/test_publication_identity.py, tests/test_public_benchmark_gate.py, tests/test_benchmark_source_provenance.py, tests/test_quality_policy_gate.py, tests/test_tier2_command_failures.py and tests/test_ci_workflows.py: 4718 passed, 4 skipped, 3 failed. The 3 failures are test_actual_workflow_bootstrap_ignores_consumer_pythonpath in tests/ci/test_all_tier_preflight.py and the two test_isolated_feedback_launcher_uses_trusted_siblings_from_any_consumer_directory cases in tests/ci/test_feedback.py, which fail the same way with src/ from the base branch.
  • The other modules that use the JSON, HTML or benchmark reporters (tests/validators/test_security.py, tests/validators/test_pii_waivers.py, tests/validators/test_target_dependencies.py, tests/validators/test_skillspector_scope.py, tests/validators/test_secrets_structured.py, tests/validators/test_rubric_eval.py, tests/utils/test_structured_data.py, tests/utils/test_scanner_install.py, tests/tier3/test_private_runtime_report_acceptance.py, tests/tier3/test_f90_mcp_arguments.py, tests/test_harbor_secure_docker_environment.py, tests/test_oss_packaging.py, tests/test_harbor_claude_refusal_fallback.py, tests/test_skip_checks.py, tests/test_progress_output.py, tests/test_catalog_discovery.py): 2031 passed, 2 skipped, 2 failed. The 2 failures are test_sidecar_retains_* in tests/test_harbor_secure_docker_environment.py, which fail the same way with src/ from the base branch.
  • The tests that read the edited docs and CHANGELOG (tests/test_harbor_claude_refusal_fallback.py, tests/test_oss_packaging.py, tests/test_ci_change_classifier.py, tests/ci/test_image_build.py, tests/tier3/test_private_loose_source.py, tests/test_ci_workflows.py, tests/test_benchmark_rollout_docs.py): 235 passed. tests/test_accuracy_arithmetic.py, tests/test_tier3_public_runtime.py and tests/test_cli.py: 474 passed.
  • ruff check and ruff format --check are clean on the changed Python files, and scripts/check_oss_boundary.py passed.

🤖 Generated with Claude Code

rng1995 and others added 12 commits November 7, 2026 20:50
…orted artifact

`validate` with `--type auto` on a target with no skill, rules, workflows
or plugin (type `unknown`) ran the skill schema, version and quality checks,
which each failed with "No skills found", so an ordinary repository failed
Tier 1 and exited 1 even when every content scan passed.

For `unknown` content, record schema, version and quality as not-applicable
skips with a `tier1_applicability` record, and keep running the content
scans with their unrestricted scope. The skips carry the publication
evidence marker and the full skill lineup, so such a run never certifies
Tier 1. `content_type=None` and an explicit `--type` behave as before.

The JSON report adds a root `tier1_applicability` object. The terminal
Tier 1 box leaves the N/A checks out of its pass count and lists them on
their own row, and the HTML Tier 1 summary no longer counts an N/A skip
a second time as skipped.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cability

The not-applicable branch looked only at the detected content type, so a
folder that `--type auto` reports as unknown because its manifest is
unreadable passed Tier 1 instead of failing it. A dangling SKILL.md symlink
is unknown on every platform, and a mis-cased Skill.md is unknown on
case-sensitive filesystems only, so the exit code depended on the platform.
The schema, version and quality checks are now recorded as not applicable
only when the target holds no entry whose name casefolds to SKILL.md, read
with os.scandir so broken symlinks and other casings count. Otherwise they
run as they did before and fail.

The JSON root tier1_applicability key was written only when one of those
checks had been selected and recorded as not applicable, so a run narrowed
to the content scans (--checks pii) or skipping them (--skip
schema,version,quality) carried no applicability signal. Every result of a
not-applicable run now carries the record, including a run that fail-fast
stops early, so the root key no longer depends on check selection.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The default-tier validate test read the final panel without pinning the
terminal width, so COLUMNS=60 wrapped the Tier 1 line and failed it. It now
sets COLUMNS=120, as the other final-panel tests do.

The Tier 1 summary test matched the literal "1/1 passed". An open change
rewrites that row to "N/M checks passed", which would have failed the test
and made its "4/4 passed" guard pass trivially. The test now accepts both
wordings, rejects any count out of 4, and checks that schema, version and
quality appear only on the n/a row and are never marked passed or failed in
the check ticker.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ot unknown

- Only the terminal summary and the HTML report count the not-applicable
  checks as N/A. The JSON and Markdown reports list them as skipped with a
  `not applicable` skip reason. The pages and the CHANGELOG said every
  report counted them as N/A.
- "Exits 0" was a Tier 1 statement only. Tier 2 deduplication still runs on
  the target unless `--no-dedup` or `--tiers 1`, and it can fail the run.
- Path-part detection still applies: a repository whose path includes a
  directory named skills, team-skills, team-rules, workflows or
  team-workflows is detected as that type, not unknown.
- A folder with a mis-cased or dangling SKILL.md still fails as a skill.
- The root tier1_applicability key is written whichever checks run, and it
  is now listed in the machine-readable contract in docs/reports.mdx.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The `security,pii,code-integrity` case ran the real Bandit and Gitleaks
scans. CI installs no Gitleaks, so on Linux and macOS the managed install
would download it during the unit test, and where it cannot be resolved
the run is incomplete and the test fails. Replace the security and
code-integrity validators with a passing stub, shared with the
publication test, so only the PII scan runs for real.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…gets

The broken-artifact guard only knew a root SKILL.md. A folder with a
dangling `.claude-plugin/plugin.json`, or a dangling or mis-cased
`agent_plugin.yaml`, `agent_plugin.yml` or `workflow-rules.mdc`, was
still detected as unknown and passed with its manifest checks as N/A,
where main failed it.

The guard now compares the target's own entries against every manifest
auto-detection looks for, in any letter case, and counts a dangling or
unreadable `.claude-plugin` entry. A `.claude-plugin` folder without a
`plugin.json`, such as a marketplace's, stays not applicable. The docs
and the CHANGELOG entry name the manifests.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The content types section said a folder with a `SKILL.md` entry in any
letter case is a broken skill. A reader could take that to cover a
repository whose only skill sits below the target with a mis-cased
manifest, such as `tools/foo/Skill.md`, which is not discovered and
leaves the target unknown. Say the rule applies to the target folder
itself, and that a mis-cased manifest below it must be validated
directly.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d the evaluator version

The JSON reporter built a bare HTMLReporter to group results by skill, so
a clean single-skill run with a narrowed check list (`validate --checks
schema`) had no finding path, quality score or target path to name the
skill by and listed one skill per check ID. `validate` now passes the
target folder's recorded name for a skill directory, and emit_reports
passes it with the target path to the JSON reporter, which hands both to
the HTMLReporter it reuses. A Git remote URL target no longer matters.

JSON reports also record the SkillEvaluator `version`, the `target_path`
and `top_issues` (the HTML summary rows without their hashed `issue_key`,
which CI redaction could not refresh), and each `gating.tiers` entry adds
`validator_policies` with each check's own blocking flag.

BENCHMARK.md written by `validate` falls back to the running evaluator
version when no Tier 3 result recorded one, so a Tier 1-only card no
longer says "Evaluator version: not recorded". A recorded Tier 3 version
still wins.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tier1 and tier2 too

The JSON key docs and CHANGELOG described `target_path` and `gating.tiers`
as `validate`-only. `tier1` and `tier2` also pass the target to the JSON
reporter, as the path given on the command line, and stamp gating on their
results, so their reports carry both keys. They also name a clean single
skill in `skills` and `contributors` through the target path, which the
Fixed entry now says. `top_issues` covers every tier, as the HTML report
data does; only the HTML summary panel is scoped to Tier 1.

The Evaluator version paragraph in reports.mdx moves after the evaluated
source seams, and the paragraph that says the identity is never inferred
while rendering now names the evaluated source identity.

Tests pin the tier1 and tier2 JSON `skills`, `contributors`, `target_path`
and `gating.tiers`, and the every-tier `top_issues` rows.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`validate` names the one skill explicitly only for a skill directory. A
rules folder groups its results per rule file, and naming the folder would
fold every rule into one `skills` entry, so a `--checks schema` run of a
two-rule folder now asserts one entry per rule. The retired-name case in
the benchmark card test writes its combining mark as an escape, as the
other cases in that file do.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The JSON field table described `top_issues[].total_count` as "raw
occurrences", while the `finding_groups` row in the same table uses
occurrences for every location, including the ones a PII finding folds
into `metadata.occurrences`. `total_count` adds up the records merged by
the HTML reporter's deduplication, the same unit as
`skills[].issue_count`, so a folded PII finding counts once.

A test runs the PII scan on a skill that repeats one personal path three
times and pins `total_count` 1 and `issue_count` against three
`finding_groups` locations, and checks that the docs row names the unit.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995
rng1995 marked this pull request as ready for review November 9, 2026 19:50
rng1995 and others added 4 commits November 10, 2026 14:12
…icability

Bring the branch up to date with public main (46 commits since e5c100a).

Conflicts:
- CHANGELOG.md: both sides appended an entry at the end of
  Unreleased > Fixed (main: the tier3 compare Overall lift entry; this
  branch: the validate unknown-target N/A entry). Kept both under the
  single Fixed heading, main's entry first, then this branch's entry.
  Released sections are unchanged.

docs/cli-reference.mdx, docs/reports.mdx, docs/tier1-validation.mdx and
reporting/templates/report.html.j2 merged without conflicts; the tree
differs from main only by this branch's own changes.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aren/port-reporting-json-single-skill-identity

Bring in the updated base branch, which now contains main d717f22.

Conflicts:
- CHANGELOG.md: under Unreleased > Added, main added the three-tier CI
  entrypoints, native OpenClaw manifest and CI onboarding entries at the
  end of the list, where this branch added its JSON report keys entry.
  Kept all of main's entries in their order and put this branch's entry
  after them. The Fixed entry merged without a conflict.

docs/ci-integration.mdx, docs/reports.mdx, src/skillevaluator/cli.py,
src/skillevaluator/reporting/benchmark.py and the changed test modules
merged without conflicts.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The three-tier CI rewrites the retained Tier 2 report's gating entry to
mark it advisory. That rewrite dropped the per-check validator_policies
list that JSON reports now carry. Write the list with each check marked
non-blocking, so the retained Tier 2 file has the same shape as Tier 1,
Tier 3 and CLI reports.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The native report retention test pins the retained Tier 2 gating entry.
It now also lists validator_policies, with the check marked advisory,
as the CI writes it.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed single-skill JSON identity, evaluator version and target propagation, mixed validator policies, retained CI reporting and top-issue serialization, including callers and the PR test coverage. No additional actionable findings.

Validation on a clean merge candidate with current main (ce52a098), using the repository lockfile: 7 passed, 178 deselected in15.61s. The exact PR head 2386e4b5b21f has all 10 required CI checks successful and merges without conflicts. Merge #410 first; this PR remains stacked on its existing base. The remote head is unchanged by this review.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Final base update: merged the repaired #410 base without conflicts, preserving the single-skill identity/version and per-validator gating changes. The focused reporter contracts pass again on the final candidate: 7 passed, 178 deselected in 5.12s under locked dependencies. Full src/tests Ruff lint passes; pinned Fern5.121 check reports 0errors and 1existing configuration warning. Signed-off integration pushed normally. No actionable findings; remains stacked on #410, open and unmerged.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Merged updated #410 and resolved the latest main 487910e JSON import conflict, retaining both evaluator-version and Tier1 publication-scope imports. Identity, retained-scope and native Tier2 retention checks: 46 passed, 246 deselected; full src/tests Ruff lint and Fern check pass (0 errors/1 existing warning). Fetched actual base #410=0861b6f1 and latest main 487910e both merge cleanly; signed-off normal push preserves the stack.

rng1995 and others added 7 commits November 12, 2026 11:28
…lity

No conflicts. The stacked PR #424 already contains this main, so its
base takes it too, which keeps #424's diff to its own changes.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge live base e0211ba to remove criss-cross merge-base ambiguity. Source tree remains identical to the green dcb73cd head.

Signed-off-by: Narendran Raghavan <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Current-head integration review: reconciled the JSON identity branch with its actual applicability parent d821361 and main a72a611, preserving every CHANGELOG entry, including #466 negative-control guidance. Complete JSON Added/Fixed entries sit after their assigned stable anchors; a normalized entry audit found no missing or duplicate entries. The actual parent is now an ancestor, removing the previous criss-cross ambiguity; fresh parent/main merge-tree checks equal the candidate tree. Verification on this head: 77 combined JSON identity, retained-publication-scope, native Tier 2 retention and applicability contracts passed (246 deselected); Ruff src/tests passed; Fern check found 0 errors (1 existing warning). Fresh pre-push open/head/base/main guards passed. No PR merge performed.

Base automatically changed from naren/port-tier1-unknown-artifact-applicability to main November 12, 2026 21:06

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. The explicit skill name only applies when the target is a single-skill directory, so a clean run inside a Git checkout (where target_path is the remote URL) still gets one skills entry. The new version, target_path, top_issues (without the HTML-only issue_key), validator_policies and tier1_applicability fields are additive. The not-applicable detection uses the same skip-reason convention as presentation.py, and the evaluator version on the card still prefers the Tier 3 payload's version. 700 tests pass. The [git-checkout] case failed once in my environment because of my machine's git setup, and it passes with a clean environment and in CI.

@chrisknvidia
chrisknvidia merged commit 3d93f2e into main Nov 13, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the naren/port-reporting-json-single-skill-identity branch November 13, 2026 06:06

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reading this after it merged, so treat what follows as follow-ups.

This was squash-merged while I was reading it, so treat the points below as follow-ups for main. The change itself looks right: I ran validate --tiers 1 --checks schema --no-llm -r json on the simple fixture in a plain folder and in a git checkout with an origin remote (the remote's credentials are stripped from target_path), and skills is [simple] with the new keys present, while on main it lists the check IDs. Odd folder names (quotes, angle brackets, a newline, an ANSI escape, a bidi override, 200 characters, NFD) come out as valid JSON and the name is only used in JSON, so I see no injection problem. The name is the folder's recorded entry name, never the frontmatter name, so a skill whose folder and frontmatter differ is listed by folder. Passing the explicit name to the reporter inside JSONReporter does turn off its path shortening, but nothing in the JSON reads those paths. top_issues survives the CI redactor with no secret text left (I ran it with a few fake credentials), and the version comes from the installed metadata like the HTML and SARIF reports already do.

What I would still fix: tier1 . and tier2 . from inside the skill folder still list one entry per check ID on a clean narrowed run, which the CHANGELOG and docs row do not say. Either resolve the name in JSONReporter (Path(target_path).resolve().name when it is a local skill folder) with a test, or write the exception down. Smaller things: CI-published skillevaluator-tier1.json now always carries the runner's absolute path in target_path, the native Tier 3 JSON from ci/run_tiers.py still gives skills: ['agent_eval'] and could pass the skill name, a stray second blank line before ## 0.8.0 in the CHANGELOG, and the benchmark card takes the writer's version even when a Tier 3 result recorded an unusable one.

Comment thread CHANGELOG.md Resolved
@rng1995

rng1995 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Post-merge follow-up: #489 addresses the dot-target skill identity, CI absolute target-path retention, native Tier3 single-skill identity and changelog whitespace points. Seven behavioral failures were reproduced first; all 504 reporter/CI/native-tier/benchmark-card tests pass, full src/tests/ci Ruff passes, and independent review passed ten additional identity/privacy cases. The benchmark evaluator-version observation is intentional documented fallback: a usable recorded Tier3 version wins, then a usable recorded summary version, then the report writer version; otherwise it says not recorded. Four direct probes verified that order, so no behavior change was made there. #489 is ready for review and remains unmerged; closed #424 history was preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants