Skip to content

Retire legacy workflow/schema compat read paths#686

Open
BetterAndBetterII wants to merge 4 commits into
mainfrom
refactor/ase-184-retire-compat
Open

Retire legacy workflow/schema compat read paths#686
BetterAndBetterII wants to merge 4 commits into
mainfrom
refactor/ase-184-retire-compat

Conversation

@BetterAndBetterII
Copy link
Copy Markdown
Collaborator

@BetterAndBetterII BetterAndBetterII commented Apr 12, 2026

Summary

  • move legacy workflow metadata migration out of workflow repo read paths and into an explicit startup migration entrypoint
  • narrow provider secret bindings to explicit binding truth, while keeping legacy inline secret inventory only for migration hygiene
  • keep required schema bootstrap DDL preparation for old databases, but rename and document it as bootstrap/startup migration work instead of legacy compat
  • align runtime launcher legacy workflow fixtures with the new startup-only migration path by running explicit workflow metadata migration in test setup
  • add focused tests covering startup workflow metadata migration and the explicit provider secret binding truth path

Validation

  • PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PWD/.tooling/go/bin:$HOME/.local/go1.26.1/bin:$PATH go test ./internal/runtime/... ./internal/repo/workflow ./internal/service/... ./internal/httpapi
  • PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PWD/.tooling/go/bin:$HOME/.local/go1.26.1/bin:$PATH go test ./internal/domain/catalog ./internal/runtime/database ./internal/repo/workflow
  • PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$HOME/.local/go1.26.1/bin:$PATH OPENASE_PGTEST_SHARED_ROOT=$HOME/.cache/openase/pgtest OPENASE_GO_TEST_PROGRESS_MODE=json .codex/skills/push/scripts/openase_ci_gate.sh

Risks / Follow-up

  • ticket_agent scope in this runtime cannot mutate repo-scope bindings; openase repo scope ... currently returns HUMAN_SESSION_REQUIRED, so this PR is linked back to the ticket through an external link/workpad note instead.
betterandbetterii and others added 4 commits April 12, 2026 14:45
Summary:
- move workflow metadata backfill out of workflow repo read paths and into
  the explicit startup migration flow in database.Open
- keep schema bootstrap DDL preparation, but rename it around startup
  preparation instead of scattered legacy compat wording
- narrow provider secret_bindings to explicit refs only while keeping a
  separate legacy inline inventory path for migration hygiene
- add startup migration coverage for workflow metadata and update provider
  binding tests to assert the new single truth path

Rationale:
- normal workflow reads should not mutate stored data or hide migration work
  behind incidental fetches
- provider secret_bindings should describe real binding truth instead of
  wrapping legacy inline auth_config secrets as if they were bindings
- startup remains the safest retained migration point because populated
  databases still need pre-schema backfill before current constraints apply

Tests:
- go test ./internal/domain/catalog ./internal/runtime/database ./internal/repo/workflow
- go test ./internal/runtime/... ./internal/repo/workflow ./internal/service/... ./internal/httpapi

Co-authored-by: Codex <codex@openai.com>
Summary:
- add direct coverage for legacy inline provider inventory and overlap
  filtering helpers
- remove an unreachable guard in LegacyAgentProviderSecretBindings so the
  domain/core coverage gate matches real behavior

Rationale:
- the repo CI gate requires 100% domain/core coverage
- explicit binding cleanup should stay fully covered so the new source of
  truth does not regress behind the migration hygiene path

Tests:
- go test ./internal/domain/catalog
- go test ./internal/runtime/... ./internal/repo/workflow ./internal/service/... ./internal/httpapi

Co-authored-by: Codex <codex@openai.com>
Summary:
- run the explicit workflow metadata migration after seeding legacy
  workflow version content in runtime launcher tests
- keep orchestrator fixtures aligned with the new ASE-184 startup-only
  migration path instead of relying on removed read-time fallback

Rationale:
- the ASE-184 cleanup moved workflow metadata migration out of normal
  repository reads and into explicit startup migration entrypoints
- runtime launcher tests seed legacy data directly and must now invoke
  that migration themselves before validating harness content

Tests:
- PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$HOME/.local/go1.26.1/bin:$PATH OPENASE_PGTEST_SHARED_ROOT=$HOME/.cache/openase/pgtest OPENASE_GO_TEST_PROGRESS_MODE=json .codex/skills/push/scripts/openase_ci_gate.sh

Co-authored-by: Codex <codex@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant