Commit Graph
4344 Commits
Author SHA1 Message Date
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
Rockwell Windsor Rice c2335d8e20 test(rails-security): add a Rails fixture exercising the upload verifier
- Boots a minimal Rails app with a migrated Active Storage schema and a disk
  service holding real bytes, so the published verifier runs against the actual
  lifecycle rather than a stand-in
- Covers a legitimate PNG, opaque bytes declared image/png (stored as image/png
  with identified? true), a ZIP declared image/png, a disallowed extension, a
  pending direct upload, and an object deleted after identification
- The verifier module is copied byte-for-byte from the skill so the two cannot
  drift apart
- Locks Rails for both arm64-darwin and x86_64-linux so the fixture resolves the
  same way locally and on CI
2026-11-08 14:00:01 -06:00
Rockwell Windsor Rice cd322b5bea fix(rails-security): verify upload bytes where they are actually stored
- blob.content_type is derived via Marcel::MimeType.for, which keeps the
  client's declared type when the bytes match no known magic; opaque bytes
  declared image/png are stored as image/png with identified? true
- Active Storage uploads on save, so a model validation runs before the bytes
  exist; the example now uploads explicitly, verifies the stored bytes, and
  attaches only what passed
- Covers both entry points — create_and_upload! for form uploads, find_signed!
  for direct uploads — and fails closed when the object is missing or pending
- Regenerates the skill-triggers registry digest, which covers skill content
2026-11-08 14:00:01 -06:00
Rockwell Windsor Rice adfffc0ca8 docs(rails-security): explain the direct-upload guard and name its auth 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 0edcf37ff5 docs(rails-security): guard the direct-upload route in the example 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 4857f82ff0 docs(rails-security): add the direct-upload route to the Active Storage example 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 577bb2bc3a docs(rails-security): note draw_routes removes every default Active Storage route 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice bc2dc43848 docs(rails-security): add the route for the authorized file controller 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 66a434cbc6 docs(rails-security): require draw_routes = false alongside the authorized controller 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 06d6015ac6 docs(rails-security): note that the webhook dedupe key needs a signed payload id 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice b2cb041764 fix(rails-security): name the stable Active Storage paths in serving guidance
- rails_blob_url and url_for(attachment) are permanent references that redirect
  to a short-lived service URL, so the file stays reachable past the expiry
- Serves user-scoped files from a controller that authorizes each request
  before redirecting to a short-lived private-service URL
2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 36dedf4646 fix(rails-security): take the webhook replay key from the signed payload
- The HMAC covers the request body, not the headers, so deduplicating on
  X-Delivery-Id let a replay vary that header and queue the work again
- Uses the event id parsed from the signed body as the dedupe key
2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice 4b8da913be fix(rails-security): cover extension and storage destination in upload guidance
- rules/ruby/security.md calls for content type, extension, size, and storage
  destination; the example and checklist covered only detected type and size
- Adds an extension allowlist, a private-service attachment with signed URLs,
  and updates the verification checklist to match
2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice cf9488ddf1 fix(rails-security): dedupe webhook deliveries against replay
- Signature verification proves authenticity, not freshness; an identical
  signed delivery queued another job, repeating any non-idempotent effect
- Records the provider's delivery id behind a unique index and returns early
  once processed, and notes that perform must be idempotent for retries
2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice ea91f1d109 fix(rails-security): register the skill in the security install module
- laravel-security, django-security, and springboot-security all live in the
  security module; rails-security was registered under framework-language
- Installs selecting the security profile or capability:security received the
  other framework security skills but not the Rails guidance
2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice e2aee760ff docs(rails-security): restrict assume_ssl to an HTTPS-enforcing proxy 2026-11-08 09:15:30 -06:00
Rockwell Windsor Rice da713084fc feat(rails-security): add Rails security skill
Adds a rails-security skill covering production configuration,
authentication and session rotation, authorization, strong parameters,
SQL injection, XSS and output escaping, CSRF, file uploads, API security,
credentials, untrusted boundaries, and dependency scanning.

Fills the Rails gap alongside the existing laravel-security, django-security,
and springboot-security framework skills. Defers decisions to
rules/ruby/security.md and focuses on the how, per the rules-vs-skills split.

Registers skills/rails-security in the framework-language install module,
agent.yaml, the package.json files list, the ruby entry in
config/project-stack-mappings.json, and the plugin and marketplace manifests.
Adds the reciprocal skill reference to rules/ruby/security.md, matching how
the python, php, and java security rules point at their framework skills.

Updates the catalog count to 294 across the documented surfaces, and bumps
registryDigest and coverage.skills in the skill-triggers context pack by hand:
scripts/dev/generate-skill-triggers.js requires Codex auth to regenerate, and
no new triggers are introduced, so triggersDigest is unchanged.
2026-11-08 09:15:21 -06:00
haelyra d2ef268059 Merge pull request #3650 from haelyra/fix/pr-open-cap-grandfather
fix(ci): enforce open PR cap for all authors without closing existing PRs
2026-11-06 16:21:50 -05:00
haelyra 6cf1eb55b1 chore(ci): sync main before PR cap integration 2026-11-06 16:21:06 -05:00
haelyra b38be6a7f6 Merge pull request #3809 from affaan-m/maint/pr-continuation-20261029
Integrate seven reviewed ECC reliability and guidance fixes
2026-10-29 20:06:32 -07:00
haelyra 66d7b0587b chore(context): bind curated triggers to reviewed guidance repairs 2026-10-29 19:43:24 -07:00
haelyra fafdfb5de6 Merge independently reviewed context budget and reminder repairs 2026-10-29 19:42:36 -07:00
haelyra 35769d00d9 fix(context): validate budgets and remind before native compaction
Reject numeric prefixes, fractions and unsafe window integers consistently with summary scheduling while preserving resolver precedence. Cap only the default context reminder at eighty percent of a valid earlier native compaction budget; explicit thresholds, including zero, retain their intentional policy. Document the independent capacity, summary and advisory contracts.

RED controls reproduce malformed-budget summary triggers and the known-1M/native-200k missed reminder. Resolver65, helper47, actualStop18 and actualPreToolUse54 pass on Node18 and24. Parent and independent reviewer approved the exact diff before commit. Registry rebinding remains the integration coordinator responsibility after combining documentation repairs.
2026-10-29 19:42:27 -07:00
haelyra e4f2f88a32 docs(tinystruct): validate example login inputs before authentication
Add null, blank and example-specific UTF-16 length checks to the English and Japanese login snippets before AuthService. Preserve credential bytes, authentication-failure behavior and the existing successful-session flow. Label the 256/1024 limits as application examples rather than tinystruct defaults.

Compile and execute exact extracted methods against controlled request/auth/session stubs with ephemeral official checksum-verified Temurin17. Baseline: 8 pass,20 fail. Candidate:28 pass,0 fail. Tagged Request API and Java17 target verified. Markdownlint, Unicode and diff checks pass. Root independently reviewed both documents. No full HTTP host, real authentication service, cookie-policy or envelope changes claimed; registry rebound remains root-owned.
2026-10-29 19:40:29 -07:00
haelyra 1739020dba test: preserve exact monitor assertions with actionable diagnostics 2026-10-29 19:15:56 -07:00
haelyra e645a75c2a test: make invalid payment signatures deterministic 2026-10-29 19:15:56 -07:00
haelyra 05bc52ae83 test(insaits): report captured monitor failure diagnostics
Include captured stderr, status, signal and spawn error message when the existing unexpected-monitor-failure warning assertions fail. Preserve all status/raw-input/warning assertions, deadlines and product bytes.

The macOS hosted failure did not print its actual stderr, so its transient cause remains unverified. The unchanged source matches green main; 24 prior local diagnostic repeats passed 120 checks. This diagnostic-only patch passes all five fixture cases, affected ESLint and diff checks. Parent independently reviewed the diff. Fresh exact-head hosted CI remains required.
2026-10-29 19:15:02 -07: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 3dca6e2e88 fix(hooks): preserve provider conversation identity under inherited environments
Restore the shipped payload-first contract from #3464/#3495 and the explicit source #3755 scope clarification. Two provider conversations must retain distinct IDs despite an inherited registered ECC parent ID. Normal and ambient producer24 tests, canonical resolver10 and independent differential review pass. Keep native importer guards; explicit provider/native correlation is queued separately.
2026-10-29 18:57:29 -07:00
haelyra 794d8cd8d1 fix(context): bind final reviewed guidance registry
Bind canonical context guidance and tagged-source security qualifications after combined review repairs. Preserve all34 curated trigger lists. Context profiles, carrier closure, Pi generation, workflow security and diff validation passed.
2026-10-29 17:45:08 -07:00
haelyra 0fae27de35 docs: qualify tinystruct static-root protections against pinned source 2026-10-29 17:44:54 -07:00
haelyra d1eba24d5f fix(hooks): attribute native activity to the registered ECC session 2026-10-29 17:44:10 -07:00
haelyra e4b8b8bf01 docs(tinystruct): qualify symlinked static-root protection
Correct the English and Japanese static-file guidance against tinystruct v1.7.37 commit 089ec19022f3bb5d87f1e83e30b2034b24f7e77f. The configured-root exclusion uses lexical normalized paths before symlink resolution, and matching static candidates return before the later project-root-file check. Recommend real dedicated public directories without claiming an upstream security repair.

Verified the exact tagged HttpServer blob 58ff6ae082f7569e73207c9cb4614f680c9d3de7 and eight disposable POSIX filesystem path controls. Java is unavailable, so no Java or HTTP runtime verification is claimed. Changed Markdownlint, Unicode safety and diff checks pass. Parent independently reviewed both documents and the source evidence. Registry rebinding remains with the combined integration.
2026-10-29 17:44:04 -07:00
haelyra 27e257f59f fix(ci): verify pinned Windows ripgrep before running test gates 2026-10-29 17:43:59 -07:00
haelyra 96996a13c7 docs: separate summary budgets from context capacity guidance
Clarify native compaction budget scheduling independently of the model window resolver and retain immutable transcript fixtures. Helper43, ten independent scheduling controls, affected lint and independent review passed.
2026-10-29 17:43:59 -07:00
haelyra 6cd41995f4 fix(hooks): attribute native activity to the registered ECC session
Verify review discussion4419348312 against actual native producer/importer behavior. Prefer the independently sanitized ECC_SESSION_ID for the ECC-owned metrics feed, retain payload then legacy fallback for standalone hooks, and leave sibling hooks unchanged.

Actual Node producer plus read-only cached native binary reproduces zero imported metrics before the fix and exactly one tool/file/log after repeated sessions/status commands. Four producer regression controls and normal/adversarial inherited-env suites pass22/22. Focused coverage96.47percent lines and91.47percent branches; parent independent source review passed.
2026-10-29 17:43:55 -07:00
haelyra 5fd527cf66 fix(ci): verify pinned Windows ripgrep without Chocolatey
Prefer a preinstalled rg application. Otherwise download the official ripgrep 15.2.0 x64 MSVC ZIP with bounded HTTP retries/timeouts, verify its committed SHA256 before extraction and execution, validate rg.exe, and publish its directory through GITHUB_PATH. Preserve the existing version and PCRE2 checks and every test lane.
2026-10-29 17:41:29 -07:00
haelyra b37942d3c1 fix(summary): preserve work before the earlier compaction boundary
Separate confirmed model capacity from Stop-summary scheduling. Use the smaller confirmed capacity/native budget, or native-only budget for inferred capacity. Three unit and one actual hook RED cases now pass; helper43, actualStop15 and ten independent controls pass without changing the capacity resolver.
2026-10-29 17:37:52 -07:00
haelyra f75d8322f6 fix(context): rebind registry after verified review repairs
Bind the combined canonical skill changes to registry1bc6b059 while retaining all34 curated trigger lists and their unchanged digest. Context profile and deterministic Pi validation passed after integration.
2026-10-29 17:28:55 -07:00
haelyra 3a9f2f9580 docs: clarify context fallback and tinystruct transport dependencies 2026-10-29 17:27:56 -07:00
haelyra 54464e0b78 fix(skills): harden reviewed TypeScript assertions and request IDs 2026-10-29 17:27:56 -07:00
haelyra fee046c6a0 fix(ecc2): retain persisted tool event ownership on replay 2026-10-29 17:27:56 -07:00
haelyra fc549b6372 fix: preserve Windows rule examples and conservative summary budgets
Address #3809 review regressions for CRLF code fences and inferred context capacity. Reproduced unit and actual Stop-hook failures; verified llm-summary38, Stop14, Copilot37 and independent code/security review. Keep confirmed model/ECC context authority, native budget scheduling and unknown capacity separate.
2026-10-29 17:27:56 -07:00
haelyra ca24fb12c0 docs: clarify compact fallback and tinystruct transport dependencies
Verify context fallback order against transcript-context and passing 55-case workflow suite. Ground CLI injection guidance in tinystruct v1.7.37 Action.getArguments, CommandLine and ApplicationManager at 089ec19022f3bb5d87f1e83e30b2034b24f7e77f. Markdown lint and Pi projection check pass; preserve explicit Pi exclusions.
2026-10-29 17:25:46 -07: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
haelyra e55b9c1346 fix(ecc2): preserve persisted tool event ownership on replay
Reject a feed row whose hook event ID already belongs to another session before reserving in-memory deduplication. Reuse one parameterized indexed lookup rather than loading historical logs. Register the previously unknown session against the unchanged same-ID fixture and verify metrics remain consistent with persisted ownership.
2026-10-29 17:25:41 -07:00
haelyra 829b8e42d6 fix(deps): integrate rustls 0.23.46 security update (#3807)
Preserve the reviewed Dependabot source ancestry. The rustls patch release addresses four advisories affecting 0.23.45; dependency closure is unchanged. Verified downloaded crate checksum, full native tests, actual CLI readback fixtures, and locked offline build.
2026-10-29 17:07:35 -07:00
haelyra 3f844bd175 fix(context): bind curated triggers to combined reviewed registry
Recompute only registryDigest through the canonical registry after tinystruct and TypeScript integration; retain all 34 curated trigger lists and their verified digest. Context profiles, carrier closure, Pi projection and independent combined review passed.
2026-10-29 17:05:17 -07:00
haelyra a43dd3501a feat(skills): integrate validated TypeScript patterns and distribution 2026-10-29 17:03:52 -07:00
haelyra 8aae0e6b49 fix(ecc2): integrate isolated tool activity readback repair 2026-10-29 17:03:51 -07:00