Skip to content

ci(harness-ops): run the env-scrub probe cases once per Claude Code release from release intake #12836

Description

@kyle-sexton

Refs: #12702

Problem

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.

Related

This was generated by AI.

Activity

  1. added
    needs-triage
    on Nov 3, 2026
  2. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    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:

    1. 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.
    2. 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.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Nov 3, 2026
  4. added
    status: ready
    on Nov 3, 2026
  5. added
    needs-owner-decision
    and removed
    status: ready
    on Nov 3, 2026
  6. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    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).

  7. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  8. added
    host-run
    on Nov 3, 2026
  9. kyle-sexton commented on Nov 3, 2026

    @kyle-sexton
    MemberAuthor

    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:

    1. 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).
    2. 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.
  10. 5 remaining items

  11. added
    status: ready
    on Nov 3, 2026
  12. added
    status: confirmed
    and removed
    status: ready
    on Nov 3, 2026
  13. self-assigned this
    on Nov 4, 2026
  14. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  15. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    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.cjs legEnv, 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.cjs legEnv.
    • (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.

  16. removed their assignment
    on Nov 4, 2026
  17. added
    needs-human
    on Nov 4, 2026
  18. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    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.

  19. removed
    needs-human
    on Nov 4, 2026
  20. self-assigned this
    on Nov 4, 2026
  21. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

host-runstatus: confirmed

Type

Fields

Work status

confirmed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions