Skip to content

Claude mutation-scope integration - #263

Open
davidabram wants to merge 6 commits into
mutation-scope-ingressfrom
claude-mutation-scope-integration
Open

Claude mutation-scope integration#263
davidabram wants to merge 6 commits into
mutation-scope-ingressfrom
claude-mutation-scope-integration

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

@davidabram
davidabram force-pushed the claude-mutation-scope-integration branch 2 times, most recently from 1c14d6e to 141917d Compare September 4, 2026 13:44
Define the first concrete Claude Code mutation-scope adapter, its generic-ingress boundary, lifecycle and identity semantics, durable state, generated settings integration, and validation strategy.

- Sequence the work across Claude lifecycle discovery, adapter implementation, setup integration, production regressions, and durable context.
- Capture fail-closed PreToolUse behavior, write-ahead Start ordering, stale-attempt cleanup, worktree ownership, and background-shell limitations.
- Record acceptance criteria and full verification commands for the stacked integration.

Plan: claude-mutation-scope-integration
Tasks: T01-T08

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-mutation-scope-integration branch 3 times, most recently from 44c8271 to 9b4659b Compare September 4, 2026 14:31
Capture Claude Code 2.1.258 lifecycle payloads for mutation-scope design decisions, including successful and failed tools, parallel calls, denials, subagents, worktree cwd, and background execution.

Document uncaptured or analog-only probes and confirm the foreground/background and failure-signal assumptions used by the follow-up implementation.

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-mutation-scope-integration branch from 9b4659b to 7a247c0 Compare September 4, 2026 14:39
Capture and validate Claude hook lifecycle and tool events before wiring the
adapter, so mutation-scope integration can use stable execution identities and
conservative tool classification.

Implement strict event parsing, identity/scope ID formatters, lifecycle models,
and read-only/delegation/mutation-capable classification. Keep the module
unwired and dead-code allowed until the planned ingress work lands.

Plan: claude-mutation-scope-integration (T02)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-mutation-scope-integration branch from f25e43b to c6e5f1c Compare September 4, 2026 15:16
Persist versioned adapter attempts under the checkout's Git state directory, using bounded OS locking and durable atomic replacement to prevent lost updates and partial writes. Reuse live deliveries by tool identity while allocating monotonic ScopeIds for later executions, and reject malformed or unsupported state rather than fabricating bookkeeping.

Plan: claude-mutation-scope-integration (T03)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-mutation-scope-integration branch from f59e6d7 to 4605801 Compare September 4, 2026 15:48
davidabram and others added 2 commits September 4, 2026 22:42
Ensure Nix package builds include the Claude mutation-scope hook fixtures so the hook's test and runtime assets are available in the packaged CLI source tree.

Co-authored-by: SCE <sce@crocoder.dev>
Document the observed Claude Code lifecycle boundary for a foreground Bash call
that launches a self-detaching descendant whose repository mutation occurs after
PostToolUse. Add the captured hook payloads, update fixture notes, and reconcile
D20/T04 in the integration plan without changing production behavior or adding
process supervision.

Plan: claude-mutation-scope-integration (T04)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the claude-mutation-scope-integration branch from 44a2f47 to e98b99a Compare September 4, 2026 22:24
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