Repository navigation
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
The docs change in 8cec04a reads well and CI is green (9 checks, none failing), but it drops two rules that still need to apply. I did not check every hunk of the four files, and I did not search for other readers of the The disjoint-files rule is gone from Worktree setup in AGENTS.md. Parallel workers can again get overlapping files. The merge-readiness pointer to docs/agents/pull-requests.md is gone from issue-tracker.md. Please restore both rules, and make Not blocking: you can take or leave these. In AGENTS.md the old note that check:affected and check serialize also vanished, so the replacement could also name the rule of distinct devices. In issue-tracker.md, The open inline threads on the topic key (#3723 (comment)), the disjoint-files rule (#3723 (comment)), the unconditional Current state read (#3723 (comment)), and the dropped pull-requests.md pointer (#3723 (comment)) still stand. The lower-priority thread on the failed-attempts clause also still applies (#3723 (comment)). |
8cec04a to
f51b806
Compare
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
1 issue found across 11 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="docs/agents/device-foldable.md">
<violation number="1" location="docs/agents/device-foldable.md:4">
P1: Removing the `DEVELOPER_DIR` pin leaves agents on hosts whose `xcode-select` points to an older Xcode without a working command. The repo's own Duo harness and README still require that pin and fail without it. Restore the toolchain instruction for these commands, or keep the note that `xcode-select` may select an older Xcode.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| toolchain per command: | ||
| `DEVELOPER_DIR=<Xcode-27.1>/Contents/Developer xcrun devicectl device info displays --device <udid>`. | ||
| Before you change capture behavior on a multi-panel device, read ADR 0025. | ||
| To list the panels, run `xcrun devicectl device info displays --device <udid>`. |
There was a problem hiding this comment.
P1: Removing the DEVELOPER_DIR pin leaves agents on hosts whose xcode-select points to an older Xcode without a working command. The repo's own Duo harness and README still require that pin and fail without it. Restore the toolchain instruction for these commands, or keep the note that xcode-select may select an older Xcode.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/agents/device-foldable.md, line 4:
<comment>Removing the `DEVELOPER_DIR` pin leaves agents on hosts whose `xcode-select` points to an older Xcode without a working command. The repo's own Duo harness and README still require that pin and fail without it. Restore the toolchain instruction for these commands, or keep the note that `xcode-select` may select an older Xcode.</comment>
<file context>
@@ -1,9 +1,7 @@
-The iOS 27.1 runtime comes only with its Xcode. `xcode-select` can select an older Xcode.
-For each command, set the toolchain explicitly:
-`DEVELOPER_DIR=<Xcode-27.1>/Contents/Developer xcrun devicectl device info displays --device <udid>`.
+To list the panels, run `xcrun devicectl device info displays --device <udid>`.
- Panels: the command lists each integrated panel with `backlightState`. Only the lit panel permits capture.
</file context>
| To list the panels, run `xcrun devicectl device info displays --device <udid>`. | |
| To list the panels, run `DEVELOPER_DIR=<Xcode-27.1>/Contents/Developer xcrun devicectl device info displays --device <udid>`. The `xcode-select` default may point to an older Xcode, so set the toolchain explicitly. |
There was a problem hiding this comment.
Not restored, because the pin does not select devicectl. I checked on this host: each Xcode's usr/bin/devicectl is a shim that runs /Library/Developer/PrivateFrameworks/CoreDevice.framework/.../devicectl. Both Xcode 26.2 and 27.1 expect 651.13.5 and report 651.13.5, and Xcode 26.2 simctl also lists the iOS 27.1 runtime and the Duo. The harness README keeps its own DEVELOPER_DIR requirement. I left this thread open for the maintainer.
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
The two earlier findings are still open at 01e5eb2, and the code change itself is fine. I fixed nothing myself. The AGENTS.md ownership wording now keeps the rule, so that part is done. No conflicts. Only Smoke Tests are still queued or running, and this docs-only change does not touch the device smoke routes, so I read that as unrelated. The new text at docs/agents/issue-tracker.md:31 says a dependent PR can be published, but it gives no merge condition. The old text sent merge-readiness to docs/agents/pull-requests.md. Without it, a reader can treat a dependent PR as ready while its prerequisite is open. Please restore "merge-readiness follows docs/agents/pull-requests.md". docs/agents/device-foldable.md:3 drops the Not blocking: the "newest wins per topic" rule at docs/agents/issue-tracker.md:22 has no topic key, so a newer decision on one topic overrides unrelated ones, and requiring "Decision: : ..." and matching on the topic would fix it. You can take or leave it. On the open inline threads, four of them still apply: no topic key for Decision, merge-readiness pointer missing, DEVELOPER_DIR pin missing, and Duo-only bullet dropped. Three more P2 threads still apply: Current state read unconditionally, the unnamed check in "Examine each result", and one P3 on ambiguous "also failed attempts". The AGENTS.md:50 thread no longer applies, because each worker now gets different files and a different device, which keeps the ownership rule, so you can resolve it. I did not check the CONTRIBUTING.md and review.md threads. I read only the diffs of AGENTS.md, device-verification, device-foldable and issue-tracker. I did not check the other rewritten docs for dropped conditions, and I did not search for links to the deleted docs. Before merge, restore the merge-readiness pointer and the Xcode pin or Duo-only note, add a topic key to Decision:, and answer the open threads above. This review covers 01e5eb2. The newer head 27473b1 only edits one row in docs/agents/code-ownership.md, which does not touch these findings. |
|
The earlier docs fixes look good, but one change still needs a fix before merge. At 27473b1 the rule in docs/agents/issue-tracker.md#L31 says only "You can publish a dependent PR with its base and blockers explicit." The old text also said that merge-readiness follows docs/agents/pull-requests.md, and that pointer is gone. An agent can now read this line as permission to merge while the prerequisites are still open. Please restore the pointer, for example by appending "Merge-readiness follows docs/agents/pull-requests.md." https://github.com/callstack/agent-device/blob/27473b1/docs/agents/issue-tracker.md#L31 I read only issue-tracker.md and AGENTS.md at this commit. I did not compare the other rewritten docs rule by rule, and I did not check every inline thread. The open thread on the same missing pointer still applies: #3723 (comment). Two more still apply: the "Decision:" topic rule at #3723 (comment) and the "Current state:" read rule at #3723 (comment). The thread on AGENTS.md:50 no longer applies, because that line now says different files and a different device per worker, so please resolve it: #3723 (comment). Seven lower-priority threads are still open and I did not verify them. Only the Smoke Tests check is still queued or running. This change touches docs and type comments, not the device smoke routes, so that check is likely unrelated. There are no conflicts. Before merge, the pointer to docs/agents/pull-requests.md must be back at issue-tracker.md line 31. |
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
The earlier finding on docs/agents/issue-tracker.md is still open at 0be63cd. The line at https://github.com/callstack/agent-device/blob/0be63cd/docs/agents/issue-tracker.md#L31 reads only "You can publish a dependent PR with its base and blockers explicit." The old pointer to docs/agents/pull-requests.md is gone, and this update did not touch the file. An agent can read that line as permission to merge while prerequisites are open. Please append "Merge-readiness follows docs/agents/pull-requests.md." to it. Not blocking, and you can take or leave it: the Declarations table in docs/agents/code-ownership.md and AGENTS.md no longer name packages/daemon/src/core/daemon-command-registry.ts, which AGENTS.md used to route daemon route ownership and request-policy traits to, so a row for it would restore that. The open inline threads on the code-ownership row, the merge-readiness line, "Decision:" (#3723 (comment)), the weakened ownership rule in AGENTS.md (#3723 (comment)) and the unconditional "Current state:" read (#3723 (comment)) still apply, as do the ones on the DEVELOPER_DIR pin removal (#3723 (comment)), the device-verification line with no check (#3723 (comment)), the 27.1 beta bullet (#3723 (comment)), the dropped narration review target (#3723 (comment)) and the half-open panel list (#3723 (comment)). Three lower-priority threads still apply. The thread at device-foldable.md:22 (#3723 (comment)) no longer applies, because 0be63cd rewrote that hinge-angle instruction, so please resolve it. The failing Repo Guards and Lint/Typecheck checks match main (the |
…ns in comments - Require ASD-STE100 for agent docs; rewrite AGENTS.md, issue-tracker, device-verification, and test-experiments in it. - Record issue decisions as `Decision:` comments and umbrella progress as `Current state:` comments; read them before resuming work. - Route new shared constraints to task docs, not private agent memory. - Warn that all worktrees share `git stash`. - Delete duplicated rules to stay inside the guidance byte budgets.
- ios-runner-protocol-optimizations.md said status recovery was in progress; runner-command-recovery.ts implements it and ADR 0005 owns the policy. - usbmux-runner-transport-experiment.md recorded #1403 evidence and an override it also declared removed; #1517 shipped the decision. - node-client-result-types.md called the interaction family untyped; CommandResultMap now types it. No file links to any of them.
CONTRIBUTING.md told contributors to run `check:affected --run` on the dirty tree as pre-push validation. docs/agents/testing.md requires a committed head and an `exactCommit: true` receipt. Align the guide and drop the gate internals that testing.md owns.
…d ADR reading - Move the five test-harness terms from docs/agents/domain.md into the CONTEXT.md "Providers and tests" section and delete domain.md; review.md already owns the ADR-conflict rule. Trim CONTEXT.md wording to fit its budget. - review.md: read an ADR's Status and "Rules at a glance" first, and other sections only for the rules a change touches. - cli-flags.md: flag definitions live in packages/command-registry; help rendering lives in src/commands/schema, not src/cli/parser.
`src/commands/*-command-contracts.ts` stopped existing in #772. Command input schemas live in the `inputSchema` of each command family's metadata.
…rification Xcode 27.1 is now the selected toolchain on the maintainer's hosts, so plain `xcrun devicectl` reaches the hinge and display commands. The beta-only device-type note no longer applies.
…results Commit 927c02d deleted docs/node-client-result-types.md and said the interaction family was typed. That was wrong: 14 interaction methods and all observability methods still return CommandRequestResult. Keep the note's one still-true rule beside CommandResult instead.
- CONTRIBUTING.md: keep the fail-open rule, what `pnpm check` covers, and the Windows fallback. - device-verification.md: keep the physical-iOS measurement pitfalls from the deleted usbmux note.
- cli-flags.md: add a field to the field map; defineFieldCommandMetadata generates inputSchema and the audience. - review.md: read the Decision section of an ADR with no "Rules at a glance". - code-ownership.md: point CLI flag owners at cli-flags.md. - test-authoring.md: split a test file only with its source module. - pull-requests.md: name the receipt to record. - test-audit.md: "put" a batch in a PR, not "merge" it. - Fixture comments: drop the undefined "Phase B" and point at the capture commands in git history.
The ASD-STE100 rewrites of ADRs and help passed their authors' self-reviews, then failed independent reviews from another model provider with high and medium meaning changes in every PR. Record the rule in review.md and fold two one-word lists into sentences to stay inside the byte budget.
…otion devicectl is the system CoreDevice tool (/usr/bin/devicectl; the Xcode shim reports the same 651.13.5), so DEVELOPER_DIR does not select it. Version 651.13.5 (Xcode 27.1, 27A9275) has no `device motion` subcommand (#3581), and fold reports fold-pose-dispatched-unverified there (#3587). Point agents at the lit panel from `devicectl device info displays` instead.
- cli-flags.md named the flag-definitions owner twice and had two owner searches; keep one search with the union of both patterns. - code-ownership.md repeated the AGENTS.md route to cli-flags.md. These deletions make byte room for the review fixes on #3723.
The STE rewrite kept the permission to publish a dependent PR but dropped the base rule that its merge-readiness follows docs/agents/pull-requests.md. #3723 (comment)
…ate read - "Newest wins per topic" had no topic to match on; the comment now starts with `Decision: <topic>:`. - Only umbrella issues get `Current state:` comments, so read the newest one only there, and only when one exists. #3723 (comment) #3723 (comment)
- device-verification.md: say what to examine before a time is recorded: the exit status and output of the command (the deleted usbmux note said a fast error is indistinguishable from a fast success unless output is asserted). - Restore "including failed attempts" from the base sentence. #3723 (comment) #3723 (comment)
…l as evidence - Restore the base bullet that the iOS 27.1 runtime accepts only the iPhone Duo device type. On this host, `simctl list runtimes -j` for runtime 24A94425 lists supportedDeviceTypes = ["iPhone Duo"]. Drop "beta": the Xcode is now installed as Xcode-27.1.0.app, and the build is pinned instead. - The lit panel is evidence, not verification: panel power cannot separate half-open from open (pose.ts dispatchedUnverifiedPoseError). - fold tries the hinge read; on devicectl 651.13.5 the read has no sample. #3723 (comment) #3723 (comment) #3723 (comment)
registry.ts declares the daemon traits, but daemon-command-registry.ts still owns the request-level predicates that combine them, for example resolveProviderDeviceResolutionIntent and isHumanControlMutation. #3723 (comment)
…eview Both lines repeat the AGENTS.md routing row "Mutation experiments or base comparisons" -> docs/agents/test-experiments.md word for word in their condition. The deletion makes byte room for the #3723 review fixes.
The base list named dependency-graph parity, bundle ownership, and history-backed compatibility. check:tooling also runs check:package and the docs prose and link checks, so name them too. #3723 (comment)
0be63cd to
de031a9
Compare
- pull-requests.md: "This is not a pass" had an unclear referent after the split; name the blocker. - CONTRIBUTING.md: restore the base qualifier "a normal code change"; broad refactors use `pnpm check`.
|
Follow-up at Commits: CI: everything passes at Threads: 10 fixed, 2 already fixed, 1 rejected and left open: DEVELOPER_DIR pin. On this host, both Xcode 26.2 and 27.1 shims run the system CoreDevice devicectl, version 651.13.5. Validation: |
|
At 82882bb the docs changes look good, and the fixes from the earlier review at 0be63cd are in. I found nothing new that needs a change. All 18 checks pass; the diff is docs plus one comment-only TypeScript change and one fixture comment, so the checks cover format, lint, typecheck and doc prose only. No conflicts. I read the pull-requests, review, issue-tracker, code-ownership, device-foldable, device-verification and testing docs and the AGENTS.md rules in full. For the other rewritten files I relied on the earlier reviews and your sentence review, which I could not inspect. I ran no host command. The claims about the system devicectl shim and the Xcode 26.2 simctl listing come from your thread reply. On the open threads: please resolve the Cubic P1 thread on device-foldable.md, because that doc uses system CoreDevice and does not route to the Duo harness that needs DEVELOPER_DIR (#3723 (comment)). The other twelve Cubic threads are fixed at this commit and can be resolved too: issue-tracker.md lines 25, 27 and 33 (discussion_r4295719207, discussion_r4295719244, discussion_r4295719249), AGENTS.md line 46 (discussion_r4295719232), device-verification.md (discussion_r4295719265, discussion_r4296400303), device-foldable.md lines 27, 23-24 and 13,22 (discussion_r4296400312, discussion_r4297867509, discussion_r4297867531), CONTRIBUTING.md (discussion_r4296400323), review.md line 28 (discussion_r4296563604) and code-ownership.md line 13 (discussion_r4296959746). After you resolve that thread, the PR is ready for human review. |
|
The code review at 82882bb is still clean, but the branch now conflicts with main after the latest merges. Please rebase onto main and resolve the conflicts. I removed the ready-for-human label until the branch merges cleanly again. |
Summary
Agent docs now use ASD-STE100 Simplified Technical English. Material that misled agents with small context windows is removed.
AGENTS.mdand alldocs/agents/*.md: rewritten in STE, one commit per file. Eight rules that were stated in two places are deleted; each deletion has agit grepproof in its commit.AGENTS.mdnow requires STE for agent docs. It also routes new shared constraints to task docs, not private agent memory, and warns that all worktrees sharegit stash.issue-tracker.md: postDecision: <topic>:comments when a decision or the scope changes. Post aCurrent state:comment on an umbrella issue after each merge.review.md: read an ADR's Status and "Rules at a glance" first. A bulk rewrite of prose needs a review by another model provider that compares each changed sentence with the base.docs/agents/domain.mdis merged intoCONTEXT.md.cli-flags.mdandcode-ownership.md: the owner paths are corrected.device-foldable.md: theDEVELOPER_DIRpin is removed (devicectl is the system CoreDevice tool). On devicectl 651.13.5,foldreportsfold-pose-dispatched-unverified..device-evidence/folder are untracked. They held task-scoped coordinator instructions.docs/are deleted. The code now contradicts each one.CONTRIBUTING.mdnow says to commit first and then runcheck:affected --run --head <commit>.Byte budgets stay inside their limits:
AGENTS.mdis 3,961 of 4,000,CONTEXT.mdis 10,997 of 11,000, anddocs/agentsis 39,983 of 40,000. The ADR and help rewrites are in separate PRs: #3729, #3730, #3731, and one help PR to come.Validation
origin/main(resolved conflicts with docs(agents): simplify review scope and follow-up rounds #3741 inreview.mdandpull-requests.md; main's meaning kept). Tested SHA:82882bb44c.pnpm check:affected --run --head 82882bb44cpassed withexactCommit=true: format, lint, typecheck, layering, fallow, build, vitest-related, and agent-guidance.82882bb44c. The others repeat an owner rule elsewhere, or are intentional, sourced changes.command-result.ts. No device run is required.