Repository navigation
Description
Goal
Before 1.0, Data Machine core carries no backward-compatibility paths for pre-1.0 data, hooks, or input shapes. 1.0 installs start from the final pre-1.0 release (see the 1.0 baseline doc), so every reader of an old data shape, one-shot migration, and alias goes.
Evidence gate
Every removal is gated on a query proving that no production data is still in the old shape, run on every blog of the maintainer's multisite production install (11 Data Machine blogs, current release v0.207.6), 2026-12-01:
| Item | Proof | Result |
|---|---|---|
Compound job statuses (failed - x, base:reason, pending_runtime_tool) |
jobs status LIKE scan |
0 on all blogs |
| Pre-v2 batch parents | batch_state without batch_storage_version, pending/processing |
0 |
failed - ai_concurrency_defer_exhausted |
jobs | 0 |
| Unfenced AI deferrals | pending + ai_concurrency_throttle without ai_concurrency_resume_ownership |
0 |
Recurring datamachine_run_flow_now actions |
Action Scheduler | 0 |
Routine migration flag datamachine_routines_migrated_v1 |
options | set on every blog that has flows |
_legacy_default_auth email marker |
flows flow_config |
0 |
| Plaintext queued email payloads | Action Scheduler args without reference |
0 |
Scalar agent provider/model config |
agents | 0 |
Agents missing instance_key/provisioned_at |
agents | 0 |
| Old chat sessions table | SHOW TABLES | absent |
Orphan data-machine-ai-resume-* AS groups |
actionscheduler_groups | 0 |
| Tokenless processed-item claims | processed_items claimed with NULL token |
12 on one blog, all expired 2026-07-22. They're garbage; expired-claim cleanup must stay token-agnostic so they get swept |
Tranches (one PR each, disjoint files)
- T1: delete the job migrations framework (
Core/Database/Migrations/*,wp datamachine migrate) - T2: delete job-status normalization and the legacy AI-concurrency reconciler, plus the compound-status readers in
Jobs/JobStatus/CLI - T3: delete the legacy flow-schedule bridge and routine migration (
FlowRoutines,Engine,flows migrate-routines) - T4: v2-only batch worklists and descriptor/token-only processed-item claims
- T5: email legacy readers (
_legacy_default_auth, plaintext queued payloads). The credential-format readers (HTTP Basic flat records, plaintext and 3-part encrypted secrets) are held back for a separate stored-credential audit - T6: agent schema repair helpers, dead directory/tool helpers, old agent model-config and context-file cleanup
- T7: input-shape aliases (
context_bindings,{allow, default:deny}tool policy, bundles withoutschema_version, flat tool parameter maps, implicit block format, meta-query identity fallback) - T8 (at the 1.0 cut, after the final pre-1.0 release has run everywhere): chat-session table drop,
mode_modelsmigration, orphan resume-group drain
Deferred, needs a schema decision: the PendingActionStore numeric created_by/agent_id columns that sit alongside the principal columns.
AI disclosure: Claude (Anthropic) in the Pi coding agent, via a Roadie session at the maintainer's direction, produced the inventory, ran the production proof queries, and wrote this issue.
Activity
chubes4 commentedon Dec 1, 2026
Status update:
wp datamachine migrate#4153, T2 refactor(jobs)!: delete job-status normalization and legacy AI-concurrency reconciler #4161, T3 refactor(scheduling)!: delete legacy flow-schedule bridge and routine migration #4155, T4 refactor(batch)!: v2-only batch worklists and token-only processed-item claims #4162, T5 refactor(email)!: delete legacy default-mailbox marker and plaintext queued-email payloads #4154, T6 refactor(core)!: delete agent schema-repair helpers and dead legacy helpers #4156, T7 refactor(core)!: delete legacy input-shape aliases for tools, bundles, schemas, and post identity #4157. Their trackers (1.0 legacy removal T1: delete the job migrations framework #4146–1.0 legacy removal T7: delete legacy input-shape aliases #4152) are closed.app_passwordin plaintext because it was never registered as an encrypted field. fix(socials): encrypt Bluesky app passwords at rest #4167 (merged) fixes that. Deploy fix(socials): encrypt Bluesky app passwords at rest #4167, re-save the Bluesky config on production, and only then merge and ship refactor(oauth)!: fail closed on plaintext and fingerprint-less stored credentials #4166. If both ship in one deploy, Bluesky's credential becomes unreadable.ticketbudauth slot holds plaintext secrets, but no installed code reads it. Delete it as a manual cleanup.mode_modelsmigration, resume-group drain). ThePendingActionStorenumeric owner columns are deferred pending a schema decision.AI disclosure: Claude (Anthropic) in the Pi coding agent, via a Roadie session at the maintainer's direction, wrote this update.