copilot-instructions.md · diff
git:20260828.23dc180 to git:20260828.4fe2443
16 added, 14 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
- # XActions — instructions for Copilot
+ # XActions: instructions for Copilot
**Read [AGENTS.md](../AGENTS.md).** It is the single source of truth for how to work in
- this repository, and it is kept current.
-
- This file used to be a near-copy of AGENTS.md, CLAUDE.md and GEMINI.md. The four drifted,
- as copies do: they simultaneously claimed 26, 31, 32 and 49 agent skills, and an agent
- that read the wrong one worked from a stale map of the repository. There is now one
- document, and these are pointers to it.
-
- The things worth knowing before you suggest a change here:
+ this repository, and it is kept current. This file adds only what you need before you
+ suggest a change; it deliberately does not restate AGENTS.md, because the last time four
+ files described the repository they drifted apart.
- **Three runtime contexts, and code correct in one is broken in another.** Browser
- console scripts have no Node APIs. The library, CLI and MCP server are Node >= 18 ESM.
- The API server is Express with Prisma and Redis. AGENTS.md has the table.
+ console scripts have no Node APIs. The library, CLI and MCP server are Node >= 20 ESM
+ (CI runs 20, 22 and 24). The API server is Express with Prisma and Redis. AGENTS.md
+ has the table.
- **X's DOM changes constantly.** Prefer `data-testid` selectors; the current set is in
[`docs/agents/selectors.md`](../docs/agents/selectors.md).
- **Never remove the delays between actions.** Every automation path paces itself on
- purpose. Removing that is how a user's account gets suspended.
+ purpose. Removing that is how a user's account gets suspended. The MCP server also
+ enforces per-account daily caps that survive a restart; do not route around them.
- **An empty result is an error, not a zero.** Read paths throw rather than reporting
"0 results", because a silent zero looks exactly like an account with nothing on it.
- - **One licence: Apache-2.0.** `npm run check:licenses` enforces it.
- - **Tests are `npm test` (Vitest).** New behaviour needs a test; the suite runs offline.
+ - **Do not pin GraphQL query IDs.** They are discovered from x.com's own bundles and
+ cached, and every request is signed with an `x-client-transaction-id` header. Both are
+ load-bearing; a hand-rolled request that skips either gets a worse answer from X.
+ - **One licence: Apache-2.0.** `npm run check:licenses` enforces it, and anything adapted
+ from another project is recorded in `THIRD-PARTY-NOTICES.md` first.
+ - **Tests are `npm test` (Vitest).** New behaviour needs a test; the suite
+ runs offline. `npm run lint` and `npm run docs:check` also run in CI.
Everything else is in [AGENTS.md](../AGENTS.md).