Skip to content

refactor(scheduling)!: delete legacy flow-schedule bridge and routine migration - #4155

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-4148-data-machine-2
Dec 1, 2026
Merged

chubes4 merged 1 commit into
mainfrom
fix/issue-4148-data-machine-2

Conversation

@chubes4

@chubes4 chubes4 commented Dec 1, 2026

Copy link
Copy Markdown
Member

What changed

  • FlowRoutines: deleted LEGACY_HOOK, MIGRATED_OPTION and migrate_legacy_schedules(); renamed LEGACY_GROUP to ONE_TIME_GROUP because one-time runs still use that group.
  • Engine: datamachine_run_flow_now now dispatches straight to the run-flow ability; removed the wrapper that ignored generation-marked legacy recurring actions, and its TODO(3458).
  • Removed the wp datamachine flows migrate-routines CLI subcommand and its section in the routines-scheduling docs.
  • SchedulerEvidence no longer references the legacy constant but still tracks datamachine_run_flow_now job args for liveness; schema.php no longer deletes datamachine_routine_schedule_hashes.
  • Deleted the FlowRoutines unit tests that only covered the migration and the legacy-wake bridge.

Verification

  • ( if git diff --quiet --no-renames 3b44185 -- ' (( if git diff --quiet --no-renames 3b441855293e64f96937cb96dece6cbafe8b3f11 -- ':(literal)plugins/data-machine'; then :…): command succeeded; test execution not confirmed on 54d21e0. Base main@3b44185 unchanged. 199605 ms; retained gate metadata.

  • ! grep -rqE --exclude-dir=vendor --exclude-dir=node_modules --exclude-dir=build (! grep -rqE --exclude-dir=vendor --exclude-dir=node_modules --exclude-dir=build "migrate_legacy_schedules|MIGRATED_OPTI…): command succeeded; test execution not confirmed on 54d21e0. Base main@3b44185 unchanged. 494 ms; retained gate metadata.

  • 1-verify-file-c6ba228c9cf07ccbb8a3d76e670a98558836c472418eda45d7d421827e05a562.txt ((cd plugins/data-machine && { [ -d vendor ] || composer install -q --no-interaction; }); for f in $(git diff --name-onl…): Accepted inherited failure: 1 test also fails on base main@3b44185.

    • sha256:b0991e8431a49b0fc5ea9c545e59058fa24eeec3f7fb2d8134890324a6d8e0f4
  • repro: verified (the repro gate failed on base and passed on the candidate).

  • CI: pending

Cook run
  • Cook ID: agent-task-e5eca1d3-91b7-483f-95d1-1f935d2567d0
  • Attempt run ID: agent-task-e5eca1d3-91b7-483f-95d1-1f935d2567d0-attempt-1-fce2f3cf
  • Gate 1: tree ef8d87465ee62427b7c58a1f0b1ab75a0afbe237
  • Gate 2: tree ef8d87465ee62427b7c58a1f0b1ab75a0afbe237

Delivery

  • Delivered: Delete LEGACY_HOOK, MIGRATED_OPTION, migrate_legacy_schedules from FlowRoutines; rename LEGACY_GROUP to ONE_TIME_GROUP
  • Delivered: Delete legacy recurring-wake bridge and TODO(3458) in Engine.php
  • Delivered: Delete flows migrate-routines subcommand
  • Delivered: Remove legacy-schedule evidence reference in SchedulerEvidence
  • Delivered: Delete datamachine_routine_schedule_hashes cleanup line in schema.php
  • Delivered: Update tests and docs

Evidence

  • Local: every changed PHP file passes php -l.
  • Local: every tests/*-smoke.php passed except the four known pre-existing failures, which were skipped.
  • Local: measured against HEAD (origin/main is missing in this checkout), the diff adds 32 lines and removes 382.
  • Local: the acceptance grep returns no matches across plugins/.
  • Not run locally: phpcs/homeboy lint (phpcs not installed here) and the PHPUnit suite; both are left to Homeboy's gates.

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 31m56s.

Claude searched the monorepo for callers, removed the legacy code, tests and docs, renamed the surviving group constant, and ran syntax checks and the smoke suite locally, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.

Closes #4148

@homeboy-ci

homeboy-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine

Lint

✅ review lint — passed

ℹ️ 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/46577334757

@chubes4
chubes4 merged commit 902bffa into main Dec 1, 2026
42 checks passed
@chubes4
chubes4 deleted the fix/issue-4148-data-machine-2 branch December 1, 2026 13:32
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 T3: delete the legacy flow-schedule bridge and routine migration

1 participant