Commit Graph
250 Commits
Author SHA1 Message Date
haelyra 29652b8d89 Merge reviewed PR #3817 2026-11-05 23:12:33 -05:00
wellkilo ce80001771 fix(ecc2): preserve bounded Git diagnostics and avoid index refresh 2026-11-03 18:27:35 -08:00
wellkilo e51b1abe96 perf(ecc2): bound Git patch previews at the pipe
Read only the requested nonempty lines, with a byte ceiling for oversized lines. Reap Git when the preview is full and skip the working diff if the branch section exhausted the line budget.

Refs #3018
2026-11-03 18:17:12 -08:00
guishiw 35d2a23aae fix(ecc2): avoid duplicate git status refresh 2026-10-30 20:52:02 +08: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 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
haelyra 6d7d4920c8 fix: close final integration security and portability gaps 2026-10-29 12:57:39 -07:00
haelyra 0d92059410 fix: close installed workflow and review publication gaps before integration 2026-10-29 11:58:01 -07:00
haelyra 299cde9d95 maint: integrate reviewed contribution #3774 2026-10-29 11:34:55 -07:00
haelyra 2d9b503e9a maint: integrate reviewed contribution #3798 2026-10-29 11:34:50 -07:00
haelyra 9a39053236 maint: integrate reviewed contribution #3796 2026-10-29 11:34:44 -07:00
haelyra ec06db418d maint: integrate reviewed contribution #3795 2026-10-29 11:34:40 -07:00
haelyra ab9e6057df maint: integrate reviewed contribution #3792 2026-10-29 11:34:35 -07:00
haelyra 754d7ad579 maint: integrate reviewed contribution #3773 2026-10-29 11:34:29 -07:00
Harry c5be66c96b test(ecc2): preserve nonempty schedule run timestamp on task update 2026-10-29 22:37:05 +08:00
Harry b890f2915d feat(ecc2): update native schedule instructions in place 2026-10-29 22:22:25 +08:00
Harry 86c4e1bbf4 fix(ecc2): honor configured worker profile during native inbox dispatch 2026-10-29 18:39:57 +08:00
Harry ad51be7515 test(ecc2): reject ambiguous relative Lead directory for assignment 2026-10-29 18:12:31 +08:00
Harry 098c2350ba fix(ecc2): resolve native assignment directory from parent lead 2026-10-29 17:28:52 +08:00
Harry bbbf060ebc fix(ecc2): retain assignment provenance for safe independent dispatch 2026-10-29 16:42:32 +08:00
Harry 72df50d184 test(ecc2): verify exact displayed inbox message IDs 2026-10-29 14:44:33 +08:00
haelyra c6bfc09f01 fix(ecc2): preserve unread inbox messages and expose full content 2026-10-29 14:33:24 +08:00
Harry 77209f81dd test(ecc2): serialize template cwd with shared guard 2026-10-29 14:05:59 +08:00
Harry 7af7a18bd5 test(ecc2): prevent template handoff redispatch after real launch 2026-10-29 06:48:53 +08:00
Harry 613d58e701 fix(ecc2): exclude template and started assignment notices from rerouting 2026-10-29 06:42:39 +08:00
Harry 9b27576ee7 fix(ecc2): preserve assigned work in load and rebalance 2026-10-28 13:29:01 +08:00
Shubham Padkonde bb32cb389b fix(ecc2): delimit Claude tasks after variadic options 2026-10-28 10:35:39 +05:30
Harry ec7ff61d4d test(ecc2): cover long native delegation sender IDs 2026-10-28 12:57:21 +08:00
Harry d3bc76e61e fix(ecc2): honor configured worktree policy in daemon dispatch 2026-10-28 12:49:48 +08:00
Harry b0a4551adf fix(ecc2): exclude native delegation notices from auto-dispatch 2026-10-28 12:44:09 +08:00
harryert 54e66695b1 fix(ecc2): prevent recursive auto-dispatch of assignment handoffs 2026-10-28 11:25:18 +08:00
Harry 018bc4d7cb fix(ecc2): ignore tool events from unregistered sessions 2026-10-27 14:14:38 +08:00
haelyra 5981dd7092 fix: complete reviewed integration workflows and safety checks 2026-10-09 18:54:39 -04:00
haelyra c4f419bea0 merge: refresh reviewed stewardship source 3280 on current main 2026-10-09 16:02:58 -04:00
Affaan Mustafa c05b2d6614 chore: retire the Everything Claude Code name, ECC only (#3330)
* chore: retire the Everything Claude Code name, ECC only

Replace the expanded product name and the everything-claude-code slug
with ECC across READMEs, translated docs, harness folders, skills,
commands, scripts and examples. Repo URLs now point at affaan-m/ECC.

Rename repo-internal artifacts to ecc forms (ecc-conventions skill,
ecc-guardrails, ecc-research-playbook, ecc-team-config, ecc-instincts
with ecc-* ids) and update .claude/ecc-tools.json.

Legacy install ids, plugin dirs, package names and MCP prefixes stay
where existing installs resolve against them. The codex global-state
check and harness-audit repo detection accept the new name first and
the legacy one as a fallback. The Discord bot prefers ~/GitHub/ECC and
falls back to the nested legacy checkout path.

Refresh the skill-triggers registryDigest for the changed skill text.

* fix(ecc-tools): drop managed paths to the removed Claude repo skill

.claude/skills/<repo-skill>/SKILL.md was deleted in #2770 but stayed listed in
ecc-tools.json and the team config. Remove those entries and point the Claude
Code adapter at the existing .agents/skills/ecc-conventions/SKILL.md.
2026-10-01 17:50:41 -05:00
haelyra 077d74764f test(ecc2): assert isolated config roots 2026-10-01 12:09:57 -04:00
haelyra 5ea629876e fix: reconcile stewardship batch on current main
Preserve the Bengali and MyBatis catalog additions, keep Laravel storage examples disk-consistent, isolate ECC 2 test configuration with private permissions, and verify every command-referenced runtime script is published.
2026-09-30 13:29:20 -04:00
Toni AlataloandClaude Sonnet 5.5 708d621372 fix(ecc2): also sandbox the legacy ~/.claude/ecc2.toml path under cfg(test)
Addresses review feedback on #3277: the previous commit sandboxed the
primary config path, but Config::global_config_paths() also reads the
legacy $HOME/.claude/ecc2.toml. A test that called Config::load() would
pick up (or fail on a malformed) developer-local legacy config.

Under cfg(test), legacy_global_config_path() now resolves inside the same
per-test-thread scratch root as config_path().

Proof of red (new test, before the fix):

$ cargo test legacy_config_path_under_test
    running 1 test
    test config::tests::legacy_config_path_under_test_is_sandboxed_away_from_user_home ... FAILED
    failures:
    ---- config::tests::legacy_config_path_under_test_is_sandboxed_away_from_user_home stdout ----
    tests must never read the real legacy user config, got /Users/<me>/.claude/ecc2.toml
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    failures:
        config::tests::legacy_config_path_under_test_is_sandboxed_away_from_user_home
    test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 491 filtered out; finished in 0.00s
    error: test failed, to rerun pass `--bin ecc-tui`

After the fix:

$ cargo test legacy_config_path_under_test
    test config::tests::legacy_config_path_under_test_is_sandboxed_away_from_user_home ... ok
    test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 491 filtered out

$ cargo test   # full suite
    test result: ok. 491 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out

Refs #3276

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Y54kLgLGzLGqAxwLMFEc9
2026-09-30 23:08:55 +09:30
Toni AlataloandClaude Sonnet 5.5 6f141fe5a2 fix(ecc2): sandbox Config::config_path() under cfg(test)
Dashboard tests that spawn sessions reach Config::save() through
auto_split_layout_after_spawn, which wrote to the developer's real
~/Library/Application Support/ecc2/config.toml. The fixture's db_path
pointed at a deleted temp dir, so the next `cargo run` failed with
"unable to open database file".

Under cfg(test), config_root() now returns a per-test-thread scratch
directory that is removed when the thread exits, so no test can reach
the real user config.

Fixes #3276

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Y54kLgLGzLGqAxwLMFEc9
2026-09-30 22:50:52 +09:30
wellkilo 8cd852136f fix(ecc2): bound output cursor recovery
Page dashboard deltas, preserve incremental refreshes, isolate reused session IDs by creation time, and use ownership-based cache updates. Add cross-process, lifecycle, and retry coverage for the reviewed edge cases.
2026-09-11 01:03:17 +08:00
wellkilo daadb57963 perf(ecc2): stream dashboard output with a DB cursor
Hydrate bounded session output snapshots at startup and recovery, then fetch only rows newer than the monotonic SQLite cursor during steady-state dashboard refreshes.

Preserve cross-process visibility and bounded per-session caches, recover safely from transient database failures, and cover lifecycle, retry, and real child-process writes.
2026-09-11 00:20:27 +08:00
Affaan MustafaandClaude Fable 5.1 f8640355e4 Consolidate recovered eval framework and operator workflows (#3040)
* feat: consolidate offline eval and operator workflows

Compose the retained framework, operator skill, roadmap and cleanup ranges on current main. Preserve current release dependencies and keep candidate execution disabled pending OS containment. Repair draft/DOCX behavior, obligation uniqueness, trusted send and audience guidance, runner provenance and eval diagnostics.

Source-PR: 2930 0abe3727d2b500c6e4830bdeb47ed67cae3f4785
Source-PR: 2931 992b49c44ed872def49675b791168b8fcd091df6
Source-PR: 2932 4a193dd13041cb7a6bebf4d2e910a0cd32bcc797
Source-PR: 2933 59cdfe500a91949ba1415f1edd7279620f21e804
Source-Base: ca185ef5f7

* fix: repair foundation CI and update js-yaml

* fix: reconcile pending-delete capsule locks after close

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 13:20:52 +01:00
Affaan Mustafa 623f2c020f Add bounded harness evaluation and rollback loop (#2686)
* feat(ecc2): add bounded harness evaluation loop

* fix(ecc2): preserve harness evidence and legacy IDs
2026-08-05 18:17:10 -04:00
mohameddsh3ban 0ce14a423c fix(ecc2): resolve kill_process duplicate definition on Windows (#2195)
On Windows both cfg(windows) and cfg(not(unix)) evaluate true, so the sync taskkill kill_process and the async taskkill kill_process both compiled in and collided (E0428). Call sites are synchronous and never await it (passed as a fn pointer to enforce_session_heartbeats_with, and called as kill_process(pid)? in stop_session_recorded), so remove the stray async cfg(not(unix)) definition. The sync cfg(windows) version already handles termination via taskkill /T /F.
2026-06-15 13:48:42 -04:00
dependabot[bot]andAffaan Mustafa fec84fcf19 chore(deps): bump rusqlite from 0.32.1 to 0.40.1 in /ecc2 (#2211)
* chore(deps): bump rusqlite from 0.32.1 to 0.40.1 in /ecc2

Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.32.1 to 0.40.1.
- [Release notes](https://github.com/rusqlite/rusqlite/releases)
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/rusqlite/rusqlite/compare/v0.32.1...v0.40.1)

---
updated-dependencies:
- dependency-name: rusqlite
  dependency-version: 0.40.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(ecc2): cast u64 columns at sqlite boundary for rusqlite 0.40

rusqlite 0.40 removed the u64 ToSql/FromSql impls (SQLite stores
INTEGER as i64). Cast token counts, durations, counts, and paging
values to/from i64 at each bind/read site in session/store.rs.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Affaan Mustafa <me@affaanmustafa.com>
2026-06-11 01:41:43 -04:00
Affaan Mustafa 42fe8c3083 fix(ecc2): port webhook sender to ureq 3 Agent API (#2231)
#2209 bumped ureq to 3.x but the AgentBuilder-based webhook sender
was not ported (branch update raced the merge). ureq 3 replaces
AgentBuilder with Agent::config_builder(); timeouts are Option-wrapped
and status() returns http::StatusCode.
2026-06-11 01:26:59 -04:00
dependabot[bot]andAffaan Mustafa 16be4a6898 chore(deps): bump sha2 from 0.10.9 to 0.11.0 in /ecc2 (#2208)
* chore(deps): bump sha2 from 0.10.9 to 0.11.0 in /ecc2

Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.9 to 0.11.0.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.9...sha2-v0.11.0)

---
updated-dependencies:
- dependency-name: sha2
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(ecc2): hex-encode sha2 0.11 digest output manually

sha2 0.11 (digest 0.11 / hybrid-array) output arrays no longer
implement LowerHex, so format the fingerprint bytes directly.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Affaan Mustafa <me@affaanmustafa.com>
2026-06-11 01:16:07 -04:00
Affaan Mustafa 6626e804f9 chore: pin rust toolchain to 1.96 for edition2024 deps (#2228)
- add ecc2/rust-toolchain.toml pinning stable 1.96 (deps now require
  edition2024, which needs rustc 1.85+; local 1.84 could no longer build)
- make git test fixtures hermetic: disable core.hooksPath inside temp
  repos so global identity-checking pre-push hooks cannot fail tests
2026-06-11 00:56:55 -04:00
Affaan Mustafa 6b8a49a6ee stabilize ecc2 cwd-mutating tests 2026-05-15 14:14:24 -04:00
Affaan Mustafa bbb0350ed6 test: stabilize ECC2 dashboard conflict refresh (#1836) 2026-05-12 20:51:29 -04:00