Skip to content

Computer use CLI for AI agents

docs: make AGENTS.md the single agent instructions file and correct stale docs (#329)

Lahfire2e28e3b39fc
diff --git a/.gitignore b/.gitignore
index a6afdfcbd..09ce4b41e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -61,7 +61,6 @@ logs/
.agents/
.cursor/
.context/
-AGENTS.md
skills-lock.json
todos/
diff --git a/CLAUDE.md b/AGENTS.md
similarity index 96%
rename from CLAUDE.md
rename to AGENTS.md
index 1bbd256cd..e9a53bfd8 100644
--- a/CLAUDE.md
+++ b/AGENTS.md
@@ -1,4 +1,4 @@
-# CLAUDE.md
+# AGENTS.md
Guidance for AI coding agents working in this repository.
@@ -68,15 +68,14 @@ check. Bypass it only in an emergency: `git commit --no-verify` or `SKIP_PRECOMM
## Branches and commits
-- `main` carries macOS and Windows. Fixes and features for them branch off `main` and merge into `main`.
-- Linux develops on the integration branch `feat/linux-adapter`. Each sub-phase is cut from it as
- `feat/linux-<n.n>-<slug>` and merges back into it, never into `main`, and never rebases onto `main`. The branch
- reaches `main` once, as one release-noted `feat!` promotion after full-branch review, live E2E and a perf check.
+- `main` carries macOS, Windows and Linux. Fixes and features branch off `main` and merge back as squash merges;
+ `main` requires linear history.
- All commits are authored by Lahfir. Never add `Co-Authored-By` lines, AI attribution or "Generated with" footers.
- Use Conventional Commits: `feat:`, `fix:`, `feat!:` or a `BREAKING CHANGE:` footer, `docs:`, `style:`, `refactor:`,
`perf:`, `chore:`, `ci:`, `test:`. Write `type: imperative summary` in lowercase after the colon, and say why.
-- Versions are pre-1.0 (`bump-minor-pre-major` and `bump-patch-for-minor-pre-major` in `release-please-config.json`):
- a breaking change cuts a minor and a `feat:` cuts a patch.
+- Versions follow semver from 1.0.0. A release is one PR that bumps the workspace version in `Cargo.toml`,
+ `Cargo.lock`, `npm/package.json` and `CHANGELOG.md`. Merging it starts `.github/workflows/release.yml`, which
+ publishes npm and the GitHub release; `docs/releasing.md` has the steps.
## Architecture
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index cd5ae1bb2..47667973c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -5,7 +5,7 @@ agent-desktop is a native Rust CLI and FFI library that gives AI agents structur
## Kinds of contributions that fit this project
- **Bug fixes** — wrong JSON output, incorrect ref resolution, `STALE_REF` on a stable target, etc.
-- **New commands** — additions to the 60-command surface (56 operational, four held-input names fail closed); see the steps in [CLAUDE.md](CLAUDE.md#architecture)
+- **New commands** — additions to the 60-command surface (56 operational, four held-input names fail closed); see the steps in [AGENTS.md](AGENTS.md#architecture)
- **Platform adapters** — fixes and features for the macOS, Windows and Linux adapters, each implementing `PlatformAdapter`
- **App-specific quirks** — documented edge cases for specific apps (Electron, game engines, etc.) under `skills/`
- **Docs and skill files** — keeping `skills/agent-desktop*/` accurate when behaviour changes
@@ -103,7 +103,7 @@ SKIP_PRECOMMIT=1 git commit -m "..."
## Engineering rules
-[CLAUDE.md](CLAUDE.md) holds the engineering rules, and they bind people and coding agents alike: Conventional
+[AGENTS.md](AGENTS.md) holds the engineering rules, and they bind people and coding agents alike: Conventional
Commits, the 400-line cap per Rust file, no inline comments, no delivery-plan references in shipped source, one domain
type per file, error handling, core isolation, and the steps for adding a command. The pre-commit hook and CI enforce
most of them.
@@ -112,7 +112,7 @@ most of them.
## Submitting a pull request
-1. **Pick the right base branch.** Branch from `main` and open the PR into `main` for macOS, Windows, core and FFI work. Linux adapter work goes to the `feat/linux-adapter` integration branch instead: cut your branch from it and merge back into it, never into `main`.
+1. **Pick the right base branch.** Branch from `main` and open the PR into `main` for every platform, core and FFI work, Linux included.
2. **Keep PRs focused.** One logical change per PR; separate refactors from features.
3. **Make sure all quality gates pass** locally before pushing (see Dev workflow above).
4. **Use a Conventional Commit title** for the PR title. It becomes the squash-merge commit message.
diff --git a/README.md b/README.md
index 26fcdca14..375b8fb66 100644
--- a/README.md
+++ b/README.md
@@ -96,7 +96,7 @@ Install the skill into an agent harness from [skills.sh](https://skills.sh/lahfi
npx skills add https://github.com/lahfir/agent-desktop --skill agent-desktop
```
-Or add this to your `AGENTS.md` or `CLAUDE.md`:
+Or add this to your `AGENTS.md`:
```markdown
Use `agent-desktop` to see and operate desktop apps. Before the first use, run
@@ -176,7 +176,7 @@ On Windows, replace `agent-desktop-macos` in that list with `agent-desktop-windo
| Call the C library | [skills/agent-desktop-ffi/](skills/agent-desktop-ffi/) |
| Look up the vocabulary: refs, snapshots, sessions | [CONCEPTS.md](CONCEPTS.md) |
| Contribute and pass the gates | [CONTRIBUTING.md](CONTRIBUTING.md) |
-| Read the engineering rules | [CLAUDE.md](CLAUDE.md) |
+| Read the engineering rules | [AGENTS.md](AGENTS.md) |
| Learn from past bugs and lessons | [docs/solutions/](docs/solutions/) |
| Find answers to common questions | [docs/faq.md](docs/faq.md) |
| Report a vulnerability | [SECURITY.md](SECURITY.md) |
diff --git a/benchmarks/locator-resolution/README.md b/benchmarks/locator-resolution/README.md
index 445784bdf..8ffdd1cae 100644
--- a/benchmarks/locator-resolution/README.md
+++ b/benchmarks/locator-resolution/README.md
@@ -9,8 +9,8 @@ values, containment predicates, and large trees.
Run it without network access:
```bash
-rtk cargo run -p agent-desktop-core --release --example locator_benchmark \
- > /private/tmp/agent-desktop-locator-synthetic.json
+cargo run -p agent-desktop-core --release --example locator_benchmark \
+ > /tmp/agent-desktop-locator-synthetic.json
```
The JSON report includes 31-run p50/p95 wall-clock latency, candidate nodes,
diff --git a/crates/ffi/tests/c_abi_roundtrip.rs b/crates/ffi/tests/c_abi_roundtrip.rs
index 0ae0b4d54..2c58a4e65 100644
--- a/crates/ffi/tests/c_abi_roundtrip.rs
+++ b/crates/ffi/tests/c_abi_roundtrip.rs
@@ -28,7 +28,7 @@ use common::{
/// Sets a temp HOME so the refmap store is empty. Calls `ad_execute_by_ref`
/// with a well-formed qualified ref. The envelope must have
/// `ok:false` and carry both `error.code` (string) and `error.message`
-/// (string) — the latter guaranteed by the CLAUDE.md error contract — proving
+/// (string) — the latter guaranteed by the AGENTS.md error contract — proving
/// the unified error-envelope contract holds at the ABI boundary. The exact
/// `error.code` value is not pinned: an empty refmap may
/// surface either `SNAPSHOT_NOT_FOUND` or `STALE_REF` depending on the load
diff --git a/docs/install.md b/docs/install.md
index 85e846f37..4a0f87708 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -27,9 +27,14 @@ with `command -v agent-desktop` on macOS/Linux or `Get-Command agent-desktop` on
## Blocked install scripts
-The npm package includes the native binaries and helpers. With install scripts blocked, its launcher selects the
-bundled binary. When postinstall runs, it links POSIX commands directly to the native binary and optimizes owned
-Windows npm/Yarn commands to invoke the executable. Some package managers retain their own launcher.
+The npm package includes the native binaries and helpers. Its `postinstall` script replaces the Node launcher with a
+link to the native binary (about 21 ms per call). If the package manager blocks install scripts (npm 12 does by
+default), the Node launcher runs instead and each call costs about 146 ms. Approve the script with
+`npm install-scripts approve agent-desktop`, or install with `--allow-scripts`. Some package managers retain their
+own launcher.
+
+A plain `npm install agent-desktop` without `-g` puts the command in `./node_modules/.bin`, not on PATH; run it with
+`npx agent-desktop` or install globally.
## Release archives
diff --git a/docs/solutions/best-practices/a-test-that-cannot-fail-is-not-coverage.md b/docs/solutions/best-practices/a-test-that-cannot-fail-is-not-coverage.md
index 2bde05de8..a4a58dfb4 100644
--- a/docs/solutions/best-practices/a-test-that-cannot-fail-is-not-coverage.md
+++ b/docs/solutions/best-practices/a-test-that-cannot-fail-is-not-coverage.md
@@ -42,7 +42,7 @@ reasons unrelated to what they claimed to prove:
3. **Gate the runner never executes.** The census redaction guard — proving
`Name`, `HelpText`, `FullDescription`, `LegacyDefaultAction` never
serialize into a committed capture — lived in
- `examples/uia_tree_dump/render_node_tests.rs`. The Windows CI lane ran
+ `crates/windows/examples/uia_tree_dump/render_node_tests.rs`. The Windows CI lane ran
`cargo test -p agent-desktop-windows --lib`, which never builds `examples/`.
4. **Guard tested one level from the thing it guards.** Even fixed for #3, the
redaction *rule* was pinned only against `text_presence`/`field_presence`
diff --git a/docs/solutions/best-practices/envelope-version-bump-contract-2026-05-13.md b/docs/solutions/best-practices/envelope-version-bump-contract-2026-05-13.md
index 5d2c83a97..077bba532 100644
--- a/docs/solutions/best-practices/envelope-version-bump-contract-2026-05-13.md
+++ b/docs/solutions/best-practices/envelope-version-bump-contract-2026-05-13.md
@@ -15,7 +15,6 @@ applies_when:
- CLI and batch output contracts are unified
tags:
- json-contract
- - release-please
- cli
- batch
- compatibility
@@ -39,13 +38,13 @@ Do not bump it for additive optional fields, new commands, new flags, or more sp
## Blast Radius
-`ENVELOPE_VERSION` owns the value, but the value and its semantics are restated by hand in non-test surfaces, and none of them is generated from the constant. Check each one in the same change and correct it where it is wrong: `docs/json-output.md`, the JSON placeholder in `.github/ISSUE_TEMPLATE/bug_report.yml`, the envelope examples and error prose in `CLAUDE.md`, and the rustdoc example in `crates/ffi/src/commands/snapshot.rs`. The header `crates/ffi/include/agent_desktop.h` is regenerated, not hand-edited.
+`ENVELOPE_VERSION` owns the value, but the value and its semantics are restated by hand in non-test surfaces, and none of them is generated from the constant. Check each one in the same change and correct it where it is wrong: `docs/json-output.md`, the JSON placeholder in `.github/ISSUE_TEMPLATE/bug_report.yml`, the envelope examples and error prose in `AGENTS.md`, and the rustdoc example in `crates/ffi/src/commands/snapshot.rs`. The header `crates/ffi/include/agent_desktop.h` is regenerated, not hand-edited.
`src/cli/doc_literal_drift_tests.rs` fails when a version literal in those files disagrees with `ENVELOPE_VERSION`. It does not check the prose around the literal, so a person still has to. A surface bumped to the new number while it still explains the old one is the failure this checklist exists to catch.
## Release Notes
-Every envelope bump needs a `BREAKING CHANGE:` footer in the commit body. Do not hand-edit `CHANGELOG.md`. Make the footer precise enough for release-please to generate the note.
+Every envelope bump needs a `BREAKING CHANGE:` footer in the commit body. Do not hand-edit `CHANGELOG.md` in the feature commit. The release pull request (`docs/releasing.md`) writes the entry, so make the footer precise enough to write that note from.
## Tests
diff --git a/docs/solutions/best-practices/ffi-repr-c-struct-size-pinning.md b/docs/solutions/best-practices/ffi-repr-c-struct-size-pinning.md
index a13a9cccd..dad7c37b2 100644
--- a/docs/solutions/best-practices/ffi-repr-c-struct-size-pinning.md
+++ b/docs/solutions/best-practices/ffi-repr-c-struct-size-pinning.md
@@ -48,7 +48,7 @@ catches drift for a different consumer.
The trailer is the one layer with no generator behind it. Adding a pinned struct
without its `_Static_assert` lines in the trailer is silent. `cbindgen --verify`
-regenerates from the same trailer (`.github/workflows/ci.yml:740-743`), so CI
+regenerates from the same trailer (`.github/workflows/ci.yml:739-742`), so CI
stays green and the C-side pin does not exist. Add the assert lines to
`crates/ffi/cbindgen.toml` before regenerating the header with
`scripts/update-ffi-header.sh`.
diff --git a/docs/solutions/best-practices/identity-fingerprint-against-os-reorder-2026-04-16.md b/docs/solutions/best-practices/identity-fingerprint-against-os-reorder-2026-04-16.md
index 278b9bbc7..6b085ea41 100644
--- a/docs/solutions/best-practices/identity-fingerprint-against-os-reorder-2026-04-16.md
+++ b/docs/solutions/best-practices/identity-fingerprint-against-os-reorder-2026-04-16.md
@@ -79,7 +79,7 @@ discards the bytes rather than attributing them to the wrong surface
Backend choice (Modern vs Legacy) is orthogonal: the fingerprint applies
regardless of which capture path produces the PNG.
-**Element identity inside repeated collections.** A repeated native identifier does not identify a row. After a filter, a different row can take the original position with the same identifier and bounds, and disabling the path optimization does not help, because a broad search still matches them. Do not freeze mutable values to fix this, since ordinary text inputs must stay editable through the same ref. Without the opt-in internal command host (`AGENT_DESKTOP_INTERNAL_HOST_CLIENT=1`, `src/command_host/mod.rs`), no retained-object token is recorded, so `ref_identity::identity_match` in `crates/core/src/refs/ref_identity.rs` returns `Match` on the shared identifier and the aliasing stays reachable in the default CLI.
+**Element identity inside repeated collections.** A repeated native identifier does not identify a row. After a filter, a different row can take the original position with the same identifier and bounds, and disabling the path optimization does not help, because a broad search still matches them. Do not freeze mutable values to fix this, since ordinary text inputs must stay editable through the same ref. Without the opt-in internal command host (`AGENT_DESKTOP_INTERNAL_COMMAND_HOST=1`, `src/command_host/mod.rs`), no retained-object token is recorded, so `ref_identity::identity_match` in `crates/core/src/refs/ref_identity.rs` returns `Match` on the shared identifier and the aliasing stays reachable in the default CLI.
## Prevention
diff --git a/docs/solutions/runtime-errors/a-gnome-shell-surface-can-pass-every-adapter-test-and-still-get-no-ref.md b/docs/solutions/runtime-errors/a-gnome-shell-surface-can-pass-every-adapter-test-and-still-get-no-ref.md
index 89361444f..90a7a248e 100644
--- a/docs/solutions/runtime-errors/a-gnome-shell-surface-can-pass-every-adapter-test-and-still-get-no-ref.md
+++ b/docs/solutions/runtime-errors/a-gnome-shell-surface-can-pass-every-adapter-test-and-still-get-no-ref.md
@@ -25,7 +25,7 @@ The shell surfaces (tray, notifications, quick settings) are built from virtual
## What was true
1. **Core drops an entry whose identifier kind is `Unknown`.** `validate_ref_entry` rejects it, and allocation returns `SkippedInvalidEntry` with no error. A platform node without a native id must carry a typed kind. The tray uses `RuntimeId` (`crates/linux/src/system/tray/node_evidence.rs:20-28`), which passes the gate at `crates/core/src/refs/refs_validate.rs:38-45`. Hand-built `RefEntry` values in adapter tests never reach this gate, so only the CLI's `ref_count` shows the drop.
-2. **Shell landmarks sit several levels below the container you expect.** The tray panel is two levels above the `System` menu button. The direct children of the panel are nameless groups, and the item buttons are `menu` nodes under them. A lookup by direct child finds nothing, so every item reads as offscreen and unbound (L32-35). The tray no longer binds items to panel nodes. A tray node carries no bounds of its own and an unknown offscreen state (`crates/linux/src/system/tray/live.rs:23-61`).
+2. **Shell landmarks sit several levels below the container you expect.** The tray panel is two levels above the `System` menu button. The direct children of the panel are nameless groups, and the item buttons are `menu` nodes under them. A lookup by direct child finds nothing, so every item reads as offscreen and unbound (L32-35). The tray no longer binds items to panel nodes. A tray node carries no bounds of its own and an unknown offscreen state (`crates/linux/src/system/tray/live.rs:21-61`).
3. **The shell emits notification signals from its own unique name.** A monitor filtered on the destination `org.freedesktop.Notifications` sees none of them. Match on the interface instead, as `scripts/notification-oracle.sh` does with `dbus-monitor`. The daemon keeps no replay, so a rule added after the click receives nothing (L32-15).
4. **The tray popup is not an application menu surface.** A headed click on an item opens the shell's popup, but the shell tree has no popup node and `list-surfaces` lists none. Its entries are virtual children of the item, read through dbusmenu and picked with `Event(id, "clicked")` (L32-36, L32-37). Do not wait for a `menu` surface after a tray click.
diff --git a/docs/solutions/runtime-errors/an-atspi-write-that-returns-success-has-not-changed-anything.md b/docs/solutions/runtime-errors/an-atspi-write-that-returns-success-has-not-changed-anything.md
index 5aaafd482..1f5a97766 100644
--- a/docs/solutions/runtime-errors/an-atspi-write-that-returns-success-has-not-changed-anything.md
+++ b/docs/solutions/runtime-errors/an-atspi-write-that-returns-success-has-not-changed-anything.md
@@ -29,9 +29,9 @@ tags: [linux, at-spi, d-bus, write-path, read-back, delivery, secure-fields, too
Judge every write by what a read of the node shows afterwards, never by the reply.
1. Refuse before the call when the node is known unwritable: `READ_ONLY` set or `EDITABLE` clear (`text_write::writable`). The toolkit would accept the write and ignore it, so nothing after the call can be trusted to catch it on Qt.
-2. Read the value before the write, send it, then read it again (`text_write::judge`). Equal to the request is `Matched` and the result carries `verified`. Equal to the value before is `write_ignored`: `ACTION_FAILED` with `details.cause = "write_ignored"`, disposition not delivered. Any other value, or no readable value, leaves the result `delivered_unverified`. `numeric_write.rs` and `select/mod.rs` apply the same rule. A numeric read-back is compared through core's `value_matches`. It counts as proof only when the value is whole, the control is not a spin button, or its `MinimumIncrement` is known, because the toolkit snaps (`numeric_write.rs:41-44`, L30-12).
+2. Read the value before the write, send it, then read it again (`text_write::judge`). Equal to the request is `Matched` and the result carries `verified`. Equal to the value before is `write_ignored`: `ACTION_FAILED` with `details.cause = "write_ignored"`, disposition not delivered. Any other value, or no readable value, leaves the result `delivered_unverified`. `numeric_write.rs` applies the same rule. `select/mod.rs` has no before-value comparison; it verifies by polling the selection state and otherwise stays `delivered_unverified`. A numeric read-back is compared through core's `value_matches`. It counts as proof only when the value is whole, the control is not a spin button, or its `MinimumIncrement` is known, because the toolkit snaps (`numeric_write.rs:43-46`, L30-12).
3. Classify a failed call in `mutation::classify_write`. An error name that could mean "gone" or "not implemented" (`ObjectUnknown`, `InterfaceMissing` on an advertised interface) is settled by one `GetRole` read of the node (`action_read::corroborate`): alive means the method is absent, dead means `STALE_REF`, unread means unconfirmed. `NoReply` and a spent deadline are `delivery_uncertain`, never a retryable not-delivered.
-4. Treat a field as secure when its role number is 40, when its state flags it, or when its tokens say `secure` (`secure_write::is_secure`). A secure write is never read back, so it carries no `verified`, and `scrub` replaces the written text with `[withheld]` in the error's message, suggestion and platform detail and drops `details` that echo it (`secure_write.rs:18-36`). A GTK4 role-61 field cannot be recognised, so its read-back must not be copied into an envelope.
+4. Treat a field as secure when its role number is 40, when its state flags it, or when its tokens say `secure` (`secure_write::is_secure`). A secure write is never read back, so it carries no `verified`, and `scrub` replaces the written text with `[withheld]` in the error's message, suggestion and platform detail and drops `details` that echo it (`secure_write.rs:18-38`). A GTK4 role-61 field cannot be recognised, so its read-back must not be copied into an envelope.
## Prevention
diff --git a/skills/agent-desktop-ffi/SKILL.md b/skills/agent-desktop-ffi/SKILL.md
index adffc5b99..8ce2527b3 100644
--- a/skills/agent-desktop-ffi/SKILL.md
+++ b/skills/agent-desktop-ffi/SKILL.md
@@ -69,7 +69,7 @@ are not exposed over the ABI. A bare `@eN` ref returns
library. A mismatch returns `AD_RESULT_ERR_INVALID_ARGS`: abort. `ad_abi_version()`
returns the library's major for display. The major increments on a removed
symbol or a layout change; new `ad_*` symbols and error codes are additive.
- Before 1.0, pin the exact `libagent_desktop_ffi` version you link against.
+ Pin the exact `libagent_desktop_ffi` version you link against.
- **Session adapters.** `ad_adapter_create_with_session("session-id")` scopes
refmap persistence to a session namespace, like CLI `--session <id>`. IDs are 1
diff --git a/skills/agent-desktop-ffi/references/build-and-link.md b/skills/agent-desktop-ffi/references/build-and-link.md
index 112af7487..7a46fdb1c 100644
--- a/skills/agent-desktop-ffi/references/build-and-link.md
+++ b/skills/agent-desktop-ffi/references/build-and-link.md
@@ -26,8 +26,10 @@ Every GitHub release ships prebuilt archives for:
- Linux x64 and arm64 (glibc)
- Windows x64 and ARM64 MSVC
-Each archive contains `lib/` (the dylib, so, or dll), `include/agent_desktop.h`, and
-`LICENSE`. `lib/` also holds a helper that must stay beside the library:
+The archives are named `agent-desktop-ffi-v<version>-<target>.tar.gz` (`.zip` on
+Windows), with `<target>` the Rust target triple. Each archive unpacks to a directory of
+the same name holding `lib/` (the dylib, so, or dll), `include/agent_desktop.h`,
+`LICENSE`, and a `README.md`. `lib/` also holds a helper that must stay beside the library:
`agent-desktop-macos-helper` on macOS, `agent-desktop-linux-clipboard-owner` on
Linux. On Windows it holds the `agent_desktop_ffi.dll.lib` import library, which an
MSVC linking consumer links against. Integrity: compare against `checksums.txt` in
diff --git a/skills/agent-desktop-windows/references/troubleshooting.md b/skills/agent-desktop-windows/references/troubleshooting.md
index c107c07b0..1ad9f7c1a 100644
--- a/skills/agent-desktop-windows/references/troubleshooting.md
+++ b/skills/agent-desktop-windows/references/troubleshooting.md
@@ -64,8 +64,8 @@ differently:
- **SmartScreen:** a browser download carries Mark-of-the-Web, so
double-clicking it can show "Windows protected your PC". Choose More info,
- then Run anyway. The npm installer downloads with `curl`, which attaches no
- mark, so no mark-gated prompt fires during npm installation.
+ then Run anyway. The npm package bundles the binary and downloads nothing,
+ so npm installation attaches no mark and fires no mark-gated prompt.
- **Antivirus quarantine:** Defender or another scanner may quarantine a new
unsigned executable however it was obtained. Restore or allow-list it after
you verify the published SHA-256 checksum.
diff --git a/src/cli/doc_literal_drift_tests.rs b/src/cli/doc_literal_drift_tests.rs
index 8d62385ee..dc8181612 100644
--- a/src/cli/doc_literal_drift_tests.rs
+++ b/src/cli/doc_literal_drift_tests.rs
@@ -1,7 +1,7 @@
use super::*;
const ENVELOPE_DOCS: &[(&str, &str)] = &[
- ("CLAUDE.md", include_str!("../../CLAUDE.md")),
+ ("AGENTS.md", include_str!("../../AGENTS.md")),
(
"docs/json-output.md",
include_str!("../../docs/json-output.md"),
@@ -22,7 +22,7 @@ const ABI_DOCS: &[(&str, &str)] = &[
const FFI_HEADER: &str = include_str!("../../crates/ffi/include/agent_desktop.h");
const README: &str = include_str!("../../README.md");
-const CLAUDE_MD: &str = include_str!("../../CLAUDE.md");
+const AGENTS_MD: &str = include_str!("../../AGENTS.md");
const HELD_INPUT_COMMANDS: &[&str] = &["key-down", "key-up", "mouse-down", "mouse-up"];
fn quoted_values_after<'a>(text: &'a str, marker: &str) -> Vec<&'a str> {
@@ -103,13 +103,13 @@ fn documented_command_counts_match_the_cli() {
"README.md must state {total} command names and {operational} operational commands"
);
assert!(
- CLAUDE_MD.contains(&format!("{total} commands spanning")),
- "CLAUDE.md must state {total} commands"
+ AGENTS_MD.contains(&format!("{total} commands spanning")),
+ "AGENTS.md must state {total} commands"
);
assert!(
- CLAUDE_MD.contains(&format!(
+ AGENTS_MD.contains(&format!(
"{operational} of the {total} command names are operational"
)),
- "CLAUDE.md must state {operational} of the {total} command names are operational"
+ "AGENTS.md must state {operational} of the {total} command names are operational"
);
}
diff --git a/tests/conformance/README.md b/tests/conformance/README.md
index 653459e23..0cfe30960 100644
--- a/tests/conformance/README.md
+++ b/tests/conformance/README.md
@@ -59,6 +59,9 @@ cross-compilation evidence alone. The Windows CI lanes run these suites natively
| Atomic replace succeeds over open readers and concurrent writers, and leaves no temporary residue | `replace_tests.rs` |
| The binary and the FFI adapter install the hardened seam, and `session start` through a junction state root is refused with nothing written under the target | `src/tests/windows_private_file_install.rs`, `crates/ffi/tests/c_abi_windows_private_file_install.rs` |
-The module installs no DACL of its own. It relies on the inherited grants the
-owner test pins, and `no_banned_acl_or_ace_symbol_appears_anywhere_in_this_module`
-keeps it that way.
+The module protects each private directory it creates with a protected DACL
+(`dacl::protect_directory`) granting SYSTEM, Administrators, the token user and
+the owner-eligible SIDs, and `dacl::require_private` checks that DACL before use.
+Files created in such a directory inherit those grants, which
+`a_profile_artifact_keeps_system_admins_and_user_and_never_users_across_create_and_replace`
+in `owner_tests.rs` pins.
diff --git a/tests/e2e-windows/README.md b/tests/e2e-windows/README.md
index 317153dbf..05ad0e623 100644
--- a/tests/e2e-windows/README.md
+++ b/tests/e2e-windows/README.md
@@ -27,7 +27,7 @@ own `ok:true`.
| `CursorOverlaySupport.psm1` | Support helpers for the cursor-overlay scenario. |
| `Run-E2E.ps1` | The one process-terminating call in the whole tree. Scenario files (`scenarios/*.ps1`) return; only this script exits. |
| `scenarios/*.ps1` | One scenario per file, dot-sourced and run by `Run-E2E.ps1` in this order: Preconditions, Observation, NonInterference, Interaction, Acceptance, Reliability, Surfaces, ShellSurfaces, TracePerformance, Chromium, SplitIntegrity, CursorOverlay. Nothing is auto-discovered: a scenario file that `Run-E2E.ps1` does not dot-source and list in `Invoke-ScenarioSequence` never runs. |
-| `AcceptanceContendedFocus.ps1`, `InteractionHeaded.ps1`, `InteractionPress.ps1` | Legs dot-sourced by `scenarios/Acceptance.ps1` and `scenarios/Interaction.ps1`. They sit outside `scenarios/` because the contract gate treats every file there as a top-level scenario entry point. |
+| `AcceptanceContendedFocus.ps1`, `InteractionHeaded.ps1`, `InteractionPress.ps1`, `InteractionScroll.ps1` | Legs dot-sourced by `scenarios/Acceptance.ps1` and `scenarios/Interaction.ps1`. They sit outside `scenarios/` because the contract gate treats every file there as a top-level scenario entry point. |
| `selftest/` | Self-tests for the harness itself (see Running). |
Every file stays under the 400-line cap that `scripts/check-e2e-windows-contract.ps1` enforces (rule 13), so large modules and self-tests are split by responsibility: each `selftest/Invoke-*SelfTests.ps1` entry point owns the process exit and dot-sources its `*SelfTestCases*.ps1` files.
@@ -80,7 +80,8 @@ powershell -NoProfile -File tests\e2e-windows\Run-E2E.ps1
that under one desktop lease: it builds the release binary and the fixture, runs
the cursor-overlay teardown tests and frame budgets, the harness-core
self-tests, and then `Run-E2E.ps1`. It refuses to run off Windows or without
-`AGENT_DESKTOP_NATIVE_E2E_RUNNER=1`, and no CI workflow invokes it.
+`AGENT_DESKTOP_NATIVE_E2E_RUNNER=1`. No CI workflow runs the suite; the refusal
+self-test in `ci.yml` runs it only to prove that guard exits 2.
## Conventions a scenario file must follow