Commit Graph
150 Commits
Author SHA1 Message Date
haelyra d26e1d946f Merge reviewed security and evaluation batch preserving fifteen source PRs 2026-11-19 15:22:25 -05:00
haelyra 4c87479483 Merge PR #4014 and keep pnpm virtual-store symlinks outside scan boundary 2026-11-19 15:16:53 -05:00
haelyra 0c40fff0ba Merge reviewed PR #4041 read-only skill reference audit 2026-11-19 15:16:22 -05:00
NeoandClaude Opus 5.5 a458d406c7 feat(ci): add a read-only skill reference audit for the catalog review
docs/ROADMAP.md asks that every skill has a test, a command, an agent, or a
README mention, or is marked for removal. Add `npm run skills:references`,
which reports that evidence per skill with file:line locations.

Tests count when a test file names the skill path (including path.join
segments), quotes the name as a whole literal, or is named after the skill;
fixtures such as the routing corpus do not. Mentions in commands, agents and
README.md count as whole tokens. Generated mirrors are not evidence, and
ambiguous text counts as a reference so a skill is never wrongly reported
as unreferenced. The report never edits anything and always exits 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:44:56 -05:00
Rudy Celekli 02855f45d0 fix(openspec): normalize inherited Git pathspec options 2026-11-18 01:08:33 -05:00
Rudy Celekli 59bf23876f fix(openspec): query history for literal anchor paths 2026-11-18 00:55:05 -05:00
Divya Chukkapalli a36d68cb7d fix(ci): scan pnpm and nested node_modules in the IOC scanner
walkNodeModules skipped every dotted entry and only looked at
node_modules/<name> and node_modules/@scope/<name>. pnpm keeps real
package directories under node_modules/.pnpm and links the top-level
entries, which Dirent.isDirectory() reports as non-directories, so a pnpm
project had zero installed packages inspected. npm's nested
node_modules were never reached either.

Walk the .pnpm virtual store and nested node_modules directories. Links
are still not followed.
2026-11-17 04:20:14 -08:00
Yann Roberto 2b559c058f fix(ci): validate OpenSpec baseline headings in CRLF files 2026-11-17 16:03:16 +08:00
Yann Roberto 8fba4889ae Merge main and sync hook validator dependency locks 2026-11-17 13:47:44 +08:00
Yann Roberto aa4b0c1700 fix(ci): check matcher IDs in unwrapped hook maps 2026-11-17 13:45:52 +08:00
Yann Roberto 0268e2ef40 fix(ci): reject duplicate root keys in hook documents 2026-11-17 13:29:40 +08:00
Yann Roberto 244210bbd1 fix(ci): detect duplicate events in unwrapped hook maps 2026-11-17 11:53:01 +08:00
Yann Roberto 9de259d581 fix(ci): reject duplicate hook events and report duplicate ID lines 2026-11-17 11:26:43 +08: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 a8246a38b5 Merge branch 'main' into fix/openspec-validators 2026-11-16 21:00:53 -05:00
haelyra d4ed69455d Merge remote-tracking branch 'origin/pr-3885' into stewardship/20261116 2026-11-16 13:25:04 -05:00
haelyra cf6979b0a6 Merge remote-tracking branch 'origin/pr-3884' into stewardship/20261116 2026-11-16 13:25:04 -05:00
montjeffrey d9453df6fb fix(context): validate baseline receipts and corpus sets before scoring 2026-11-06 17:37:09 -05:00
minteeqahmed-png 3177c12afb fix(ci): harden supply-chain advisory source refresh and Windows CLI tests 2026-11-06 15:41:39 +05:00
haelyra 2fd58bd692 Merge reviewed PR #3650 2026-11-05 23:29:38 -05:00
haelyra a032472448 Merge reviewed PR #2856
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:28:21 -05:00
montjeffrey 2ac828c955 feat(context): gate routing quality in CI 2026-11-05 15:20:13 -05:00
Misty-Star 06f6008165 merge: resolve PR 2856 conflicts with main 2026-11-02 15:35:10 +08:00
wellkilo 612645c60d fix(skills): remove reserved word from DevFleet skill name 2026-11-01 19:31:07 -08:00
haelyra 108ff18624 feat(ci): limit Issue bursts and open submissions per author (#3723)
Verified with 30 exact-head hosted checks, 31 combined PR and Issue tests, workflow security validation, and a live read-only Issue replay.
2026-10-25 15:16:53 -04:00
4c28a7be9e ci: audit closed-issue delivery claims — cited PRs must actually be merged (#3522)
* ci: audit closed-issue delivery claims — cited PRs must actually be merged

Follow-up to #3223: an issue closed as 'fixed in #N' while #N was closed
without merging (or does not exist) leaves a completion claim that does not
hold. The weekly maintenance workflow now runs a read-only audit over issues
closed in the last 30 days, extracts delivery-claim PR references from issue
bodies and close-window comments, verifies each cited PR's merge state, and
reports findings to the step summary.

Design constraints:
- Read-only: no comments, no closes, no labels; findings are advisory and
  the run always stays green so the weekly audit never blocks maintenance.
- Unverifiable counts as unmerged: a 404 PR or an API failure fails the
  verdict, because an unverifiable claim is exactly the failure mode.
- Pure decision functions are exported for tests; a first live run against
  this repository surfaced one real finding (#3408 cites #3060, which does
  not resolve), included here as the motivating sample.

8 unit/contract tests: extraction, windowing (close comments included),
the #3223 unmerged-citation failure mode, the all-clear summary, workflow
contract, and a no-write guard.

* ci: rework audit evidence contract — claims vs context, four PR states, visible completeness

Revision per the #3522 review (reviewer ran the CLI through 19 controlled
cases plus a bounded live check of #3408):

- Bind findings to asserted delivery claims. Closing wording ('Delivered
  through #N'), claim verbs (fixed/shipped/landed/resolved/...), and bare
  'PR #N' inside closing comments are claims; historical mentions, quoted
  lines, fenced examples, negated claims, and tracking-only references are
  reported as contextual references and never produce findings. On the live
  #3408 the audit now recognizes the closing claim #3500 (merged) instead of
  flagging the historical #3060 text.
- Separate observed states: merged / open-unmerged / closed-unmerged /
  unknown (404, rate limit, transient). Unknown claims are advisory manual-
  verification items, not failed claims; each row carries the claim snippet,
  its source link, and the observation time. Checked claims are listed even
  when passing, so the report is traceable rather than an opaque all-clear.
- Paginate issue and comment collection (--paginate --slurp), bound comment
  requests (200) and PR checks (100), and surface skipped pages, rate limits,
  and retrieval failures as an explicit incomplete audit instead of an empty
  all-clear. A live-run maxBuffer overflow on the paginated issue list was
  caught and fixed (64MB); the audit reported it as incomplete before the fix.
- Scope the job to read access: job-level contents/issues/pull-requests read.

13 contract/unit tests including a CLI fixture (stub gh) that places the
relevant issue on page two and forces a comment-fetch failure.

* ci: report incomplete audit at PR check cap

---------

Co-authored-by: chenhz01 <chenhz01@users.noreply.github.com>
Co-authored-by: haelyra <49814733+haelyra@users.noreply.github.com>
2026-10-25 14:41:22 -04:00
haelyra bac1e475ee fix(ci): apply open PR cap to every author 2026-10-22 18:05:18 -04:00
haelyra 4062ffbbbe fix(ci): grandfather open PRs under contributor cap 2026-10-20 16:15:38 -04:00
MistyStar 08f5e15aaf fix: reserve Grok snapshot equality for releases 2026-10-20 10:35:37 +08:00
MistyStar 5819419150 fix: automate Grok marketplace pin maintenance 2026-10-20 10:35:37 +08:00
MistyStar 3749c2be9a fix: address Grok review findings 2026-10-20 10:35:37 +08:00
MistyStar f69f945398 refactor: route Grok installs through canonical adapter 2026-10-20 10:35:37 +08:00
MistyStar 65ea9795e2 feat: add Grok Build plugin and marketplace support
Ship .grok-plugin manifests so Grok can install ECC as a native plugin.
Resolve GROK_PLUGIN_ROOT and ~/.grok plugin homes so trusted hooks run.
Document trust/enable, ECC_HOOK_PROFILE, and root .mcp.json attachment.
2026-10-20 10:33:37 +08:00
Affaan Mustafa 3849426a95 refactor(ci): share the catalog count replacer
Six summary-line replacers in catalog.js each took seven to nine positional
capture groups and rebuilt the line by hand. They now go through one
catalogCountReplacer factory that takes the regex group count and the groups
holding the agents, skills, and commands counts. Every other group is written
back verbatim.

Output is byte-identical across the real docs and several synthetic catalogs.
Clears the six max-params warnings on this file.
2026-10-19 22:18:32 -04:00
Affaan Mustafa 944ea9d050 fix(ci): unescape node -e inline programs in one pass
validateInlineJs unescaped the shell body with four chained replaces,
so a backslash pair followed by n or t was unescaped twice: the pair
became one backslash, then the new backslash-n became a newline. A
valid hook command such as console.log('\\n') failed validation with
an unterminated string. CodeQL flags the chain as double unescaping.

One regex pass maps each escape exactly once. The regression test
feeds the escaped-backslash program through the validator CLI.
2026-10-19 22:03:57 -04:00
Affaan Mustafa d3c49a80df refactor(ci): split validate-hooks into per-shape validators
validateHookEntry handled command, http and prompt hooks in one function; it now dispatches to validateCommandHook, validateHttpHook and validatePromptHook with the inline node -e check in validateInlineJs. validateHooks reads the file, loads the sidecar and validates the object or legacy array shape through readHooksFile, loadMetadata, validateObjectFormat and validateArrayFormat, so the deepest nesting is gone.

Error messages, their order, exit codes and the --update-fingerprints flow are unchanged.
2026-10-19 22:03:57 -04:00
Affaan Mustafa 6c557856af feat(ci): cap open PRs per contributor at ten (#3639)
Extend the PR burst guard with an open-PR cap. On every opened or reopened
PR by a non-collaborator, the guard lists the repository's open PRs, keeps
the author's oldest `maxOpen` (10) open and closes the newer ones with a
bot comment that names the count and the limit. No lock, no maintainer
alert: the cap is about review capacity, not spam. PRs the burst logic
already closed in the same run are excluded so nothing is mutated twice.
Collaborators with write access stay exempt, dry run reports without
mutating, and the comment is deduplicated on a bot-authored marker.

Haley asked for this on 2026-10-19: each contributor should only have 10
to 15 PRs open at a time. Existing open PRs are not bulk-closed; the cap
applies as each author opens or reopens their next PR.

Verification: 22 unit tests and the HTTP workflow test pass,
validate-workflow-security passes, eslint and markdownlint clean. Dry run
against affaan-m/ECC on #3621 reports openCount 19 and nine cap excess
PRs for that author, with no writes.
2026-10-19 18:08:53 -04:00
haelyra 0ad248d199 feat(ci): guard PR submission bursts and alert maintainers 2026-10-15 14:33:45 -04:00
legeZZZ 7300998999 fix: decide history availability before staleness; strict YYYY-MM-DD dates
Addressing maintainer review (two truthfulness gaps):

1. evaluateSpec gated repository/history availability (no git / not a repo /
   shallow clone) and per-target history (never committed) BEFORE any age
   rule. Previously the age check bumped STALE first and the weight table
   could not let UNVERIFIED override it, so old-date specs in shallow clones
   or against uncommitted targets were reported STALE — contradicting the
   documented "shallow clones report UNVERIFIED, never STALE" contract.
   New fixtures: old-date shallow, no-git, and old-date no-history specs all
   remain UNVERIFIED.

2. parseVerifiedDate now accepts an exact YYYY-MM-DD only: full-string match
   (no prefix extraction from arbitrary text), UTC round-trip of components
   (rejects impossible dates like 2026-02-30 that JS Date silently
   normalizes), and rejects future dates. Trailing text, impossible dates,
   and future dates are covered as UNVERIFIED.

spec-miner generator intentionally untouched per review: the contract stays
explicitly file-level and optional.
2026-10-16 00:19:09 +08:00
haelyra 837cbb0773 fix(catalog): reject unmarked agent-tree skill undercounts 2026-10-11 01:56:28 -04:00
haelyra 7682bb5b49 fix(adapters): bound parsing and publish review artifacts safely 2026-10-10 18:38:26 -04:00
haelyra be230bd85c feat: integrate reviewed adapters, conversion and GateGuard improvements 2026-10-10 17:53:23 -04:00
haelyra 64fdb301cd Merge PR #3457: validate static carrier dependencies with the maintained TypeScript parser 2026-10-10 17:44:35 -04:00
haelyra 9d09febe5d fix(skills): scope host compatibility to target projections 2026-10-10 17:44:28 -04:00
haelyra 6038e89904 Merge PR #3428: validate and sync every catalog project tree entry 2026-10-10 17:37:24 -04:00
Matt Van Horn e128f4398b Merge branch 'main' into cursor/skill-host-compat-ci-10d0 2026-10-10 07:09:43 -07:00
haelyra 5981dd7092 fix: complete reviewed integration workflows and safety checks 2026-10-09 18:54:39 -04:00
montjeffrey 5ce12fb9f9 fix(carriers): ignore member calls named require or import, and warn on deeply nested arguments
- Call patterns now skip a require/import preceded by a dot, with or
  without whitespace or optional chaining, so records.require('./label')
  and obj?.import('./x') are method calls rather than module loads.
- Replace the one-level dynamic-argument pattern with a balanced-paren
  scan over the string-free skeleton, so require(path.join(__dirname,
  getName())) and require(a(b(c()))) are reported as dynamic.

Rescanning all 802 repository JavaScript files against the previous head
changes 6 results, each a newly reported dynamic argument nested deeper
than one level (docker eval checks and one test); no specifier or package
result changes. The real registry is unchanged: 35/35 resolved, zero
failures or warnings.
2026-10-09 17:52:55 -04:00
montjeffrey bdb2ceb230 fix(carriers): follow Node's CommonJS candidates, see regex after a block, ignore non-import from
- An extensionless require now tries only the path, .js, .json, and a
  directory's index.js/index.json, as Node does; .cjs and .mjs must be
  named, so require('./helper') no longer passes on helper.cjs alone.
- Treat `}` as a statement boundary, so a regex after a block is read as
  a regex and cannot swallow a later require.
- Decide whether a paren opens a condition from the token before the
  keyword, ignoring whitespace, so `obj.\nif(x) / 2` and
  `obj?. while(x) / 2` stay method calls followed by division.
- Record which slots came from template literals and skip them for
  static `from` and side-effect `import`, which accept only a quoted
  string; a tagged template named `from` is no longer an import.
  A template passed to import() is still a dependency.

Rescanning all 802 repository JavaScript files against dd14493e changes
no result, and the real registry still reports 35/35 resolved with zero
failures or warnings.
2026-10-09 17:48:27 -04:00
montjeffrey fa3f459a93 fix(carriers): resolve imports exactly, reject backslash separators, see regex after a condition
- Track whether each relative specifier arrives through require or
  through import()/static import, and resolve the import forms by exact
  path. Node's ESM resolver adds no extension and rejects directory
  imports even from a CommonJS file, so import('./helper') and
  import('./data') no longer pass on helper.js or data/index.json alone.
  require keeps the CommonJS extension and index candidates.
- Stop normalizing backslashes in relative specifiers. Linux and macOS
  read them as filename characters, so require('./lib\helper.js') now
  fails as non-portable-separator instead of resolving to lib/helper.js.
- Record whether each closing paren ends an if/while/for/with condition,
  so a `/` right after one starts a regex. A method named `if` and calls
  nested inside a condition still read as division.

extractReferences gains an `imports` list. Rescanning all 802 repository
JavaScript files against the previous scanner changes no result, and the
real registry still reports 35/35 resolved with zero failures.
2026-10-09 16:15:55 -04:00