Skip to content

chore: remove the ready-skip and execution-target:fallback hidden markers #8373

Closed

Description

@kyle-sexton

Problem

Two hidden HTML-comment markers have writers but no implemented reader:

  • <!-- ready-skip head=<sha> -->, written by plugins/source-control/skills/pull-request/scripts/ready-skip-comment.sh:73. Nothing reads PR comments for it: check-ready-holds.sh reads title, body, labels and closing references, never comments (plugins/source-control/reference/providers/github/pull-request/ready-for-review.md:109-110). Only its test and the skill reference mention it.
  • <!-- execution-target:fallback v1 -->, written by the stage-start probe preamble the lanes launcher sends to a cloud session (plugins/harness-ops/skills/lanes/scripts/lane-launcher.sh:1392, "for a per-item stage also put the marker comment ... on the item") and specified in docs/conventions/execution-target/README.md:151-154. Its only reader is the "Item fallback" bullet at README.md:161-162, which describes a per-item dispatcher that does not exist in this repository; README.md:121-122 says no lane goes to cloud-session today. The lane-scoped execution_target_fallback telemetry field, which the launcher does read (lane-launcher.sh:1359-1377), stays.

The third marker, <!-- autonomy:return-accounting:v1 -->, stays (owner decision, option (a)). It has a reader: the close-time capture posts only when no marker-matching bot-authored record exists (plugins/autonomy/skills/setup/templates/return-capture.md:21-22, marker at :30), and the contract keys its upsert on the marker and ignores marker records from other authors (plugins/autonomy/reference/return-accounting.md:113-117). Do not touch either file.

Fix

ready-skip (plugin source-control):

  • plugins/source-control/skills/pull-request/scripts/ready-skip-comment.sh: delete the printf at :73 and the header text at :2-4 that describes the marker. --head then has no use (parsed at :45-50, validated at :64, used only at :73): remove the flag, its parse branch and its validation, and update the usage line at :8. Also remove head="" from the declarations at :42 and --head | from the case pattern at :45 (else SC2034).
  • plugins/source-control/skills/pull-request/scripts/ready-skip-comment.test.sh: drop the marker line from the expected outputs at :22, :30, :36; drop --head from build() at :18 and from the usage cases at :64-72; delete the "no head" and "a short head" cases (:67-68); fix the header at :3. Also delete HEAD=... at :17 (unused, SC2034), and relabel the assertion at :25 ("the comment is the head marker, then the step line") to "the comment is the step line".
  • plugins/source-control/reference/providers/github/pull-request/ready-for-review.md:103-105: drop --head "$HEAD_SHA" from the call at :104, and the HEAD_SHA= line at :103 (the later wait step sets HEAD_SHA again at :123).
  • plugins/source-control/skills/pull-request/reference/ready-for-review.md:85-90: remove the marker sentence and rewrite "the head shows which run it describes", which is no longer true.
  • plugins/source-control/skills/pull-request/evals/evals.json:672: drop "that starts with a ready-skip marker naming the head" from expected_output (text edit only; no eval run).

execution-target:fallback (plugin harness-ops and the convention):

  • plugins/harness-ops/skills/lanes/scripts/lane-launcher.sh:1392: remove "for a per-item stage also put the marker comment on the item and clear its in-flight mark;". Keep the execution_target_fallback instruction.
  • docs/conventions/execution-target/README.md: replace the :151-154 text with exactly: On a gap in steps 1-3 the stage writes execution_target_fallback: {"reason": ..., "at": ...} to the lane's telemetry state block, claims nothing and exits. A passing probe sets execution_target_fallback to null. Leave the "per-item dispatcher" mention at :141 alone (not in the owner's scope). Also delete the "Item fallback" bullet at :161-162. Do not add a replacement per-item mechanism; that needs an owner decision.
  • docs/conventions/execution-target/CHANGELOG.md: add an entry with the heading ## 2.0.0 - <date> (README:253-254: removing a key or value is a major bump). execution-target is not in scripts/fragment-plugins.txt, so add the heading directly; no .changes/execution-target/ fragment.

Changelog fragments: one under .changes/source-control/ and one under .changes/harness-ops/ (both are in scripts/fragment-plugins.txt); scripts/new-changelog-fragment.sh writes them.

Path notes: no touched path is under plugins/*/hooks/**, lib or bin. lane-launcher.sh is the one sensitive path; Automation Lanes already approved an edit there.

Done when

  • git grep -nF 'ready-skip head=' returns no hits outside CHANGELOG.md files and .changes/.
  • git grep -nF 'execution-target:fallback' returns no hits outside CHANGELOG.md files and .changes/.
  • git grep -nF -- '--head' plugins/source-control/skills/pull-request/scripts/ready-skip-comment.sh plugins/source-control/reference/providers/github/pull-request/ready-for-review.md returns nothing.
  • plugins/autonomy/skills/setup/templates/return-capture.md and plugins/autonomy/reference/return-accounting.md are unchanged and still contain <!-- autonomy:return-accounting:v1 -->.
  • lane-launcher.sh still tells the cloud session to set execution_target_fallback, and README.md still describes the "Lane fallback" bullet.
  • The PR's CI runs ready-skip-comment.test.sh, pre-ready-steps.test.sh and lane-launcher.test.sh, and they pass.
  • The PR's CI runs the changelog-fragment check (scripts/check-changelog-fragments.sh) and it passes.

Related

Activity

  1. added
    needs-triage
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Thanks for the detailed write-up. I understood this as a cleanup of three hidden HTML-comment markers that nothing reads: ready-skip, execution-target:fallback and autonomy:return-accounting. The fixes are to drop the ready-skip line and update its test and doc, to repoint the execution-target doc at the telemetry field, and to remove the return-accounting marker only if an org-wide code search finds no reader. The scope, fix and verification steps are clear, so nothing more is needed from you. I found no duplicates.

    Automated triage. A maintainer reviews it.

  3. added and removed
    needs-triage
    on Oct 19, 2026
  4. kyle-sexton commented on Oct 20, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Question (Issue Triage, 2026-10-20 ~21:30Z): three hidden markers in issue bodies. Which do we keep? (a) keep the return-accounting marker, which has a reader (return-accounting.md:107-127), and remove the other two; or (b) remove all three.

    Answer (owner): "(a) Keep return-accounting (Recommended)".

    Scope for the lane: keep the return-accounting marker; remove the other two markers and anything that only writes them.

  5. changed the title [-]chore: remove three hidden markers that nothing reads[/-] [+]chore: remove the ready-skip and execution-target:fallback hidden markers[/+] on Oct 21, 2026
  6. added
    agent-ready
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions