Skip to content

fix(catalog): install-unpinned reads pnpm and counts each once (#946) - #1046

Merged
vchamarthi merged 13 commits into
intel:mainfrom
vchamarthi:issue-946-install-unpinned-counts-quoted-and
Nov 24, 2026
Merged

vchamarthi merged 13 commits into
intel:mainfrom
vchamarthi:issue-946-install-unpinned-counts-quoted-and

Conversation

@vchamarthi

@vchamarthi vchamarthi commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes scenario 1 of #946 and scenario 2, and the echo case of scenario 3. Input: a fenced pnpm add -D parcel html-inline. Observed on main: no install-unpinned. Expected: 2 names, as with npm install -D. Input: pip install anthropic three times across a.md and b.md. Observed on main: 3 installs. Expected: 1. Input: echo "pnpm add lodash". Observed on main: counted. Expected: not an install.

Changes

  • dokimi/external/command_checks.py: PNPM pattern for add, install, i with options before the subcommand, PNPM_DLX for pnpm dlx and pnpx; PNPM_VALUE_OPTIONS; _unpinned_npm takes value_options; _without_printed blanks the quoted text of echo or printf, over several lines, before matching, unless a $( or backtick substitution in it runs the command or the output is piped to a shell.; PNPM is built from PNPM_VALUE_OPTIONS; _unpinned_installs and command_findings count distinct <manager> <name>; docstring updated.
  • dokimi/docs/external-content.md: names pnpm, the distinct count and the echo rule.
  • dokimi/tests/test_catalog_command_checks.py: pnpm, echo and duplicate cases.
  • Changelog fragment.

Risk

Counts drop for skills that show an install more than once, and rise for skills that run pnpm add <name> without a version. A quoted command that runs, such as bash -c "pip install x", still counts. yarn and bun are still not read.

Testing

python -m pytest -q -p no:cacheprovider tests/test_catalog_command_checks.py tests/test_growth_ratchet.py tests/test_catalog_command.py passes (217 passed). Removing the echo check and the cross-file deduplication fails 5 cases. python -m ruff check on the two changed .py files passes.

Open questions

Should a code span in prose that quotes a command not to run, such as pip install torch in skills/torch-xpu-run/SKILL.md, be skipped? It is the rest of scenario 3 and needs a rule for telling a quoted command from an instruction.

Revert

Revert the commit. Nothing is stored.

Checklist

See boxes.

  • Tests added/updated and pytest passes
  • ruff, mypy, and schema checks pass
  • Docs updated (or N/A) — see the docs-drift checklist in CONTRIBUTING.md
  • Self-reviewed per "Before opening a PR" in AGENTS.md
  • Each new raise/exit and test names the doc, contract or issue it traces to
  • No ad-hoc run artifacts committed
  • New files carry the SPDX license header (or are exempt in .github/.licenserc.yaml)
Checklist evidence
  • Tests added/updated and pytest passes: 1 test file(s) changed; suite: 23840 passed; 1 failing test(s) fail on the base branch too: tests/test_repo_compare_interval.py::test_the_row_p_places_zero_where_large_deltas_round_p_at_zero_apart; 15 of 21 proof(s) fail before the change; 6 pin behaviour the base code already had
  • ruff, mypy, and schema checks pass: passed: ci.yml:static / ruff check, ci.yml:typecheck / mypy, ci.yml:static / schema-check, ci.yml:static / schema_compat vs the PR base
  • Docs updated (or N/A): updated: dokimi/docs/external-content.md
  • Self-reviewed per "Before opening a PR" in AGENTS.md: second reader: 2 round(s), nothing left open; mutation of changed lines ran
  • Each new raise/exit and test names the doc, contract or issue it traces to: every new error path and test names a doc, contract or issue
  • No ad-hoc run artifacts committed: 1 added file(s), none a run's output
  • New files carry the SPDX license header (or are exempt in .github/.licenserc.yaml): no new source file

Refs #946.

…#946)

install-unpinned read only pip, npm and npx, so a skill running
`pnpm add -D parcel html-inline` got no finding where the same line
with npm got one for two names. pnpm add, install and i are now read
like npm, with pnpm's own options before the subcommand and its value
options (--filter, -F, --dir, -C, --store-dir, --save-catalog-name)
left out.

The same install shown twice, in one file or across files, is now one
package, and a command inside the quoted text of echo or printf is not
an install. A quoted command that runs (bash -c "...") still counts.

Refs intel#946: scenarios 1 and 2, and the echo case of 3; the code spans
that quote a command in prose are not changed.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
intel#946)

The fenced blocks and code spans were joined into one text, so an apostrophe
in one echo (echo Don't panic) opened a quote that closed in a later block
and hid the real installs between them.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi
vchamarthi marked this pull request as ready for review November 20, 2026 02:02
@vchamarthi
vchamarthi requested a review from a team as a code owner November 20, 2026 02:02
Copilot AI balanced review requested due to automatic review settings November 20, 2026 02:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The scanner still misses executable installs in command substitutions and pnpm commands with attached quoted option values, allowing unpinned dependencies to go unreported.

5 open issues
What changed in this PR

5 new findings and 1 pre-existing issue.

This PR improves catalog check’s unpinned-install warnings for external skill content, addressing pnpm support, repeated installs, and echoed commands from #946.

Changes:

  • Recognizes pnpm add, install, and i, including options before the subcommand.
  • Counts distinct manager/package pairs across skill files and filters quoted echo/printf text.
  • Adds regression tests and documents the revised counting rules.
File Description
dokimi/​tests/​test_catalog_command_checks.py Adds pnpm, deduplication, quoting, and substitution cases.
dokimi/​dokimi/​external/​command_checks.py Implements pnpm detection, distinct counts, and echoed-text filtering.
dokimi/​docs/​external-content.md Documents supported managers and counting behavior.
dokimi/​changelog.d/​20261119_120000_install-unpinned-pnpm.md Records the catalog-check changes for #946.

Review effort: Balanced

@exai-bot

exai-bot commented Nov 20, 2026 •

Copy link
Copy Markdown

OpenCodeReview: Commit 1338b31 was not reviewed. This PR has reached its review limit (6 reviews).

CI at `1338b31`: 3 still running, 14 passing, 3 skipped
Check Status
Static checks (ruff, schema, zizmor, licenses, pre-commit, bandit, secrets, changelog, schema com... still running
Test Linux Python 3.14 still running
Test Linux Wheels Python 3.14 still running

To review this commit: re-request review from exai-bot in the Reviewers list.

<details><summary>Last review (4708b65): 1 medium</summary>

Open threads from the bot: 0

</details>

Replaces the echoed-span regex with a scan that follows quotes and
substitutions in order. Fixes:
- install in a substitution inside echo text hidden (nested quotes, a
  literal ')' before '$(', double backslash, an echoed install beside it)
- echo/printf after command, builtin, exec or NAME=value not recognised
- '>&2' read as a separator
- 'echo' inside a quoted argument opening a spurious span
- echo output piped to a shell treated as text
- pnpm --opt="quoted value" hiding the subcommand

Signed-off-by: vchamarthi <venkata.sai.gireesh.chamarthi@intel.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

🟢 Ready for re-review · 1 commit on issue-946-install-unpinned-counts-quoted-and (48c3ffa..7824b65)

Next: a re-review of the new head.

PR description updated

  • _without_printed blanks the quoted text of echo or printf, over several lines, before matching, unless a $( or backtick substitution in it runs the command or the output is piped to a shell.

Threads and comments

  • 9 fixed; each answered in its thread.

Verified on the new head: ✅ 1/1 tests fail before the fix, pass after · ✅ full suite with main merged in: 23989 passed · ✅ second reader: nothing raised

What each test shows
  • each case from the review threads: fails before, passes after.
  • Left to GitHub's own checks: agent-quality.yml:external-catalog-smoke, ci.yml:static / pre-commit, ci.yml:static / Install gitleaks, ci.yml:static / Scan commits, ci.yml:fidelity / Install the pinned Claude Code, ci.yml:test-latest, ci.yml:package-smoke, ci.yml:windows-smoke.

@codecov-commenter

codecov-commenter commented Nov 20, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 96.35036% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.06%. Comparing base (a5bd905) to head (1338b31).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
dokimi/dokimi/external/command_checks.py 96.35% 4 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1046      +/-   ##
==========================================
- Coverage   96.07%   96.06%   -0.02%     
==========================================
  Files         475      475              
  Lines       62953    63117     +164     
  Branches    10899    10935      +36     
==========================================
+ Hits        60483    60632     +149     
- Misses       1524     1533       +9     
- Partials      946      952       +6     
Files with missing lines Coverage Δ
dokimi/dokimi/external/command_checks.py 97.23% <96.35%> (+0.32%) ⬆️

... and 10 files with indirect coverage changes

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

@vlad-perevezentsev vlad-perevezentsev 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.

Review at 7824b65. The pnpm reading, the distinct count and the echo blanking work for the cases in the tests, but the new shell scanner is unbounded: a short crafted string takes exponential time, and deep nesting raises RecursionError. Details are in the line comments.

Agreed with @exai-bot: the newline after | (I added more forms in its thread); the RecursionError on deep $( nesting; a quote in a # comment after an echo hiding the next installs.

What I ran, at 7824b65:

  • make ci-local --offline: 23,772 passed, 0 failed, 72 skipped; mutation run of the changed lines passed.
  • Repros via _unpinned_installs: '"$(' * n takes 0.2 s at n=18, 0.8 s at 20, 3.4 s at 22; '$(' * 600 raises RecursionError; the cases in the line comments give the results quoted there.

Checked, no issues

  • Block ends: a quote opened in one fenced block or code span does not run into the next one, so an apostrophe in one block does not hide an install in another.
  • Bundled code files: quotes in Python (os.system('pip install requests') after "don't") do not hide the install.
  • Earlier threads: the nine resolved threads (substitutions, escapes, prefixes, redirections, same-line pipe to a shell) are fixed at this head.
  • Docs and changelog: the fragment is under Fixed and matches the docs page and the module docstring.

Fixes the echo scanner and pnpm reading in install-unpinned:
- a newline, continuation, sudo flags, env or a path after the pipe
  still feeds a shell, as in pipe-to-shell
- substitution nesting is capped and each substitution is scanned once,
  so deep or unclosed $( input is linear and does not raise
- a # comment is skipped before its quotes are read, and after an echo
  its text is not read as an install
- pnpm --reporter, --modules-dir, --virtual-store-dir, --lockfile-dir and
  --global-dir take a value
- pnpm dlx and pnpx are read as npx; a --package selection before dlx
  is judged as one after it

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

🟢 Ready for re-review · 1 commit on issue-946-install-unpinned-counts-quoted-and (7824b65..8a9ea59)

Next: @vlad-perevezentsev: re-review the new head.

Changes

  • Echoed install piped to a shell across a newline, with sudo flags, env or a path is run.
  • Deep substitution nesting no longer raises.
  • Unclosed string with nested substitutions is scanned once per substitution.
  • A # comment is skipped before its quotes are read.
  • pnpm --reporter, --modules-dir, --virtual-store-dir, --lockfile-dir, --global-dir take a value; pnpm dlx and pnpx are read.
  • A --package or -p selection before pnpm dlx is judged as the package.
  • Text of a comment after echo or printf is not read as an install.
  • A --package text inside another option's quoted value is not a selection.

PR description updated

  • PNPM pattern for add, install, i with options before the subcommand, PNPM_DLX for pnpm dlx and pnpx; PNPM_VALUE_OPTIONS;

Threads and comments

  • 6 fixed; each answered in its thread.

Verified on the new head: ⚠️ 8/10 tests fail before the fix, pass after · ✅ full suite with main merged in: 24392 passed, 1 failure that main has too · ⚠️ second reader: 2 of its points still open

What each test shows
  • pipe tail: fails before, passes after.
  • depth: fails before, passes after.
  • linear: fails before, passes after.
  • comment: fails before, passes after.
  • pnpm options: fails before, passes after.
  • dlx: fails before, passes after.
  • package selection before dlx: fails before, passes after.
  • pinned selection before dlx: passes before the fix too.
  • comment after echo: passes before the fix too.
  • selection inside a quoted option value: fails before, passes after.
  • Left to GitHub's own checks: agent-quality.yml:external-catalog-smoke, ci.yml:static / pre-commit, ci.yml:static / Install gitleaks (unsupported host: needs installed native gitleaks at the workflow's pinned version), ci.yml:static / Scan commits (unsupported host: needs installed native gitleaks at the workflow's pinned version), ci.yml:fidelity / Install the pinned Claude Code, ci.yml:test-latest, ci.yml:package-smoke, ci.yml:windows-smoke.

…ntel#946)

- PIPED_SHELL accepts fish, as PIPE_TO_SHELL does.
- pnpm dlx and pnpx read options with pnpm's value options, so
  'pnpm dlx --reporter silent create-vite@5.0.0' is pinned.
- text printed by an echo inside a substitution is blanked with the
  enclosing command, so 'echo "$(echo ...)" | sh' still counts.
- an echo or printf whose stdout is redirected (>f, >>f, >&2) feeds a
  shell nothing, so 'echo "$(echo x >/dev/null)" | sh' is not an install.
- _blank takes a Sequence of tuples, so mypy accepts the piece lists.
- 2>>file, >&1 and 1>&1 keep stdout, so 'echo x 2>>/dev/null | sh' and
  'echo x >&1 | sh' are still installs.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

🟢 Ready for re-review · 1 commit on issue-946-install-unpinned-counts-quoted-and (8a9ea59..07a7201)

Next: a re-review of the new head.

Changes

  • A redirected-stdout echo piped to a shell, or nested in an echo that is, is not read as an install.
  • An echo whose redirection keeps stdout is still read as run when piped to a shell.

Threads and comments

  • 3 fixed; each answered in its thread.

Verified on the new head: ⚠️ 3/4 tests fail before the fix, pass after · ✅ full suite with main merged in: 24506 passed, 1 failure that main has too · ⚠️ second reader: 3 of its points still open

What each test shows
  • echo or printf piped to fish, and nested echo piped to sh, count as installs: fails before, passes after.
  • pnpm dlx and pnpx read pnpm's value options: fails before, passes after.
  • a nested echo that is not piped to a shell is still printed text: passes.
  • an echo with redirected stdout feeds a shell nothing: fails before, passes after.
  • a redirection that keeps stdout does not hide the echo from a shell: passes before the fix too.
  • Left to GitHub's own checks: agent-quality.yml:external-catalog-smoke, ci.yml:static / pre-commit, ci.yml:static / Install gitleaks (unsupported host: needs installed native gitleaks at the workflow's pinned version), ci.yml:static / Scan commits (unsupported host: needs installed native gitleaks at the workflow's pinned version), ci.yml:fidelity / Install the pinned Claude Code, ci.yml:test-latest, ci.yml:package-smoke, ci.yml:windows-smoke.

@napetrov napetrov 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.

Change class: CONTRACT (head 07a7201)

  • Contract: changed. errors dokimi/dokimi/external/command_checks.py:253
  • Responsibility: none
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

Two existing review threads remain open on how printed shell text is classified.

This change and #1047 both edit the command scanner. A trial merge conflicts in its implementation, tests and guide. Reconcile package deduplication across both paths when rebasing.

One Python 3.14 job reported a runner shutdown. The wheels job reports a timing failure in the reference-check tests.

Existing open threads: T19, T20.

Checked the pnpm options and the code that distinguishes printed text, shell substitutions and pipelines. Existing open threads track comment and descriptor handling. The focused suite reported 10 passed, 189 deselected in 0.56s.

CI on head 07a7201: 2 failing Actions jobs; merge base d2790e1 is behind base tip 36075a0.

…intel#946)

- A comment inside a substitution echoed to a shell is blanked, not read as an install.
- echo 'pip install x' 2>&1 >&2 | sh keeps its install: stdout is still the pipe.
- 2>&1 2>/dev/null >&2 | sh feeds the shell nothing: the later 2> drops the 2>&1.
- 12>&1 is descriptor 12, not stderr.
- 2>&10 is a duplicate of descriptor 10, not 2>&1.
- _2>&1 is an argument followed by >&1, not stderr onto stdout.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

Ready for re-review: 1 commit on issue-946-install-unpinned-counts-quoted-and (07a7201..cb9419d).

Changes:

  • A comment span is marked as always blanked, so piping the outer echo to a shell keeps it suppressed.
  • 2>&1 is tracked, so a later >&2 no longer counts as diverting stdout.
  • The 2>&1 mark is dropped when stderr is redirected again, and only a standalone descriptor 2 sets it.
  • >&<fd> matches the whole descriptor number, and a word character before 2 rules out stderr.

Threads and comments:

  • 2 fixed; each answered in its thread.

Checked on the new head:

  • Not passed: 2 of 3 tests fail before the fix and pass after
  • Full suite with main merged in: 24632 passed, 1 failure that main has too
What each test shows
  • comment in a piped substitution stays suppressed: fails before, passes after.
  • 2>&1 >&2 still feeds a shell: fails before, passes after.
  • stderr redirected again, or fd 12, does not keep the pipe: passes before the fix too.

An argument ending in 2 (example-2>&1) is no longer taken for descriptor 2,
and 2>&2 no longer drops the saved 2>&1, so the piped install is still seen.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

Ready for re-review: 1 commit on issue-946-install-unpinned-counts-quoted-and (cb9419d..4708b65).

Changes:

  • Descriptor 2 is recognised only after whitespace or a shell separator.
  • 2>&2 no longer clears the saved 2>&1.

Threads and comments:

  • 2 fixed; each answered in its thread.

Checked on the new head: 2 of 2 tests fail before the fix and pass after; full suite with main merged in: 24642 passed, 1 failure that main has too.

What each test shows
  • stderr self-duplication keeps the pipe: fails before, passes after.
  • a 2 ending an argument is not a descriptor: fails before, passes after.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
Pins that 2000 nested brackets in --baseline raise InputError (exit 2), not RecursionError.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

Ready for re-review: 2 commits on issue-946-install-unpinned-counts-quoted-and (4708b65..327329b).

Checked on the new head: tests of the fix: 2 passed; full suite with main merged in: 31323 passed, 1 failure that main has too.

What each test shows
  • pnpm and echo cases still pass after the merge: passes.
  • a deeply nested baseline is an input error: passes.

Comment thread dokimi/docs/external-content.md Resolved

@napetrov napetrov 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.

Change class: CONTRACT (head 327329b)

  • Contract: changed. errors dokimi/dokimi/external/command_checks.py:274
  • Responsibility: none
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

The guide still contains three merge-conflict markers, and the new baseline test expects an error conversion missing from this head. The earlier scanner threads about comments and ordered redirections have corresponding fixes and regression cases.

Reviewed the scanner and regression fixtures statically, including shell comments, pnpm option parsing and stream redirection. Confirmed the conflict markers in the guide. A stubbed decoder limit raised RecursionError on both trees, and raised InputError on sibling #1050.

Still open on this head: T23.

Removes the merge-conflict markers left in external-content.md, keeping
both the pnpm/echo text and main's look-alike and inline-program text.
baseline_from catches RecursionError, and the test nests 200000 levels
so it fails without the catch.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

Ready for re-review, @napetrov: 2 commits on issue-946-install-unpinned-counts-quoted-and (327329b..9425321) answers your thread.

Threads and comments:

  • 2 fixed; each answered in its thread.

Checked on the new head: 1 of 1 tests fail before the fix and pass after; full suite with main merged in: 31420 passed, 1 failure that main has too.

What each test shows
  • A deeply nested baseline file is an input error: fails before, passes after.
  • Also changed, outside the PR's files: dokimi/dokimi/commands/repo_scan.py.

napetrov
napetrov previously approved these changes Nov 24, 2026

@napetrov napetrov 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.

Change class: CONTRACT (head 9425321)

  • Contract: changed. errors dokimi/dokimi/external/command_checks.py:274
  • Responsibility: none
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

The guide’s conflict markers are gone and the current baseline reader converts decoder RecursionError to InputError. Checked pnpm option handling, deduplication and the earlier comment and descriptor cases in the scanner. The focused run covered package names and repeated installs. Reviewed shell parsing and the nesting-limit case statically.

Coverage: 4 passed, 104 deselected in 0.57s. CI reported no failing or pending jobs on 94253210d.

@napetrov
napetrov dismissed their stale review November 24, 2026 05:22

The reviewed change passes its focused checks. This branch conflicts with current main in dokimi/dokimi/external/command_checks.py. Please resolve the conflict so the combined change can be reviewed.

@vlad-perevezentsev vlad-perevezentsev 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.

🟢 LGTM · re-checked 9425321 · nothing required from @vchamarthi beyond the rebase

🔀 Merge: after a rebase · it conflicts with current main in command_checks.py (_code_text: #1118's code_spans() and this PR's BLOCK_END, both needed), 36 commits behind · after it, #849 and #804 need a rebase (command_checks.py)

✅ make ci-local --offline: 26,152 passed · ⚠️ "Repeat changed tests": 259 passed under every seed, one exit 1 from pytest's own tmp-dir cleanup (ResourceWarning in _pytest/pathlib.py), not from this PR; seed 8 passes on replay · ✅ '"$(' * 16000: 0.012 s (was 3.4 s at 22) · ✅ '$(' * 5000: no RecursionError

The earlier points are fixed, and the scan now stays linear on unclosed and deeply nested openers.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

Ready for re-review, @vlad-perevezentsev: 2 commits on issue-946-install-unpinned-counts-quoted-and (9425321..1338b31) answers your comment.

Changes:

  • _code_text reads prose code spans with main's code_spans() and ends a block after each span.

Threads and comments:

  • 1 fixed; each answered in its thread.

Not the PR's:

  • Outside the PR: dokimi/dokimi/commands/catalog_novelty.py:119; _skill_digest calls tree_digest with strict=False: with references/ empty, then references/new.md added and references set to mode 0111, the digest is unchanged, so --resume reuses the old measurement.
  • Outside the PR: dokimi/dokimi/repos/arms.py:332; skill_usage takes posixpath.normpath of a read path: a successful read of alias/../.claude/skills/x/SKILL.md with installed=['x'], expected='x' gives skill_invoked true whatever alias links to; arm_uptake in dokimi/dokimi/repos/uptake.py:85 does the same.

Checked on the new head: tests of the fix: 1 passed; full suite with main merged in: 32802 passed, 1 failure that main has too.

What each test shows
  • _code_text takes prose spans from code_spans and puts BLOCK_END after each: passes.

@napetrov napetrov 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.

Change class: CONTRACT (head 1338b31)

  • Contract: changed. errors dokimi/dokimi/external/command_checks.py:274
  • Responsibility: none
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

The rebase resolves the conflict in command_checks.py and uses the shared code span scanner. I checked package-name deduplication, pnpm value options, separation between prose examples and the baseline error handler. Five focused scanner tests passed locally. GitHub CI passed. The full suite ran in CI.

@vchamarthi
vchamarthi merged commit 74be6cc into intel:main Nov 24, 2026
25 checks passed
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.

6 participants