Recurring finding: documentation 9

Đang mở
#1,855 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
66/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
documentation, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
730
Fork
44
Merge trung bình
16 giờ 13 phút
Pull request đã merge (30 ngày)
387

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.