Feat v0.8.2 capability negotiation (#69)
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Has been skipped
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-go-pg (push) Successful in 2m47s
CI/CD / test-sqlite (push) Successful in 2m52s
CI/CD / build-and-deploy (push) Successful in 30s
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Has been skipped
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-go-pg (push) Successful in 2m47s
CI/CD / test-sqlite (push) Successful in 2m52s
CI/CD / build-and-deploy (push) Successful in 30s
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #69.
This commit is contained in:
40
CHANGELOG.md
40
CHANGELOG.md
@@ -2,6 +2,46 @@
|
||||
|
||||
All notable changes to Armature are documented here.
|
||||
|
||||
## v0.8.2 — Capability Negotiation
|
||||
|
||||
Extensions declare environment requirements in their manifest. The kernel
|
||||
validates at install time and exposes a runtime query for graceful degradation.
|
||||
|
||||
**Manifest: `capabilities` block**
|
||||
|
||||
- `capabilities.required` — array of capability names. Install is rejected
|
||||
(HTTP 422) if any are unavailable. Rollback deletes the package row.
|
||||
- `capabilities.optional` — array of capability names. Install succeeds
|
||||
regardless; extensions query at runtime via `settings.has_capability()`.
|
||||
|
||||
**Detected capabilities:** `postgres`, `pgvector`, `object_storage`, `s3`,
|
||||
`workspace`.
|
||||
|
||||
**Starlark API**
|
||||
|
||||
- `settings.has_capability(name)` — returns `True` or `False`. Always
|
||||
available (no permission required).
|
||||
|
||||
**Admin API**
|
||||
|
||||
- `GET /api/v1/admin/capabilities` — re-probes and returns current state.
|
||||
|
||||
**Internal**
|
||||
|
||||
- New: `handlers/capabilities.go` (detection, parsing, validation, admin handler).
|
||||
- New: `handlers/capabilities_test.go` (14 tests).
|
||||
- New: `sandbox/settings_module_test.go` (4 tests).
|
||||
- Modified: `handlers/packages.go` — replaced stub `checkCapabilities` with
|
||||
real validation; `SetCapabilities` setter.
|
||||
- Modified: `handlers/packages_bundled.go` — bundled packages with unmet
|
||||
required capabilities are skipped on startup.
|
||||
- Modified: `sandbox/settings_module.go` — `has_capability` builtin.
|
||||
- Modified: `sandbox/runner.go` — `capabilities` field + `SetCapabilities` setter.
|
||||
- Modified: `server/main.go` — `DetectCapabilities` at startup, wired to
|
||||
runner and package handler, admin route registered.
|
||||
|
||||
---
|
||||
|
||||
## v0.8.1 — Workspace Module
|
||||
|
||||
New `workspace` sandbox module. Managed disk directories for extensions
|
||||
|
||||
Reference in New Issue
Block a user