Commit Graph
265 Commits
Author SHA1 Message Date
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 c64b9ad6e0 Merge reviewed PR #2679: standalone OpenSpec validators 2026-11-16 22:01:04 -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 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
haelyra a8246a38b5 Merge branch 'main' into fix/openspec-validators 2026-11-16 21:00:53 -05:00
haelyra a6c394ca92 test(ci): unlink symlinked project root in spec freshness cleanup
fs.rmSync on the symlink fixture throws ERR_FS_EISDIR on macOS with
Node 24, which stopped the suite after its assertion passed. Remove
the link itself with fs.unlinkSync.
2026-11-16 21:00:53 -05:00
haelyra 7e48bc976f fix(deps): sync npm lockfile and keep Node 18 OpenCode plugin
Dependabot updated yarn.lock but not package-lock.json, so every
`npm ci` job failed with "package.json and package-lock.json are not in
sync". Regenerate both lockfiles.

Keep @opencode-ai/plugin at 1.4.3. Version 1.19.5 pulls
effect -> toml@4.3.0, whose engines field requires Node >=20, which
breaks ECC's Node 18 support and strict-engine packed installs. Add a
Dependabot ignore rule for its minor and major updates, with a config
test so the pin is not silently bumped again.
2026-11-16 20:30:17 -05:00
haelyra ef71901a84 test(ci): make discovery and private Git fixtures portable 2026-11-16 16:16:57 -05:00
haelyra 75b5c4d299 test(ci): resolve discovery through declared coverage dependency 2026-11-16 15:47:47 -05:00
haelyra bfaa88690b fix(ci): restore coverage reporting and compatible audit dependencies 2026-11-16 15:43:15 -05:00
haelyra f17308d50f fix(ci): keep scheduled provenance audits on the verified npm toolchain 2026-11-16 14:38:50 -05:00
haelyra cf6979b0a6 Merge remote-tracking branch 'origin/pr-3884' into stewardship/20261116 2026-11-16 13:25:04 -05:00
haelyra d30f5caa28 Merge remote-tracking branch 'origin/pr-3927' into stewardship/20261116 2026-11-16 13:20:46 -05:00
Yann Roberto 97852a8bec test(ci): keep closed-reference audit fixture dates current 2026-11-12 21:14:32 +08:00
haelyra 6cf1eb55b1 chore(ci): sync main before PR cap integration 2026-11-06 16:21:06 -05:00
minteeqahmed-png c449f076f5 test(ci): add malformed initial and redirect URL regression cases 2026-11-06 16:01:37 +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 b2cb4b399b test: remove redundant coverage checkout assertion 2026-11-06 00:29:43 -05:00
haelyra 76cd245e8e fix: fetch Grok pin history in coverage job 2026-11-06 00:26:21 -05:00
haelyra d97367cf76 fix: reconcile reviewed skills, manifests, and dependency locks 2026-11-05 23:38:04 -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
haelyra 324c4187ba Merge reviewed PR #3860 2026-11-05 23:24:35 -05:00
Codex f841420f22 ci: parallelize Windows full tests and preserve fixture isolation
Run the Windows full suite with two workers while retaining serial suites and exact file accounting. Resolve Bash before restricting fixture PATH, and add five junction regressions while retaining native symlink coverage.

Validation: both local full runs executed all 456 files exactly once; 9108 passed and the same 24 symlink-permission cases failed. Two workers reduced local runtime from 1324.987s to 885.387s. The 24 native symlink cases passed in the baseline GitHub Windows job.
2026-11-04 09:30:26 +09:00
Misty-Star 34c20e751b Merge remote-tracking branch 'origin/main' into pr/2856
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-02 16:00:47 +08: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 eb267762a1 test(x402): reject a provably invalid ECDSA scalar
Zero the 32-byte r scalar while preserving the signature encoding, length, s and recovery byte. The previous tail overwrite could leave r/s unchanged and normalize recovery 27 to 0, preserving a valid payment. Keep and strengthen no-claim/no-handler/no-settlement checks before serving the original valid payment.
2026-10-29 19:14:07 -07:00
haelyra 6d7d4920c8 fix: close final integration security and portability gaps 2026-10-29 12:57:39 -07:00
haelyra 44e508922a fix: integrate x402 replay guard with bounded retention and audited test dependencies 2026-10-29 11:42:39 -07:00
haelyra 59b8ab024f maint: integrate reviewed contribution #3707 2026-10-29 11:23:24 -07:00
haelyra 9b296f4cab docs: preserve latest contributor migration safeguards and workflow assertions 2026-10-29 11:17:59 -07:00
Christopher FerjoandClaude Opus 5.5 c11288086c fix(skills): release x402 claims that land after a timeout
A claim write that times out can still land. When the guard fails
closed the handler never ran, so a late claim would make every retry
look like a replay of work that never happened; delete it once it
lands. Type the snippet so it passes tsc --strict against the real
packages, and close idle keep-alive sockets in the test on Node 18.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 17:44:03 -07:00
Christopher FerjoandClaude Opus 5.5 46baaeddf0 fix(skills): claim x402 payments in onAfterVerify, fail closed
Claim from the verified payload and matched requirements in the
resource server's onAfterVerify hook, so a forged header can no longer
reserve a legitimate payment's key, and an invalid payment takes no
claim. Fail closed on a store error or timeout by returning an abort
(a throwing hook is skipped and would run the handler unguarded);
document fail-open as an explicit, idempotent-only choice. Cover
Permit2 (BigInt nonce) and keep claims until validBefore/deadline.

The test now drives the real @x402/express middleware with payments
signed by the real @x402/evm client and a stand-in facilitator that
checks EIP-3009 signatures with viem, so verification, the hook, the
handler and settlement run in their real order. Adds exact-pinned,
test-only devDependencies and refreshes the registry digest.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 17:25:46 -07:00
Christopher FerjoandClaude Opus 5.5 8f7672406c fix(skills): keep x402 replay claims until the authorization expires
The signer picks the EIP-3009 validBefore and verification does not cap
it at maxTimeoutSeconds, so a fixed 900 s TTL could drop the claim for
a still-valid authorization whose settlement failed, and a copy would
run the handler again. Expire claims at validBefore + 60 s (900 s
floor, one-year ceiling) with SET NX EXAT, using node-redis's current
option form. Also wrap messageBytes for createHash so the snippet
typechecks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 17:13:51 -07:00
Christopher FerjoandClaude Opus 5.5 ef5a0805a4 fix(skills): cap pending replay claims when the store stops replying
The claim timeout stops a request from waiting but does not cancel the
command, so a connected-but-silent Redis could accumulate abandoned SETs.
commandsQueueMaxLength bounds them; past the cap, claims reject at once
and the guard fails open. The test asserts the cap and counts unhandled
rejections in its summary.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 17:13:51 -07:00
Christopher FerjoandClaude Opus 5.5 e24bffde26 fix(skills): harden x402 seller replay guard; add executable test
- Connect to Redis in the background with an error listener and the
  offline queue disabled, so an unavailable store never blocks startup
  or crashes the process; bound each claim with a 250 ms timeout.
- Include the asset in EVM claim keys (EIP-3009 nonces are per token).
- Cap the payment header at 16 KB before storing anything, and note that
  the path needs the same rate limits as any unauthenticated write.
- State the TTL rule: longer than maxTimeoutSeconds plus the slowest
  handler run.
- tests/ci/agent-payment-x402-seller-guard.test.js runs the guard block
  from all three documents: concurrent copies, key equivalence (EVM
  re-encoding, asset, Solana fee-payer slot), offline and hanging store,
  oversized and missing headers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 17:13:51 -07: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
Rufat Azizzade 6ab58b6d3b fix(tests): resolve python utf-8 io and timeout issues on Windows 2026-10-25 02:49:07 +02:00
haelyra 688cefe95e docs(ci): clarify open PR grandfathering 2026-10-22 18:11:04 -04:00
haelyra bac1e475ee fix(ci): apply open PR cap to every author 2026-10-22 18:05:18 -04:00
MistyStar dd2107ff65 test: record native Grok lifecycle evidence 2026-10-21 10:02:39 +08:00
haelyra 3b31c2af66 test(ci): reject duplicate burst lock requests 2026-10-20 16:31:58 -04:00
haelyra 4062ffbbbe fix(ci): grandfather open PRs under contributor cap 2026-10-20 16:15:38 -04:00
Affaan Mustafa 9471ef4724 test(runner): add a worker pool and an ECC_TEST_ONLY filter to run-all
The runner executed 422 files one process at a time, which is most of
the 12 to 40 minutes a CI lane spends in "Run tests". ECC_TEST_JOBS
above 1 now runs files through a pool of that many processes; output is
still buffered and printed per file, so logs read the same. The default
stays 1 and that path is the original synchronous spawnSync loop, so the
VM-driven runner test and the piped-output tests are unchanged.

ECC_TEST_ONLY is the mirror of ECC_TEST_SKIP: a comma-separated list of
path substrings, and only matching files run. CI uses it to give the
package-manager lanes just the suites that read the package-manager
variable instead of the whole suite.

Two real-process tests cover the pool (grouped output, counted failure,
summary last) and the ONLY filter.
2026-10-20 10:47:58 -04:00
MistyStar d1fd275f48 fix: restrict Grok transports and preserve Windows config identity 2026-10-20 10:36:34 +08: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