Skip to content

Commit a48eb96

Browse files
authored
docs: clarify agent runtime and preflight guidance (#381)
1 parent 20021c3 commit a48eb96

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Minimal operating guide for AI coding agents in this repo.
5151

5252
## Toolchain Snapshot
5353
- Package manager: `pnpm` only. Do not add or restore `package-lock.json`.
54+
- Runtime baseline is Node >= 22. Prefer built-in Node APIs such as global `fetch`, Web Streams, and `AbortSignal.timeout` over compatibility wrappers unless the surrounding code needs a lower-level transport.
5455
- Lint/format stack is OXC:
5556
- config: `.oxlintrc.json`, `.oxfmtrc.json`
5657
- TypeScript is strict enough to surface dead code early: `strict`, `isolatedModules`, `noUnusedLocals`, and `noUnusedParameters` are enabled.
@@ -124,6 +125,10 @@ Command-only flags (like `find --first`) that don't flow to the platform layer o
124125
- `--debug` is canonical; `--verbose` is backward-compatible alias.
125126
- Keep redaction centralized in diagnostics helpers.
126127

128+
## Optional Optimizations
129+
- Treat optional optimization calls such as cache/preflight/probe requests as best-effort unless the feature contract says they are required. If an optimization fails, times out, returns non-OK, or returns an unusable shape, prefer falling back to the existing required command path.
130+
- Keep optimization timeouts shorter than the underlying operation timeout. A preflight should not consume the full budget for a later upload or command.
131+
127132
## Selector System Rules
128133
- Interaction commands (`click`, `fill`, `get`, `is`) and `wait` accept selectors and `@ref`.
129134
- Pipeline: **parse -> resolve -> act -> record selectorChain -> heal on replay**.

0 commit comments

Comments
 (0)