Repository navigation
refactor(cli): converge the cli on its target architecture - #1253
Draft
blafourcade wants to merge 2036 commits into
Draft
blafourcade wants to merge 2036 commits into
blafourcade wants to merge 2036 commits into
Conversation
This was referenced Nov 16, 2026
blafourcade
force-pushed
the
refactor/cli-target
branch
from
November 19, 2026 06:10
aaaf012 to
410bf9f
Compare
… the cache dir private Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…epository Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s the pure model it is Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Report its own model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p the presentation resolver Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…candidates by use case Confirmation and skippedWarning become a domain model, the native-call and source-check helpers stop posing as use cases, and ResolvePurgeCandidate drops its catch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ers behind a router Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e use case skips The jsonc adapter now answers a file it cannot plan as a refusal naming why, so the main session models skip it without catching. A settings file that exists but cannot be read now stops the run instead of being skipped. Planning ends before the record is saved and before any write, so the stop leaves nothing half-written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecute Rename the removal and clean use cases to *.use-case.ts with a single execute, open a global restore through execute, and keep the project hooks helpers out of the use-case kind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ads the file for Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… refusal shape in domain Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cope Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # cli/src/composition/orchestration/marketplace.ts # cli/src/composition/shared.ts # cli/src/contexts/host-registration/application/register/marketplace/reclaim-dead-registration.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…presentation table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e, wired in composition Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d the host reads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # cli/src/composition/installation.ts # cli/src/composition/orchestration/clean.ts # cli/tests/orchestration/testing/project-cleaner.builder.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… cases Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se case Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eclared it Removing a project marketplace deleted its built cache but left the host's own declaration (claude writes it to .claude/settings.local.json at local scope). The removal now proves the host will let go of it before touching anything, then withdraws it through the same host withdrawal a project clean runs, narrowed to that marketplace, and forgets it from the record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… not orchestration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecord domain Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at owns their ports The codecs implement ports only tools declares, so they move from shared/infrastructure to contexts/tools/infrastructure. The kind table lists that folder once instead of two files, and the guard that forbade an adapter under tools goes, with the earned-sharing case that existed for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mats as toml Kilo and opencode declared their JSONC writer as an instance on the MCP section, while codex got its TOML codec through the formats a tool is defined with. A JSON config that keeps comments now says so as data, and the composition wires the writer beside the codec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…frontmatter A rule installed for kilo kept its frontmatter, while the skill writes none for a tool that reads no frontmatter: the scoped rule opens with its "Applies to files matching" line, an unscoped one with its body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion function Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e distribution use case Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the clean wiring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eclares Removing a project marketplace left its machine-local declaration behind, and nothing noticed because the doctor only checked declarations that were missing. It now also names a declaration whose source lies in this project's built cache while no registered marketplace owns it, and words how to remove it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ile it never rewrites A removal reads the shared settings file only to find the entry it takes out. A file too malformed to read holds none, so nothing is written and the warning that the keys are being rewritten was false. The removal reads through a quiet read of the same tracked writer, and the writer is passed to the project integration instead of defaulting to a second one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t can hold it Walking every record also reached a record a hand-edited manifest kept for a tool that registers no marketplace. The walk is back to the tools the caller names: the ones the purge proved registered it, and the AI tools for a project withdrawal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he by the platform's rules The check for a declaration pointing into the project's built cache now uses the shared path parser with the platform it is given, instead of its own prefix test that misread a folder named with a leading double dot and ignored the platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es empty Pruning the directories a deleted plugin file leaves empty now stops at the tool's own folder, or at the user plugins directory for a user-scope plugin, instead of climbing until a directory is not empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rebuilt target measures 862.8 KB after the fix waves. Tree-shaking saved only about 4 KB, so the final size pass is closed and the budget moves to 880 KB, 2.0% over the measurement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s delivered its follow-up Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fine Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ves the turn Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Work in progress toward the CLI target in
aidd_docs/tasks/2026_11/2026_11_06_test-harness-strategy/target/. This branch is the single place where the remaining target work lands: framework split (E, F, G), thenextintegration, translate, profiles in composition, the zero-debt audit and the docs.Stacked on #1247 for now, so CI only checks the scopes this branch touches. It will be retargeted to
nextonce complete, and the full body (per-step summary, test-line ledger, traceability) replaces this one.Current content
WithdrawFromHost,RefreshHostPlugin, marketplace sync registration), doctor no longer imports host ports, clean goes throughWithdrawFromHost.isAvailable()now runs inside the per-tool try, so a throwing activator is reported inerrorsinstead of aborting.🤖 Generated with Claude Code
https://claude.ai/code/session_01XeK3mFAeMojRabhZQ9z9iq