Skip to content

feat: full agent configuration management - #38

Closed
showxu wants to merge 265 commits into
masterfrom
feat/full-agent-management
Closed

showxu wants to merge 265 commits into
masterfrom
feat/full-agent-management

Conversation

@showxu

@showxu showxu commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Projects and users describe agent configuration in agents.yaml. The manifest API provides field-level diagnostics and prepares edits that preserve comments and unrelated text. The version 2 agents.resolved ledger records the resources and native configuration owned by the scope.

The shared lifecycle resolves exported groups and selected components, previews their effects and applies the reviewed changes in a recoverable transaction. Source import, scope inspection and optional MCP connection tests use the same component model as the CLI and macOS app.

Compatibility

Core 0.3.0 changes the declaration and ledger expected by both CLI consumers. Prepare each existing scope's YAML declaration before applying it. See the manifest reference and state documentation.

Verification

A file-level comparison covered 40 project configurations. A separate user configuration installed 196 distinct skills across three clients, yielding 539 installations. Cold installation and recovery after a process was interrupted during publication both produced the expected instruction bytes and skill contents. A second preview reported no changes in each case.

showxu added 28 commits October 29, 2026 21:44
The JSON validator accepts repeated recipient IDs while the manifest domain
rejects them. Migration keeps the first occurrence in each agents array and
reports every removed element as migration.duplicateRecipient, so every
valid declaration still has a deterministic conversion.
Adds the compatibility projection from the JSON declaration to the
declaration IR, migration to canonical Agents.swift with the reported
inert-override, source-alias and duplicate-recipient transformations and a
full front-end self-check, the evaluated JSON dump model, and semantic
requirement comparison that keeps pins and lock bytes for equal ranges.
The scope journal records each operation's expected preimage, staged object
and intended postimage before publication. Absent destinations publish with
atomic no-replace rename, existing ones by exchange with preimage
verification, and deletions through journal quarantine. Recovery classifies
objects by recorded physical identity and digest, keeps external objects and
reports unresolved conflicts, and apply rechecks preparation conditions
before retention and before publication.
CPlatform and Glibc both import the S_IF* macros on Linux with different types, so untyped conversions were ambiguous. Object kinds keep the st_mode type.
Each destination parent gets a transaction-private container whose name and
identity are journaled before anything is created inside it. Staging is sealed
once after construction, so recovery no longer rescans or adopts scratch
content. Recovery checks the objects each operation kind and progress implies
and reports a missing preimage or quarantine object as unresolved.

Capability probes run inside the container, are cached per device and classify
errno into unsupported, conflict and other failures. Cross-directory directory
publication journals a temporary owner-write grant and restores the recorded
mode by inode. Journal persistence is merged into one file sync, rename and
parent sync; the journal carries a format version.
Project evaluated manifests onto the deployable declaration subset and
report unsupported structure with its source span. Plan declaration
changes as minimal, comment-preserving document operations, printing a
new manifest canonically when none exists.

Remove the agents.json migration generator, its compatibility
projection and its fixtures; the printed manifests remain as printer
goldens.
Member values and omitted signature arguments are direct edits; only
references, concatenations and normalized fields remain read-only. A
test pins the report to the editor's own acceptance for every value
node of a representative manifest, and the dump goldens follow.
…ch writes

Recovery syncs the observed journal's directory before it acts in any
phase. Watch add, seen and remove capture preparation evidence before
contacting Git and validate it before publication.

Check preimages before entering publication, record disposal conflicts
on the failing container, and scope rename capability to one
transaction. Name recovery slots by their contents, move checkpoints,
disposal and the session into their own files, model content as a
source and expectation, and keep CPlatform within DirectoryHandle.

Tests confirm a stopped child before signalling it and bound its
termination. The full kill-point matrix runs under the
publicationMatrix tag with AGENTS_PUBLICATION_MATRIX=full.
Rename recovery slots and the disposal phase consistently across the
journal, checkpoints and documentation, and give each recovery rule one
home. Transactions now take a single content source and one
requireUnchanged(since:) precondition hook.

Make every checkpoint unique within a recorded process. Cover
directory-mode restoration in the default kill-point matrix, and
require each recovery seed to reach its representative points.
Publish the manifest language 1.0 reference, retire the implemented
proposal sections to it and to the state architecture, and describe
declaration writes, the absent-declaration rule and read-only loads.
The vocabulary inventory test reads the reference.
State stores read the declaration by parsing Agents.swift and project
it onto the deployable subset. Every declaration write is planned into
comment-preserving edits before any side effect, then published with
its preparation evidence in the same transaction as the lock and
watch state.

A scope with a lock or watch state but no declaration is an error, not
an empty declaration. Public loads are read-only and report pending
recovery, recovery no longer reads the declaration, and watch changes
return the affected source. Declaration types have no serialized form.
@showxu showxu closed this Nov 29, 2026
@showxu
showxu deleted the feat/full-agent-management branch November 29, 2026 12:46
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