Skip to content

fix(harness): declare steering explicitly on every fleet harness with a pre-script - #1543

Open
waynesun09 wants to merge 2 commits into
steer-recheckfrom
steer-optout-unsteerable-agents
Open

waynesun09 wants to merge 2 commits into
steer-recheckfrom
steer-optout-unsteerable-agents

Conversation

@waynesun09

@waynesun09 waynesun09 commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

The fullsend runner is making steering the default (fullsend-ai/fullsend#7461). With steering on, a follow-up event on the same work item is delivered into the run already in flight. The delivery is receipted, so the queued run skips, including its pre-script. Default-on therefore widens the pre-script bypass. fullsend's harness lint warns when a harness sets pre_script and leaves steer.enabled unset.

This PR makes every fleet harness with a pre-script declare steering explicitly:

Harness pre_script steer.enabled Why
code scripts/pre-code.sh (Jira overlay: scripts/pre-code-jira.sh) true Taught the runner-update envelope (#1163)
fix scripts/pre-fix.sh true Taught the envelope (#1163)
review scripts/pre-review.sh true Taught the envelope (#1163)
triage scripts/pre-triage.sh true Taught the envelope (#1163)
prioritize scripts/pre-prioritize.sh false One-shot analysis; does not read the envelope
retro scripts/pre-retro.sh false One-shot analysis; does not read the envelope
scribe scripts/pre-scribe.sh false Scheduled, with no work item to update

prioritize, retro and scribe stay false because they do not read the envelope. With true, the queued run would be skipped while the agent ignores the update, so the update would be lost. An explicit false still silences the lint: steer.enabled is a pointer, so an explicit value is distinct from an unset one.

Overlays carry only forge-config fields and cannot override steer. The top-level block in code.yaml therefore also covers the Jira overlay's pre-script.

Merge constraints

  1. Merge after feat(agents): re-check the work item once and act on runner mid-run updates #1163. enabled: true is correct only once code, fix, review and triage recognize a runner update. That is feat(agents): re-check the work item once and act on runner mid-run updates #1163, so this PR is stacked on it.
  2. Merge only with the fullsend release that carries the steering stack: feat(harness)!: steer by default, opt out with steer.enabled: false fullsend#7461's default-on plus the pre_script/steer.enabled lint warning. Any runner that honours the key steers these four agents. That includes builds where the default is still off.

Runners released before steering ignore the key. The v0.43.0 harness loader decodes with plain yaml.Unmarshal and has no unknown-field check. Loading harness/fix.yaml with a steer block through v0.43.0's LoadRaw and Validate succeeds.

Changes

  • harness/prioritize.yaml, harness/retro.yaml, harness/scribe.yaml: steer: {enabled: false}.
  • harness/code.yaml, harness/fix.yaml, harness/review.yaml, harness/triage.yaml: steer: {enabled: true}.
  • scripts/harness-steer-optout-test.sh (wired into make script-test) checks three things:
    • prioritize, retro and scribe set the boolean false.
    • code, fix, review and triage set the boolean true.
    • Every harness/*.yaml with a pre_script declares steer.enabled as a boolean.

Testing

  • bash scripts/harness-steer-optout-test.sh: 14/14 pass.
  • Mutation checks: moving harness/triage.yaml away prints FAIL: triage — harness/triage.yaml not found. Removing the block from harness/fix.yaml fails both new assertions. The output is must set steer.enabled: true (got !!null:null) and has a pre_script but leaves steer.enabled unset (got !!null). Restoring the block passes.
  • make lint (skillsaw): grade A, 0 errors, baseline unchanged.
  • gitlint on both commits: clean.
  • behaviour passes on the rebased stack.
  • Checked against feat(harness)!: steer by default, opt out with steer.enabled: false fullsend#7461's lint rule (0acd8392c): all seven harnesses, including code's Jira overlay, produce 0 steer.enabled warnings. fix.yaml with its steer block removed produces 1.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Declare steering explicitly for all pre-script fleet harnesses

🐞 Bug fix ⚙️ Configuration changes 🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Enable steering for four agents that can handle in-flight work-item updates.
• Disable steering for three agents that cannot act on those updates, preventing lost follow-ups.
• Test each agent’s expected setting and require explicit steering on every pre-script harness.
Diagram

graph TD
  H["Pre-script harness"] --> D{"Steering enabled?"}
  D -->|true| A["Update-aware agents"] --> S["Absorb updates"]
  D -->|false| O["One-shot agents"] --> Q["Run queued event"]
Loading
High-Level Assessment

Explicit per-harness settings preserve steering for agents that handle updates while preventing others from silently losing follow-ups. Relying on the runner default would leave behavior ambiguous and would not satisfy the pre-script lint; disabling steering fleet-wide would remove it from capable agents. Merge only after the update-envelope support and with the stated steering-capable runner release.

Files changed (9) +105 / -0

Bug fix (3) +12 / -0
prioritize.yamlOpt the prioritize agent out of steering +4/-0

Opt the prioritize agent out of steering

• Sets steer.enabled to false because this one-shot agent is not equipped to act on an in-flight update.

harness/prioritize.yaml

retro.yamlOpt the retro agent out of steering +4/-0

Opt the retro agent out of steering

• Sets steer.enabled to false so follow-ups are not absorbed by a one-shot analysis that cannot handle them.

harness/retro.yaml

scribe.yamlOpt the scheduled scribe agent out of steering +4/-0

Opt the scheduled scribe agent out of steering

• Sets steer.enabled to false because scheduled scribe runs have no work item for a follow-up to update.

harness/scribe.yaml

Tests (2) +77 / -0
MakefileRun the steering regression test in script-test +1/-0

Run the steering regression test in script-test

• Adds the harness steering test to the existing script-test target so it runs with the repository’s shell checks.

Makefile

harness-steer-optout-test.shGuard explicit steering settings across fleet harnesses +76/-0

Guard explicit steering settings across fleet harnesses

• Checks that the three opt-out agents declare boolean false, the four update-aware agents declare boolean true, and every harness with a pre-script declares a boolean steering value.

scripts/harness-steer-optout-test.sh

Other (4) +16 / -0
code.yamlExplicitly enable code-agent steering +4/-0

Explicitly enable code-agent steering

• Sets steer.enabled to true for the update-aware code agent. The top-level setting also applies when its Jira overlay selects a different pre-script.

harness/code.yaml

fix.yamlExplicitly enable fix-agent steering +4/-0

Explicitly enable fix-agent steering

• Sets steer.enabled to true for the fix agent, which can handle in-flight work-item updates.

harness/fix.yaml

review.yamlExplicitly enable review-agent steering +4/-0

Explicitly enable review-agent steering

• Sets steer.enabled to true for the review agent, which can handle in-flight work-item updates.

harness/review.yaml

triage.yamlExplicitly enable triage-agent steering +4/-0

Explicitly enable triage-agent steering

• Sets steer.enabled to true for the triage agent, which can handle in-flight work-item updates.

harness/triage.yaml

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:24 PM UTC · Completed 9:41 PM UTC

Commit: f634fa3 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $4.36

@qodo-code-review

qodo-code-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (1)

Grey Divider


Action required

1. Harness changes need human approval 📜 Skill insight § Compliance
Description
The PR adds steer.enabled to files under harness/ and adds a test under scripts/, both
protected infrastructure paths. The PR description explains the steering change and cites related
issues, but these justified changes still require human review rather than automatic approval.
Code

harness/code.yaml[R90-91]

+steer:
+  enabled: true
Relevance

●●● Strong

Protected harness and scripts changes require human approval under the stated compliance rule.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 1538392 requires a protected-path finding whenever a PR changes harness/ or scripts/. The
cited additions show changes in both paths; the PR description supplies justification, but the rule
still requires human approval.

harness/code.yaml[90-91]
scripts/harness-steer-optout-test.sh[1-3]
Skill: pr-review

Dismiss ↗ | View ↗



Informational

2. Overlay-only pre-scripts escape the test 🐞 Bug ⚙ Maintainability
Description
harness-steer-optout-test.sh checks only the top-level .pre_script before deciding whether a
harness needs an explicit steering declaration. A harness whose pre-script exists only in an overlay
passes this check without declaring steering, even though code.yaml demonstrates that overlay
pre-scripts are supported.
Code

scripts/harness-steer-optout-test.sh[R60-61]

+  if [[ "$(yq '.pre_script // ""' "${file}")" == "" ]]; then
+    continue
Relevance

● Weak

Top-level steer applies to overlays; overlay pre-scripts do not require separate steering
declarations.

PR-#1075

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new loop continues when the top-level pre_script is absent and never examines overlays. The code
harness contains an overlay pre_script, establishing that this declaration form is used by the
repository; its separate top-level pre_script is why the current file still passes.

scripts/harness-steer-optout-test.sh[57-64]
harness/code.yaml[148-156]
harness/code.yaml[49-51]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The generic steering test skips harnesses that declare a pre-script only inside an overlay.

## Fix Focus Areas
- scripts/harness-steer-optout-test.sh[57-64]
- harness/code.yaml[148-156]

## Recommended Fix
Treat a nonempty top-level pre_script or any nonempty overlays[].pre_script as requiring a boolean top-level steer.enabled. Add a test case with an overlay-only pre-script and no steering declaration.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Compliance rules (platform): 58 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/scribe (sha: 0f3eb528) — View relationship
  Explored: repo: fullsend-ai/.fullsend (sha: 7c163cad) — View relationship
  Explored: repo: fullsend-ai/pi-anthropic-vertex (sha: 960eff35) — View relationship
  Explored: repo: fullsend-ai/pi-xai-vertex (sha: 8f50bdda) — View relationship
  Explored: repo: fullsend-ai/fullsend (branch: steer-default-on, sha: ea2f069e) — View relationship
Review mode: ⚖️ Balanced: The PR changes runtime harness behavior across seven independent configurations and adds a shell validation test, creating meaningful configuration and integration risk despite the localized scope.

Grey Divider

Tip of the day
💡 Did you know, you can add REVIEW.md to your repo root and Qodo follows it on every PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread harness/code.yaml
Comment on lines +90 to +91
steer:
enabled: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Harness changes need human approval 📜 Skill insight § Compliance

The PR adds steer.enabled to files under harness/ and adds a test under scripts/, both
protected infrastructure paths. The PR description explains the steering change and cites related
issues, but these justified changes still require human review rather than automatic approval.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Agreed. harness/ and scripts/ are protected paths, so this change needs explicit human approval before merge. No code change.

@fullsend-ai-review fullsend-ai-review Bot added the risk/elevated PR risk: elevated label Sep 28, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Risk Assessment: elevated (3/5)

Details

Re-review anchored at 3 (elevated): re-ran Tier1 script and Tier2 git log analysis on the same 9-file set (8 protected harness/CI-classified paths plus the new script) and confirmed both tiers are materially unchanged from the prior assessment - Tier1 composite 2.5 and Tier2 composite ~2.86 - yielding a weighted composite (62%/38%, no linked issue) of ~2.64, rounding to elevated (3), identical to the prior round with no articulable signal delta to justify a change.

Previous run

Risk Assessment: elevated (3/5)

Details

Re-review of a repo-config PR touching 9 files (8 protected harness/CI paths plus one new script wired into the Makefile, same 4-10 file bucket as the prior revision) with no linked issue (Tier1=62%/Tier2=38% redistribution) and no security-sensitive or dependency changes; Tier1 composite ~2.5 and Tier2 composite ~2.86 (driven by very high recent commit frequency, high author diversity, and heavy fix/revert history on the harness yaml files, offset by low code age and no reverts/sentiment flags) yield a weighted composite ~2.64, rounding to elevated (3) - unchanged from the prior assessment since Tier1/Tier2 signals are materially the same and the added Makefile line does not shift any bucket.

Previous run (2)

Risk Assessment: elevated (3/5)

Details

No linked issue (Tier1=62%/Tier2=38% redistribution) on a repo-config PR touching 8 protected-path harness files with high historical churn and change coupling; composite ~2.74 rounds to elevated (3), driven by protected-path breadth and git-history churn rather than raw diff size or security sensitivity.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Low

Previous run

Review

Findings

Medium

Low

  • [merge-sequencing] harness/code.yaml:90 — code/fix/review/triage declare steer.enabled: true while in-repo PR feat(agents): re-check the work item once and act on runner mid-run updates #1163 (the runner-update envelope those agents are said to recognize) is still open. This is an out-of-band, stacked-branch sequencing constraint, not a defect in the YAML itself: scripts/harness-steer-optout-test.sh documents that the runner already steers every harness by default and that leaving steer.enabled unset would also leave steering on, so the explicit true values match that default rather than opting into new behavior ahead of time. The load-bearing values in this diff are the false opt-outs on prioritize/retro/scribe, which are correct independent of feat(agents): re-check the work item once and act on runner mid-run updates #1163. Whether a currently-deployed runner still ignores the unknown steer key is a runtime/version fact this review cannot verify. Unchanged from the prior review round — no new information changes this assessment.
    Remediation: No code change is required. Keep the merge-order constraint stated in the PR description (do not let this land in a runner build that honors steer before feat(agents): re-check the work item once and act on runner mid-run updates #1163 merges) as a human sequencing check.
Previous run (2)

Review

Findings

Medium

Low

  • [merge-sequencing] harness/code.yaml — This PR still does nothing to mechanically enforce the merge order stated in its own description ("merge after feat(agents): re-check the work item once and act on runner mid-run updates #1163"; "merge only with the fullsend release that carries the steering stack"). The diff only adds steer.enabled to the seven fleet harnesses plus a consistency test (scripts/harness-steer-optout-test.sh); nothing in the Makefile, harness YAML, or the new test gates on feat(agents): re-check the work item once and act on runner mid-run updates #1163's runner-update-envelope handling or on the external fullsend release. This is an out-of-band, stacked-branch sequencing constraint carried only in the PR description, not a defect in the change itself — the base branch (steer-recheck) is not main, and per the PR's own claim, current runners are expected to ignore the unrecognized steer key, so landing this config ahead of the platform-side default is inert until feat(harness)!: steer by default, opt out with steer.enabled: false fullsend#7461 ships. No code change is requested here; flagging for visibility so the ordering constraint isn't lost outside the PR description. Unchanged from the prior review round.
Previous run (3)

Review

Findings

Medium

  • [protected-path] harness/code.yaml, harness/fix.yaml, harness/prioritize.yaml, harness/retro.yaml, harness/review.yaml, harness/scribe.yaml, harness/triage.yaml, scripts/harness-steer-optout-test.sh — This PR modifies 8 files under protected paths (harness/, scripts/). The PR body gives a detailed per-harness rationale table, explicit merge-order constraints, and testing evidence, and references PR feat(agents): re-check the work item once and act on runner mid-run updates #1163 (this repo, open/unmerged) and an external issue fullsend-ai/fullsend#7461 — but there is no formal GitHub "closes/fixes" linked issue for this PR (verified via the GraphQL closingIssuesReferences field, which returned empty). Human approval is always required for protected-path changes regardless of context quality.
    Remediation: A human reviewer must explicitly sign off on the governance/infrastructure changes in these files before merge. No code change is required to resolve this finding.

Low

  • [commit-type-classification] harness/code.yaml — The PR title/commits use fix(harness), but the steer key this PR adds is silently ignored by runners released before the steering feature (v0.43.0, per the PR body), and the pre-script-bypass exposure it guards against only becomes live once fullsend-ai/fullsend#7461 (steering default-on) ships. COMMITS.md's guidance to "prefer refactor or chore over feat or fix" when in doubt could apply to a preparatory config declaration with no current runtime effect.
    Remediation: Consider chore(harness): declare steering explicitly on every fleet harness with a pre-script, or keep fix if the team considers the current pre-script-bypass exposure a live, user-visible defect worth the fix label.

  • [merge-sequencing] harness/code.yaml — The PR body states "Merge after feat(agents): re-check the work item once and act on runner mid-run updates #1163" and "Merge only with the fullsend release that carries the steering stack," since steer.enabled: true on code/fix/review/triage is only correct once those harnesses recognize the runner-update envelope (PR feat(agents): re-check the work item once and act on runner mid-run updates #1163, currently open/unmerged) and the fullsend release ships. Nothing in this diff mechanically enforces that ordering (no CI gate, version check, or merge-blocking label) — the PR is safe to merge in isolation today only because older runners ignore the unknown steer key. Flagging for visibility so the ordering constraint isn't lost outside the PR description; no code change requested here.

  • [error-handling-idiom] scripts/harness-steer-optout-test.sh:47 — The loop iterating over STEERED_AGENTS does not check whether ${file} exists before executing yq, unlike the preceding OPTOUT_AGENTS loop, which checks [[ ! -f "${file}" ]] and emits a clear failure message.
    Remediation: Add the same file-existence check before running yq in the STEERED_AGENTS loop, matching the OPTOUT_AGENTS loop pattern (if [[ ! -f "${file}" ]]; then echo "FAIL: ${agent} — harness/${agent}.yaml not found"; FAILURES=$((FAILURES + 1)); continue; fi).

  • [sub-agent-failure] N/A — The challenger sub-agent returned an empty adjudicated_findings array despite a non-empty input set (it supplied detailed, code-cited removal reasoning for all three dimension findings above). Per orchestrator protocol, an empty adjudicated result on non-empty input is treated as a challenger failure rather than a legitimate full-removal outcome, so this review falls back to the pre-challenger finding set shown above rather than adopting the challenger's removals.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09

Copy link
Copy Markdown
Member Author

Replies to the review of f634fa3:

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:44 PM UTC · Completed 10:01 PM UTC

Commit: dc10ed1 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $3.83

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review September 28, 2026 22:01

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 28, 2026
@waynesun09

Copy link
Copy Markdown
Member Author

Re-verified against the lint rule now on fullsend-ai/fullsend#7461's branch (0acd8392c, rule in internal/harness/lint.go). I loaded each harness at dc10ed1 through LoadWithOpts (GitHub forge) and ran Lint():

Harness pre_script steer.enabled steer.enabled warnings
code scripts/pre-code.sh true 0
code (Jira event) scripts/pre-code-jira.sh true 0
fix scripts/pre-fix.sh true 0
review scripts/pre-review.sh true 0
triage scripts/pre-triage.sh true 0
prioritize scripts/pre-prioritize.sh false 0
retro scripts/pre-retro.sh false 0
scribe scripts/pre-scribe.sh false 0
control: fix without its steer block scripts/pre-fix.sh unset 1 ("pre_script is set but steer.enabled is not …")

The four true and three false blocks silence the warning. A harness with a pre-script and no steer block still warns.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:50 AM UTC · Completed 12:04 PM UTC

Commit: ca24548 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $3.09

fullsend-ai-review[bot]

This comment was marked as outdated.

The fullsend runner is making steering the default: a follow-up event on
the same work item is delivered into the run already in flight, and the
delivery is receipted so the queued run skips. The receipt records that
the runtime delivered the update, not that the agent acted on it, so an
agent that is not taught the runner-update envelope loses the update.

Only code, fix, review and triage are being taught it. prioritize and
retro are one-shot analyses with nothing to act on mid-run, and scribe is
scheduled with no work item, so all three opt out with
steer: {enabled: false}. Runners that predate the steer block ignore the
key.

harness-steer-optout-test.sh fails if any of the three stops setting
steer.enabled to the boolean false.

Refs fullsend-ai/fullsend#6957
Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
The fullsend runner makes steering the default. An absorbed update skips
the pre-script, so default-on widens the pre-script bypass (ADR 0113 and
0121). fullsend's harness lint therefore warns when a harness sets
pre_script and leaves steer.enabled unset.

code, fix, review and triage are the agents taught the runner-update
envelope. Each now declares steer: {enabled: true}. prioritize, retro
and scribe already declare false. That covers every harness with a
pre_script, and the fleet runs without the warning. Overlays cannot
override steer, so the top-level key also covers code's Jira pre-script.

The fullsend v0.43.0 harness loader decodes with plain yaml.Unmarshal
and ignores the key. Loading harness/fix.yaml with a steer block through
v0.43.0's LoadRaw and Validate succeeded. A runner that honours the key
steers these four agents, so this merges only after the agents learn
the envelope (#1163).

harness-steer-optout-test.sh now also fails when code, fix, review or
triage stops setting the boolean true, or when any harness with a
pre_script leaves steer.enabled unset.

Refs: fullsend-ai/fullsend#6957
Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:51 PM UTC · Completed 8:07 PM UTC

Commit: 24529b2 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $3.29

@fullsend-ai-review fullsend-ai-review Bot removed the risk/elevated PR risk: elevated label Sep 29, 2026

@jflowers jflowers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

from what I can tell, this declares steer.enabled explicitly on all seven pre-script harnesses, with the right split. code, fix, review and triage opt in because they read the runner-update envelope; prioritize, retro and scribe opt out because a skipped queued run would drop the update on the floor. the guard test is wired into make script-test, and CI is green apart from one base-branch failure.

the change matches its stated intent, and the stacked base branch makes the #1163 ordering structural rather than a convention to remember. the fullsend-release merge constraint stays a human call, which the body states clearly. three low-severity spots worth a look below.

Advisories

  1. scripts/harness-steer-optout-test.sh:34 (error handling) — what happens if yq itself fails here, for example a wrong version or malformed YAML? the command substitution would capture an error string, and the assertion would report a misleading FAIL instead of a clear tool failure. wondering if a guard on yq's exit code would surface the real problem.

  2. scripts/harness-steer-optout-test.sh:15 (convention) — the script omits -e from set -uo pipefail, which looks intentional for the FAILURES counter pattern. 28 of the 30 sibling test scripts use set -euo pipefail, so this one stands out. would a short comment explaining why -e is omitted save the next contributor a double-take?

  3. scripts/harness-steer-optout-test.sh:65 (coverage) — the generic check reads only the top-level pre_script key, so overlay-level declarations escape it. code.yaml's Jira overlay carries its own pre_script today, but the top-level key covers it. would a future harness with an overlay-only pre_script slip past this check silently?

CI

the behaviour check fails on this PR, but the same check fails on the base branch steer-recheck too. that reads as pre-existing rather than PR-caused, so it does not affect my read of this change.

This review was generated by /uf.review-pr (AI-assisted).

fi
# Exactly the boolean false: a missing key, null, or the string "false" would
# leave steering on.
got="$(yq '.steer.enabled | (tag + ":" + tostring)' "${file}")"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what happens if yq itself fails here, for example a wrong version or malformed YAML? the command substitution would capture an error string, and the assertion would report a misleading FAIL instead of a clear tool failure. wondering if a guard on yq's exit code would surface the real problem. this is the same pattern documented in learning/shell-testing-20261012T185453.

# steer.enabled unset. This test fails on any such harness.
#
# Run from the repo root: bash scripts/harness-steer-optout-test.sh
set -uo pipefail

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the script omits -e from set -uo pipefail, which looks intentional for the FAILURES counter pattern. 28 of the 30 sibling test scripts use set -euo pipefail, so this one stands out. would a short comment explaining why -e is omitted save the next contributor a double-take?

# Every harness with a pre_script declares steer.enabled as a boolean.
for file in "${REPO_ROOT}"/harness/*.yaml; do
name="$(basename "${file}" .yaml)"
if [[ "$(yq '.pre_script // ""' "${file}")" == "" ]]; then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the generic check reads only the top-level pre_script key, so overlay-level declarations escape it. code.yaml's Jira overlay carries its own pre_script today, but the top-level key covers it. would a future harness with an overlay-only pre_script slip past this check silently?

This branch had an error being deployed

1 failed deployment
dev — 24529b2f Deployed Sep 29, 2026 by waynesun09 via behaviour #226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test requires-manual-review Review requires human judgment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants