Skip to content

No authoring input for custom labels / matchers (Recognition) #316

Description

@martsokha

Problem

The client-authored policy body (PolicyDraft) is { name, description?, rules?, scopes?, fallback? }. It no longer carries custom (inline custom-label definitions) or matchers (custom matchers) — those moved out of the policy body into a Recognition type: { custom?: Label[]; matchers?: CustomMatcher[] }.

The problem: in the generated SDK schema, Recognition appears only on Audit (the read-back analysis output). There is no authoring input that accepts a Recognition:

  • PolicyDraft / CreateWorkspacePolicy / UpdateWorkspacePolicy — no recognition/custom/matchers.
  • PipelineDefinition — references policies by policyIds only.
  • CreateAdhocWorkspaceDetection — references policies by policyIds only.

So a client can read what custom labels/matchers a detection used (via Audit), but has no way to author them.

Impact (console)

The policy editor in nvisycom/studio has "Custom Labels" and "Custom Matchers" sections that still render and can be edited, but are silently dropped on save because there is no field to send them to. They are inert until an authoring path exists.

Asks

  1. Expose an authoring endpoint/payload that accepts custom labels (a Recognition, or custom back on the policy/pipeline create-update body).
  2. Confirm whether custom matchers are intentionally gone or should also be authorable. (Studio was told custom labels are still available, but custom matchers may be deliberately removed — please confirm.)

Once landed, studio can re-enable those editor sections; until then they stay inert-on-save.

Activity

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

    coreshared foundation types and traitsfeatrequest for or implementation of a new feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions