Skip to content

Implementation Plan: T5-P6-A4-WP1 ACP Session Contract Alignment Design Document#4124

Merged
Trecek merged 5 commits into
developfrom
t5-p6-a4-wp1-provide-authoritative-reference-aligning-autosk/4053
Jun 27, 2026
Merged

Implementation Plan: T5-P6-A4-WP1 ACP Session Contract Alignment Design Document#4124
Trecek merged 5 commits into
developfrom
t5-p6-a4-wp1-provide-authoritative-reference-aligning-autosk/4053

Conversation

@Trecek

@Trecek Trecek commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Create docs/design/acp-session-contract.md — a four-section normative reference document mapping the autoskillit CodingAgentBackend lifecycle to ACP (Agent Communication Protocol) session method semantics. The document covers lifecycle mapping, recovery ladder, capabilities translation, and Codex shim deviations. No code files are modified. The docs/design/README.md index is updated to include the new document.

Closes #4053

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-20260627-031355-771942/.autoskillit/temp/make-plan/t5_p6_a4_wp1_acp_session_contract_alignment_plan_2026-06-27_031500.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step Model count uncached output cache_read peak_ctx turns cache_write time
plan* opus[1m] 1 5.6k 10.7k 1.1M 77.9k 41 64.8k 6m 26s
verify* sonnet 1 70 9.9k 354.4k 59.4k 27 40.9k 5m 27s
implement* MiniMax-M3 1 57.6k 17.3k 989.1k 0 58 0 4m 47s
fix* sonnet 1 158 4.9k 880.6k 56.4k 42 37.9k 3m 11s
audit_impl* sonnet 1 244 8.9k 289.4k 50.9k 18 39.9k 5m 9s
prepare_pr* MiniMax-M3 1 42.6k 1.8k 111.3k 0 11 0 38s
compose_pr* MiniMax-M3 1 36.4k 1.7k 213.1k 0 14 0 44s
review_pr* sonnet 2 304 66.9k 2.1M 89.4k 89 140.0k 18m 29s
resolve_review* sonnet 2 520 47.8k 3.6M 99.3k 132 156.2k 21m 10s
Total 143.5k 170.1k 9.7M 99.3k 479.7k 1h 6m

* Step used a non-Anthropic provider; caching behavior may differ.

Token Efficiency

Step LoC Changed cache_read/LoC cache_write/LoC output/LoC
plan 0
verify 0
implement 378 2616.6 0.0 45.9
fix 2 440318.0 18937.5 2464.5
audit_impl 0
prepare_pr 0
compose_pr 0
review_pr 0
resolve_review 61 59212.0 2561.4 784.0
Total 441 21922.5 1087.8 385.6

Model Usage Breakdown

Model steps uncached output cache_read cache_write time
opus[1m] 1 5.6k 10.7k 1.1M 64.8k 6m 26s
sonnet 5 1.3k 138.5k 7.2M 414.9k 53m 28s
MiniMax-M3 3 136.6k 20.8k 1.3M 0 6m 9s

Trecek and others added 5 commits June 27, 2026 03:30
Create docs/design/acp-session-contract-alignment.md — the normative
reference for P6-A3-WP1 mapping the CodingAgentBackend lifecycle to
ACP session method semantics. Four sections cover:

  1. Lifecycle Mapping — per-method table for all 23 protocol methods
     of CodingAgentBackend across ClaudeCodeBackend and CodexBackend,
     including Codex deviations (discard sites at lines 698-701, 821-823,
     911, 1074-1075).
  2. Recovery Ladder — full mapping of all 16 RetryReason enum values
     to ACP session rungs (session/resume, session/load, session/new)
     with routing callbacks and the contract-nudge mechanism
     (_attempt_contract_nudge, _merge_token_usage).
  3. Capabilities Translation — field-by-field categorization of all 41
     BackendCapabilities fields into ACP-Mappable (17), autoskillit-Local
     Extension (18), and Forward-Declared (6) buckets, validated against
     _FORWARD_DECLARED in tests/arch/test_capability_consumption.py.
  4. Codex Shim Deviations — seven deviation categories (approval-bypass,
     developer_instructions, positional RESUME_SUBCOMMAND, no Channel B,
     no PTY, inspector RuntimeError, noqa discard sites) with all eight
     discard sites documented.

Update docs/design/README.md index to include the new document.

Refs #4053
…ming rule

The filename had 4 kebab segments (acp, session, contract, alignment) which
violates REQ-DOC-085 rule 4 (max 3 segments). Renamed to acp-session-contract.md
and updated the docs/design/README.md index accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ontract doc

CLAUDE_CODE_CAPABILITIES sets inspector_capable=False (not True). The capability
gate in ClaudeCodeBackend.build_inspector_cmd fires before the AssertionError stub,
making both backends behave identically. Updates L53 lifecycle table, L83-86
grouping rationale, and Section 4.6 table+prose to reflect the correct value.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…able

The # column did not appear in any other table in the document. Replaced
"Sites 1–6 / Site 7 / Site 8" prose cross-references with line-range and
method-name references to preserve navigability without the structural anomaly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ess noise)

Section 3.4 documented how the final field categorization differed from a prior
draft plan — derivation history that has no place in a normative reference doc.
The authoritative claim (membership validated against _FORWARD_DECLARED) already
appears in the Section 3.3 header.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Trecek Trecek added this pull request to the merge queue Jun 27, 2026
Merged via the queue into develop with commit 76d4b37 Jun 27, 2026
3 checks passed
@Trecek Trecek deleted the t5-p6-a4-wp1-provide-authoritative-reference-aligning-autosk/4053 branch June 27, 2026 11:36
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