Skip to content

refactor(batch)!: v2-only batch worklists and token-only processed-item claims - #4162

Merged
chubes4 merged 5 commits into
mainfrom
refactor/1.0-legacy-T4-4149
Dec 1, 2026
Merged

chubes4 merged 5 commits into
mainfrom
refactor/1.0-legacy-T4-4149

Conversation

@chubes4

@chubes4 chubes4 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Closes #4149. Part of #4145.

Verification

  • The tranche gate (verify-T4.sh: php -l on changed files, every core smoke except the 4 known pre-existing failures, a legacy-reference grep with zero hits, net-negative LOC) passes on this commit.
  • Homeboy Cook's changed-since lint gate failed because of a known false positive (homeboy#19419: the comparison checkout has no vendor/). I linted each changed file individually instead. The PHPStan error count is the same or lower than main in every file (for example Jobs.php 63→61), and nothing new was introduced.

AI disclosure: Homeboy Cook (Pi agent) wrote the change; Claude (Anthropic) in the Pi coding agent, via a Roadie session at the maintainer's direction, ran the verification and published this PR.

@homeboy-ci

homeboy-ci Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine

Lint

✅ review lint — passed

ℹ️ Auto-fix: homeboy review lint data-machine --path /home/runner/work/data-machine/data-machine/plugins/data-machine --changed-since 472c566 --fix
ℹ️ Some issues may require manual fixes
ℹ️ Full options: homeboy self docs commands/lint
Deep dive: homeboy review lint data-machine

Artifacts and drill-down
  • CI results artifact: homeboy-differential-candidate-265f03d74305f909-1 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-differential-candidate-265f03d74305f909-1 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/46665034578

@homeboy-ci

homeboy-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine

Failed reconciliation

  • review test: error in reconciliation
  • Failed run
  • Failed job
  • homeboy review ci triage https://github.com/Extra-Chill/data-machine/pull/4162
  • Next action: Repair the failed phase, then rerun the workflow.

…rocessing into processChunk, drop legacy binding tests
@chubes4

chubes4 commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Review fixes (36735a4)

  • Regression fixed: this PR had removed the job-scoped release_claims_for_job() fallback from StepLifecycleHandler::handleFailed(). That fallback still covers a current path: a fetch that claims an item and then fails before the claim descriptor reaches engine data. Ticketmaster's test_unchanged_exact_release_failure_surfaces_and_terminal_cleanup_releases_job_claim caught it. Only the batch-storage-version gate was legacy, so I restored the fallback without it.
  • PHPStan: folded processV2Chunk() into processChunk() (with v1 gone the split is leftover) and gave chunkResult() a typed @return, which fixes the new return-shape finding. BatchScheduler has 10 PHPStan findings vs 12 on main.
  • Tests: deleted two tests that only exercised the removed descriptor-less packet binding. The duplicate-identity test now attaches real claim descriptors to its packets.
  • Callers checked: nothing in the monorepo or in extrachill.com's installed plugins, themes or mu-plugins calls claim_item(), complete_claim_for_job() or claimItemForProcessing().

AI disclosure: Claude (Anthropic) in the Pi coding agent, via a Roadie session at the maintainer's direction, wrote this comment and the follow-up commit.

@chubes4
chubes4 merged commit b66be8e into main Dec 1, 2026
42 checks passed
@chubes4
chubes4 deleted the refactor/1.0-legacy-T4-4149 branch December 1, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.0 legacy removal T4: v2-only batch worklists and token-only processed-item claims

1 participant