Skip to content

fix: eight open bugs (manifest home check, migrate shape, ste-check steps, quoted paths, Canvas host, zsh CI) - #237

Open
savvides wants to merge 10 commits into
mainfrom
claude/open-issues-bug-fixes-9f1d4a
Open

savvides wants to merge 10 commits into
mainfrom
claude/open-issues-bug-fixes-9f1d4a

Conversation

@savvides

@savvides savvides commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Fixes for eight open bugs.

Tests: smoke-test 709/709, integration 81/81, test-setup 21/21, test-doctor 64/64, test-status 50/50, and the python suites pass on macOS. New mutation cases are 81a–81g. I did not run the full mutation run (about 2.5 h) locally; CI runs it.

Closes #222
Closes #224
Closes #227
Closes #229
Closes #233
Closes #234
Closes #235
Closes #236

🤖 Generated with Claude Code


Note

Medium Risk
Touches manifest writes, Canvas token handling, and widespread skill bash blocks; changes are defensive fixes with matching smoke tests rather than new behavior.

Overview
This PR bundles eight bug fixes across scripts, skills, CI, and docs.

Manifest and migration: idstack-manifest-merge now treats ~/.IDSTACK / ~/.idstack as the home profile using os.path.samefile (not string compares), retries os.replace on Windows when the file is briefly locked, and shares that home detection with idstack-migrate --init. Migration steps are wrapped so a malformed section (e.g. list instead of object) exits 1 with a clear message instead of a Python traceback.

Writing check: idstack-ste-check applies the 20-word procedural limit for any text inside an ordered list, including when wrapped in section/article; only tables and label-like blocks end a numbered step.

Skills / shell safety (#233): Step Review and writing-check bash blocks load report and file paths via quoted heredocs (_RS_PATH, _STE_PATH) instead of embedding "<path>" in double-quoted strings, so paths with $( ) or backticks cannot run as shell. Smoke-test adds a guard that templates must not use "<path>" in quoted strings.

Canvas (#222, #224): course-import and course-export reject URLs containing @ (CANVAS_URL_BAD) before saving canvas.env, and all Canvas curl calls use curl -q … -g --max-time 60 so tokens stay on the intended host and hung reads stop after 60s. CLAUDE.md documents the same curl pattern.

CI (#234): Linux jobs retry zsh install by adding the Ubuntu archive when apt only lists Microsoft packages.

Changelog, cli-reference.md, and test assertion counts are updated accordingly.

Reviewed by Cursor Bugbot for commit bed6a54. Bugbot is set up for automated code reviews on this repo. Configure here.

savvides and others added 9 commits November 30, 2026 08:32
A random six-hex run id such as 101abc contains 101, so the test that
rejects 101 in the report failed by chance.

Closes #236

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… by name

On a case-insensitive disk, a course .idstack linked to ~/.IDSTACK
resolved to a path whose name differs from ~/.idstack, so the merge
wrote into the home profile. Use os.path.samefile when both paths exist.
Add a test for a manifest file linked into ~/.idstack/, and mutation
case 81a (macOS only).

Closes #235

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g shape

A list import_metadata made the 1.3 to 1.4 step raise AttributeError and
print a traceback. Catch errors in the migration chain, print nothing on
stdout, and say that the manifest did not change. Mutation case 81b.

Closes #227

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A step inside <section>, <article> or another block wrapper used the
25-word limit, because the walk skipped only div, p and li. Invert the
rule: name the tags that end a step (table parts and labels). Mutation
case 81c.

Closes #229

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The writing-check step in 14 skill blocks and the Step Review append,
approve and finish commands put the model-filled path in a double-quoted
shell string, so $( ) or a backtick in it ran. Read it with
IFS= read -r <<'MARKER', as the other pasted values are. smoke-test fails
on a "<path>" in a template; test-skill-shell-zsh runs a hostile path in
bash and zsh. Mutation case 81d.

Closes #233

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s host

Refuse a Canvas URL with @ in the settings and connection-check blocks of
both skills: curl connects to the host after @ and would send the token
there. Start each curl call with -q (no ~/.curlrc) and pass -g, in the
order idstack-canvas-diff uses. Give every course-import Canvas read
--max-time 60, as the export has. The fake curl in test-skill-shell-zsh
now notes a call with no -q first or no -g, and the suite runs each
course-import read through it. Mutation cases 81e-81g; 68f anchor updated.

Closes #222
Closes #224

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When apt-get update listed only packages.microsoft.com, zsh had no
installation candidate and the mutation step was skipped. On a failed
install, add the archive for VERSION_CODENAME from /etc/os-release and try
once more, in both Linux zsh steps.

Closes #234

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cursor

cursor Bot commented Nov 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: b2c60c71-c5c0-496e-acad-6f26f0c6301f)

… open

The windows CI job failed the concurrent-merge test with WinError 5: Windows
refuses os.replace while another process (a virus scanner) has the target
open. Try again for 2 seconds, then fail as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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