Skip to content

PM stack #1744: define schema contract for the first shared action/event store #6103

Open

Description

@dezren39

Parent: #1744 (phase 2 of #3142). This is the first preparation slice for migration-plan P1 / Move 1; it does not complete #1744 acceptance criterion 3.

Problem

pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md requires a vetted Supabase target schema before Move 1 and says the target column contracts come from SHARED-SCHEMA-MAP.md. The map names logical groups but does not currently specify column-level contracts. Move 1 starts with the append-only actions.json store, mapped to agg_* actions plus shared_events outcomes.

Scope

Define and implement only the schema contract for the first Move 1 store group: aggregator actions and their shared event outcomes in Supabase muse-dev2. Derive the shape from the existing action-store source and the approved #3142 storage direction. Keep existing JSON storage authoritative; do not migrate live rows, cut over writers, create unrelated entity groups, relocate the projector database, or touch Kaneo/Grist/Pad.

Acceptance

  • Document the column, key, idempotency, provenance, and timestamp contract for agg_actions and the associated shared_events records; identify source-of-truth ownership and compatibility with existing action records.
  • Add a versioned, reversible schema migration and a local/disposable-database test for its constraints and rollback. No production database write is part of this task.
  • Record the read-fallback/rollback path and how this slice fits P1 / Move 1 in the migration plan.
  • Leave #1744 criterion 3 unchecked; this is a prerequisite slice, not the full migration.

Related: #1744, #3142, merged backup prerequisite PR #5315.

Activity

  1. added
    enhancementNew feature or request
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: queued
    task: 9916
    worker: repo-worker-code
    lane: bf419306-c4ef-470f-a553-beabf93239de (openchamber scheduled lane)
    at: 2026-11-05T06:57:03Z
    source_task: 9318
    summary: Queued the first P1/Move 1 schema-contract implementation slice from the #1744 triage. Scope is limited to agg_actions/shared_events schema, migration definition, and disposable rollback test; JSON remains authoritative and no production DB write or live cutover is included.

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Lane A (code-a) claimed task 9916 for issue #6103 and handed it off to the opencode execution lane per fleet queue lane assignment. Fresh check: issue #6103 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit), open PRs: none found. Labels reflect claimed state (queue/claimed, work/assigned, status/in-progress). Next: the laptop opencode claimant launches the bound session for task 9916. Attempts 2/4.

  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  7. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

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

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workenhancementNew feature or requestpriority/normalOrdinary priority (the default)queue/claimedQueue worker lifecycle statesource/queue-workerFiled or worked by the queue/worker pilotstatus/in-progressQueue worker lifecycle statestatus:in-reviewwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions