Skip to content

feat(harness-ops): add the cloud-routine state read-back probe case and confirm the loop-lane carrier - #11469

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8991-41177964705-1
Oct 31, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8991-41177964705-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8991

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The owner's 2026-10-31 hand run showed that a one-off cloud routine reads back, on its next run, the state record it posted to an issue comment (Claude Code 2.1.314). This change adds a behavior-probes case so that run can be repeated: cloud-routine/state-read-back-next-run. The case uses /schedule to create a one-off routine, starts one run at once and lets the scheduled fire be the second run. Each run posts a marked comment on #8991 with the date fields, and the case judges a final read of the second run's comment for result=pass. The case creates a routine on the operator's account and posts public comments, so it runs only when named. To support that, the runner gets two optional case fields: explicit (a live run skips the case unless --case names it) and a per-case timeout. That is a choice of means, made because nothing else in the runner stops a full --live suite from creating a routine. Record 19 holds the hand run as its basis, and the loop-lane §8 'Bookmark per source' row now confirms the tracker-comment carrier instead of calling it interim.

Not verified

  • Live run of cloud-routine/state-read-back-next-run: not run. It creates a routine on the owner's account and posts public comments, and the skill runs live only when the user asks in that turn. Record 19's basis is the owner's 2026-10-31 hand run, and the case's first live run replaces it. Each live
  • probe.py validate, the dry run and test_probe.py were not executed here: the lane runs no interpreter. check-affected skipped validate-plugins and changed-skills because they run code from the checked tree. Left to the PR's CI.
  • The zone of the date in the session's own context is still open: both hand runs fell where the UTC and New York dates match. That question belongs to #7679 and needs an attended run between 00:00Z and 04:00Z.
  • Tidy not run: the change is 11 files across 2 areas (plugins/harness-ops with .changes/harness-ops, and docs/contracts), over the 10-file and 1-area cutoffs.
  • typos check skipped by check-affected (typos not installed); left to CI.

Fix

  • plugins/harness-ops/skills/behavior-probes/scripts/probe.py: optional explicit case flag (a live run skips the case unless --case names it) and optional per-case timeout, both validated
  • plugins/harness-ops/skills/behavior-probes/scripts/test_probe.py: tests for the explicit skip and for validating explicit and timeout
  • plugins/harness-ops/skills/behavior-probes/cases/cloud-routine/state-read-back-next-run/expect.json: new case; target is the Bash read-back of the run2 comment, outcome ran, match result=pass; explicit, requires gh, timeout 2700, max_turns 60, max_budget_usd 3
  • plugins/harness-ops/skills/behavior-probes/cases/cloud-routine/state-read-back-next-run/prompt.md: /schedule prompt that creates the one-off routine with its saved prompt (run 1 posts a nonce, run 2 reads it back; both post the date -Is, date -u -Is, date +%Z %z, TZ, claude --version and CONTEXT_TOD
  • plugins/harness-ops/skills/behavior-probes/cases/cloud-routine/state-read-back-next-run/scaffold.sh: writes a unique run id to probe-id.txt
  • plugins/harness-ops/skills/behavior-probes/cases/cloud-routine/state-read-back-next-run/settings.json: empty settings
  • plugins/harness-ops/skills/behavior-probes/SKILL.md: documents the cloud-routine area (side effects, cleanup, gh auth under HOME) and the timeout and explicit fields
  • plugins/harness-ops/skills/behavior-probes/records.md: record 19 with the 2026-10-31 hand run as its basis, citing the run 1, run 2 and host-run comments; the case is marked as not yet run live
  • docs/contracts/loop-lane/README.md: the §8 'Bookmark per source' row confirms the tracker-comment carrier for cloud-routine state and says to find a routine's comments by sentinel marker, since they post as the owner's login
  • docs/contracts/loop-lane/CHANGELOG.md: 13.1.0 entry for the §8 row change
  • .changes/harness-ops/feat-8991-cloud-routine-state-probe-5d2e8a41.md: minor changelog fragment for harness-ops

Verification

The runner ran each check from the base copy against 51013ca:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //code.claude.com/docs/en/routines: /schedule creates a task from the CLI, including one-off runs from a natural-language time; a one-off turns itself off after it runs; Run now starts a run immediately; connected connectors are included by default; a task is deleted from its menu on the
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 6 fragments valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: first run failed markdownlint MD038 (spaces inside code spans in prompt.md); fixed; final run 13 passed, 5 skipped, 0 failed over 11 changed files
  • fresh-context subagent review of the whole diff: no correctness bugs in probe.py or the tests. It found a poll that could judge fail instead of inconclusive (fixed: poll for the run2 marker, and input_match now requires | .body), undocumented gh auth needs under the stripped child environment (doc
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41177964705

Left out: the items under Not verified.

Related

#8991

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5ee2645a0c0beb620c3cc882c25f54f590b445c3: 0 finding(s), 0 as inline comments.

No security findings in the incremental change.

The only change since 51013ca is two lines in plugins/harness-ops/skills/behavior-probes/records.md. It corrects a probe record. The old text said the case cloud-routine/state-read-back-next-run "has passed a dry run but has not run live". The new text says it "has not run live or in a dry run yet". The change only makes the record more conservative.

  • Trusted paths: the file matches none of the trusted-path globs. It is not under .claude/, docs/standards/, or a CLAUDE.md/AGENTS.md.
  • Instruction surface: I read it under the instruction-surface lens. It is a factual evidence record, not a standing instruction, guardrail, hook allowlist, or skill body, so no rule is deleted, narrowed, or softened.
  • Manifests, tokens, trust controls: none are touched.
  • Spend: none. The change adds no spend.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 51013ca5dbf5c4bfe0cfaad911f0568d0cf0bf9a; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 5ee2645a0c0beb620c3cc882c25f54f590b445c3: 0 finding(s), 0 as inline comments.

Incremental review of plugins/harness-ops/skills/behavior-probes/records.md: no findings.

The change is a one-sentence wording fix in record 19's basis. It now says the case cloud-routine/state-read-back-next-run "has not run live or in a dry run yet", where before it said it had passed a dry run. That matches the PR description, which says the dry run and test_probe.py were not executed in the lane. It is also consistent with the table row at line 474, which says "the case has not run live". I found no other claim in the file that still says the case passed a dry run.

I read only this file's incremental diff and the PR context. The other 10 files were reviewed at 51013ca and are unchanged. Nothing here spends money or touches a trusted path.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 51013ca5dbf5c4bfe0cfaad911f0568d0cf0bf9a.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yO0iU
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 5ee2645.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 31, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Oct 31, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 5ee2645a0c0beb620c3cc882c25f54f590b445c3. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 5ee2645a0c0beb620c3cc882c25f54f590b445c3.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit bfd2968 Oct 31, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8991-41177964705-1 branch October 31, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

harness-ops: run the cloud-routine state probe live

0 participants