Commit Graph
631 Commits
Author SHA1 Message Date
adityajai119 6c78d56d91 fix(cli): honor global --dry-run in auto-update, setup, and nasiko
ecc.js strips a leading --dry-run flag and sets ECC_DRY_RUN=1 before
spawning subcommands. auto-update.js, setup.js, and nasiko.js did not
read ECC_DRY_RUN, so running ecc --dry-run before those subcommands
still ran git fetch/pull, mutated Claude plugins and settings, or
installed/removed Nasiko binaries.

Read and validate ECC_DRY_RUN ("0" or "1") in parseArgs() for
auto-update.js and setup.js and in parseMutationArguments() for
nasiko.js, matching uninstall.js, repair.js, install-apply.js, and
install-guided.js.

Fixes #3981
2026-11-17 14:23:47 +05:30
haelyra 562b541581 Merge reviewed PR #3106: opt-in context-gate hook 2026-11-17 00:45:08 -05:00
haelyra 4b28aa9fe4 test: keep integrated fixtures out of the shared temp directory
Repair the CodeQL findings introduced by this integration without
dismissing any alert:

- OpenSpec validators: express the empty-symbol check as an explicit
  slice instead of an index-versus-length comparison (#2679).
- OpenSpec tests: create file and outside-target fixtures inside private
  mkdtemp directories (#2679).
- Antigravity policy test: give the bridge a private TMPDIR/TEMP/TMP so
  its edit accumulator never lands in the shared temp directory (#3221).
- Session recording test: write partial bytes through the staging
  descriptor and read the saved file through one opened handle (#3952).

Behavior and assertions are unchanged; each focused suite passes.
2026-11-16 22:03:55 -05:00
haelyra e7b578939e Merge reviewed PR #3100: Mistral Vibe native skill target
# Conflicts:
#	README.md
#	manifests/context-packs/skill-triggers@1.json
#	schemas/context-carrier.schema.json
#	scripts/lib/install-manifests.js
#	tests/lib/harness-capabilities.test.js
2026-11-16 22:01:03 -05:00
haelyra aed665c89a Merge reviewed PR #2729: stable skill-stocktake ordering (carried from #2729)
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-16 22:00:43 -05:00
haelyra 7bb8c65afc Merge reviewed PR #3221: experimental native Antigravity plugin and hooks 2026-11-16 22:00:42 -05:00
haelyra 679f0ba8df Merge reviewed PR #3849: redact bare keys, JWTs and PEM blocks in bash logs 2026-11-16 21:31:27 -05:00
haelyra 0fd07ea7e2 Merge origin/main into feat/mistral-vibe-support
Refresh the Mistral Vibe skill target on current main. Keep main's
Copilot and Grok targets, agent/skill/locale selectors and install-config
cases alongside the mistral-vibe target, and take main's skill-triggers
manifest so the digest matches the current catalog.
2026-11-16 21:07:39 -05:00
haelyraandNathan Oliver 6875b2aa0c fix(skill-stocktake): keep sorted inventory order past nine skills
scan.sh and quick-diff.sh name each per-skill record "$i.json" and merge
them with a "$tmpdir"/*.json glob. The glob sorts names as text, so once a
scan finds ten or more skills 10.json lands before 2.json and the output
no longer follows the NUL-sorted discovery order. Zero-pad the record
names so glob order matches insertion order, and pin both scripts with a
twelve-skill regression test. Rebind the skill-triggers registry digest
for the changed skill sources.

Carried forward from the ordering fix in #2729.

Co-authored-by: Nathan Oliver <nathan.oliver@emecogroup.com>
2026-11-16 21:04:35 -05:00
haelyra 2915882707 fix(hooks): fail closed when JWT header decode budget is spent
findJwtHeader capped full header decodes at 8 per segment, so a valid
whitespace-header JWT after 8 decoy candidates (eyAg-eyAg-...-<JWT>) was
logged unredacted. Once the budget is spent, treat the next candidate
that passes the constant-time prefilter as a header. The scan stays
linear and the extra redaction only applies to pathological segments.

Refs #3846
2026-11-16 20:59:51 -05:00
haelyra adcf7be6a7 merge: sync origin/main into feat/antigravity-tier1
Resolve conflicts with grok target and repair source-root changes:
keep both antigravity-home and grok targets, combine main's repair
source root with the PR's trusted-root selection, and rebind the
skill-trigger registry digest to the merged install registry.
2026-11-16 20:59:51 -05:00
haelyra 9f770ae5a1 chore(hooks): merge main into context-gate carry-forward (#3106) 2026-11-16 20:55:33 -05:00
haelyra 88b550f4b0 Merge remote-tracking branch 'origin/pr-3931' into stewardship/20261116 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 d4ed69455d Merge remote-tracking branch 'origin/pr-3885' into stewardship/20261116 2026-11-16 13:25:04 -05:00
haelyra 5d8a9a885a Merge remote-tracking branch 'origin/pr-3912' into stewardship/20261116 2026-11-16 13:24:33 -05:00
haelyra 1b44d3d723 fix: reconcile reviewed migration and async test followups 2026-11-16 13:23:22 -05:00
haelyra 8d78e08609 Merge remote-tracking branch 'origin/pr-3933' into stewardship/20261116 2026-11-16 13:22:31 -05:00
haelyra 66aede496c Merge remote-tracking branch 'origin/pr-3926' into stewardship/20261116 2026-11-16 13:20:47 -05:00
Neo 8f0dd2ca3a fix(eval): record fulfilled async tool responses 2026-11-13 15:17:43 -05:00
montjeffrey 067e11e1cc test(context): pin companion listing of installed non-ECC skills
Cover byte identity without neighbors, ECC's decision unchanged in every mode, the anchored and clear-leader listing rule, Claude user, plugin and project discovery, the CLI snapshot round trip, the launch and hook surfaces, and a fixture on the shipped registry. Require the new module in the npm pack surface.
2026-11-13 10:42:19 -05:00
yuhoyuho bcad1b982c fix(control-pane): bound action output capture and preserve streamed UTF-8 2026-11-12 09:36:35 +09:00
Afloat ca422f3c19 fix(auto-update): stop after signaled subprocesses 2026-11-11 21:05:30 +08:00
Gaurav DubeyandClaude Opus 5.5 5f72adbd83 fix(hooks): try later JWT header candidates after a failed prefix match
A word prefix such as `eyewear_session_` was taken as the only JWT
header candidate; when it failed validation the real header after `_`
was never tried and the token stayed in the command log. Keep scanning
eligible candidates, with a constant-time prefilter and a per-segment
decode cap so long candidate runs stay linear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 03:31:34 +00:00
montjeffrey 31b943ed88 test(context): reject non-receipt baselines and incomplete corpora 2026-11-06 17:36:49 -05:00
haelyra bfb4dbe7b0 fix: harden integration security findings 2026-11-06 00:03:44 -05:00
haelyra 4b0bac4ba2 Merge reviewed PR #3854 2026-11-05 23:38:59 -05:00
haelyra d97367cf76 fix: reconcile reviewed skills, manifests, and dependency locks 2026-11-05 23:38:04 -05:00
haelyra a032472448 Merge reviewed PR #2856
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:28:21 -05:00
haelyra 3bb22fd363 Merge reviewed PR #3787
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:27:44 -05:00
haelyra 324c4187ba Merge reviewed PR #3860 2026-11-05 23:24:35 -05:00
haelyra a0e6eb56e4 Merge reviewed PR #3830 2026-11-05 23:24:06 -05:00
haelyra ba3042a85d Merge reviewed PR #2496 2026-11-05 23:13:00 -05:00
haelyra 758f73c617 Merge reviewed PR #3876
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:11:36 -05:00
haelyra f6e68a186f Merge reviewed PR #3874
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:11:12 -05:00
haelyra 1ea3af26ec Merge reviewed PR #3865 2026-11-05 23:11:09 -05:00
haelyra a222e0091b Merge reviewed PR #3849 2026-11-05 23:10:32 -05:00
haelyra 14221ef652 Merge reviewed PR #3881 2026-11-05 23:09:32 -05:00
Cheese 4385863e56 fix(scripts): reject inherited package manager names 2026-11-06 11:52:10 +08:00
Gaurav DubeyandClaude Opus 5.5 f0eee4b543 fix(hooks): redact JWTs joined to an underscore-prefixed label
The JWT chain scanner only accepted a header at the start of a segment or
after `-`, so `session_<JWT>` reached the audit and cost logs unredacted.
Treat `_` as a prefix boundary too and cover it in the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 03:30:52 +00:00
montjeffrey e9fe714e24 test(context): gate routing quality on the shared corpus pass 2026-11-05 14:19:46 -05:00
montjeffrey 25c838253f test(clv2): keep the compatibility self-test passing on Python 3.8-3.11
Before 3.12 the parser rejects f"{d["k"]}" outright, so the shared sample
stopped at a parse error and the per-finding assertions failed on 3.11.
Samples that every supported Python parses now carry the per-finding
checks; the newer f-string forms run one per sample and accept either the
specific finding or the parse error.

Also flag unquoted X | Y annotations, which can fail at definition time
before 3.10, and check that a quoted union is not flagged.
2026-11-05 13:40:32 -05:00
Gaurav DubeyandClaude Opus 5.5 71084e0555 fix(hooks): redact JWTs joined to a hyphenated prefix
The lookbehind added to keep the JWT scan linear also skipped tokens right
after a `-`, so `--cookie "session=jwt-<JWT>"` reached the logs unredacted.
Scan each `[A-Za-z0-9_.-]` run once instead, checking every dot segment for
a header at its start or after a `-`, decoding at most once per segment so
long `ey-ey-...` runs stay linear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:31:50 +00:00
wellkilo 3d8a6a1401 fix(skill-stocktake): compare quick scans with per-skill mtimes
A later batch save advances evaluated_at past edits to previously evaluated skills. Compare each saved evaluation mtime to the current inventory, including timestamps that move backward, and retain the legacy global timestamp fallback.
2026-11-04 18:32:37 -08:00
montjeffrey e56624d8f1 test(clv2): catch 3.8 and 3.12 f-string forms in the compat guard
ast.parse(feature_version=...) on current Pythons goes no lower than the
3.7 grammar, and it accepts f-string forms that older interpreters reject:
the self-documenting {x=} (3.8) and, from 3.12, reused quotes, backslashes
and comments inside a replacement field. ast does not record these, so
the guard now reads each f-string's own source text. The sample file
proves both kinds are flagged and that 3.6-valid fields ({n == 1},
{n!r:>4}, escaped {{n=}}) are not.
2026-11-04 11:45:32 -05:00
montjeffrey e41a4a0492 feat(clv2): tell instinct-cli users on an end-of-life Python to upgrade
instinct-cli keeps running on old interpreters, but people on one should
know they no longer get security fixes. On a Python older than 3.11 (3.10
reached end of life in October 2026) the CLI now prints one line to
stderr after parsing its arguments:

  [instinct-cli] Python 3.8 is past end of life. instinct-cli still runs
  on it; upgrade to Python 3.11 or newer for security fixes.

The command itself runs as before. The notice stays out of automated
output: `prune --quiet`, which observer-loop.sh runs, skips it, and
CLV2_SKIP_PYTHON_EOL_NOTICE=1 turns it off for anyone who keeps an old
Python on purpose. The threshold is one constant, _SUPPORTED_PYTHON, to
raise as versions age out. Importing the module prints nothing.
2026-11-04 11:30:07 -05:00
montjeffrey 6053e1a11b fix(clv2): keep instinct-cli running on Python 3.6 and newer
The hooks fall back to any Python 3 that runs, so users on an older
interpreter (RHEL 8's 3.6, for one) still reach instinct-cli. It failed
there at import: builtin generics such as list[dict] in signatures are
evaluated when the function is defined, which raises TypeError before
3.9, and str.removeprefix is 3.9+.

- Quote the builtin-generic annotations. Type checkers read them the
  same way, and they stay valid under 3.14's deferred annotations.
- Strip the byte-order mark with startswith and a slice.
- Open the registry lock file with an explicit UTF-8 encoding.
- Say in the module docstring that 3.6 is the floor and what keeps it.

The new test parses the script with the oldest grammar ast offers and
rejects what a grammar check cannot see: unquoted builtin generics in evaluated
annotations, `from __future__ import annotations`, and 3.7+ methods and
keywords (capture_output, text, removeprefix and similar). A sample file
proves it catches each of those. It also runs import, status, export,
evolve, projects and prune under -X dev -X warn_default_encoding
-W error, so any deprecation or default-encoding warning on the current
Python fails the build. CI runs only current Pythons; this is a static
guard, not a run on a real 3.6.
2026-11-04 11:28:28 -05:00
montjeffrey 3f56735bc3 fix(clv2): decode instinct-cli git output as UTF-8
git prints repository paths and remote URLs as UTF-8 on every platform,
but instinct-cli read them in text mode without an encoding, so Python
decoded them with the locale encoding. On Windows that is the ANSI code
page (usually cp1252): a non-ASCII repo path came back garbled ("café"
became "café"), a byte cp1252 cannot map crashed detect_project with
UnicodeDecodeError, and a non-ASCII remote URL hashed to a different
project id than the URL itself does.

The three git calls now decode as UTF-8 with errors="replace". They are
spelled with stdout/stderr=PIPE instead of capture_output/text, which
are Python 3.7+.

The new test forces a cp1252 locale encoding, so it reproduces off
Windows too. All three cases fail without the fix and pass with it.
2026-11-04 11:16:13 -05:00
huangpz6andTRAE 0c2a542d20 fix(skills-health): make the one-off checkout fallback explicit (#3865)
commands-core copies scripts/lib into the Claude config root, so it does not repair a marketplace plugin installation. Lead with a direct dashboard run from a full checkout and keep commands-core as the non-marketplace reinstall path.

Co-Authored-By: TRAE <noreply@trae.ai>
2026-11-04 21:54:03 +08:00
huangpz6andTRAE a496ab1686 fix(skills-health): name the missing module and give an executable remedy (#3865)
The diagnostic always blamed scripts/lib/skill-evolution, hiding a nested failure such as a missing lib/utils.js, and the printed installer command selected no module. Include the module from the resolution error and point at a full-checkout install with --modules commands-core.

Co-Authored-By: TRAE <noreply@trae.ai>
2026-11-04 21:37:57 +08:00