Add a TestCase example that uses captureOnCommitCallbacks(execute=True)
and asserts the Celery delay call, note the pytest-django fixture and
when TransactionTestCase is appropriate, wrap the eager-mode request
example so post-commit dispatch actually runs, mention
apply_async_on_commit(), and pin the examples in the skill test.
A registered v1 project has CONTEXT.md but no context.json; init wrote
an empty history over that CONTEXT.md. Stop and point to /ck:migrate
while CONTEXT.md is still there, and only start fresh when neither file
exists. A context whose sessions array holds a null entry passed the
guard, then renderContextMd threw after context.json was rewritten; now
every session entry must be an object before anything is written.
Rebind the skill triggers manifest to the new registry digest.
Refs #3922
With both spellings of a folder registered, list marked both rows as
the current project while save and resume use only the exact one. Pass
the key findProject() selects to renderListTable(), which compares it
exactly again. Rebind the skill triggers manifest to the new registry
digest.
Refs #3924
A context.json that parses but has no sessions array (for example a
JSON array at the root) passed the guard, and init wrote an empty
context over it. Require a sessions array before reusing the context.
Rebind the skill triggers manifest to the new registry digest.
Refs #3922
When a registered project's context.json exists but cannot be parsed,
loadContext() returns null and init wrote a fresh context over the file,
destroying history that could still be recovered by hand. Stop with a
message and leave the files alone instead.
Tests: forgetting a project renamed by init leaves no context directory
behind, and init over an unreadable context.json exits 1 without
touching it. Rebind the skill triggers manifest to the new registry
digest.
Refs #3922
Windows paths are case-insensitive, so C:/Work/App and c:\work\app name
the same folder. Add samePath(), which lowercases resolved paths on
win32 only, and use it for the registry lookup, the list marker and the
resume cd hint. The SessionStart hook now uses findProject() instead of
indexing the registry with a key that may be undefined.
Tests: the Git Bash registration is found from PowerShell and from a
lower-case path (init, save, list, resume with the saved session,
SessionStart); resume and forget act on the exact registration when
both spellings exist; SessionStart ignores a registration that does not
match. Rebind the skill triggers manifest to the new registry digest.
Refs #3924
projects.json is keyed by PWD or process.cwd(), and lookups compared
that string exactly. On Windows, Git Bash passes C:/... and PowerShell
gives C:\..., so a folder registered from one shell was unknown in the
other and init registered it a second time. Match registrations by
exact key first, then by resolved path, in save, init, resume, list and
the SessionStart hook, and rebind the skill triggers manifest to the
new registry digest.
Fixes#3924
save.mjs --init wrote a new context with sessions: [] and a fresh
createdAt over the existing one, so running /ck:init again in a
registered folder deleted its session history. Carry both over from the
registered context, keep its context directory when the name changes,
and update only the project details. Rebind the skill triggers manifest
to the new registry digest.
Fixes#3922
- Without a lane that installs the fixture bundle, runFixture returns null on
every runner and the Active Storage cases skip while CI stays green, leaving
the published upload example unverified
- Adds a single rails-security-fixture job following the python-tests pattern
rather than adding Ruby to the test matrix, pinning ruby/setup-ruby by SHA
and bundling from the fixture's own directory
- ECC_RAILS_FIXTURE_REQUIRED=1 turns the skip into a failure in that lane only,
so other environments keep the optional skip
- Asserts the SKILL.md guidance directly: no treating blob.content_type as byte
evidence, the declared-type fallback is stated, the unavailable-object path
fails closed, and both upload entry points are named
- Compares the published Uploads module against the fixture byte-for-byte, so
the example and the tested code cannot drift
- Runs the Active Storage fixture and asserts all six cases, including that
opaque bytes are stored as image/png with identified? true and still rejected
- Prefers bundle exec, falls back to a plain interpreter, and skips only the
lifecycle cases where ruby with rails is unavailable, so the document
assertions still run everywhere
Review on #3830 raised two points against 2f898d7b.
The three artifacts.push calls mutated an array after creating it, which
AGENTS.md rules out ("Immutability (CRITICAL): Always create new objects,
never mutate"). The list is now a single literal with conditional
spreads, so the link-based cases still join it only where the OS allows
the link.
In memory-vault, the readRegularTextFile check on the target reads no
link at all, so the symlink guard now sits below it rather than above.
On a host that refuses the link, that assertion runs instead of being
skipped with the rest.
Review on #3830 found two places where the early return added in 09de2c24
also skipped assertions that never needed a symlink:
- coordination-inventory: the oversized-JSON and missing-directory checks
were skipped. The expected task count holds whether or not the link
exists, so trySymlink is now called as a plain statement.
- frontend-design-direction: the incomplete-gate, malformed-input and
no-argument checks were skipped. Link-based artifacts are now appended
only when their link succeeds, so a refusal narrows the case list
instead of ending the test. The junction case now runs on Windows,
where it previously sat behind two returns that had already fired.
Also converts the one remaining direct fs.symlinkSync in
opencode-consent-legacy-lock. Junctions are permitted without elevation
on Windows, so that call did not fail here, but it still throws on a
filesystem with no symlink support at all.
Verify and address PR #3809 discussions 4419228221, 4419257840 and 4419257844. Iterate string-array assertions through sparse positions, validate the declared example identifier grammar before request construction, and refresh Turkish/Chinese reviewer references. Regenerate the canonical Pi copy.
Compile and execute the actual typed fixture; keep published validation bodies aligned and prove invalid identifiers never call fetch. RED: 28 pass, 2 fail. GREEN: 30 pass, 0 fail. Strict tsc, changed ESLint/Markdownlint, Unicode/agent/skill validators and deterministic Pi checks pass. Parent independently reviewed all six paths. Registry rebinding is deferred to the combined integration.
Carry forward AbhiramMandala’s canonical TypeScript guidance from PR #3142, reviewed source head 643f61d604. Rebuild current-main counts, Pi projection and trigger digest without replacing existing registry entries.
Use bracket access under the documented noPropertyAccessFromIndexSignature baseline. Type-check and execute the actual fixture, compare published function bodies, and preserve deterministic undefined, sparse-array and concurrency regressions.
Validation: 26 focused checks; strict TypeScript compile; all repository validators; affected ESLint and Markdownlint; deterministic Pi rebuild; real npm pack; disposable Claude, Codex and Copilot install/repair/uninstall with exact skill bytes and preserved user files. Parent independently reviewed the complete staged diff.
Co-authored-by: AbhiramMandala <abhirammandala02@gmail.com>
save.mjs derived contextDir by stripping everything outside [a-z0-9-],
so a project name with no ASCII letters or digits (e.g. "Проект")
produced an empty contextDir. forget.mjs then resolved
resolve(CONTEXTS_DIR, "") to CONTEXTS_DIR itself and removed it
recursively, deleting every other project's context.
- save.mjs: fall back to project-<sha256(path)[:8]> when the slug is
empty, so contextDir is never "".
- forget.mjs: refuse to rmSync unless the resolved path is strictly
inside CONTEXTS_DIR. This also protects registries that already
contain an empty contextDir.
- tests/skills/ck-forget.test.js: regression tests for both cases.
- manifests/context-packs/skill-triggers@1.json: refresh registryDigest,
which validate-context-profiles requires after any skills/ change
(same as 9fdf1ca2).
Signed-off-by: Wen <jwcastillo@gmail.com>
Adds a trySymlink helper that logs the existing skip notice and returns
false on EPERM/EACCES/ENOSYS, and uses it where tests created symlinks
unguarded. Non-admin Windows accounts without Developer Mode now skip
these cases instead of failing.
Integrate contributor PRs #3533, #3534, and #3535 on current main. Preserve the read-only module audit, canonical glossary and ADR ownership, and opt-in install closure. Refresh only the manual trigger manifest registry binding and coverage after adding the skill.
A .gitignore rule outranks .git/info/exclude, so a source project that ships !FORK_REPORT.md made git add -A stage the report. Remove both reports from the index after staging, in the forker's first commit and in every fold-in amend. The history test now runs both documented blocks against a negating .gitignore, prints the Passed/Failed summary for run-all.js, and skips on Windows like the publish-guard test.
(cherry picked from commit f493d9ff66)
The "resolve output to absolute path" step only rebuilt
"$OUTPUT_DIR/$(basename ...)", so ./slides.pdf stayed relative. The
script then cd's into a temp dir, Playwright writes the PDF there, and
the temp dir is deleted. The script prints "PDF exported successfully!"
and then fails on du under set -e, with no PDF produced. This is the
script's own documented example.
Resolve the output directory with cd + pwd, as the input path already
does, and add a stubbed regression test (no network or browser).
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit f91c14749e)
- SKILL.md invoked every script through ~/.claude/skills/ck, which does
not exist when ck is installed as part of the ECC plugin, so every
/ck:* command failed with MODULE_NOT_FOUND. Use ${CLAUDE_SKILL_DIR}
and tell non-Claude hosts to substitute the skill directory. Scripts
still run from the project directory, since they use it as the
project path.
- The documented SessionStart command quoted "~/...", which the shell
never expands. Use $HOME and explain the plugin-install case.
- /ck:init and /ck:save piped JSON through echo '<json>'. Any apostrophe
ends the quoted string, and init JSON carries README/package.json
text. Pass it through a quoted heredoc instead.
- session-start.mjs and shared.mjs resolve SKILL.md next to the code
(import.meta.url), and the hook expands ${CLAUDE_SKILL_DIR} in the
text it injects.
- encodeProjectPath only replaced '/', while Claude Code maps every
non-alphanumeric character to '-'. Memory entries for projects whose
path has a space or dot went to a directory Claude Code never reads.
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit c920005c2b)
quality-gate.py never read stop_hook_active, so a condition the agent
cannot fix (disk below 15 GB, an unwritable growth-log) blocked every
Stop and kept the session generating turns. Exit 0 when Claude Code
reports that the Stop hook already forced a continuation.
The memory dir lookup only mapped '/', '\' and ':' to '-'. Claude Code
maps every non-alphanumeric character, so for any project path with a
space the memory dir was never found and enforcement silently became
warn-only.
Align SKILL.md with the code: disk thresholds (remind 50 / warn 30 /
block 15), the disk block applies to every session, the learning-lib
rule and its examples, stderr messages, and the hook timeout, which
Claude Code reads in seconds (5000 meant 83 minutes).
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit a1385c4397)
${CLAUDE_PLUGIN_ROOT:-$PWD} fell back to the user's project directory when
the plugin variable was absent, so standalone installs and standalone ECC
checkouts hit 'Cannot find module' — the same failure #3530 reported.
The three skill commands now probe CLAUDE_PLUGIN_ROOT, then a standalone
install ($CLAUDE_CONFIG_DIR or ~/.claude), then an ECC checkout run from its
root, verifying the script exists at each step and failing with an explicit
message when none resolves. Paths stay quoted so plugin roots containing
spaces work.
Adds executed regression coverage for #3530: the documented TDD detector
command now runs from an unrelated project directory against a real copy
of the ECC scripts in a plugin root whose path contains spaces, a
standalone ~/.claude install, and an ECC checkout, and must fail with an
explicit error when no root resolves. Red against the current skill
commands, which run the helper from the user's project directory.