Skip to content

ci: support empty admission args on Bash 3.2 - #190747

Merged
RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-614-bash32-empty-array
Nov 2, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-614-bash32-empty-array

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 2, 2026

Copy link
Copy Markdown
Member

Summary

  • expand optional admission arguments with the Bash 3.2-safe empty-array idiom
  • preserve argument boundaries when qualification inputs are present
  • assert the portable invocation in the executable publication-admission fixture

Why

The workflow runs under set -u. GitHub's macOS Bash 3.2 treats an empty "${array[@]}" expansion as an unbound variable, so direct identity inference could fail before the Node admission owner ran.

Testing

  • pnpm test test/scripts/full-release-publication-admission.test.ts --maxWorkers=1 -t 'direct identity inference'
  • pnpm exec oxfmt --check .github/workflows/full-release-validation.yml test/scripts/full-release-publication-admission.test.ts
  • pnpm exec oxlint --type-aware test/scripts/full-release-publication-admission.test.ts
  • git diff --check

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@RomneyDa
RomneyDa merged commit 796416b into main Nov 2, 2026
103 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/rri-614-bash32-empty-array branch November 2, 2026 01:10
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes optional release-admission argument expansion safe under Bash 3.2 with nounset enabled.

Example: The identity-resolution shell body runs under Bash 3.2 with QUALIFICATION_ADMISSION_JSON empty.

  • Before: Expanding the empty admission_args array under set -u aborts before Node runs.
  • After: The optional expansion supplies zero arguments and Node receives the remaining identity arguments.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The production change is focused and source-correct, but validation does not exercise the named shell version and the added assertion pins implementation text.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary proof gate; its body supplies fixture and static-check commands, while the discussion contains no additional behavioral evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Executing this identity-resolution body with an empty admission array under Bash 3.2 can stop before identity validation.
Reason: Maintainer-authored direction is established, and the small portability adjustment preserves current Linux behavior without adding another owner or configuration option.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a narrow, maintainer-authored portability change with no identified production correctness defect.

Priority: P3
Reviewed head: 73df50338443f4b84e7512d7be4b3aad35803777

Before merge

None.

Findings

None.

Tests

  • Low-value test test/scripts/full-release-publication-admission.test.ts: Remove the added toContain assertion: it pins one shell spelling, runs across unrelated table cases, and does not establish Bash 3.2 execution or argument preservation.
  • Missing end-to-end proof: No before/after Bash 3.2 execution demonstrates empty-array success and preservation of populated JSON arguments; the existing macOS fixture requires Bash 5+.
Agent review details

How this fits together

Full Release Validation decodes dispatch inputs, passes optional qualification arguments to the existing Node identity owner, and records the resolved identity before target resolution.

flowchart LR
  A[Dispatch inputs] --> B[Envelope decoder]
  B --> C[Optional shell arguments]
  C --> D[Node identity owner]
  D --> E[Identity output]
  E --> F[Target resolution]
Loading

Technical review

Best possible solution:

Keep the portable expansion and replace the source-text assertion with behavioral coverage of empty and populated arrays under Bash 3.2.

Do we have a high-confidence way to reproduce the issue?

Source shows the empty-array nounset trigger, but no Bash 3.2 execution of this scenario was supplied or performed.

Is this the best way to solve the issue?

The expansion is the smallest production fix using the existing identity owner; the added literal-source assertion provides weaker protection than executing the affected shell behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f3f6387f58f6.

Provenance checked

  • Optional candidate-qualification arguments keeps the original intent (38740f2: Candidate-owned qualification must carry independently authenticated admission inputs while ordinary direct routes omit them.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 8841578 adds test/scripts/full-release-publication-admission.test.ts:338 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 88415783fb41; files: test/scripts/full-release-publication-admission.test.ts)
  • Vincent Koc: Raw commit fa86caf adds .github/workflows/full-release-validation.yml:200 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fa86caf94f64; files: .github/workflows/full-release-validation.yml)
  • Peter Steinberger: Raw commit 6f558f8 adds test/scripts/full-release-publication-admission.test.ts:330 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6f558f8ed70e; files: test/scripts/full-release-publication-admission.test.ts)

PR surface

Tests +3, Config +1. Total +4 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 0 +3
Docs 0 0 0 0
Config 1 2 1 +1
Generated 0 0 0 0
Other 0 0 0 0
Total 2 5 1 +4

Labels

Label changes:

  • add P3: This is limited shell-portability hardening; the affected hosted job uses Ubuntu and no current release outage is established.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is limited shell-portability hardening; the affected hosted job uses Ubuntu and no current release outage is established.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Replace the source-text assertion with Bash 3.2 execution covering empty arguments and populated JSON arguments.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 8:09 PM ET / November 2, 2026, 01:09 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants