Repository navigation
plan v1.data.extensions: goal record - #28
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plan · v1.data.extensions · round outcome
Context
v1.data.extensionswas a coordinator-only goal (repos = []) with one task,strategy, to decidehow a Postgres extension is declared at the native tier: its install, migration, image pin, and the
packages allowed to use it. pgvector for capstone-athena is the first case (spike-ai-pipeline
evidence 10,
standards-lab/context/data-intelligence.md). Seven plan rounds decided the strategy,which turns the goal into reusable infrastructure in sqlate and go-database. This outcome writes
the strategy down, replaces
strategywith five build tasks, sets the goal up with root sqlate,and stages it.
The decided strategy
Image
postgres:19.0-alpinewith each extension built from source. pgvector usesARG PGVECTOR_VERSION,ADD …pgvector.git#v${PGVECTOR_VERSION}, andmake with_llvm=no OPTFLAGS="".compose/postgres/Dockerfileis the canonical copy; consumers copy it. Onlyrepositories that declare an extension switch to it.
currency.shlearns to read theARGand compare it with pgvector's latest tag.Extensions layer (sqlate/migrate, engine-neutral)
migrate.Options.Extensionsholds one declaration per extension: its name, and optionally aremoved state. It carries no version.
declared order.
installed_versionwith theimage's
default_versioninpg_available_extensions. The activation isCREATE EXTENSION IF NOT EXISTS x; ALTER EXTENSION x UPDATE.pg_extension.Verifyreturn an error that unwraps toErrPending, so go-database'sStartapplies it.Migrator.Extensions(ctx)reports each extension's state.DROP EXTENSION IF EXISTS x RESTRICTafter the sets.Deleting a declaration stops managing the extension and never drops it.
pgtest.MigratedWith(t, env, prefix, opts, sets...)sits besideMigrated.sqlint
extensions = [<module paths>], adds each listed extension's native forms to theengine's deny list.
Otherwise it declares
forms = []with areason.Options.Extensionsconsistent.Modules
sqlate/postgres/pgvector: its own module, holding the native forms plus a small Go package.The package has the extension name and a table mapping each metric (l2, cosine, ip) to its
operator and operator class.
go-database/postgres/pgvector: uses pgvector-go's root module directly overdatabase/sqltext format.
chunkstask owns that.the migrations, and the packages the design docs declare.
go-database admin
admin.Statusgains anextensionsfield, andReadyis false on a mismatch.GET /schemain go-web-service is unchanged.Edits
Every repository gets the
plan-v1.data.extensionsbranch, one commit per kind of change, and apull request whose body is this outcome.
standards-lab (coordinator)
roadmap/v1.data.extensions.toml:repos = ["sqlate", "go-database", "architecture"],root = "sqlate";order = ["extension-stage", "sqlint-extensions", "pgvector-sql", "pgvector-go", "principles"];context = ["standards-lab/context/postgres-extensions.md"];[tasks.*]table per task, each with a short summary.pgvector-gotakesrepos = ["go-database"],principlestakesrepos = ["architecture"], and the firstthree take
repos = ["sqlate"].strategytask is removed.roadmap/index.toml: movev1.data.extensionsfromplannedtoactive.context/postgres-extensions.md: the strategy above, with the facts it rests on (nodowngrade scripts in pgvector, the privilege notes, the per-space index recipe).
context/data-intelligence.md: point evidence 10 at the new note.context/migration-sets.md: add one line saying shipped sets declare no extensions, with alink to the note.
context/waves.md: the wave C line, saying v1.data.extensions is staged alongside C.references.mdas pending edits when they exist.sqlate (root)
context/goals/v1.data.extensions.md.idle, Task none.truth, Options carrier,
ErrPendingmapping, removal by RESTRICT after the sets, no shippedset declares an extension, the forms rule, the module paths, the Dockerfile
ARG).references.mdgains the new sub-modules, with pgvector and pgvector-gounder upstream sources;
principlessync.No next brief is written. The next
start v1.data.extensionsplansextension-stage.Verification
lint-context && lint-referencespass in standards-lab (itsmarathon check).lint-contextholds to the goal file'sorder.marathon statuslists v1.data.extensions as active and idle, withextension-stagenext.marathon checks, and merges: standards-lab first, thensqlate.
The plan file is deleted once the edits are published.