Skip to content

AKB Backend 0.15.0

Choose a tag to compare

@imjhyuk-oss imjhyuk-oss released this 23 Sep 07:35
· 288 commits to main since this release
Immutable release. Only release title and notes can be modified.
e2d00fb

Breaking: new installations default to PostgreSQL Native

Settings and the recommended Compose and Kubernetes fresh-install paths now select PostgreSQL Native as the document revision backend.

Upgrading an existing installation: before you upgrade, run preserve-revision-config against the active app/secret pair and install the reviewed output. It pins the selectors your configuration previously left to the default to Bare Git, without touching the database. Do not copy the fresh template over existing configuration, and do not attach the Native overlay to a Git database that is already in use.

New installations generate and persist identity with prepare-native-config, then explicitly bootstrap a never-used database. Keep the initialization image receipt when you later change the workload image. Authority and identity mismatches fail closed. Helm, all-in-one, standalone SSO and Git-oriented CI remain explicit legacy Bare Git paths; historical migration, history, diff and activity compatibility is retained.

Two smaller breaks ride along:

  • deploy/k8s/deploy.sh no longer defaults to AKB_PROFILE=standalone; it exits 2 before any cluster access, so an invocation that relied on the implicit profile must name it.
  • config/app.yaml.example is now a new-install Native template with deliberately empty identity fields, so copying it no longer yields a runnable configuration. CONTRIBUTING.md pins bare_git for a development stack; prepare-native-config generates the identity for a real one.

See docs/operations/native-installation.md for the installation and upgrade order.

Other upgrade notes

  • Personal access tokens: PAT credentials can no longer mint tokens through the self or administrator issuance routes. Machine provisioning needs an active service key listed in admin_token_issuer_ids, which defaults to empty — migrate control-plane callers before rolling out.
  • Column names: a create or alter now reports every refused column name at once, with the reason and where a document's header belongs (the column's description). Names over 63 bytes, words PostgreSQL reserves for columns (user, order, …) and system column names (xmin, …) are refused up front instead of failing in DDL.
  • 0.14.3 was recorded in the changelog but never tagged; its changes (managed workload identity for Gateway and S3 clients) first ship in this release.

Highlights

  • BM25 on an index (opt-in): a third sparse shape, vchord, stores each chunk's terms in a bm25vector column scored by a BM25 index, with an optional PostgreSQL image carrying the extension. scripts/backfill_bm25_vector.py fills an existing corpus through checkpointed, resumable sweeps and builds the index once the column is full. Serving posting stays the default and remains the way back: while it is retained, a vchord installation keeps writing it.
  • BM25 maintenance: an interrupted statistics recompute resumes instead of starting over; resolving vocabulary terms no longer locks their rows, which removed the queue concurrent indexers formed on common terms.
  • Search results that explain themselves: degradation is counted, a complete page is no longer called degraded, archive scope is a filter rather than a failure, and a short page says why it is short. Filters apply before result limits.
  • Native revision mode: the graph, collections catalog and document counters follow the active authority; native public links, section-scoped publications, drill-down and grep consistency; native search takes the vault path with bounded candidate reads.
  • Accounts and access: personal access token issuance options with presets, expiration and Vault write restrictions; safe account lifecycle; standards-based upstream OIDC provider control; a non-human service authority for identity-provider-only workspaces.
  • Operations: a personal notification inbox and document watches; a tenant stats snapshot on its own port; the indexing queue head's age on /health; crash-safe worker runtime isolation; the strict App Release Manifest v2 contract and metadata-only legacy app adoption; the PostgreSQL image pinned by digest in the Compose and Kubernetes paths; dual-era MCP protocol support.

Full changelog

backend/CHANGELOG.md, section 0.15.0.