An existing 0664 log that was already at the cap was renamed to .1
before its mode was tightened, so the rotated copy stayed group/world
readable. Tighten the existing log first, and drop the post-open
fchmod that only reached the new active log.
Refs #3846
If the rename to <log>.1 fails (another session rotated first, or
Windows refuses the rename), append to the current log instead of
dropping the line.
Refs #3846
bash-commands.log and cost-tracker.log record every Bash command but
were created with the default umask (0664 in the report) and grew
without bound. appendLine now opens them with mode 0600, tightens an
existing group/world-readable log on the next write, and rotates the
log to <log>.1 once it would pass 10 MiB, keeping one rotated copy.
This mirrors the metrics.jsonl scheme in scripts/lib/gateguard-metrics.js,
inlined because hooks cannot require scripts/lib/.
Refs #3846
Keep paths as JSON keys throughout aggregation so literal backslashes and newlines cannot change which skill receives a read. Count both usage windows together and preserve the distinction between unknown usage and zero reads.
Filter the shipped instruction list to files selected by the install profile and make the retained paths independent of the launch directory. Record the resolved paths for repair, and anchor the bundled skill lookup to the same config root.
Refs #4029
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
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.
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.
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>
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
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.
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.
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>