Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
5fc2595
feat: remove duplicate recipients during migration
showxu Oct 29, 2026
ca7ed78
feat: merge agents.json migration and evaluated manifest dump
showxu Oct 29, 2026
84d88d4
feat: publish state transactions with verified identity and digest
showxu Oct 29, 2026
574bdc5
fix: compare transaction object kinds as mode_t on Linux
showxu Oct 29, 2026
a476125
fix(state): stage publications in private transaction containers
showxu Oct 29, 2026
c4046c1
feat(manifest): project and plan Agents.swift declaration edits
showxu Oct 30, 2026
d47bc9b
fix(manifest): report editability the editor accepts
showxu Oct 30, 2026
f8a8aae
fix(state): persist observed journals before recovery and prepare wat…
showxu Oct 30, 2026
0b6904a
feat: merge the Agents.swift declaration projection and edit planner
showxu Oct 30, 2026
48148bf
refactor(state): name transaction slots and disposal consistently
showxu Oct 30, 2026
dd26cf0
feat: merge the verified state transaction publication protocol
showxu Oct 30, 2026
0564db9
docs: specify the Agents.swift language and its state integration
showxu Oct 30, 2026
929c9f5
feat(state): read and write declarations through Agents.swift
showxu Oct 30, 2026
cebfcd0
docs: align the state documentation with the declaration wiring
showxu Oct 30, 2026
6d70fe3
test(state): compare resolved skill targets by path
showxu Oct 30, 2026
34a07d7
feat: merge Agents.swift state integration
showxu Oct 30, 2026
676e3ee
docs: merge the Agents.swift language reference and state documentation
showxu Oct 30, 2026
f52f1d3
docs: clarify missing declaration results
showxu Nov 6, 2026
88a6039
fix: resolve declared watch source identities
showxu Nov 6, 2026
a2d734f
fix(manifest): expand calls for multiline argument insertions
showxu Nov 6, 2026
2124c44
ci: capture release test host crash diagnostics
showxu Nov 6, 2026
19be46f
docs: define configuration application and connection checks
showxu Nov 6, 2026
bf3e455
fix: represent publication faults as task-local values
showxu Nov 6, 2026
7dfa15d
feat: preserve complete symbolic component declarations
showxu Nov 6, 2026
79013a4
fix: bind synchronization observers as task-local values
showxu Nov 6, 2026
14b20fb
fix: preserve complete declaration edit semantics
showxu Nov 6, 2026
2bc807d
ci: remove completed release crash diagnostics
showxu Nov 6, 2026
2cfac3f
fix: compose complete source transitions before validation
showxu Nov 6, 2026
994b820
fix: keep declaration planning stable across batches
showxu Nov 6, 2026
bff048b
feat: link component sources and exported groups
showxu Nov 6, 2026
e0bc7c0
fix: preserve component conflicts and protected ordering
showxu Nov 6, 2026
95c2823
fix: compare coalesced restrictions by complete clause
showxu Nov 6, 2026
cb7dba9
feat: add versioned component state and replay
showxu Nov 6, 2026
69b68b0
fix: bound ledger replay and resource resolution
showxu Nov 15, 2026
35c8ab4
test: cover YAML declaration behavior
showxu Nov 15, 2026
5e54b75
feat: integrate YAML declaration support
showxu Nov 15, 2026
2d4f3f7
feat: add YAML agent declarations
showxu Nov 15, 2026
eb6526a
test: align YAML acceptance fixtures with the contract
showxu Nov 15, 2026
eaf6961
test: integrate independent YAML acceptance coverage
showxu Nov 15, 2026
decfa8d
feat: verify private filesystem access before writing
showxu Nov 15, 2026
abeb960
fix(manifest): enforce compiled schema constraints
showxu Nov 15, 2026
aec5f33
fix(manifest): integrate schema constraint validation
showxu Nov 15, 2026
621d76f
chore: align transaction work with manifest interfaces
showxu Nov 15, 2026
f3bcb87
fix(manifest): preserve valid YAML editing and diagnostics
showxu Nov 15, 2026
39d64bb
fix(manifest): integrate complete YAML edit corrections
showxu Nov 15, 2026
3e426ae
fix: preserve implicit null separators in YAML edits
showxu Nov 15, 2026
15013d2
feat(core): preserve private materializations through state transactions
showxu Nov 15, 2026
bb5c1db
fix(manifest): integrate flow collection editing
showxu Nov 15, 2026
01ae130
chore: align state work with declaration editing
showxu Nov 15, 2026
50c9c62
docs: archive superseded manifest proposal
showxu Nov 15, 2026
24e9148
feat(core): edit owned native configuration regions
showxu Nov 15, 2026
41b2b14
chore: integrate current declaration contract
showxu Nov 15, 2026
87bbb4c
test(core): cover native configuration edit contracts
showxu Nov 15, 2026
b11c5cf
test: integrate native configuration behavior coverage
showxu Nov 15, 2026
c48f1fb
feat(core): coordinate shared configuration transactions
showxu Nov 15, 2026
0c8b350
chore(core): align transaction candidate with current documentation
showxu Nov 15, 2026
f661b2b
fix(core): preserve native configuration ownership and syntax
showxu Nov 15, 2026
4b2b446
fix(core): limit container creation evidence to pruning
showxu Nov 15, 2026
190d9b2
test(core): exercise concurrent readers with independent writers
showxu Nov 15, 2026
d39a7e3
fix(core): compose edits within TOML inline tables
showxu Nov 16, 2026
5dc4a47
feat(core): integrate lossless native configuration documents
showxu Nov 16, 2026
d8a0d8b
test(core): cover shared target races and orphan reservations
showxu Nov 16, 2026
e228331
test(core): expose scope lock contention through checkpoints
showxu Nov 16, 2026
5c0d12b
test(core): verify pending journal footprint readmission
showxu Nov 16, 2026
a20ccd7
feat(components): render pinned native MCP configurations
showxu Nov 16, 2026
6061230
feat(components): add bounded MCP connection transports
showxu Nov 16, 2026
cbc806b
fix(core): reconcile private receipts and recovery diagnostics
showxu Nov 16, 2026
c256068
fix(components): preserve MCP binding and source identities
showxu Nov 16, 2026
19437c2
feat(manifest): expose annotated schema for editor integration
showxu Nov 16, 2026
ca9bd60
feat(core): integrate shared configuration transactions
showxu Nov 16, 2026
e8e262f
fix(components): confirm owned process groups stop before completion
showxu Nov 16, 2026
f3ea784
feat(components): integrate native MCP configuration mappings
showxu Nov 16, 2026
2bd6e34
docs(manifest): describe watch source aliases accurately
showxu Nov 16, 2026
953bf63
feat(manifest): integrate offline editor schema support
showxu Nov 16, 2026
a3f829f
test: cover MCP initialization with blocked input
showxu Nov 16, 2026
fed584b
fix: preserve MCP cleanup and stream failure guarantees
showxu Nov 16, 2026
8e9fc1e
feat: coordinate registered native configuration targets
showxu Nov 16, 2026
8779b9c
feat: lower native components and staged MCP values
showxu Nov 16, 2026
721b2aa
feat: import declared component sources and locks
showxu Nov 16, 2026
fe62344
feat: unify component configuration lifecycle
showxu Nov 16, 2026
edb6402
feat: integrate MCP connection testing
showxu Nov 16, 2026
3e31582
fix: preserve read-only and recorded target boundaries
showxu Nov 16, 2026
22d891c
feat: map Claude and Cursor native component fields
showxu Nov 16, 2026
8629a6b
fix: preserve producer input and binding semantics
showxu Nov 16, 2026
741f3f6
fix: admit recorded recipient paths by byte identity
showxu Nov 16, 2026
0356e4e
feat: prune owned empty native containers atomically
showxu Nov 16, 2026
71f9e40
fix: preserve exact sources and authored prompt references
showxu Nov 16, 2026
40680f7
fix: preserve lifecycle ownership and selection semantics
showxu Nov 16, 2026
7c5ec93
test: compile Linux filename admission assertions
showxu Nov 16, 2026
e8047b6
fix: validate native hook fields and component profiles
showxu Nov 16, 2026
96007aa
fix: retain producer source occurrence identity
showxu Nov 16, 2026
0bf06fc
feat: integrate registered native target authority
showxu Nov 16, 2026
40c0004
feat: integrate atomic native container cleanup
showxu Nov 16, 2026
4cfe2ce
fix: retain indexed artifact content and nested resources
showxu Nov 16, 2026
cb41d6e
feat: integrate native component layouts and container cleanup
showxu Nov 16, 2026
747daff
feat: integrate source input conversion profiles
showxu Nov 16, 2026
1fb32d5
feat: integrate native configuration dependencies
showxu Nov 16, 2026
eae5de9
feat: expose bounded MCP connection tests
showxu Nov 16, 2026
20aa77d
fix: retain artifact pins within their source index
showxu Nov 16, 2026
e15c77d
feat: coordinate registered native component targets
showxu Nov 16, 2026
d32ec8a
test: use portable archive fixtures for indexed sources
showxu Nov 16, 2026
7c547b0
feat: decode typed native component contributions
showxu Nov 16, 2026
ae464cf
feat: expose immutable lifecycle inspection and outcomes
showxu Nov 16, 2026
3ae66cc
refactor: keep manifest schema with its validation owner
showxu Nov 16, 2026
22d1049
feat: integrate exact indexed component retention
showxu Nov 16, 2026
4acb932
feat: integrate typed native contributions
showxu Nov 16, 2026
17c17f9
refactor: keep configuration editing within the application
showxu Nov 16, 2026
b3ce7cb
fix: redact normalized MCP tool descriptions
showxu Nov 16, 2026
7aae550
feat: integrate explicit MCP connection testing
showxu Nov 16, 2026
c7f4532
feat: import native component declarations and provenance
showxu Nov 16, 2026
de2330d
fix: preserve native target authority and object kinds
showxu Nov 16, 2026
05aec24
chore: integrate current component dependencies
showxu Nov 16, 2026
40d1b14
chore: integrate lifecycle outcome dependency
showxu Nov 16, 2026
360867f
feat: share native input validation and preserve resource links
showxu Nov 16, 2026
c986ea8
fix: resolve local sources at their declared root
showxu Nov 16, 2026
300a11e
chore: integrate current component dependencies
showxu Nov 16, 2026
bf51c02
chore: integrate native input proposal contracts
showxu Nov 16, 2026
31bf109
fix: integrate local source root detection
showxu Nov 16, 2026
47b0165
chore: integrate native target coordination interfaces
showxu Nov 16, 2026
9464603
chore: integrate native member proposal contracts
showxu Nov 16, 2026
5dbc168
fix: preserve native import selection and binding semantics
showxu Nov 16, 2026
592bb0a
feat: integrate native field validation dependencies
showxu Nov 16, 2026
3b2f8f6
fix: retain root authority and transaction terminal evidence
showxu Nov 16, 2026
5eecd4b
feat: integrate shared native field validation
showxu Nov 16, 2026
3efe267
feat: integrate plugin input dependencies
showxu Nov 16, 2026
8a036c0
feat: compose native component updates and source imports
showxu Nov 16, 2026
42dcf6c
feat: integrate initialization root and outcome interfaces
showxu Nov 16, 2026
75c1a6e
feat: integrate native input and field dependencies
showxu Nov 16, 2026
75f978a
feat: preserve ordered hook occurrence ownership
showxu Nov 16, 2026
1d86a0b
fix: validate imported native fields consistently
showxu Nov 16, 2026
cb32cd4
feat: expose configuration initialization and watch operations
showxu Nov 17, 2026
be41471
feat: prepare MCP tests from exact component selections
showxu Nov 17, 2026
8f6f31c
feat: retain plugin member identity through resolution
showxu Nov 17, 2026
e340ac0
feat: publish private component trees atomically
showxu Nov 17, 2026
673cc18
chore: integrate private configuration publication
showxu Nov 17, 2026
c5e7f2d
chore: integrate selected MCP connection preparation
showxu Nov 17, 2026
14b341f
fix: retain final native regions and diagnostic origins
showxu Nov 17, 2026
b28f548
fix: preserve complete native import semantics
showxu Nov 17, 2026
57888ed
chore: integrate native field source coordinates
showxu Nov 17, 2026
ae1fb30
fix: report exact native import field locations
showxu Nov 17, 2026
3b0ef9e
feat: persist native region authority
showxu Nov 17, 2026
132d52e
feat: compose private native containers
showxu Nov 17, 2026
4c04620
feat: coordinate native and skill targets
showxu Nov 17, 2026
fe31fcb
chore: integrate native import diagnostics
showxu Nov 17, 2026
605a160
chore: integrate component lifecycle dependencies
showxu Nov 17, 2026
4c8cdf2
chore: integrate component lifecycle dependencies
showxu Nov 17, 2026
c285b26
feat: preserve native array continuity
showxu Nov 17, 2026
39f83dd
chore: integrate plugin composition dependencies
showxu Nov 17, 2026
5b275d8
feat: preserve private native array continuity
showxu Nov 17, 2026
a739245
feat: support finite skill lifecycle and configuration previews
showxu Nov 17, 2026
b9a3082
feat: describe captured MCP connection tests
showxu Nov 17, 2026
bd1e157
fix: validate complete plugin parent relations
showxu Nov 17, 2026
f381ca2
feat: render selected native plugin components
showxu Nov 17, 2026
531c95f
feat: integrate private native array continuity
showxu Nov 17, 2026
3b70397
feat: integrate captured MCP connection descriptions
showxu Nov 17, 2026
40dbee1
fix: integrate plugin relation validation
showxu Nov 17, 2026
30b454c
fix: preserve nested native array continuity
showxu Nov 17, 2026
6740f8c
fix: preserve valid empty YAML collections
showxu Nov 17, 2026
47855cc
fix: describe the selected MCP executable
showxu Nov 17, 2026
9880d57
fix: preserve source identity and instruction diagnostics
showxu Nov 17, 2026
d97947b
fix: preserve scoped lifecycle and restore invariants
showxu Nov 17, 2026
532cdb8
feat: integrate native plugin rendering
showxu Nov 17, 2026
c3a9209
fix: integrate YAML collection editing
showxu Nov 17, 2026
86b0a8c
feat: integrate captured connection descriptions
showxu Nov 17, 2026
ecc90ee
fix: integrate source and diagnostic consistency
showxu Nov 17, 2026
696c81e
fix: preserve imported Gemini package metadata
showxu Nov 17, 2026
25e63b9
fix: integrate imported plugin metadata
showxu Nov 17, 2026
5fdc84c
fix: retain producer version in generated plugins
showxu Nov 17, 2026
cc99944
feat(watch): capture acknowledgment context and completion
showxu Nov 17, 2026
3cb0848
feat(clients): inspect local clients and supported configuration
showxu Nov 17, 2026
d4664f1
fix(core): retain Git error context through source expansion
showxu Nov 17, 2026
276e63f
chore: integrate located source diagnostics
showxu Nov 17, 2026
1e1be31
chore: integrate watch acknowledgment inspection
showxu Nov 17, 2026
c39dc5f
feat(core): compose native authority and generated plugins
showxu Nov 17, 2026
e9f57fa
chore: integrate client inspection and confirmed watch operations
showxu Nov 17, 2026
10cba6e
test: verify temporary listing alongside watch subscription
showxu Nov 17, 2026
0199466
feat(instructions): expose mapping read dependencies
showxu Nov 17, 2026
32fe2bf
fix: preserve shared targets and preview generated members
showxu Nov 17, 2026
93f1fbb
fix: track external recovery admission inputs
showxu Nov 17, 2026
7c075fb
feat: expose captured importer choices and symbolic inputs
showxu Nov 17, 2026
1c3cdaf
feat: integrate importer choices with update preparation
showxu Nov 17, 2026
6b5def8
test: integrate temporary source listing coverage
showxu Nov 17, 2026
1feb826
feat: integrate source selection prerequisites
showxu Nov 17, 2026
25e5e23
fix: integrate instruction recovery read locations
showxu Nov 17, 2026
92a1e2e
fix: preserve contained native skill supporting resources
showxu Nov 17, 2026
a2eb150
fix: track concrete implicit source inputs
showxu Nov 17, 2026
4bcea8f
feat: bind finite additions to captured destination state
showxu Nov 17, 2026
1d0bf6b
fix: integrate contained skill supporting resources
showxu Nov 17, 2026
0f6c44a
fix: integrate concrete source read footprints
showxu Nov 17, 2026
02c543b
feat: enumerate representable source catalog choices
showxu Nov 17, 2026
006aff0
feat: integrate captured source addition prerequisites
showxu Nov 17, 2026
cd302e8
fix: preserve concrete inputs in component discovery
showxu Nov 17, 2026
1c3a9bb
fix: preserve captured import inputs and package metadata
showxu Nov 17, 2026
341a832
fix: integrate precise discovery read locations
showxu Nov 17, 2026
1640400
feat: add captured source catalog selection
showxu Nov 17, 2026
3ca8e36
fix: integrate import evidence and discovery inputs
showxu Nov 17, 2026
d27f8e3
test: verify native catalog lifecycle integration
showxu Nov 17, 2026
450317c
feat: integrate captured source selection
showxu Nov 17, 2026
e9a8680
feat: integrate source catalog preparation
showxu Nov 17, 2026
6e6774e
feat: distinguish metadata and content read dependencies
showxu Nov 17, 2026
2f3cc8b
chore: integrate typed read dependencies
showxu Nov 17, 2026
9f50b49
feat: preserve native component source coordinates
showxu Nov 17, 2026
bc023a1
chore: integrate native source coordinates
showxu Nov 17, 2026
dc92091
chore: integrate local source snapshot correction
showxu Nov 17, 2026
3e9037c
fix: copy local snapshots without source clone events
showxu Nov 17, 2026
c4076e4
fix: preserve equivalent ledger requirements
showxu Nov 17, 2026
d7854ce
chore: integrate ledger requirement comparison
showxu Nov 17, 2026
d94eb1c
fix: qualify client observation file types
showxu Nov 17, 2026
88829fd
Merge branch 'feat/full-agent-management-security' into feat/full-age…
showxu Nov 17, 2026
ac26b9c
fix: qualify private materialization file types
showxu Nov 17, 2026
4951994
Merge branch 'feat/full-agent-management-security' into feat/full-age…
showxu Nov 17, 2026
c6547a7
feat: replace sources with typed reference updates
showxu Nov 17, 2026
a24e1a5
Merge branch 'feat/full-agent-management-import' into feat/full-agent…
showxu Nov 17, 2026
46cbc65
fix: preserve mapping indentation when adding fields
showxu Nov 17, 2026
25187e0
Merge branch 'feat/full-agent-management-linking-integrations' into f…
showxu Nov 17, 2026
ecfb705
test: qualify native tree file type
showxu Nov 17, 2026
70148ec
fix: honor exact declared instruction references
showxu Nov 17, 2026
752b4cd
Merge branch 'feat/full-agent-management-lifecycle' into feat/full-ag…
showxu Nov 17, 2026
55bf4d5
fix: retain symlinked directory executable metadata
showxu Nov 17, 2026
417de46
Merge branch 'feat/full-agent-management-import' into feat/full-agent…
showxu Nov 17, 2026
1958b53
test: verify admitted recovery and publication races
showxu Nov 17, 2026
388da96
Merge branch 'feat/full-agent-management-security' into feat/full-age…
showxu Nov 17, 2026
19f0df0
fix: bind catalog choices to composed source evidence
showxu Nov 17, 2026
7f5d71a
Merge branch 'feat/full-agent-management-linking-integrations' into f…
showxu Nov 17, 2026
51b19cc
test: replay generated plugin fixtures on the host platform
showxu Nov 24, 2026
f88e6dd
fix: preserve pinned evidence for copied catalog skills
showxu Nov 24, 2026
95596bb
test: integrate host platform replay coverage
showxu Nov 24, 2026
fa03d73
fix: integrate catalog revision validation
showxu Nov 24, 2026
e4ed1ba
docs: describe the configuration management release
showxu Nov 24, 2026
837594d
perf: group transaction requests by receipt and reuse parent validation
showxu Nov 24, 2026
b01aaa1
perf: integrate transaction routing for large configurations
showxu Nov 24, 2026
f918330
perf: reduce repeated journal decoding and ancestry checks
showxu Nov 24, 2026
46c3bf9
perf: integrate large configuration recovery improvements
showxu Nov 24, 2026
63df417
test: signal Linux worker readiness before its leader exits
showxu Nov 24, 2026
f294897
perf: reuse committed ledger roots during inventory and planning
showxu Nov 24, 2026
47378ef
test: verify Linux worker readiness and group cleanup
showxu Nov 24, 2026
22e88e9
perf: bound ledger reads for installed configurations
showxu Nov 24, 2026
c805469
perf: reuse committed roots when inspecting components
showxu Nov 24, 2026
0ce4ff8
perf: keep scope inspection on its admitted ledger
showxu Nov 24, 2026
d0d8735
fix: admit large configurations on bounded worker stacks
showxu Nov 24, 2026
456ea30
test: isolate connection timeout from protocol assertions
showxu Nov 24, 2026
c15076c
fix: support large configurations in native processes
showxu Nov 24, 2026
23a666b
test: verify coordination within available process limits
showxu Nov 24, 2026
3979cb2
test: validate resource limits on supported platforms
showxu Nov 24, 2026
11365a4
ci: validate public agent declarations with shared policy
showxu Nov 24, 2026
048cbf3
fix: support Swift 6.3 in MCP stream handling
showxu Nov 24, 2026
3111f90
ci: align shared workflow revisions
showxu Nov 24, 2026
a9ded52
ci: run Linux suites with their required runtime
showxu Nov 24, 2026
14be215
ci: serialize time-sensitive configuration tests
showxu Nov 24, 2026
e5cc055
ci: allow time for both macOS test configurations
showxu Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 0 additions & 17 deletions .agent/agents.json

This file was deleted.

13 changes: 13 additions & 0 deletions .agent/agents.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 1
sources:
agents-tools:
url: https://github.com/agents-tools/.github
requirement: {branch: master}
subpath: .agent
components:
- kind: instructions
agents: [claude-code, codex]
sections:
- {name: guide}
- {name: shared/swift-package-route, source: agents-tools}
- {name: shared/swift-package-tests, source: agents-tools}
13 changes: 13 additions & 0 deletions .github/ci/linux-tests.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG SWIFT_IMAGE
FROM ${SWIFT_IMAGE}

ARG TEST_UID
ARG TEST_GID
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 \
&& rm -rf /var/lib/apt/lists/* \
&& (getent group "$TEST_GID" || groupadd --gid "$TEST_GID" test-runner) \
&& (getent passwd "$TEST_UID" || useradd --create-home --uid "$TEST_UID" --gid "$TEST_GID" test-runner)

USER ${TEST_UID}:${TEST_GID}
WORKDIR /workspace
27 changes: 25 additions & 2 deletions .github/swift-package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
{
"commands": [
{
"name": "manifest-schema-generation",
"run": "python3 Scripts/generate-manifest-schema.py --check"
},
{
"name": "linux-swift-6.4.1",
"runner": "ubuntu-24.04",
"run": "python3 Scripts/test-linux.py swift:6.4.1-noble@sha256:6304481cf2717966b7ba175162e397ea2f2cc3161909f2b2a5cf40036079a0f7"
}
],
"test_configurations": [
"debug",
"release"
],
"compilers": [
{"name": "macos-26-xcode-26.6", "runner": "macos-26", "xcode": "26.6"}
]
{
"name": "macos-26-xcode-26.6",
"runner": "macos-26",
"xcode": "26.6"
}
],
"timeout_minutes": 120,
"environment": {
"SWT_EXPERIMENTAL_MAXIMUM_PARALLELIZATION_WIDTH": "1"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
permissions:
contents: read
actions: read
uses: agents-tools/github-workflows/.github/workflows/swift-package.yml@bb0a8c8c39827a364b9d3cbf4069754e7d975586
uses: agents-tools/github-workflows/.github/workflows/swift-package.yml@c2d32f7279064a45dd7cc152bd4be471ddc8ce33
2 changes: 1 addition & 1 deletion .github/workflows/source-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
policy:
if: github.event_name != 'push' || !github.event.deleted
uses: agents-tools/github-workflows/.github/workflows/policy.yml@bb0a8c8c39827a364b9d3cbf4069754e7d975586
uses: agents-tools/github-workflows/.github/workflows/policy.yml@c2d32f7279064a45dd7cc152bd4be471ddc8ce33
with:
allow-terms: |
ChatGPT
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ DerivedData/
.netrc
/.agent/*
!/.agent/instructions/
!/.agent/agents.json
!/.agent/agents.yaml
!/.agent/agents.resolved
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ publication follows the [release checklist](Documentation/Reference/Release.md).

## Unreleased

## 0.3.0

### Added

- Linux support.
- The `AgentsManifest` library reads and edits YAML declarations, reports field
locations and preserves comments and unrelated text during configuration edits.
- Consumers can inspect and import sources, select exported groups, preview
native component changes and apply the reviewed configuration. An explicit
MCP connection test supports initialization and tool discovery.

### Changed

- Projects declare configuration in `.agent/agents.yaml` and users in
`~/.agents/agents.yaml`. Prepare and verify the declaration in each existing
scope before applying it with the updated CLI. See the
[manifest reference](Documentation/Reference/Manifest.md).
- `agents.resolved` uses the version 2 JSON ledger. It records locked resources
and ownership of native configuration. Both CLI consumers must use the same
ledger format. See [state and recovery](Documentation/Architecture/State.md).

## 0.2.0 - 2026-10-27

### Added
Expand Down
66 changes: 40 additions & 26 deletions Documentation/Architecture/Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ revision, path and original-byte hash. A container of a local source declared
in the same scope cannot hold a target.

A project's own files live in `.agent/instructions/` and are referenced by bare
name; `alias:name` references a declared source. Own files are read from the
name; `.section(name:source:)` in `agents.yaml`, or `alias:name` in operation
arguments, references a declared source. Own files are read from the
working tree as it is. Their lock records have source `.`, the project-relative
path and the hash, and no revision. Resolution and restore read only the named
file, `.agent/instructions/<name>.md`, and so does adding named files, so other
files in the container affect only listing. Restoring a lock fails with `InstructionError.ownChanged` when an
own file's hash changed; update reads the current file.
path and the hash, and no revision. Resolution reads only the named file, `.agent/instructions/<name>.md`, and so does
adding named files, so other files in the container affect only listing. Locked
restore publishes the frozen output and preserves the current own source file.
Update reads the current file; doctor reports changes since the recorded hash.

`add(InstructionAddOptions, beforeApply:)` accepts a source alias or string,
or `.` for own files, plus an optional alias, requirement, search path, ordered
Expand Down Expand Up @@ -142,10 +143,18 @@ source reference. Removal also removes those sections from prompts. Empty
prompts are removed. Other source declarations and skill records remain
available to their owners.

Export maps a user target to every locked section from the lock alone. A
project section's placement needs its `paths`, read from the working tree or
the cache without fetching; a section whose content is unavailable is listed as
unplaced.
Export maps each scope's locked deployments and prompt sections from ledger
metadata alone. `InstructionMapping.readDependencies` contains `ReadDependency.entry`
values for declaration, resolved and watch-state leaves, the scope root and state
directory, scope lock, recovery markers and attempted external admission paths.
Absent paths and failed admission anchors remain available for missing-lock,
pending-recovery and unavailable statuses. Permitted scope-root aliases retain
both logical and physical paths; forbidden state-directory and lock links do not
introduce their destinations as authority. Entry dependencies observe the named
path and its ancestors, including creation, replacement and access changes; they
do not observe unrelated descendants of directory entries. Mapping does not read
section bodies, append content or deployed target bytes; content inspection
operations supply their own dependencies.

Planning validates required content before applying. Reports include old and
new section records, target before/after bytes and recipients, drift, foreign
Expand All @@ -163,15 +172,14 @@ The optional throwing `beforeApply` callback runs before replacements so a
consumer can show differences or cancel. Target bytes are checked again after
the callback; intervening edits stop the commit. Update also revalidates state
bytes/presence, target ancestry and all Claude forwarding decision inputs
before and after retention. `InstructionUpdatePlan` supplies package-visible
planning, validation, retention and staging to both standalone updates and
`AgentsUpdates`; the latter commits both kinds together as described in
[Updates](Updates.md).
before and after retention. Lifecycle methods are public extensions in
`AgentsUpdates`, which owns the complete linked ledger and one transaction for
selected deployments, declaration, resources and pruning. Consumers import that
product for lifecycle and ChatGPT export; pure text APIs remain here.
See [Updates](Updates.md) for selection, prepared handles and exact restore.

Mutations hold the scope writer lock and use the durable journal for instruction
files, forwarding files, declaration, lock and cache pruning. Exact source
materializations are verified and published through cache transactions before
the target/state transaction. The journal has fixed project instruction paths,
files, forwarding files, declaration, ledger, materializations and cache pruning. The journal has fixed project instruction paths,
nested project `AGENTS.md` and `GEMINI.md` paths, configured user instruction
roots and new top-level named Markdown files in `.agent/instructions/`.
Initialization uses the project's state lock and journal without creating a
Expand Down Expand Up @@ -199,17 +207,23 @@ generated files, takes over others only with `replace`, and records targets as

## ChatGPT Prompts

`instructions.chatgpt.<name>` has ordered `sections` and an optional scope-relative
`append` file. Update locks prompt sections with file targets. Reports list
prompts whose section content, order, membership or append path changed. A
revision change with identical section hashes alone does not mark a prompt
changed. Append files remain live owner content; their independent edits do not
require a lock update.
An instructions component's `chatgpt` mapping declares named prompts with ordered
`sections` and an optional `append` path. Update locks prompt sections with file
targets. Reports list prompts whose section content, order, membership or append
path changed. A revision change with identical section hashes alone does not mark
a prompt changed.

Render verifies locked hashes, renders sections as in targets without the
notice, and appends the custom file's bytes. It fails without locked sections or
if an append path escapes the scope through a symlink. It never writes to
ChatGPT.
For consumer-authored prompts, append remains current owner content. Its authored
path is project-relative in project scope and home-relative in user scope. Update
and installation do not require that export-only file to exist. Export verifies
locked section hashes, renders them without the notice and reads the current append
bytes. Missing, unreadable or escaping append content fails export; recorded bytes
are never a fallback. Append edits do not require a lock update. Export never writes
to ChatGPT.

The component freeze seam records consumer append coordinates as payload metadata,
separate from deterministic installation inputs. Producer-owned append content is
instead read from the selected source snapshot and retained as an exact resource.

## Diagnostics

Expand Down
98 changes: 98 additions & 0 deletions Documentation/Architecture/NativeDocuments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Native Documents

`NativeDocuments` is a package-only byte inspection and regional editing layer.
It receives `Data`, a fixed JSON/JSONC/TOML format, an operation budget and typed
region intents. Adapters own client dialects and ownership decisions. Filesystem
access, routes, secrets, locks, freshness, transactions and publication stay with
their existing owners.

## Inspection and evidence

`NativeDocument` preserves the supplied bytes. Regions consist of exact decoded
keys and array occurrence evidence. Key and string identity uses decoded UTF-8
sequences. Canonically equivalent Unicode strings remain distinct native values.
Objects retain ordered entries; projecting a region that Core dictionaries cannot
represent returns no Core value. TOML date/time and non-finite numbers likewise
remain native atoms, retaining their lexemes.

`read` returns an optional package-only observation with a Core value when
representable, native kind, raw numeric lexeme, explicit projection failure,
ephemeral byte ranges, exact structural fingerprint
and array occurrence evidence. Observations and prepared bytes can contain
materialized secrets; they are neither preview records nor serialized ledger
models. Diagnostics use fixed codes and byte ranges, without source excerpts.

A put requires an absent expectation or matching owned observation. Removal
requires matching owned evidence. Empty object-container removal requires explicit
caller-supplied creation evidence and fails if comments must remain. An existing
unmanaged region is never adopted by matching a desired value. Missing object
ancestors can be created; the preparation reports created container regions.

Stable array IDs are exact string fields and must be unique. Without an ID,
observations retain a structural fingerprint, ordinal and neighboring evidence.
Duplicate content is rejected when it cannot be uniquely identified; an ordinal
alone does not authorize a match. Individual occurrence edits preserve other
array entries and their order. An absent terminal occurrence with a stable ID can
append an exactly matching object. Owned array-of-table sets diff their entries
and append complete new occurrences; removing the final occurrence retains an
explicit empty array. New child tables bind only where their native scope can be
proved.

## Parsers and edits

JSON has one root and preserves raw numeric lexemes. JSONC comments and trailing
commas are independent fixed-dialect capabilities. The scanner validates string
escapes/surrogates and decoded duplicate keys. A leading UTF-8 BOM is preserved.

TOML uses the fixed grammar in `TreeSitterTOML` with the existing formal runtime
dependency for locations. `TOMLSemantics` contains the licensed parser/validator
subset from pinned TOMLDecoder, with exact key identity, lexical scalar
classification, complete lazy validation, actual EOF checks and cooperative
resource admission. Each target records upstream file hashes and patch details.
The semantic parser remains the validity owner when the older CST grammar
cannot locate legal TOML syntax; such documents can be inspected and return
`syntaxNotLocated` for edits. No error recovery tree is used for editing.

The TOML index resolves quoted/dotted keys, inline tables and array-of-table
headers in source order. Child table headers bind to the latest array table.
Scalar updates replace only the value span. Object updates diff members;
removal uses individual owned entries and headers across table blocks. Inline
punctuation is located independently of comments. Structural edits with ambiguous
trivia or scope are refused. New members use their containing table block or a
precise new table declaration, preserving subsequent table scope.

Every preparation checks overlap and ownership, builds the complete expected
native tree, constructs nonoverlapping patches, copies every unselected byte
segment unchanged and reparses the complete candidate. Only a candidate equal to
the expected tree is returned. No-op intent returns the original bytes, including
escape spelling, newline style, comments and key order. Multiple internal drafts
are private; failure returns no partially prepared result.

JSON integer/decimal declarations can encode the same numeric token. TOML
integer-looking decimal declarations append `e0` to retain native float kind.
Encoding and comparison preserve exact decimal text without a Double round trip.
Core projection removes TOML digit separators and a leading plus while retaining
the original numeric token separately in the observation.
Declarations and ledger identity remain with their owners, independently of
native byte no-ops.

## Budget and cancellation

`NativeDocumentBudget` is one serial operation-scoped mutable reference supplied
by the caller. Input admission, semantic construction, node/depth checks, decoded
storage, scans/key comparisons, reads, fingerprints, rendering, patches, drafts
and reparses consume that reference. No stage resets it. Limits are explicit
caller inputs rather than copies of YAML or ledger policy.

Before entering the C parser, the entire input must fit the caller's maximum
uninterrupted-byte envelope. This covers strings, keys, skipped comments and
whitespace alike. The fixed grammar also reserves a conservative logical node
envelope of four nodes per input byte plus the document root before CST entry;
traversal and progress callbacks consume additional work. The progress callback
checks the same cancellation source and budget between parser work intervals.
All parser/tree handles are synchronously released on every exit.

These are conservative logical admission units and cooperative cancellation,
not exact heap/RSS quotas or hard real-time deadlines. A caller requiring a
smaller uninterrupted interval must supply a smaller envelope. There is no
background timeout task or filesystem provider in this layer.
Loading
Loading