activity-core/migrations/versions
tegwick 5bd0ee5ff9
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 0s
Build and Publish Container Image / build-and-push (push) Successful in 19s
feat(ops-run): carry harness_profile_ref and attribution refs
ACTIVITY-WP-0032-T02 / ACT-ADR-006. ops_runs grows harness_profile_ref (text,
indexed) and execution_refs (jsonb), migration 0008, threaded through the
emission path, queue projection, and run artefacts.

The important part is the enforcement, not the columns. ACT-ADR-006 says
approach_hint must never override, synthesize, or fall back from an absent or
invalid harness_profile_ref — a silent fallback would reintroduce the
claim-time routing failure of 2026-08-17. resolve_execution_selector never
consults the hint: a malformed ref raises even when a hint is present, and
ACTIVITY_CORE_REQUIRE_HARNESS_PROFILE turns an absent ref into an error once
definitions have migrated.

Validation is structural only, since the glas-harness catalogue is
authoritative and must not be mirrored. Requiring the <id>@<version> pin is
worth doing locally: GlasProfiles.resolve matches an unpinned ref against every
version and refuses it as ambiguous, so the pin converts a late failure into an
emission-time error without knowing any profile id.

Migration verified on real PostgreSQL 16: upgrade, downgrade, re-upgrade, and a
legacy-shaped row still inserts and stays claimable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 14:14:08 +02:00
..
0001_create_activity_definitions.py feat(db): ORM models + Alembic migrations 0001–0003 — T09/T10/T11 2026-03-26 21:51:01 +00:00
0002_create_activity_runs.py feat(db): ORM models + Alembic migrations 0001–0003 — T09/T10/T11 2026-03-26 21:51:01 +00:00
0003_create_task_instances.py feat(db): ORM models + Alembic migrations 0001–0003 — T09/T10/T11 2026-03-26 21:51:01 +00:00
0004_create_task_spawn_log.py feat(event-bridge): WP-0003a — domain model, rules module, event type registry 2026-05-14 22:01:15 +02:00
0005_create_event_types.py feat(event-bridge): WP-0003a — domain model, rules module, event type registry 2026-05-14 22:01:15 +02:00
0006_add_rules_instructions_to_activity_definitions.py feat(WP-0003b): parser, workflow wiring, triggers, webhooks 2026-05-14 23:02:33 +02:00
0007_create_ops_runs.py Implement ACTIVITY-WP-0026 ops_run claim queue (T01–T06). 2026-08-03 19:22:50 +02:00
0008_add_harness_profile_to_ops_runs.py feat(ops-run): carry harness_profile_ref and attribution refs 2026-08-21 14:14:08 +02:00