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
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:aibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions