Skip to main content

Guidance message

sasha.common.public.Guidance · sasha/common/public/guidance.proto:28

SASHA-evaluated distribution guidance for a found signature.

Guidance is a coarse, server-side evaluation of the found signature's Record: the underlying rules (URL patterns, time windows) are evaluated into closed-enum verdicts and are never carried in Guidance itself. The optional human-readable message may name domains from the evaluated rules (domain names are public knowledge and are not masked), but full URL patterns and other raw Record content are never included. Raw Record fields may separately be disclosed to an authorized looker via the lookup response's record field; that path is independent of Guidance.

Guidance reflects the distribution intent the creator declared to SASHA. It is not a determination of the legal status of the media; rights such as copyright apply independently of the returned advice.

  • share_stateShareStaterequired= 1
    The creator-declared share state of the media.
  • adviceGuidance.Advicerequired= 2
    The verdict for the queried location and time.
  • messagegoogle.protobuf.StringValueoptional= 3
    Human-readable explanation of the verdict, e.g. "Only allowed on example.com".

Field notes​

share_state

Required. The creator-declared share state of the media.

A signature without a Record yields SHARE_STATE_PRIVATE.

advice

Required. The verdict for the queried location and time.

  • SHARE_STATE_PRIVATE yields ADVICE_NOT_ALLOWED for any public location.
  • SHARE_STATE_UNRESTRICTED yields ADVICE_ALLOWED.
  • SHARE_STATE_RESTRICTED is evaluated against the supplied GuidanceContext and the current time; without URL context the verdict may be ADVICE_INCONCLUSIVE. A restricted Record that carries no distribution fields permits no locations and yields ADVICE_NOT_ALLOWED.

message

Optional. Human-readable explanation of the verdict, e.g. "Only allowed on example.com".

SASHA does not set this field today; do not rely on it being present. When set, it typically explains ADVICE_NOT_ALLOWED or ADVICE_INCONCLUSIVE, and it is for developer convenience only: English, not localized, and the wording is not stable across releases — never parse or branch on it; use advice and share_state for program logic. The text may name domains from the Record's allowed URL patterns (domain names are public knowledge and are not masked); it never carries full URL patterns or other raw Record content.

Referenced by​

  • Job — field guidance