Skip to content

Investigate auth session issuance failure at migration 80 on 4218 #610

Open

Description

@lastobelus

The packaged auth CLI on checkpoint 0.1.8-nightly.20261105.4218 fails to issue an operator session against an existing installation home:

MigrationHistoryError: Database migration history cannot be converted safely: effect_sql_migrations contains an unknown or non-contiguous identity 80_ScheduledTaskThreadMode

The installed app and its running server both report 4218. The attempt used that same installed package's server entry and an explicit existing base directory, with auth session issue, ordinary read/settings-write scopes, and a short TTL. It exited 1 without issuing a bearer token. A browser without an existing session then correctly requires pairing, so it cannot supply an operator fallback by itself.

The same packaged CLI succeeds against a newly created disposable home. This narrows the observation to the existing migration history, not general inability to issue a session. No migration ledger was deleted, repaired, or rewritten, and no alternate CLI was used against the existing home. The cause of the history disagreement is not yet established.

Investigate apps/server/src/persistence/DatabaseMigrations.ts and auth CLI database initialization. Preserve the migration safety guard; provide a compatible supported operator path or an actionable explanation before changing state. Regression coverage should use a synthetic history reproducing the observed identity/ledger shape, without private database contents.

Found while preparing isolated native acceptance for #482. A clean disposable backend unblocked that QA; it does not repair authentication against the existing home.

Activity

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions