Repository navigation
Integrate seven reviewed ECC reliability and guidance fixes - #3809
Conversation
Bump the pinned upstream version to 1.7.37 and document what changed in the framework since 1.7.34: - Logging: the 'handlers' property (default ConsoleHandler) and the opt-in FileHandler with its pattern/limit/count/append options (1.7.36). - Static files: HttpServer now serves only server.static.dirs / server.static.dir (default 'static') and rejects traversal, hidden files and project-root files (1.7.37). - Dual-mode wording: only Mode.DEFAULT actions are reachable from both CLI and HTTP; actions bound to Mode.CLI or an HTTP method are rejected from the other transport (ApplicationManager.call). - Login example now checks credentials instead of storing a hard-coded user id in the session. - Red Flags rows for the new failure modes. The ja-JP translation is updated to match. The frontmatter description is unchanged.
Fix the FileHandler description: pattern is optional and defaults to %h/java%u.log, with the parent directory created if missing. Also document logging.enabled, the accepted logging.level values and aliases, custom Handler/Formatter classes, the logger-level versus handler-level gates, and that the configuration is read once at startup. Add a Red Flags row for debug messages that never appear. The ja-JP translation is updated to match.
…truct-patterns Limit the CLI-first testing guidance to transport-neutral and Mode.CLI actions in How It Works, When to Use, Best Practices and Red Flags, since actions with an HTTP mode are rejected from the CLI and must be tested over HTTP. Also document how FileHandler resolves a relative pattern, what limit, count and %g mean, the enable steps, and list its level, formatter and encoding properties in the config example. The ja-JP translation is updated to match.
CLAUDE_CODE_AUTO_COMPACT_WINDOW is the harness auto-compact trigger point (e.g. 786432 on a 1M-window model), not the context window size. Honoring it before the [1m] marker / known-family / >200k inference checks made 1M models resolve to a 786k window with the 160k standard threshold, so the strategic-compact hook fired prematurely in real Claude Code sessions where the harness sets this variable. Keep ECC_CONTEXT_WINDOW_TOKENS as the strongest override; demote CLAUDE_CODE_AUTO_COMPACT_WINDOW to a last-resort fallback.
The copilot project target installed only skills and agents, dropping the entire rules/ tree even though Copilot CLI and VS Code read path-specific instructions from .github/instructions/**/*.instructions.md. Plan each rules/**/*.md file into .github/instructions/ecc/ as an .instructions.md file and add a copilot-rule-frontmatter transform that maps the Claude-style `paths:` list onto Copilot's `applyTo:` glob list. Rules without `paths:` become applyTo: "**", matching their always-on semantics in Claude Code. rules/README.md documents the rule set and is not installed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address CodeRabbit review on #3771: - Treat immediately empty (`---\n---`) and whitespace-only frontmatter blocks as empty metadata instead of throwing or leaking the delimiters into the installed body. - Reject an empty `paths: []` list before serialization so an installed instruction never receives an empty `applyTo:` glob. - Rewrite relative Markdown links that resolve inside the installed rule set to their renamed `.instructions.md` targets; links escaping rules/, external URLs, absolute paths, anchors, and README.md stay unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address CodeRabbit re-review on #3771: rewriteRuleLinks now tracks fenced code blocks (``` and ~~~) line by line and only rewrites links outside them, so Markdown examples shown inside fences stay verbatim. One shipped rule contains such an example, so this changes installed output today. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
toggleQuote refused to toggle when the previous character was a backslash, but every caller already consumes a backslash and the character after it outside single quotes. A quote reached after a backslash is therefore the end of `'C:\'` or the end of `"C:\\"`, and both stayed open, so a `(...)` group or `{ ...; }` group after them was never extracted. `echo "C:\\" ; (npm run dev)` passed the dev-server block while `echo "C:" ; (npm run dev)` was blocked.
Dropping the previous-character check in toggleQuote let the `'` of `\'` close an ANSI-C `$'...'` string, so `echo $'it\'s'; (rm -rf /tmp/x)` left a quote open and the group was never extracted. Track `$'...'` in the quote state and consume backslash escapes inside it, as bash does, and cover the inner scanners (`(...)`, `$(...)`, `{ ...; }` bodies) with quotes ending in a backslash.
…ng it AGENTS.md asks for new objects rather than mutation. toggleQuote now returns the updated quote state (or null when the character is not a quote it toggles), skipOuterSpan returns it alongside the skipped index, and each scanner reassigns its own local state.
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](rustls/rustls@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>
Carry forward AbhiramMandala’s canonical TypeScript guidance from PR #3142, reviewed source head 643f61d. 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>
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.
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.
ECC Tools / Security EvidenceCommit: Security scanner evidence required (action_required) Detected 1 security-sensitive predictive risk signal(s) without scanner evidence. Mode: enforce Findings:
Touched security-sensitive paths:
Expected evidence:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 6 PR taxonomy bucket(s): Security Evidence, Harness Drift, Install Manifest Integrity, CI/CD Recommendation, Skill Quality, Agent Config Review. Scanned 40 changed file(s). Roadmap taxonomy buckets: Security EvidenceSecurity-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence. Signals:
Paths:
Harness DriftHarness-facing changes can drift across Claude Code, Codex, OpenCode, and shared adapter surfaces. Signals:
Paths:
Install Manifest IntegrityInstall manifests, plugin metadata, and shipped skills should stay synchronized with user-facing setup guidance. Signals:
Paths:
CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Skill QualitySkill, agent, command, and rule guidance should carry examples, triggers, validation, or reference evidence. Signals:
Paths:
Agent Config ReviewAgent, command, skill, MCP, and local instruction changes should be reviewed as executable agent configuration. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 40 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 Summary
Merge Risk:
|
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 40 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Config AuditCommit: No changed-config issues detected (success) Scanned 2 config file(s) present at this commit across 2 changed config path(s) and found no issues in the supported security rules. Changed config files:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Harness AuditCommit: No harness issues detected (success) Scanned 2 changed config file(s) and found no harness issues. Changed config files:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
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.
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.
ECC Tools / Security EvidenceCommit: Security scanner evidence required (action_required) Detected 1 security-sensitive predictive risk signal(s) without scanner evidence. Mode: enforce Findings:
Touched security-sensitive paths:
Expected evidence:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 7 PR taxonomy bucket(s): Security Evidence, Harness Drift, Install Manifest Integrity, CI/CD Recommendation, Cost/Token Risk, Skill Quality, Agent Config Review. Scanned 53 changed file(s). Roadmap taxonomy buckets: Security EvidenceSecurity-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence. Signals:
Paths:
Harness DriftHarness-facing changes can drift across Claude Code, Codex, OpenCode, and shared adapter surfaces. Signals:
Paths:
Install Manifest IntegrityInstall manifests, plugin metadata, and shipped skills should stay synchronized with user-facing setup guidance. Signals:
Paths:
CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Cost/Token RiskAI routing, usage, and token-budget changes should include budget or usage-limit evidence. Signals:
Paths:
Skill QualitySkill, agent, command, and rule guidance should carry examples, triggers, validation, or reference evidence. Signals:
Paths:
Agent Config ReviewAgent, command, skill, MCP, and local instruction changes should be reviewed as executable agent configuration. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 1/7 areas (14%) across 53 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 53 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Config AuditCommit: No changed-config issues detected (success) Scanned 3 config file(s) present at this commit across 3 changed config path(s) and found no issues in the supported security rules. Changed config files:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Harness AuditCommit: No harness issues detected (success) Scanned 3 changed config file(s) and found no harness issues. Changed config files:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
This integrates seven reviewed contributions onto current main: safer native activity readback, shell/context hook repairs, canonical Copilot rule installation, and validated TypeScript/upstream guidance. Six complete contributor heads retain ancestry; #3142 is an attributed port from its conflicting reviewed head.
Maintainer repairs preserve the shipped payload-first conversation-ID contract from #3464/#3495 and the source author’s scope clarification. Explicit provider/native correlation remains a separate follow-up with provenance and concurrent-session acceptance; inherited environment IDs do not establish ownership. The importer guards remain independently useful.
Windows CI now prefers installed ripgrep or a pinned official 15.2.0 x64 archive with SHA256 verification before extraction/execution and bounded retries. Existing version, PCRE2, permissions, matrix and test gates remain intact. The invalid-payment fixture now creates a deterministically invalid ECDSA scalar; a real SDK/HTTP reproduction proved its earlier tail mutation could preserve a valid signature. Monitor warning assertions gain captured diagnostics without changing product behavior, required warnings or deadlines.
Validation: 8,269 local checks across 456 files on the restored production tree, with 91.73% lines and 85.70% branches. The final two-file test follow-up passed actual 27-case payment checks on Node 18/24 and five monitor checks. Native Rust passed 508 tests, zero failures and one ignored; ten isolated CLI checks cover ownership, repeat import, late registration and foreign keys. Producer 24 normal/ambient, canonical resolver 10, TypeScript 30, summary 43, actual Stop 15 and Copilot 37 checks passed. Independent reviews preserve six source ancestries, the attributed port, unchanged curated triggers and exact tested Rust/source trees. The final budget follow-up passes 184 checks on each of Node 18/24, including actual Stop and PreToolUse hooks. Exact extracted EN/JA login methods compile and pass 28 checks on an isolated checksum-verified Java 17 JDK against controlled request/auth/session stubs. Final exact-head hosted and resulting-main checks remain the delivery gates.
This advances M0 reliability/canonical distribution and bounded M1 context guidance while ECC retains policy, state, registry, capability, receipt, orchestration and evidence authority. Sandbox tiers, durable ExecutionCapsules, Fleet dispatch, authenticated provider certification and release publication retain separate gates. Tagged-source/path probes and extracted stubbed login methods do not certify the full tinystruct HTTP host; cargo-audit is unavailable. The isolated pre-existing monitor transient was not reproduced, and its cause is not claimed fixed.