Skip to content

docs(agents): simplify testing and pull-request guidance wording - #1997

Merged
thymikee merged 2 commits into
mainfrom
claude/simplify-agents-testing-docs-823162
Aug 24, 2026
Merged

docs(agents): simplify testing and pull-request guidance wording#1997
thymikee merged 2 commits into
mainfrom
claude/simplify-agents-testing-docs-823162

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Rewrites docs/agents/testing.md and docs/agents/pull-requests.md in shorter, plainer sentences so the always-loadable agent guidance costs less context. No fact, threshold, command, or identifier was dropped — this is a wording-only pass.

  • testing.md: 9,985 → 9,540 bytes. The file sat 15 bytes under the 10k per-doc check:agent-guidance cap; it now has headroom again. Also reunites the gate-catalog sentence with its code block (a paragraph had been interposed between them) and unwraps a code span that broke across a line.
  • pull-requests.md: 6,868 → 6,639 bytes. Tightens the wordiest readiness and size-scrutiny passages and adds the missing blank line before ## Reviewing.

Deliberately untouched: adr-0019-unit.md (active-migration checklist whose wording carries incident context), device-verification.md, cli-flags.md, and the small docs (already dense, marginal wins).

Validation

Docs-only; no runtime behavior, so no runtime tests apply. pnpm check:agent-guidance is green after the edits. Fidelity was verified the way the PR #1888 restructure prescribed: diffed the backtick-identifier sets of each file old vs new — both sets are unchanged (the only diff noise was a line-wrap artifact of per-line backtick pairing, resolved by unwrapping the span). Markdown is excluded from oxfmt, so no formatting gate applies.

Two files touched; scope stayed within the requested doc simplification.

The surviving half of `contracts-entry-closure.test.ts` walked ~490 candidate
files and parsed each one to assert that nothing value-imports the two wide
contracts facades. `eslint/no-restricted-imports` already states exactly that,
and `allowTypeImports` already draws the one distinction that made the walker
seem necessary: `import type` is erased, so it stays legal.

Verified rather than assumed, because the override semantics are not additive:
a same-rule override REPLACES the parent, so a top-level rule would have been
silently dropped for `src/**`, and the existing `"off"` entry for `exec.ts` and
the test tree would have exempted the files that carried most of the cost
#1959 removed. So the paths are added per zone, and the blanket `"off"` becomes
a facade-only config that keeps the `node:child_process` exemption it existed
for.

Planted red in all three zones — `src/core/capabilities.ts`, a `src/__tests__`
file, and `packages/capture-kit/src` — each flagged, while a type-only import in
the same probe file was not. A first probe read as a pass because the sed that
built it produced a type-only import; the zone was re-probed with a real value
import rather than trusting the green.

Misconfiguration fails loudly, which is why this is safe to rely on: a typo'd
rule name makes oxlint exit 1 with "Rule not found in plugin", not pass silently
(the failure mode #1976 records for the `rg` assertions).

What a linter cannot replace, and stays: the eager-closure budgets. Those are a
transitive-weight property — a module already imported grows an import, and the
cost arrives without any single file's import list changing. Per-file rules
cannot see that, and `no-restricted-imports` can only ban specifiers named in
advance, which is precisely what #1950/#1956/#1959 could not have named.
testing.md sat 15 bytes under the 10k per-doc check:agent-guidance cap.
Rewrite both docs in shorter, plainer sentences without dropping any
fact, threshold, or identifier (backtick-identifier sets verified
unchanged against the previous revision). Also fix testing.md's gate
catalog sentence being separated from its code block and the missing
blank line before pull-requests.md's Reviewing section.
@github-actions

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 2.39 MB 2.39 MB 0 B
JS gzip 801.1 kB 801.1 kB 0 B
npm tarball 923.3 kB 923.3 kB 0 B
npm unpacked 3.20 MB 3.20 MB 0 B

npm unpacked components

Component Base Current Diff
JS / dist source 2.54 MB 2.54 MB 0 B
Apple runner source/project 564.3 kB 564.3 kB 0 B
macOS helper source 54.5 kB 54.5 kB 0 B
Android helper artifacts 0 B 0 B 0 B
Other package files 44.5 kB 44.5 kB 0 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 31.0 ms 30.1 ms -0.9 ms
CLI --help 83.4 ms 85.4 ms +2.0 ms

Top changed chunks: no changes in the largest emitted chunks.

Top changed packed files

No changed packed files.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Aug 24, 2026
@thymikee

Copy link
Copy Markdown
Member Author

Review of exact head b0960c1d50ddfd596d038761cb10dd23816f8f1c: clean and ready for human review. The effective current-main diff is only the two intended guidance files. It preserves the expensive invariants—executable gate ownership, planted-red proof, live-device evidence, exact-head readiness, XCTest classification, bounded concurrency, and no test-only seams—while fixing broken wrapped code spans. All exact-head checks are green, including Agent Guidance; no runtime evidence is owed for this docs-only change.

The extra .oxlintrc.json and deleted-test entries visible in GitHubs stale-base list are patch-identical to already-merged #1990 and absent from the effective current-main tree diff.

@thymikee
thymikee merged commit d713988 into main Aug 24, 2026
29 checks passed
@thymikee
thymikee deleted the claude/simplify-agents-testing-docs-823162 branch August 24, 2026 14:40
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-24 14:41 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant