Commit Graph
4327 Commits
Author SHA1 Message Date
montjeffrey d64b34137b chore(context): rebind skill-triggers registry digest
The SKILL.md change for continuous-learning-v2 moves the registry
digest, so validate-context-profiles reported the manifest as stale.
2026-11-04 14:43:57 -05:00
montjeffrey 98dd1a7ccb docs(clv2): document instinct-cli's Python floor and the EOL notice opt-out 2026-11-04 11:45:36 -05: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
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
haelyra 2cdc157205 fix(hooks): integrate reviewed shell quoting and context precedence repairs 2026-10-29 17:03:51 -07:00
haelyra 969786b850 docs: integrate verified tinystruct 1.7.37 guidance
Preserve PR #3758 source head deec267f07. Correct the static-root policy against tagged upstream 089ec19022f3bb5d87f1e83e30b2034b24f7e77f: current directory and ancestors are rejected, while configured siblings are permitted. Independent EN/JA source review and Markdown lint passed.
2026-10-29 17:03:51 -07:00
haelyra 0509bd04fb fix(ecc2): integrate registered-session activity filtering (#3755)
Preserve harryert source ancestry and skip external session events before deduplication. Strengthen same-ID ordering, late-registration and repeat-sync coverage. Isolate the affected dashboard selection fixture from shared user metrics.
2026-10-29 17:03:16 -07:00
haelyraandAbhiramMandala f29e33271b feat(skills): port reviewed TypeScript patterns onto current catalog
Carry forward AbhiramMandala’s canonical TypeScript guidance from PR #3142, reviewed source head 643f61d604. Rebuild current-main counts, Pi projection and trigger digest without replacing existing registry entries.

Use bracket access under the documented noPropertyAccessFromIndexSignature baseline. Type-check and execute the actual fixture, compare published function bodies, and preserve deterministic undefined, sparse-array and concurrency regressions.

Validation: 26 focused checks; strict TypeScript compile; all repository validators; affected ESLint and Markdownlint; deterministic Pi rebuild; real npm pack; disposable Claude, Codex and Copilot install/repair/uninstall with exact skill bytes and preserved user files. Parent independently reviewed the complete staged diff.

Co-authored-by: AbhiramMandala <abhirammandala02@gmail.com>
2026-10-29 17:02:32 -07:00
haelyra 0036875f86 feat(install): integrate namespaced Copilot rule instructions
Preserve contributor PR #3771 head 4114945775. Repair single-file language namespaces and preserve fenced Markdown examples. Verified 36 adapter/lifecycle and 5 support-surface tests; independent code and security review passed.
2026-10-29 17:02:31 -07:00
haelyra ee21d8da5c fix(hooks): preserve context-window evidence over compact trigger (#3760) 2026-10-29 17:01:04 -07:00
haelyra 5e062a3b3b fix(hooks): integrate reviewed shell quote extraction fix (#3801) 2026-10-29 17:00:10 -07:00
dependabot[bot] fbc0b2538d chore(deps): bump rustls
Bumps the cargo-security group with 1 update in the /ecc2 directory: [rustls](https://github.com/rustls/rustls).


Updates `rustls` from 0.23.45 to 0.23.46
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.23.45...v/0.23.46)

---
updated-dependencies:
- dependency-name: rustls
  dependency-version: 0.23.46
  dependency-type: indirect
  dependency-group: cargo-security
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-29 23:25:00 +00:00
haelyra 91b5f6a371 Merge pull request #3806 from affaan-m/maint/pr-stewardship-20261029
Integrate reviewed ECC reliability and workflow contributions
2026-10-29 16:23:49 -07:00
haelyra 61472d54c0 test: disable background maintenance in isolated Git fixtures 2026-10-29 15:22:45 -07:00
haelyra 07e1e4c606 fix: keep issue text literal in review commands and atomically create fixtures 2026-10-29 15:00:21 -07:00
haelyra 47d035ef7c fix: isolate issue evidence fixtures and preserve review authority boundaries 2026-10-29 14:37:28 -07:00
haelyra 167986184b ci: verify documented revision gate early on Windows 2026-10-29 14:02:41 -07:00