Skip to content

pgokf 0.2.0

Choose a tag to compare

@LogicOcean LogicOcean released this 09 Sep 20:40
· 177 commits to main since this release

Skill packages are catalog content, and a web UI to work with them.

A bundle may now carry Agent Skills packages whose exact bytes the catalog stores and serves back. pgokf-web puts a UI and a JSON API over the whole catalog, with an optional human workflow — upload, edit, review — once an identity mode and a writer connection are configured. pgokf-workspace turns a catalog selection into an agent-harness tree for twelve named harnesses. And pgokf-mcp speaks HTTP as well as stdio, with bearer tokens and four roles.

ALTER EXTENSION pgokf UPDATE TO '0.2.0' is additive: it creates the new tables empty. A bundle that already carried a SKILL.md projects into pgokf.skills / pgokf.scripts / pgokf.reference_documents on its next refresh_bundle.

Highlights

  • Skill packages, byte for byte. The sync classifies every file of a package, projects the manifest as a virtual type: Skill concept, and keeps exact bytes regardless of store_source. Three audited, reader-level, tenant-scoped readers return them, and the plugin builder copies packages through those readers whole — scripts still executable.
  • A web UI over the whole catalog. Search with facets, a 3D link graph, bundle and concept browsing, an operations page, and a five-step plugin builder. Roles are a ladder — viewer, uploader, editor, approver, admin — with identity from a password kept in the catalog, an authenticating proxy, or any number of OpenID Connect providers and GitHub, all set up from the Admin page rather than a config file.
  • The human workflow, and the rule behind it. A verification is granted by an approver reviewing a document; it is never something a contributor types into one. A verified list in an upload or an edit is set aside under superseded_verifications, with who set it aside and why, so the derived trust tier cannot be claimed.
  • MCP for agents, over stdio or HTTP, with four token roles: reader, builder, writer, admin. A writer token may add or replace documents in a content bundle and an admin token may manage bundles — and what an agent writes arrives unverified whatever it claims, for a person to review. The two writing roles need the server to hold a writer connection of its own (OKF_PG_WRITER_URL); without one their tools are listed and say so.
  • The web UI's identity state lives in the catalog, in four extension-owned pgokf_web tables granted to pgokf_writer only: people, sessions, MCP token digests, and identity providers. Transactional, shared by every instance, and carried by pg_dump.
  • Sessions can be ended, not merely left to expire. Every issued session is a row; a cookie the catalog does not list is refused. Signing out ends it everywhere, and an admin can end anyone's.

Security

This release includes fixes for issues found in review before it shipped, several in code that predated it: a cross-tenant content write, a content rewrite that silently dropped a bundle's index.md and log.md, concurrent writers overwriting each other, an unbounded sign-in throttle, a symlink-following temp write, and an OIDC login that accepted an unverified email claim. See the changelog for the full list.

Install

docker pull ghcr.io/logicocean/pgokf:0.2.0-pg18
docker pull ghcr.io/logicocean/pgokf-companions:0.2.0

Images are multi-architecture (linux/amd64, linux/arm64) for PostgreSQL 15–18. The extension builds from source on 15–19.

The full changelog is in CHANGELOG.md.