Recurring finding: documentation 9

Aperta
#1,855 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading src/docs-manuals.repo.test.ts as the pattern, then src/contract/operations-lease-request.ts for the lease.request input keys. Write src/docs-surface.repo.test.ts to assert each key appears in backticks in the requestLease sentence of website/src/content/docs/docs/using-devices/programmatic-client.mdx, with a // why: allowlist for deliberately omitted keys. Verify it fails at f6c01ffa1 and passes at f68cd707b, then name the test in documentation rule 9 and drop the restated brief/checklist lines.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

task:draft

Class

documentation 9 — a change to the public surface updates the website in the same change. Fixed in 6 merged PRs between 2026-10-28 and 2026-11-25: #1529, #1318, #1305, #1241, #1148, #1046 (11 findings in the review ledgers).

Findings

PR Finding Path Pre-fix → fixed
#1529 R1 website/src/content/docs/docs/using-devices/programmatic-client.mdx f6c01ffa1 → f68cd707b
#1318 R1 website/src/content/docs/docs/reference/cli.mdx eeac27598^ → eeac27598
#1318 R2 website/src/content/docs/docs/getting-started/connect-your-agent.mdx e3e7f6d7a^ → e3e7f6d7a
#1305 R1–R3 worker/configuration.mdx, worker/cleanup.mdx, using-devices/errors.mdx 8d6da0548^ → 8d6da0548
#1241 R1 reference/cli.mdx 73b129479^ → 73b129479
#1148 R2 using-devices/errors.mdx a2176754e^ → a2176754e
#1046 R1, R3, R4 how-it-works.mdx, an AGENTS.md, src/instructions/index.ts 830e0c490^, 9a0e3c632^, a72938cc8^ → the commits

What a check sees

Most of these are prose that stopped being true (a retry the code no longer needs, a cap, a table row in the wrong table, "Claude Code and Codex" with pi missing). No script sees those without judgement. One shape is mechanical: a list of contract field names on a page that leaves out a field the contract has.

Pre-fix line, from git show f6c01ffa1:website/src/content/docs/docs/using-devices/programmatic-client.mdx (line 123), the list ends without metadata:

requestLease takes the same choices as simlock lease, under these names: platform, model or class, osVersion (an exact version or a range), mode, imageTag, baseline, physical, ttlMs, timeoutMs, noWait, allowDownload and leaseId. See Choosing a device.

The fix (f68cd707b) adds metadata to that sentence. The lease.request input schema is in src/contract/operations-lease-request.ts.

It would have seen 1 of the 11 findings (#1529 R1). The other ten are prose drift.

Proposed check

A repo test (src/docs-surface.repo.test.ts, beside src/docs-manuals.repo.test.ts) that reads the keys of the lease.request input schema and fails when a key is not named in backticks in the requestLease sentence of programmatic-client.mdx. A short list in the test names the keys that are deliberately not on the page (for example fleetRequestId, owner, and runId, except, label, requires if the page leaves them out on purpose); each carries a // why: line.

Done when

  • The test fails on f6c01ffa1's programmatic-client.mdx (no metadata) and passes on the fixed page at f68cd707b.
  • Documentation rule 9 names the test; the brief and checklist lines that only restated "list every field of requestLease" are deleted.

Written by an agent.

Lingua principale
TypeScript
Stelle
730
Fork
44
Merge medio
16h 13m
PR unite (30g)
387

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/simlock

Tutte le issue di callstackincubator/simlock

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.