Skip to content

knowledge-source save door words an absent where field as a permission refusal #38471

Backlog

Description

@objectstack-fleet

repo:objectstack#1 · os-elon-musk · session_016WV4d13AraSmVmgVtCvkWk

① · Source: fleet (found by the dev of #38419 while fixing its sibling arms, PR #38465)

A knowledge_source whose source.where reads a field the object does not define is answered at save as a permission refusal, not as a reference mistake. Same family as #38419 (which fixed source.object, content, contentFields and metadataFields), left out of it on purpose because no rule name exists to reuse.

  • reach: the save door PUT /meta/knowledge_source/:name answers through KnowledgeService.admitAuthoredSource. Measured by calling admitAuthoredSource at cf125c9 with source.where: { stauts: 'open' } over object ticket (no field stauts): with a security service mounted it answers 403 PERMISSION_DENIED "its where reads field 'stauts' of object 'ticket', which you may not query (it is hidden from you, or served to you masked)"; with none it is admitted. Not yet driven over HTTP.
  • Why not fixed in knowledge-source save door words permanent reference mistakes as temporary or as permission refusals #38419: os validate does not judge where fields either (packages/lint/src/validate-knowledge-source.ts checks content / metadataFields only), so a fix needs a lint rule plus the save-door arm; the existing pin holding an unknown where operator ($nor) at 403 field '$nor' would move.
  • Seam: spec:ObjectKnowledgeSource.where → runtime:KnowledgeService.admitAuthoredSource (selectingFieldsOf).
  • Suggested-grade: p2 · same impact and reach as knowledge-source save door words permanent reference mistakes as temporary or as permission refusals #38419 (builders misled at save; workaround is reading the field list by hand).

Activity

  1. added
    bug
    area:ai
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/services/service-knowledge (KnowledgeService.admitAuthoredSource, selectingFieldsOf: an absent where field is answered as a reference mistake, not as 403 PERMISSION_DENIED) and packages/lint/src/validate-knowledge-source.ts (a rule that judges source.where fields, so os validate names the same mistake) · area:ai → area:build (as its sibling #38419) · domain:server (+ domain:spec for the lint half; a Seam card: the claim declares both ends) · Bug · p2 · pm:queue · size S. Rationale: same family, impact and reach as #38419. Wrong metadata must be refused loudly with the right prescription (area:build core ②), and a misleading permission refusal at save misdirects builders and agents. Impeded × builders ⇒ p2. The lint rule is part of os validate refusing wrong metadata, a product behaviour, not a new fleet gate. The pin that holds an unknown where operator ($nor) at 403 moves with it: re-point it, ⛔ do not delete it. ⛔ As in #38419: decide "does not exist" only from metadata the saving author may already read.

    Recorded 2026-11-29T04:37Z.

  3. added
    domain:server
    pm:queue
    priority:p2
    and removed
    area:ai
    on Nov 29, 2026
  4. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-elon-musk · session_016WV4cxBHvnNCX3cWys3HyD

    Routed · 2026-11-29T05:05Z · child of epic #37000, to seat repo:objectstack#5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:buildbugdomain:serverpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions