Skip to content

fix(test): keep survivor shell state on canonical agent roster - #166802

Open
RomneyDa wants to merge 1 commit into
mainfrom
fix/frv-canonical-survivor-20261007
Open

RomneyDa wants to merge 1 commit into
mainfrom
fix/frv-canonical-survivor-20261007

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The same-package upgrade-survivor Docker fixture generated agents.list only through shell-function, despite the canonical test-state producer's create and shell commands already using agents.entries. In beta FRV 37694088337 at candidate e4c6c8714da4f3d910c81c673ba8863ded3d7892, candidate admission timed out and the installed updater then rejected that retired roster before package replacement.

User Impact

No user-visible change. The source-package upgrade fixture starts with its supported keyed agent roster; published-baseline migration coverage and updater refusal policies remain unchanged.

Why This Change Was Made

Remove the shell-only downgrade. All test-state transports now render the canonical keyed roster. Published-baseline upgrade proofs retain their existing baseline-aware config recipe; no updater admission, migration, schema, timeout, or refusal policy is changed.

Evidence

  • Original failed job: invalid-config, affected key agents.list; post-update validation says the list moved to keyed entries.
  • The existing shell fixture regression was extended at its real shell entry point. Before the fix it fails because agents.entries is absent. After the fix it proves keyed main/ops entries and no retired list.
  • pnpm test test/scripts/openclaw-test-state.test.ts --maxWorkers=1: 4 tests passed; wrapper wall time 14.23 s, Vitest duration 7.19 s, test logic 1.223 s. Before-fix run fails the new roster assertion (18.38 s wrapper wall time on its first cold invocation); that timing difference is initialization, not a performance claim. Hosted CI seconds are pending.
  • Owner plus existing survivor cron/bootstrap siblings: 11 tests passed in 56.96 s wrapper wall time. The unchanged sibling file exercises real shell bootstrap ordering (52.514 s test logic); no additional sleeps or subprocess fixtures were introduced.
  • git diff --check passed; changed-file gate passed formatting, guard/ratchet/dependency checks, script types, and all root-test type shards. Its script dead-export scan reports inherited scripts/publish-model-catalog.mts: readRecommendedModels, byte-identical to the main base and outside this diff; remaining scans/lint are in progress.
  • Full fixed-package Docker proof is pending, not claimed passing.

Backports

The same shell-only downgrade exists on release/2026.10.2, release/2026.10.1 (b882e76384748485669517a8b28a866acabbf718), and release/2026.9.9 (76cfa7f7734ce80e4d9046651c04c6a60e5f4002). The canonical keyed roster is already supported on those lines. This PR targets main; the 10.2 backport follows separately. Older lines are applicability analysis only.

The admission timeout preceding the fallback and Discord/Slack Doctor timeouts remain unresolved. Canonicalizing this fixture removes the confirmed retired-config refusal; it does not establish a timeout root cause or waive any failing release lane.

Current source gates

Exact-head CI 37701611846 completed successfully on f13af5968f4514a6e828b475dd66a14996574958; the required CI gate passed. ClawSweeper has no findings and no before-merge blocker for this head. GitHub reports mergeable/clean. Full fixed-package survivor Docker coverage remains pending and is not inferred from source CI. No merge or candidate mutation.

@clawsweeper

clawsweeper Bot commented Oct 7, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 7, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 7, 2026 23:19
@RomneyDa

RomneyDa commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review. Removes the shell-only retired agents.list downgrade; existing real shell regression fails before and passes after. No updater or timeout policy changes. Review exact head f13af59.

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes.

Request: re-review. Removes the shell-only retired agents.list downgrade; existing real shell regression fails before and passes after. No updater or timeout policy changes. Review exact head f13af59.

@clawsweeper

clawsweeper Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper assist: The requested head matches f13af5968f4514a6e828b475dd66a14996574958. This needs a full correctness re-review via @clawsweeper review.

Evidence:

  • The supplied diff replaces the shell-only agents.list conversion with upgradeSurvivorConfig(); no updater or timeout policy edits appear.
  • The existing shell regression now asserts keyed main/ops entries and absence of agents.list.
  • The PR body reports failure before and 4 passing tests after; full fixed-package Docker proof and remaining scans/lint are pending.

Suggested next action: Complete and record the pending proof/checks in the PR body, then request @clawsweeper review for that exact head and updated body.


Source: #166802 (comment)
Assist reasoning: medium.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 9:23 PM ET / October 8, 2026, 01:23 UTC (Revision 2).

ClawSweeper review

What this changes

The PR makes the upgrade-survivor shell fixture generate keyed agent entries and extends its existing Bash regression.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, correct repair with a meaningful real-shell regression and successful exact-head CI; broader Docker recovery is not claimed.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The MEMBER-authored PR is outside the external-contributor proof gate. Reported after-fix execution covers the actual generator and generated Bash function; complete Docker upgrade recovery remains unproven. Only newly generated isolated fixture configuration changes, while existing-state migration and published-baseline adaptation remain unchanged.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release verification rejects a same-package update because its fixture generates a retired agent roster.
Reason: The repair corrects fixture output at its existing owner and removes redundant conversion logic without changing updater policy.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused fixture repair that current main still needs. No actionable patch defect or additional before-merge blocker was found.

Priority: P2
Reviewed head: f13af5968f4514a6e828b475dd66a14996574958

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The full fixed-package Docker survivor run is pending; the reported fail-before/pass-after proof covers the changed generator and Bash entry point.
Agent review details

How this fits together

Release verification creates isolated OpenClaw configuration before exercising package updates. The shared test-state generator supplies that configuration; published-release tests separately adapt their configuration to the baseline version.

flowchart TD
  A[Test-state command] --> B[Shared configuration generator]
  B --> C[Reusable Bash function]
  C --> D[Same-package survivor fixture]
  D --> E[Package update verification]
  F[Published baseline version] --> G[Version-aware configuration recipe]
  G --> E
Loading

Technical review

Best possible solution:

Use canonical configuration for same-package fixtures and leave historical roster adaptation with the published-baseline recipe.

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

Yes: current main explicitly converts the canonical roster to agents.list only for shell-function, and the existing Bash regression directly exposes that difference; no reviewer-side execution was performed.

Is this the best way to solve the issue?

Yes: removing the shell-only conversion repairs the producer while preserving the separate version-aware baseline adapter.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • scripts/lib/openclaw-test-state.mts: renderShellFunction changes intended behavior with a stated reason (refactor(scripts): deslop scripts/lib #159362: The consolidation explicitly preserved the pre-existing agents.list shell output for published-baseline compatibility; this commit is preservation provenance, not the original roster introduction.)
  • test/scripts/openclaw-test-state.test.ts: upgrade survivor shell regression keeps the original intent (test(e2e): preserve offline upgrade fixtures and restart proof #134442: Preserve legacy migration specimens while keeping current-install and published-baseline fixture contracts separate.)

Testing

Proof path: shipped entry point. Added test files: 1.

Security

None.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Tests +3, Other -10. Total -7 across 2 files.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a release-verification fixture with limited scope and no change to installed-user update policy.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-07T23:24:31.381Z sha f13af59 :: needs maintainer review before merge. :: none

This branch has not been deployed

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

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

1 participant