Skip to content

feat(hooks): decide AgentTraces state in session_capture - #519

Merged
genedna merged 5 commits into
mainfrom
scap-01-session-capture
Sep 23, 2026
Merged

genedna merged 5 commits into
mainfrom
scap-01-session-capture

Conversation

@genedna

@genedna genedna commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add session_capture::decide and use it for AgentTraces agent_session.state and the checkpoint class. TurnEnd still writes a committed checkpoint, SubagentEnd still writes a subagent checkpoint, and a missing repo path still writes none.
  • Owner filtering and stopped_at stay in the ingest function. This does not copy Entire's git checkpoint storage.
  • Bump the patch version to 0.23.52. SCAP-02's registration was already on main; this card records that it was checked rather than appended again.

Test plan

  • cargo +nightly fmt --all --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • Focused nextest: session_capture::tests, TurnEnd checkpoint, SessionEnd checkpoint, SubagentEnd scope checkpoint
  • source .env.test && source .env.live-test && cargo nextest run --all --no-fail-fast --retries 2 — 7872 passed, 14 failed. The 14 also fail on baseline 0.23.51 without this change (umask 0002 execute-bit checks, and the upgrade-lock hook test). Recorded as DEFER-SCAP-05 and DEFER-SCAP-06.
  • base.yml and CodeQL on this head
  • squash merge, then gh release create v0.23.52

Made with Cursor

Keep the stored session state and checkpoint class on one pure match
so later capture work does not grow a second kind list in the ingest path.

Signed-off-by: Eli Ma <eli@patch.sh>
@genedna

genedna commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

Reopen to request the Check, Build and Test workflow.

@genedna genedna closed this Sep 23, 2026
@genedna genedna reopened this Sep 23, 2026
v0.23.52 is already published on main, so this card takes the next patch.

Signed-off-by: Eli Ma <eli@patch.sh>
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	docs/development/plan/plan-status.md
#	install.ps1
#	install.sh
# Conflicts:
#	docs/development/plan/plan-status.md
# Conflicts:
#	docs/development/plan/plan-status.md
@genedna
genedna merged commit fa3849e into main Sep 23, 2026
12 checks passed
genedna added a commit that referenced this pull request Sep 23, 2026
Drop --test-threads=1 from Session Capture verification. Mark SCAP-01
remote-pending after PR #519, and open B3-00 now that the runtime.rs
mutex is clear.

Signed-off-by: Eli Ma <eli@patch.sh>
@genedna
genedna deleted the scap-01-session-capture branch September 23, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant