You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rest: PUT /meta/knowledge_source answers a scoped knowledge-factory miss as "this deployment runs no knowledge service" #38211
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p3
Filing gate: ① follow-up of PR #38208 (#38058; contract record 7235658537 §③ note 2, which asks for it to be filed and measured first) · Source: topic #37000
Grading: area:ai · Bug · p3 (suggested: refusal wording on one transport; status is right, and the platform's own plain-instance service cannot reach it) · reach: a host that registers a scoped knowledge factory that serves no instance for an environment, saving a knowledge_source through REST · evidence: read, NOT MEASURED. RestServer.resolveKnowledgeService (packages/rest/src/rest-server.ts ~6227) returns whatever kernelServiceProvider answers and maps only the branded miss to undefined, so a scoped miss most likely takes the no-service sentence, while after PR #38208 the dispatcher transport answers it with its own scope sentence.
Dedupe: is:issue rest knowledge scoped factory miss no knowledge service → checked at filing; open: #38058 (the parent) only.
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.
Measure first: on a real kernel with a SCOPEDknowledge factory that serves no instance for the request's environment, PUT /meta/knowledge_source/:name through RestServer. Record the status and sentence.
A REST pin on a real kernel with a scoped factory asserts the scope sentence (or the stated reason). The controls are a plain instance (admitted) and a factory that serves the scope (admitted).
The two transports answer the same miss with the same sentence.
Triage: lands in area:ai · domain:rest · Bug · p3 · pm:blocked · size XS; rationale: on one transport, PUT /meta/knowledge_source words a scoped knowledge-factory miss as "this deployment runs no knowledge service". The status is right, and the platform's own plain-instance service cannot reach this path, so the filer's p3 stands. Recorded 2026-11-28T07:16Z.
Unlock · #38211 · 2026-11-28T10:27Z: its Blocked-by: PR #38208 merged at 2026-11-28T10:20Z, and card #38058 is closed. pm:blocked → pm:queue; the grade (p3, area:ai) is unchanged. Knowledge retrieval is outside the p1-only line. Answers seat repo:objectstack#1 (7237903923).
Claim: PM loop round 16 · area o1-C (epic #37000; area concurrency 10 by the maintainer 2026-11-28T10:17Z; all priorities, maintainer 2026-11-28T06:54Z) · 2026-11-28T10:36Z
Session: session_016WV4cwPhGV4g9p1BGQaZbP
Account: os-elon-musk
Branch: claude/area-o1C-38211
Worktree: objectstack-issue-38211
Domain: domain:server
Area: o1-C
Seat: repo:objectstack#1
File surface: packages/rest/src/rest-server.ts (resolveKnowledgeService and the PUT /meta miss), its tests on a real kernel, a changeset.
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S, measured first; the fix, if owed, mirrors the dispatcher's classification on a real kernel with two controls)
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack's own code, packages/rest/src/rest-server.ts | REST PUT /meta/knowledge_source may answer a scoped knowledge-factory miss as "this deployment runs no knowledge service" where the dispatcher now names the scope | every deployment with a scoped knowledge factory saving over REST
Thread-read: 7237921832
Premise: to be measured first (card What 1); read on origin/main f19350b: the dispatcher has classifyServiceOrLoud and knowledgeServiceNotInScope (PR #38208).
Serial constraints cleared: no open PR touches packages/rest/src/rest-server.ts.
Pre-claim lane: packages/rest/** ⇒ domain:server.
Pre-claim deps: none.
Prior rulings read: PR #38208's contract records; unlock 7237921832.
Fold-or-serial: not folded.
{
"issue": 38211,
"status": "done",
"branch": "claude/area-o1C-38211",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38325",
"session": "session_016WV4cwPhGV4g9p1BGQaZbP",
"premise_still_valid": true,
"summary": "Measured first on base f19350b410. The setup was a real ObjectKernel with a SCOPED knowledge factory and the real RestApiPlugin, and the request was PUT /api/v1/environments/env_alpha/meta/knowledge_source/faq. A factory serving env_beta answered 503 SERVICE_UNAVAILABLE 'this deployment runs no knowledge service'. A factory serving env_alpha gave the SAME 503, so the card's admitted control also failed. A plain instance answered 200. Cause: the single-kernel provider read the slot with ctx.getService, which cannot build a factory and names no scope. On the hosted shape the environment-kernel read named no scope and answered 503 'could not be judged (Scope ID required ...)'. Fix: RestApiPlugin builds classifiedKernelServiceProvider. It uses the same legs as environmentScopedProvider, passes the environment id as the scope id, reads the own kernel through getServiceAsync, and returns the dispatcher's three outcomes (resolved / never-registered / no-instance-in-scope). RestServer.resolveKnowledgeService maps no-instance-in-scope to knowledgeServiceNotInScope(scopeId). So both transports answer one miss with the predicate's one sentence. The served factory and the plain instance are admitted, and nothing registered keeps the no-service sentence. Deviation from the claim: the file surface also includes rest-api-plugin.ts (the composition root, which holds the kernel handle) and rest-api-plugin-slot-lookups.test.ts (its positional-argument ledger). Clause-② is 'yes (widening)' rather than the claim's 'no': the exported RestServer constructor gains an optional trailing parameter.",
"tests": "Head 3620e2bb898: vitest on rest-api-plugin-slot-lookups.test.ts and rest-environment-scoped-providers.test.ts gave 'Test Files 2 passed (2)', 'Tests 164 passed (164)'; the lock printed 'VERDICT command-exit 0'. pnpm --filter @objectstack/rest typecheck passed ('check:test-typecheck: OK'). Whole package at e78a8cd8d21 (one commit earlier): 'Test Files 1 failed | 439 passed (440)', 'Tests 1 failed | 9306 passed | 376 skipped'. The one red was the slot-lookup positional ledger asking for new argument 24. 3620e2bb898 adds its row and a pin (test-only commit), and that file is green above. The whole package was not re-run on 3620e2bb898; CI Test Core runs it. Ablation at d6197a14ace via scripts/ablation-replace.mjs (anchor '}, classifiedKernelServiceProvider);' went x1 to x0; src is under test, so no dist leg): 'Tests 4 failed | 1 passed'. Every new case went red except the nothing-registered control, which should be unchanged. The restore matched the HEAD blob and git diff HEAD was empty. The first measurement was a temporary file that was deleted. Its readings are in the PR table.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on 3620e2bb898: 73 families, each run with its exit code captured before any pipe. --ran: '73 derived famil(ies) accounted for — 71 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. 71 exited 0. NOT MEASURED: pnpm check:type-check-debt, because its re-measure builds under the verify lock and exited 3 in the queue; a second run was stopped, not retried another way. NOT MEASURED: pnpm check:dual-build-cjs-loads, PREREQUISITE NOT MET because it needs a whole-workspace build. CI check-runs on PR #38325 were not read: they were in_progress or not yet reported at report time, and CI convergence is the PM's.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — git push (branch claude/area-o1C-38211, several pushes, not REST); fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/38325/assignees, via POST /repos/objectstack-ai/objectstack/dispatches); post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/38211/comments)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — hosted shape with the scoped knowledge factory on the HOST kernel rather than the environment kernels: the dispatcher's classifyService reads the host kernel first (with the scope id) and can admit a save that REST, which by the environment-scoped seam rule reads only the request environment's kernel, answers with the no-service sentence. Read, not measured; no composition here registers knowledge that way. In PR Acceptance notes."
]
}
Delivered by PR #38325 (merged 783a569 at 2026-11-28T14:27Z, Tier S): the knowledge_source save over REST reads knowledge in the request's environment and answers a scoped-factory miss with the dispatcher's scope sentence; nothing registered keeps the no-service sentence. The card closed on merge via Fixes. The record's N1 (a scoped factory on the host kernel, which REST does not read and the dispatcher does) is a follow-up. pm:dispatched removed with this comment.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p3
Activity
objectstack-fleet commentedon Nov 28, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:rest · Bug · p3 · pm:blocked · size XS; rationale: on one transport,
PUT /meta/knowledge_sourcewords a scoped knowledge-factory miss as "this deployment runs no knowledge service". The status is right, and the platform's own plain-instance service cannot reach this path, so the filer's p3 stands. Recorded 2026-11-28T07:16Z.objectstack-fleet commentedon Nov 28, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Unlock · #38211 · 2026-11-28T10:27Z: its
Blocked-by:PR #38208 merged at 2026-11-28T10:20Z, and card #38058 is closed.pm:blocked→pm:queue; the grade (p3, area:ai) is unchanged. Knowledge retrieval is outside the p1-only line. Answers seat repo:objectstack#1 (7237903923).objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Claim: PM loop round 16 · area o1-C (epic #37000; area concurrency 10 by the maintainer 2026-11-28T10:17Z; all priorities, maintainer 2026-11-28T06:54Z) · 2026-11-28T10:36Z
Session:
session_016WV4cwPhGV4g9p1BGQaZbPAccount:
os-elon-muskBranch:
claude/area-o1C-38211Worktree:
objectstack-issue-38211Domain:
domain:serverArea: o1-C
Seat:
repo:objectstack#1File surface:
packages/rest/src/rest-server.ts(resolveKnowledgeServiceand thePUT /metamiss), its tests on a real kernel, a changeset.Container & model: S,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S, measured first; the fix, if owed, mirrors the dispatcher's classification on a real kernel with two controls)Clause-②: no
Metadata-protocol: none
Responsibility: objectstack's own code,
packages/rest/src/rest-server.ts| RESTPUT /meta/knowledge_sourcemay answer a scoped knowledge-factory miss as "this deployment runs no knowledge service" where the dispatcher now names the scope | every deployment with a scoped knowledge factory saving over RESTThread-read: 7237921832
Premise: to be measured first (card What 1); read on origin/main f19350b: the dispatcher has
classifyServiceOrLoudandknowledgeServiceNotInScope(PR #38208).Serial constraints cleared: no open PR touches
packages/rest/src/rest-server.ts.Pre-claim lane:
packages/rest/**⇒domain:server.Pre-claim deps: none.
Prior rulings read: PR #38208's contract records; unlock 7237921832.
Fold-or-serial: not folded.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report
{ "issue": 38211, "status": "done", "branch": "claude/area-o1C-38211", "pr": "https://github.com/objectstack-ai/objectstack/pull/38325", "session": "session_016WV4cwPhGV4g9p1BGQaZbP", "premise_still_valid": true, "summary": "Measured first on base f19350b410. The setup was a real ObjectKernel with a SCOPED knowledge factory and the real RestApiPlugin, and the request was PUT /api/v1/environments/env_alpha/meta/knowledge_source/faq. A factory serving env_beta answered 503 SERVICE_UNAVAILABLE 'this deployment runs no knowledge service'. A factory serving env_alpha gave the SAME 503, so the card's admitted control also failed. A plain instance answered 200. Cause: the single-kernel provider read the slot with ctx.getService, which cannot build a factory and names no scope. On the hosted shape the environment-kernel read named no scope and answered 503 'could not be judged (Scope ID required ...)'. Fix: RestApiPlugin builds classifiedKernelServiceProvider. It uses the same legs as environmentScopedProvider, passes the environment id as the scope id, reads the own kernel through getServiceAsync, and returns the dispatcher's three outcomes (resolved / never-registered / no-instance-in-scope). RestServer.resolveKnowledgeService maps no-instance-in-scope to knowledgeServiceNotInScope(scopeId). So both transports answer one miss with the predicate's one sentence. The served factory and the plain instance are admitted, and nothing registered keeps the no-service sentence. Deviation from the claim: the file surface also includes rest-api-plugin.ts (the composition root, which holds the kernel handle) and rest-api-plugin-slot-lookups.test.ts (its positional-argument ledger). Clause-② is 'yes (widening)' rather than the claim's 'no': the exported RestServer constructor gains an optional trailing parameter.", "tests": "Head 3620e2bb898: vitest on rest-api-plugin-slot-lookups.test.ts and rest-environment-scoped-providers.test.ts gave 'Test Files 2 passed (2)', 'Tests 164 passed (164)'; the lock printed 'VERDICT command-exit 0'. pnpm --filter @objectstack/rest typecheck passed ('check:test-typecheck: OK'). Whole package at e78a8cd8d21 (one commit earlier): 'Test Files 1 failed | 439 passed (440)', 'Tests 1 failed | 9306 passed | 376 skipped'. The one red was the slot-lookup positional ledger asking for new argument 24. 3620e2bb898 adds its row and a pin (test-only commit), and that file is green above. The whole package was not re-run on 3620e2bb898; CI Test Core runs it. Ablation at d6197a14ace via scripts/ablation-replace.mjs (anchor '}, classifiedKernelServiceProvider);' went x1 to x0; src is under test, so no dist leg): 'Tests 4 failed | 1 passed'. Every new case went red except the nothing-registered control, which should be unchanged. The restore matched the HEAD blob and git diff HEAD was empty. The first measurement was a temporary file that was deleted. Its readings are in the PR table.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on 3620e2bb898: 73 families, each run with its exit code captured before any pipe. --ran: '73 derived famil(ies) accounted for — 71 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. 71 exited 0. NOT MEASURED: pnpm check:type-check-debt, because its re-measure builds under the verify lock and exited 3 in the queue; a second run was stopped, not retried another way. NOT MEASURED: pnpm check:dual-build-cjs-loads, PREREQUISITE NOT MET because it needs a whole-workspace build. CI check-runs on PR #38325 were not read: they were in_progress or not yet reported at report time, and CI convergence is the PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push (branch claude/area-o1C-38211, several pushes, not REST); fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/38325/assignees, via POST /repos/objectstack-ai/objectstack/dispatches); post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/38211/comments)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — hosted shape with the scoped knowledge factory on the HOST kernel rather than the environment kernels: the dispatcher's classifyService reads the host kernel first (with the scope id) and can admit a save that REST, which by the environment-scoped seam rule reads only the request environment's kernel, answers with the no-service sentence. Read, not measured; no composition here registers knowledge that way. In PR Acceptance notes." ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Close-out · area o1-C · 2026-11-28T14:27Z
Delivered by PR #38325 (merged 783a569 at 2026-11-28T14:27Z, Tier S): the
knowledge_sourcesave over REST readsknowledgein the request's environment and answers a scoped-factory miss with the dispatcher's scope sentence; nothing registered keeps the no-service sentence. The card closed on merge viaFixes. The record's N1 (a scoped factory on the host kernel, which REST does not read and the dispatcher does) is a follow-up.pm:dispatchedremoved with this comment.