chore(spec): govern ai (Agent/Tool/Skill) + allowlist mode in the liveness gate - #1932
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…iveness gate
Third category for the spec-liveness gate. Two gate capabilities make noisy
categories tractable:
- allowlist mode (`"mode":"allowlist"` + `"governed":[...]`) — only the named
authorable schemas are checked; the rest of the category is out of scope. The
json-schema categories don't map to authorable types (ai is mostly embedder/
knowledge/model DTOs), so blanket per-category classification doesn't scale. A
governed name that no longer resolves is reported (catches renames).
- auto-classify ADR-0010 framework provenance/lock fields (_lock*, _provenance,
_packageId/Version, _lockDocsUrl, protection) as `live`, so every type's ledger
doesn't repeat them.
ai ledger seeded from docs/audits/2026-06-{agent,tool,skill}schema-*.md:
- 63 props: 46 live / 5 experimental / 12 dead, 0 unclassified.
- Agent: core + model/skills/tools/active/planning live; access/permissions/
visibility/tenantId/knowledge DEAD (access-control is a no-op — chat route
hardcodes ['ai:chat','ai:agents'], ADR-0049 #1884); lifecycle/memory/guardrails/
structuredOutput experimental (aspirational autonomy).
- Tool: write-only metadata — name/description/parameters/objectName live (via the
parallel AIToolDefinition); category/requiresConfirmation/active/builtIn/
permissions dead; outputSchema experimental.
- Skill: name/label/description/instructions/tools/triggerConditions/active live;
triggerPhrases dead (no matcher), permissions dead (+ requiredPermissions drift).
Stacked on #1924 (identity). GOVERNED = security, identity, ai.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
os-zhuang
force-pushed
the
chore/spec-liveness-ai
branch
from
June 16, 2026 02:35
37c1d01 to
e40e7b6
Compare
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 89 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
akarma-synetal
pushed a commit
to akarma-synetal/framework
that referenced
this pull request
Aug 17, 2026
…ntity (objectstack-ai#8968) The publish smoke went straight from install to `objectstack dev`, so it never ran `npm run build` in either mode. That is where every "published scaffold is broken" incident so far actually surfaced (objectstack-ai#4902, objectstack-ai#7644, objectstack-ai#8677): in all of them scaffold and install exited 0 and only the build exited 2, so the gate was structurally unable to see them. Scheduled registry-canary run objectstack-ai#1932 concluded success on 2026-08-10 against a create-objectstack whose scaffold failed first build on four templates. Both modes now run the project's own build script and assert exit 0, plus a non-empty dist/objectstack.json so a build that emits nothing cannot read as a pass. Scope is the bundled `blank` template — the scaffolder's whole catalog since the five remote templates were delisted. Also assert the scaffolded namespace differs from the template's own. The identity rewrite only does anything when the two differ, and objectstack-ai#7644 was a rewrite that silently did nothing: measured against create-objectstack@16.1.0, the build reports 4 namespace-prefix errors when they differ and 0 when the project is named after the template. `smoke-app` differing from `blank` was accidental; it is asserted now. Measured cost on GA 17.0.0: build 3s on top of an install already being paid. Co-authored-by: Claude <noreply@anthropic.com>
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.
Third category for the spec-liveness gate, plus the refactor needed to make noisy categories tractable.
Why the refactor
The json-schema categories don't map to "authorable metadata types" —
aiis mostly embedder/knowledge/model/runtime DTOs, with only Agent/Tool/Skill author-written. Blanket "classify every object schema" doesn't scale. Two additions:"mode":"allowlist"+"governed":["Agent","Tool","Skill"]; only those are checked, the rest of the category is out of scope. Agovernedname that no longer resolves is reported (catches renames silently dropping coverage)._lock*,_provenance,_packageId/Version,protection) appear on every type and are system-stamped; the gate auto-classifies themliveso ledgers don't repeat them.aifindings (seeded from the agent/tool/skill audits)63 props: 46 live / 5 experimental / 12 dead, 0 unclassified.
access/permissions/visibility/tenantIdDEAD — "who can chat with this agent" is a no-op (the chat route hardcodes['ai:chat','ai:agents'],agent-routes.ts:109; ADR-0049 [P0][security] Agent access control is a no-op (permissions/visibility/access) #1884).knowledgedead (shape drift).lifecycle/memory/guardrails/structuredOutputexperimental (aspirational autonomy).model.provider/topPdead within a livemodel.AIToolDefinition). name/description/parameters/objectName live; category/requiresConfirmation/active/builtIn/permissions dead; outputSchema experimental.triggerConditions/active live;triggerPhrasesdead (no intent matcher exists);permissionsdead (+requiredPermissionsnaming drift).Gate result
🤖 Generated with Claude Code