You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(harness-ops): run the env-scrub probe cases once per Claude Code release from release intake #12836
host-runNeeds an unattended run on a host; the host runner takes it, not a person or the issue lane.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
The two env-scrub behavior probe cases added by #12702 (PR #12723) run only on request: /harness-ops:changelog offers a live run for cases whose tags match a release's changelog lines (plugins/harness-ops/skills/changelog/SKILL.md:219-223), and no workflow in .github/workflows runs the probes. A Claude Code release can change CLAUDE_CODE_SUBPROCESS_ENV_SCRUB behavior with no changelog line, and the CI lanes rely on that scrub (ADR 0049).
Decision
Decision recorded. The owner chose to run the two env-scrub cases once per new Claude Code version from the existing release intake, not on request only and not on a timed schedule (owner, in session, 2026-11-03: "go w/ recommendations", on the recommendation "run the two env-scrub cases once per new Claude Code version from the existing release intake (upstream-apply-changelog.yml)").
Fix
Add a step or job to the release intake (.github/workflows/upstream-apply-changelog.yml) that runs the two env-scrub probe cases live once per new Claude Code version, and reports a failure where release-intake failures surface.
Before building, read that workflow's secrets, token permissions and runner, and confirm the probe run fits them under ADR 0049's hardening; a run that needs a new secret or wider permission stops for the owner (security control).
Acceptance criteria
A new Claude Code version reaching release intake runs both env-scrub cases live, once.
A failing case fails a visible check or files a finding; a passing run records its result with the Claude Code version.
No new secret and no wider token permission than the workflow holds today.
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Small
Complexity: Medium
Uncertainty: Knowable
Flags: none
Blocked by: none
Decision recorded.
Agent choice, not an owner answer.
The owner's choice in the body stands (run the two env-scrub cases once per new Claude Code version from release intake). The Issue Triage session records the routing admission left open:
Admission: its done-when asks for what an unattended lane run cannot perform, and it names .github/workflows, which the issue lane cannot push.
This is builder work: the change is a step or job in the release intake workflow, which the issue lane cannot push, so it goes to the Automation Lanes builder, not the issue lane. No split: both items are the same workflow change.
Body: a run that needs a new secret or wider permission stops for the owner.
Kept as written: the builder reads the workflow's secrets, permissions and runner first, and stops for the owner only if the probe run needs a new secret or a wider token permission.
[quote truncated; the full decision is at the link] #12836 (comment)
That decision settles the open questions. I understood the request as adding a step or job to the release intake workflow. It would run the two env-scrub probe cases once per new Claude Code version, report failures visibly, and add no new secret or wider token permission. I found no duplicate among the open issues.
Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 1 (live-cc-probe: "A new Claude Code version reaching release intake runs both env-scrub cases l..."), item 2 (live-cc-probe: "A failing case fails a visible check or files a finding; a passing run record..."), item 4 (live-cc-probe: "A new Claude Code version reaching release intake runs both env-scrub probe c..."), item 5 (live-cc-probe: "A failing case fails a visible check or files a finding; a passing run record..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run); its body or a criterion names .github/workflows, .github/workflows/upstream-apply-changelog.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it; it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
Decision recorded.
Agent choice, not an owner answer.
The owner's choice in the body stands (run the two env-scrub cases once per new Claude Code version from release intake). The Issue Triage session records the routing admission left open:
Admission: its done-when asks for what an unattended lane run cannot perform, and it names .github/workflows, which the issue lane cannot push.
This is builder work: the change is a step or job in the release intake workflow, which the issue lane cannot push, so it goes to the Automation Lanes builder, not the issue lane. No split: both items are the same workflow change.
Basis: the admission comment on this issue (15:03Z); upstream-apply-changelog.yml:45 (permissions: {} at the top level), :65, :179 (hosted ubuntu-24.04 runners), :313 (an existing Claude API key secret).
Body: a run that needs a new secret or wider permission stops for the owner.
Kept as written: the builder reads the workflow's secrets, permissions and runner first, and stops for the owner only if the probe run needs a new secret or a wider token permission.
Basis: issue body, Fix section; ADR 0049 as cited there.
A new Claude Code version reaching release intake runs both env-scrub probe cases live, once per version.
A failing case fails a visible check or files a finding; a passing run records its result with the Claude Code version.
The change adds no new secret and no token permission wider than the workflow holds today.
Stopped before any commit: this needs the owner's decision. The issue's own rule applies: "a run that needs a new secret or wider permission stops for the owner". Nothing is pushed; the lease is released.
What blocks it. The two cases cannot run under the workflow's current credential rules:
A Claude API key may reach only a run-claude-cli step: callers.test.mjs:2066-2078, and docs/conventions/pr-pipeline/README.md ("Only a lane on ci-workflows' run-claude-cli action gets an API key"). probe.py launches its own claude, so its step would need the key directly.
run-claude-cli cannot host the pair. It always sets CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 (lane.cjslegEnv, ci-workflows 09cf6f2), so the scrub-off control cannot run there, and probe.py (apply_controls) then marks the scrub-on case inconclusive on every release.
The control also runs the live key with the scrub off, on every release. Only plant-check.py is allowed under dontAsk and it prints a fixed marker, but this is the kind of loosening the owner has scoped to named dispatches before.
Question for the owner. How should release intake check the scrub?
(d), recommended: keep the rule and change the check. Run capture-probe.mjs (merged in ci(pr-verify): capture the changed app in its own workflow for the judges #13053) on run-claude-cli with cli-version set to the intake release, in the shape of pr-verify-capture.yml's probe step. It scans for the real key across the leg's environment and every readable /proc/*/environ, and its canary child plays the control's part. No new secret, no wider permission, no rule change. It departs from "run the two env-scrub cases", which is why it is a question. UNVERIFIED: that probe has not run live, since merge.verify-capture.app is unset. Basis: pr-verify-capture.yml probe step, lane.cjslegEnv.
(a) Run the two cases as written: add a probe launcher kind to lane-funding.schema.json and the two pins, matched to the exact probe.py run --live path, and accept the live key with the scrub off on each release. Loosens the containment rule. Basis: judgment.
(b) Add a scrub toggle to ci-workflows' run-claude-cli. Larger, and it loosens the shared launcher for every lane. Basis: judgment.
Found for whoever builds it. The job needs skip-key and run_attempt conditions like the model job, since proceed alone is not once per version (upstream-apply-changelog.yml gate); cache-mode: read; and a catalog row listing the secrets it reads. probe.py run --dry-run --area env-scrub --retries 1 passes both cases on the dry-run fake.
Decision recorded. Owner, verbatim, 2026-11-04: "Go w/ recommendations", on the question recommending option (d): keep the credential rule and change the check. Release intake runs capture-probe.mjs on run-claude-cli, pinned to the intake release, in place of the two env-scrub cases. No new secret, no wider permission, no rule change. Lane 3 builds it.
host-runNeeds an unattended run on a host; the host runner takes it, not a person or the issue lane.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
Activity
github-actions commentedon Nov 3, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Small
Complexity: Medium
Uncertainty: Knowable
Flags: none
Blocked by: none
That decision settles the open questions. I understood the request as adding a step or job to the release intake workflow. It would run the two env-scrub probe cases once per new Claude Code version, report failures visibly, and add no new secret or wider token permission. I found no duplicate among the open issues.
Automated triage, applied by the lanes App.
melodic-automation-lanes commentedon Nov 3, 2026
Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 1 (live-cc-probe: "A new Claude Code version reaching release intake runs both env-scrub cases l..."), item 2 (live-cc-probe: "A failing case fails a visible check or files a finding; a passing run record..."), item 4 (live-cc-probe: "A new Claude Code version reaching release intake runs both env-scrub probe c..."), item 5 (live-cc-probe: "A failing case fails a visible check or files a finding; a passing run record..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (
host-run); its body or a criterion names .github/workflows, .github/workflows/upstream-apply-changelog.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it; it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 3, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.kyle-sexton commentedon Nov 3, 2026
Decision recorded.
Agent choice, not an owner answer.
The owner's choice in the body stands (run the two env-scrub cases once per new Claude Code version from release intake). The Issue Triage session records the routing admission left open:
This is builder work: the change is a step or job in the release intake workflow, which the issue lane cannot push, so it goes to the Automation Lanes builder, not the issue lane. No split: both items are the same workflow change.
Basis: the admission comment on this issue (15:03Z);
upstream-apply-changelog.yml:45(permissions: {}at the top level),:65,:179(hostedubuntu-24.04runners),:313(an existing Claude API key secret).Kept as written: the builder reads the workflow's secrets, permissions and runner first, and stops for the owner only if the probe run needs a new secret or a wider token permission.
Basis: issue body, Fix section; ADR 0049 as cited there.
5 remaining items
kyle-sexton commentedon Nov 4, 2026
kyle-sexton commentedon Nov 4, 2026
Stopped before any commit: this needs the owner's decision. The issue's own rule applies: "a run that needs a new secret or wider permission stops for the owner". Nothing is pushed; the lease is released.
What blocks it. The two cases cannot run under the workflow's current credential rules:
run-claude-clistep:callers.test.mjs:2066-2078, anddocs/conventions/pr-pipeline/README.md("Only a lane on ci-workflows'run-claude-cliaction gets an API key").probe.pylaunches its ownclaude, so its step would need the key directly.run-claude-clicannot host the pair. It always setsCLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1(lane.cjslegEnv, ci-workflows 09cf6f2), so the scrub-off control cannot run there, andprobe.py(apply_controls) then marks the scrub-on case inconclusive on every release.The control also runs the live key with the scrub off, on every release. Only
plant-check.pyis allowed underdontAskand it prints a fixed marker, but this is the kind of loosening the owner has scoped to named dispatches before.Question for the owner. How should release intake check the scrub?
capture-probe.mjs(merged in ci(pr-verify): capture the changed app in its own workflow for the judges #13053) onrun-claude-cliwithcli-versionset to the intake release, in the shape ofpr-verify-capture.yml's probe step. It scans for the real key across the leg's environment and every readable/proc/*/environ, and its canary child plays the control's part. No new secret, no wider permission, no rule change. It departs from "run the two env-scrub cases", which is why it is a question. UNVERIFIED: that probe has not run live, sincemerge.verify-capture.appis unset. Basis:pr-verify-capture.ymlprobe step,lane.cjslegEnv.lane-funding.schema.jsonand the two pins, matched to the exactprobe.py run --livepath, and accept the live key with the scrub off on each release. Loosens the containment rule. Basis: judgment.run-claude-cli. Larger, and it loosens the shared launcher for every lane. Basis: judgment.Found for whoever builds it. The job needs
skip-keyandrun_attemptconditions like themodeljob, sinceproceedalone is not once per version (upstream-apply-changelog.ymlgate);cache-mode: read; and a catalog row listing the secrets it reads.probe.py run --dry-run --area env-scrub --retries 1passes both cases on the dry-run fake.kyle-sexton commentedon Nov 4, 2026
Decision recorded. Owner, verbatim, 2026-11-04: "Go w/ recommendations", on the question recommending option (d): keep the credential rule and change the check. Release intake runs
capture-probe.mjsonrun-claude-cli, pinned to the intake release, in place of the two env-scrub cases. No new secret, no wider permission, no rule change. Lane 3 builds it.kyle-sexton commentedon Nov 4, 2026