Skip to content

Emit One Snapshot Shape From the Report's Cannot-Read Paths - #3469

Merged
ptr727 merged 2 commits into
developfrom
feature/auto-1759
Oct 25, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/auto-1759

Conversation

@ptr727

@ptr727 ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Closes the remaining #1759 follow-ups in scripts/skills_install.py.

  • Items 1 and 2 were already fixed on develop: no_snapshot() answers the live channel, and both bootstraps now say only that the output above says why. Confirmed, not rewritten.
  • Item 3: a test proves --intended without --report is refused through parser.error and installs and registers nothing.
  • Copilot follow-up: no_snapshot() now emits the same snapshot keys as the judged path (installedFrom and installedDirty null, intended and intendedRef resolved, current false), with a test over the missing, unreadable, and unrecognized stamp cases that also asserts the --intended revision reaches the resolver. scripts/README.md states it.
  • Git floor risk: not measured here (only git 2.47.3 available), filed as Measure the Git Floor That skills_install's --end-of-options Needs #3468 rather than adding an unevidenced floor.

Local strict review: one finding (test did not prove intended_rev is passed through), fixed. Full unit suite, ruff, and mypy green.

Closes on promotion: #1759

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 24, 2026 22:18
A missing, unreadable, or unrecognized stamp now carries the judged
snapshot's keys, null where the stamp would say, and resolves the
intended revision. Add the missing test that --intended without --report
is refused and installs nothing.

Closes on promotion: #1759

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 25, 2026 05:20
@coderabbitai

coderabbitai Bot commented Oct 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head ea4b0bb773059621700e1cc811ddcf04fdffde94, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

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.

🔵 Needs a closer look

The cannot-read path can discard the normal cannot-judge reason when intended revision resolution fails; docstring formatting findings also remain unresolved.

No open issues 🎉

What changed in this PR

This pull request standardizes the skills_install.py --report snapshot shape for missing, unreadable, or unrecognized install stamps, adds intended-revision validation coverage, and documents the resulting behavior.

Changes:

  • Emits a complete snapshot shape for cannot-read report paths.
  • Resolves and forwards explicit intended revisions.
  • Adds tests for snapshot consistency and rejecting --intended without --report.
  • Documents the unified report behavior.
File Description
tests/​test_skills_install.py Covers cannot-read snapshot output, intended-revision resolution, and CLI validation.
scripts/​skills_install.py Adds intended-revision resolution and consistent snapshot fields for cannot-read reports.
scripts/​README.md Documents the consistent report shape and unresolved-stamp behavior.

Review effort: Lite

@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

Headline triage, no counted finding. (1) The cannot-read path keeps its own reason (missing, unreadable, or unrecognized stamp), which is the primary cause. An unresolvable intended revision shows as intended: null with intendedRef naming what was asked, and the judged path's separate 'no intended revision resolves' reason applies only once a stamp was read, so no reason is discarded. (2) Docstring formatting: ruff format --check . reports all files formatted and ruff check passes on this head, and no thread names a specific line. Declined with that evidence.

@codecov

codecov Bot commented Oct 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@003075d). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3469   +/-   ##
==========================================
  Coverage           ?   80.93%           
==========================================
  Files              ?       23           
  Lines              ?     8870           
  Branches           ?        0           
==========================================
  Hits               ?     7179           
  Misses             ?     1691           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 80.93% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit c4573dc into develop Oct 25, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/auto-1759 branch October 25, 2026 05:32
ptr727 added a commit that referenced this pull request Oct 25, 2026
…nd Nine Fixes to Main (#3472)

## Summary

Promotes the pull requests merged into develop since release 2.0.1166.

- [#3444](#3444): keeps
untracked files out of the pre-commit snippet's prose gate.
- [#3446](#3446): exempts
the BuildKit `check=` parser directive in the prose gate.
- [#3448](#3448): compares
intent staleness against the hub's own copy and names the moved
canonical.
- [#3450](#3450): says
only the prose gate is diff-scoped in the commit hook.
- [#3453](#3453):
reclassifies HolidayLights as an operational config repository in the
registry.
- [#3455](#3455):
classifies the remaining subprocess failures by status rather than by
prose.
- [#3464](#3464): splits
the semicolon series in WORKFLOW.md's filesystem output-seam bullet.
- [#3466](#3466): audits a
caller's `workflow-model` input against the registry.
- [#3469](#3469): emits
one snapshot shape from the skills report's cannot-read paths.
- [#3462](#3462): splits
`pr_review.py`'s pure check and round readers into the leaf modules
`pr_review_checks.py` and `pr_review_rounds.py`.
- [#3470](#3470): holds a
covered held `wait` while any workflow run on the head has not
completed.
- [#3473](#3473): answers
this promotion's review. The `wait` help and `scripts/README.md` now say
what a held head's exit `0` does not prove: a `CHECKS UNREADABLE`
payload, the conditions the unregistered-required-check hold reads, and
the reach of the completed-run read. The exit code itself stays for
#3471.

Closes #3370
Closes #3372
Closes #3371
Closes #3369
Closes #3378
Closes #3454
Closes #3332
Closes #1759
Closes #3451

## Constituent coverage

Each change this promotion carries had coverage on its own pull request
into develop, at its merged head:

| Pull request | Merged head | Coverage |
| --- | --- | --- |
| [#3444](#3444) |
`a61d1e2a` | attested local pass at the merged head, base `develop` |
| [#3446](#3446) |
`0a0efea1` | attested local pass at the merged head, base `develop` |
| [#3448](#3448) |
`c2c71ea7` | attested local pass at the merged head, base `develop` |
| [#3450](#3450) |
`4ec37c34` | attested local pass at the merged head, base `develop` |
| [#3453](#3453) |
`f20a543c` | a Copilot round on the merged head, its one changed file,
no open findings |
| [#3455](#3455) |
`85f0ce60` | attested local pass at the merged head, base `develop` |
| [#3464](#3464) |
`fcd48e2d` | attested local pass at the merged head, base `develop` |
| [#3466](#3466) |
`3426a19c` | attested local pass at the merged head, base `develop` |
| [#3469](#3469) |
`ea4b0bb7` | attested local pass at the merged head, base `develop` |
| [#3462](#3462) |
`236eceab` | attested local pass at the merged head, base `develop` |
| [#3470](#3470) |
`3545ba46` | attested local pass at the merged head, base `develop` |
| [#3473](#3473) |
`46010530` | attested local pass at the merged head, base `develop`, and
a Copilot table on an earlier head naming exactly the changed files |

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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