Skip to content

1.0: remove all pre-1.0 legacy and backward-compatibility support from core #4145

Backlog

Description

@chubes4

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 without schema_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_models migration, orphan resume-group drain

Deferred, needs a schema decision: the PendingActionStore numeric created_by/agent_id columns that sit alongside the principal columns.

Related: #3113, #2829.

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

  1. added this to the 1.0 milestone on Dec 1, 2026
  2. chubes4 commented on Dec 1, 2026

    @chubes4
    MemberAuthor

    Status update:

    AI disclosure: Claude (Anthropic) in the Pi coding agent, via a Roadie session at the maintainer's direction, wrote this update.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions