Linora

0028. Internal names use linora, with no compatibility code; migrations 0001-0005 reset once

Status: Accepted (2026-11-30, user decision). Completes the rename that 0026 started. Amends the status of 0011, 0302 and 0310, whose names changed.

Context

Decision

  1. Every internal name uses linora.

    What Name
    Environment variables LINORA_* (the MCP adapter: LINORA_URL, LINORA_TOKEN)
    Cookies linora_session, linora_csrf; __Host- on secure origins
    Personal access tokens linora_pat_ + 43 base64url characters
    HKDF salt of derived token keys linora-token-v1
    NOTIFY channels linora_auth, linora_file
    Metrics linora_* (linora_rt_*, linora_api_*, linora_docworker_*, linora_compactor_*)
    CSS classes and data attributes of the web app ln-*
    Blob bucket, S3 root key in compose linora-blobs, linora
    HTTP headers X-Linora-Seq, X-Linora-Client-Grant, X-Linora-Client-Seq, internal x-linora-page-too-large
    Media types application/vnd.linora.ops, application/vnd.linora.snapshot
    Realtime subprotocol linora.v1, linora-rt.<token>
    OpenAPI extensions x-linora-tier, x-linora-scope, x-linora-role
    Postgres group roles and logins linora_api, linora_realtime, linora_docworker, linora_compactor (+ _login)
    Database and owner in dev, CI and compose linora (dev password linora, refused in production, ADR 0906)
    Realtime gateway connection flags (code only) CONN_*
  2. No compatibility code. Old names are neither read nor accepted anywhere. Tiers ignore unknown variables, so a configuration with old names lacks its settings, and a production tier refuses to start without the required ones.
  3. Migrations 0001-0005 are rewritten in place, once. They now grant to the new role names. Apart from the role names, the schema they create is identical. This is a pre-1.0 baseline reset, made before the first public release; new installs apply clean migrations. From then on the rule in CONTRIBUTING holds: a released migration is never edited, and the runner’s checksum check stays.
  4. The one existing install is migrated once, outside the public code. A private script, never published, does it after a verified backup:
    • it stops the app tiers and keeps Postgres up;
    • it renames the owner, the group roles, the logins (ALTER ROLE ... RENAME TO ...) and the database (ALTER DATABASE ... RENAME TO ...). Privileges, memberships, ownership and default privileges refer to role OIDs, so they follow the rename; SCRAM passwords survive it (MD5 ones would be cleared, and the script resets those from the env file);
    • it adopts the migration ledger: schema_migrations.checksum of 0001-0005 becomes the SHA-256 of the rewritten files, so the runner accepts them without running them again;
    • it renames the bucket directory of the S3 store and the keys of the env file, keeping every value;
    • then the new code is deployed with the same compose project and volumes.
  5. The public export fails on any old internal name (tools/public-export): the old prefix as an environment variable, an identifier or a hyphenated name, the old package scope, the old PAT prefix and salt, the old subprotocol and media types, and the old database or owner in a URL.

Alternatives

Consequences