Skip to content

docs(openspec): fix plan #2130 osv-scanner database digest - #3018

Merged
dan-petty merged 3 commits into
mainfrom
docs/2130-fix-plan
Nov 1, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/2130-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This change corrects the OpenSpec plan for #2130 in place. The first plan came from pull request #2978. An evaluation on 2026-11-01 found defects in it.

The corrected plan keeps the osv-scanner work: name the all.zip files of the offline database as ruleset files, and digest a ruleset file below a read-only bind as a stream. It adds no Ruff code. The Ruff config digest already follows the config files that Ruff finds by name. The plan now says that a base file named by extend is not covered, and leaves that choice to a person.

The change touches only the change folder of #2130. It changes no code and no test.

Plans #2130

The first plan named files that do not exist, added ToolRun fields that
exist, and used a Ruff command that fails. The new plan names the
database files as the ruleset of osv-scanner, digests them as a stream,
and leaves Ruff as it is: its config digest already follows the config
files. Plans #2130.
Isolate the osv cache in the tests, fix the Reads lines of group 1, and state the Ruff extend limit as pending a person.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Changes in this pull request

The first commit rewrites plan #2130 in place. The second commit fixes three findings of the verification.

Evaluation findings of PR #2978

The evaluation found defects in the first plan. The rewrite handled them. Two facts came from commands on 2026-11-01:

  • osv-scanner 2.6.0 writes one database file per ecosystem, osv-scalibr/<ecosystem>/all.zip. The npm file is 219697992 bytes, over the 50 MiB limit. The PyPI file is 37604846 bytes.
  • ruff check --show-settings prints plain text with absolute paths, so a digest of it would depend on the checkout path.

Verification findings

  • Major, confirmed and fixed: group 2 names real database files as ruleset files, and the existing _READS case for osv-scanner reads the host cache. Task 2.1 now adds an autouse fixture that sets OSV_SCANNER_LOCAL_DB_CACHE_DIRECTORY to an empty directory for the whole test file. The existing case stays unchanged.
  • Major, confirmed and fixed: the plan said criterion 2 was "already met", but a Ruff extend base file is not covered by the digest. Acceptance, the proposal text and the design now say: met for ruff.toml, .ruff.toml and pyproject.toml; pending a person for an extend base file. The design gives the reason: a reader of the extend chain is a new hand-written helper, and the issue does not ask for it. The plan adds no code for it.
  • Minor, confirmed and fixed: the Reads line of group 1 now lists lines 118-175 (Scenario), 267-312 (the scenario and executor fixtures) and 527-565 (the file helpers and the refusal test).

No finding is left unfixed.

Note for a person

Criterion 2 of #2130 was already met for the named config files before the plan. A person may want to note that on #2130, and decide whether the extend chain needs a follow-up issue.

Checks run

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 12:21
@dan-petty
dan-petty merged commit a45f24a into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2130-fix-plan branch November 1, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant