Commit Graph
89 Commits
Author SHA1 Message Date
haelyra d1a413f00c Merge branch 'main' into branch-fix-django-celery-delivery-guidance 2026-11-16 20:59:29 -05:00
haelyra e2e48476b6 docs(skills): document Django on-commit test contract for Celery
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.
2026-11-16 20:59:29 -05:00
haelyra 597d103e90 Merge remote-tracking branch 'origin/pr-3423' into stewardship/20261116
# Conflicts:
#	.claude-plugin/marketplace.json
#	.claude-plugin/plugin.json
#	.gemini/GEMINI.md
#	AGENTS.md
#	README.md
#	README.zh-CN.md
#	SOUL.md
#	docs/tr/AGENTS.md
#	docs/zh-CN/AGENTS.md
#	docs/zh-CN/README.md
#	manifests/context-packs/skill-triggers@1.json
2026-11-16 13:37:29 -05:00
haelyra 40327476c4 fix: harden review fixtures and isolate audit verification metadata 2026-11-16 13:35:34 -05:00
haelyra 778d03df44 Merge remote-tracking branch 'origin/pr-3891' into stewardship/20261116
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-16 13:25:04 -05:00
haelyra f8f5552b2c Merge remote-tracking branch 'origin/pr-3925' into stewardship/20261116
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
#	skills/ck/commands/save.mjs
2026-11-16 13:22:31 -05:00
haelyra 028c1b682a Merge remote-tracking branch 'origin/pr-3923' into stewardship/20261116
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-16 13:22:17 -05:00
adityajai119 08a167573b fix(ck): keep v1 contexts and null sessions from being overwritten by init
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
2026-11-12 00:19:23 +05:30
adityajai119 4707a2fb55 fix(ck): mark only the registration the commands use in list
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
2026-11-12 00:05:02 +05:30
adityajai119 fb6b26eafc fix(ck): also refuse a context.json that is not a ck context
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
2026-11-12 00:02:23 +05:30
adityajai119 3ecdcac3b4 fix(ck): refuse to re-initialize over an unreadable context
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
2026-11-11 23:50:17 +05:30
adityajai119 a99d5bd1ee fix(ck): compare Windows project paths without letter case
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
2026-11-11 23:47:25 +05:30
adityajai119 7aebf1f2e2 fix(ck): find a project from either Windows path form
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
2026-11-11 23:39:39 +05:30
adityajai119 71737c8c38 fix(ck): keep saved sessions when a registered project is initialized again
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
2026-11-11 23:35:33 +05:30
Rockwell Windsor Rice de0c862fb8 ci: run the Rails security skill fixture
- 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
2026-11-08 16:38:53 -06:00
Rockwell Windsor Rice 287d4c44bf test(rails-security): verify the skill's upload claims and fixture behavior
- 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
2026-11-08 16:03:53 -06:00
Emad e26803e890 docs(skills): clarify verified progress in existing-issue handoffs 2026-11-07 16:15:13 +02:00
haelyra 107b883dc2 Merge reviewed PR #3581
# Conflicts:
#	.claude-plugin/marketplace.json
#	.claude-plugin/plugin.json
#	.gemini/GEMINI.md
#	AGENTS.md
#	README.md
#	README.zh-CN.md
#	SOUL.md
#	docs/zh-CN/AGENTS.md
#	docs/zh-CN/README.md
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:26:41 -05:00
haelyra a0e6eb56e4 Merge reviewed PR #3830 2026-11-05 23:24:06 -05:00
Brian 0aa90931c4 test: build the artifact list without mutating it
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.
2026-10-31 13:35:52 -04:00
Brian 2f898d7bfe test: keep non-symlink assertions running when symlinks are refused
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.
2026-10-31 13:19:25 -04:00
haelyra 6b8c757e54 fix(skills): validate TypeScript example arrays and request identifiers
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.
2026-10-29 17:25:42 -07:00
haelyraandAbhiramMandala f29e33271b feat(skills): port reviewed TypeScript patterns onto current catalog
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>
2026-10-29 17:02:32 -07:00
haelyra 6d7d4920c8 fix: close final integration security and portability gaps 2026-10-29 12:57:39 -07:00
haelyra 0d92059410 fix: close installed workflow and review publication gaps before integration 2026-10-29 11:58:01 -07:00
haelyra 3f3b88a725 maint: integrate reviewed contribution #3550 2026-10-29 11:25:31 -07:00
haelyra bca6fcee9e maint: integrate reviewed contribution #3567 2026-10-29 11:23:22 -07:00
haelyra c337d7c057 feat: integrate reviewed module governance with Windows path assertions 2026-10-29 11:19:41 -07:00
Wen af94289c17 fix(ck): reject only parent-traversal segments in the forget guard
Signed-off-by: Wen <jwcastillo@gmail.com>
2026-10-27 16:52:48 -03:00
Wen cb0cda8623 test(ck): assert forget removes the selected project's directory and registry entry
Signed-off-by: Wen <jwcastillo@gmail.com>
2026-10-27 16:52:48 -03:00
Wen f1b01825d8 fix(ck): never let forget remove the shared contexts root
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>
2026-10-27 16:52:47 -03:00
Brian 09de2c247a test: skip symlink tests when the OS refuses symlink creation
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.
2026-10-26 15:08:05 -04:00
Seekers2001 7b1449ef53 feat(governance): port optional module and context workflows
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.
2026-10-25 17:51:30 -04:00
haelyra 90d94d4424 test: fix Windows install and ck hook expectations 2026-10-25 14:46:45 -04:00
haelyra a1e84ca67a fix(opensource): permit only untracked reports at publish gate 2026-10-20 18:53:51 -04:00
Wen 79d22134e6 fix(opensource-pipeline): drop copied reports from the index even when .gitignore re-includes them
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)
2026-10-20 18:01:44 -04:00
Wen feff29fd80 fix(opensource-pipeline): keep pre-existing reports out of the first fork commit
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit 35909e548e)
2026-10-20 18:01:44 -04:00
Wen 1acdd02fb4 fix(opensource-pipeline): publish only the commit the sanitizer scanned
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit 21d914fa77)
2026-10-20 18:01:44 -04:00
Wen f933bad11b fix(frontend-slides): ignore CDPATH when resolving input and output paths
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit 6b53bedc74)
2026-10-20 18:01:43 -04:00
Wen ea8b48860e fix(frontend-slides): make relative PDF output paths absolute before export
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)
2026-10-20 18:01:43 -04:00
Wen 59868a9404 fix(ck): escape the skill dir for bash when SessionStart fills it in
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit 00a03ab84f)
2026-10-20 18:01:42 -04:00
Wen cf3408097c fix(ck): run commands from the skill directory and pass JSON through a heredoc
- 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)
2026-10-20 18:01:42 -04:00
Wen 6839f58cd3 test(delivery-gate): select an interpreter only if it runs Python 3
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit fe861f8983)
2026-10-20 18:01:41 -04:00
Wen 936cf3d040 fix(delivery-gate): honor stop_hook_active and match Claude Code project dir encoding
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)
2026-10-20 18:01:41 -04:00
Geronimo 25465060a3 fix: resolve the ECC script root in skill commands across install modes
${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.
2026-10-21 03:25:57 +05:30
Geronimo e887967d6d test: cover skill plugin-root resolution with installed-invocation fixture
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.
2026-10-21 03:24:28 +05:30
Mahjiid 6955639dfd test: report Yoruba subtest counts in ECC parent test runner 2026-10-15 10:24:44 +01:00
Mahjiid ce2dc79527 fix: execute Yoruba tests without Node 18-incompatible --test flag 2026-10-14 21:04:56 +01:00
Mahjiid 2b29188ed1 test: include Yoruba localization regression suite in ECC CI runner 2026-10-14 20:48:25 +01:00
haelyra e9f95e394f fix: reconcile profile projections and selected-model fallback checks 2026-10-11 03:05:59 -04:00