submit_feedback #

View this page as Markdown

On this page

Generated automatically from the published contract sources.

A script calls this action over HTTPS at POST https://dev.turnzero.ai/api/v1/submit_feedback, with a bearer credential and the action's payload as the JSON body. An MCP connection lists this action as the tool submit_feedback.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts (Sign-in, sessions, and tokens).

Build metadata: Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

Contract description #

File feedback about Turn Zero: bugs, gaps, refusals, missing pages, workarounds or praise. Without space, your report goes to the Turn Zero feedback space.

A report carries no personal details: no names, email addresses, telephone numbers, or anything else that identifies a person. A tool quotes the person's content in a report only if that person files it.

A repeated problem_key joins the same issue. The result gives your report's number, the issue state and up to three possible duplicates. A call with report and repeat_of confirms a duplicate.

Read Turn Zero's feedback API docs at https://turnzero.ai/turnzero/guides/feedback/. Use read_documentation with /turnzero/guides/feedback/.

More about this action #

Your acting account files the report. The HTTP action accepts actor_name and records it with the act. The MCP tool has no actor_name argument. The kind is one of bug, gap, docs, friction, question, task, praise, and idea. Some older words are still read as one of them: missing_capability, documentation_gap, refusal_not_understood, usability, and problem, error, and mistake for a bug. body aliases text, and key aliases problem_key. The older severity spelling maps critical and high to blocked, medium to worked_around, and low to annoyed. Pass one spelling of each. With recovered: true, pass the legacy key and no filing members to settle your open filing.

Every form requires source: agent for your own feedback, person for a report the person dictated, or system for a program's or company harness's feedback. Only agent takes provider and session. Supply both or neither.

On the HTTP action, any source can supply actor_name when filing, confirming or amending a report. Use actor_name only for your AI session's or automated job's name, or for your own name when you write under your own sign-in. Use one line of 1 to 64 visible characters. Leave out control and invisible formatting characters. Names beginning with service: are refused. A name containing an email address, telephone number, card number or service credential is refused in every space.

Under a minted token, person is written as agent. Use agent for your own assessment or a summary you write of someone else's experience. For a filing, give a short title that describes the problem and keep the filer's wording in text. Leave personal details and credentials out of both, including dictated feedback. Include any workaround the reporter used.

Choose impact from what the reporter describes. Use blocked if they could not continue, worked_around if they used another route, annoyed for friction without a different route, or none if they report no impact. If a dictated report gives too little information to choose, omit impact.

Where the reference in evidence identifies one of your own refused calls, the platform stamps the action, the refusal, the code site, and the build from its own record on either of two grounds. The kind is bug; or the impact is blocked, the kind is neither praise nor idea, and the action is one the target space lists as critical. The latter ground needs the space's configuration; a failed read admits no critical action. Where that call was not refused, it writes the action and the build and leaves the evidence as you claimed it. A report about a refused call that meets neither ground also gets the refusal, still marked as claimed and with no code site.

Use the returned name in evidence.refusal, such as invalid_request.

Without a problem_key, the service derives one from the kind, the title, and the evidence's action and refusal. Praise is kept apart: praise and a report of another kind under one key go to two issues.

A filing writes a report. After a lost filing answer, retry the unchanged call with the same problem_key, words and evidence. The comparison uses the title, text, proposed resolution and the evidence's action, refusal, reference, code site and context. The title comparison ignores case and extra spaces. Text and proposed resolution are compared exactly as they stand after masking. The service treats evidence.environment and evidence.version separately as the observed build. A match normally returns the earlier report as retried and stores nothing. Changes only to impact, workaround or that build leave the comparison unchanged. A change to a compared field adds a report to the same issue. After the issue is fixed, an otherwise matching filing adds a report if it shows the problem with the fix and the earlier filing did not.

If text would exceed 20,000 characters, file it in parts within the limit under the same problem_key.

To confirm that a report repeats an issue, pass repeat_of. In the platform space, use a candidate your filing returned or an issue already linked to one of your reports. In your account's or application's own space, repeat_of may name any issue there. For an issue closed duplicate, confirm its master instead. On a new filing, the report joins that issue at once.

With report, use the earlier report's number, never an issue's. The call links that report to the issue. Use agent when you confirm your own filing at the person's request. The confirmation accepts the optional provider and session pair for agent. If you send either, send both. The earlier issue closes as a duplicate only if that report opened it, it has no other report link, and its state is new, open or waiting. Otherwise it keeps its state and the report links to both. The answer's outcome is confirmed when linked or related when only a relation is made. Where one of the two is praise and the other is not, nothing is linked and the answer reads related.

If a confirmation answer is lost, use read_feedback in the same space to check whether the target issue already lists your report. Repeating the same confirmation for a link that already exists adds nothing.

To correct or withdraw a report of your own, call again with amends, the report's number and never an issue's, and the corrected words or withdraws: true. The call accepts withdraws, title, text, impact, workaround, proposed_resolution, kind, labels, and product alone. Each of those you leave out keeps the report's value. Null on text, workaround, or proposed_resolution clears that member; an empty text still clears the text. The correction is filed beside the report, which stays as filed and keeps its evidence, and joins every issue the report belongs to. The call returns amended. Another account's report is refused not_found.

To attach screenshots, store each with mint_upload_grant and its put line, then list it in files as { application, area, name, environment }. List at most 4, each a PNG, JPEG, or WebP file of at most 524,288 bytes. An image is stored exactly as sent; the platform removes nothing from it. An item's environment, if omitted, is the deploy target.

The evidence argument says what the report is about: the action, the refusal name, the reference the refusal or the answer gave, and the code site. Use evidence.environment and evidence.version for the environment and version of the build where you observed the behavior. Use those values even if your application's deployment has a different environment or version. You might observe the behavior in a tool release or on an estate running an earlier build. Give both to record that build. One without the other is accepted and the build field stays empty. The context member has at most 20 short string members whose names use lowercase letters, digits, and underscores.

Pass space to file into an issue space your acting account has, given by its identifier, a lowercase UUID. It is the account's own space, an application's own space as submit_manifest's receipt gives it, or one space of an application's per-environment pair. The report goes into that space under the space's own token. Your acting account is the actor. On HTTP, the record includes actor_name if you supplied it. A request that passes application or environment is refused invalid_request, and the refusal gives space.

Access and action metadata #

{
  "name": "submit_feedback",
  "resource": "account",
  "tier": "reversible",
  "surface": "account",
  "addresses": [
    "tzcloud",
    "tztools"
  ],
  "admits": [
    "synthetic_estate",
    "tzmesh",
    "tztrack",
    "device_sign_in"
  ],
  "summary": "File a report into the platform's own space of the issue service as your acting account, under any bearer or account-scoped minted token, a token the synthetic_estate grant bounds among them. `source` gives the actor's kind, `person`, `agent` or `system`. An agent can give both `provider` and `session` or neither. Any source can also give `actor_name` on a filing, confirmation or amendment. Use `actor_name` only for your AI session's or automated job's name, or for your own name when you write under your own sign-in. Under a minted token, `person` is written as `agent`. `kind` is one of the record's eight kinds, `idea` among them, or a word still accepted for one, `problem`, `error`, and `mistake` for a `bug` among them. The report comes with a `title`, an optional `text` (or `body`), `impact` (or `severity`), `workaround`, `proposed_resolution`, `labels`, `restricted`, and an `evidence` member. That member gives the action, the refusal, and the reference the report is about. Keep personal details out of report text, including names, email addresses, telephone numbers and anything else that identifies a person. Where the reference identifies one of your own refused calls, the platform stamps the action, the refusal, the code site, and the build from its own record on either of two grounds. The kind is `bug`; or the impact is `blocked`, the kind is neither `praise` nor `idea`, and the action is one of the target space's `critical_actions`. It then marks the evidence stamped. Where that call was not refused, it writes the action and the build and leaves the evidence as claimed. A report about a refused call that meets neither ground also carries the refusal, still claimed and with no code site. `problem_key` (or `key`) identifies the problem among your own reports. A repeat compares the title, text, proposed resolution and the evidence's action, refusal, reference, code site and context. The title comparison ignores case and extra spaces. Text and proposed resolution are compared exactly as they stand after masking. Changes to those fields add a report to the same issue. Changes to impact, workaround or the observed build alone normally answer `retried` and store nothing. After the issue is fixed, an otherwise matching filing adds a report if it shows the problem with the fix and the earlier filing did not. Praise and a report of another kind under one key are filed on two issues. The answer carries your own report, the issue through the projection, the outcome (`filed`, `linked`, `retried`, `noted`, `confirmed`, `related`, or `amended`), up to three candidates it may be repeating, and the credential forms masked in its text. `repeat_of` beside a filing, or `report` with `repeat_of` alone, confirms a candidate. Across the praise kind it links nothing and the outcome reads `related`. `amends`, the number of one of your own reports and never an issue's, files an amendment. Beside it the call takes `withdraws`, `title`, `text` (or `body`), `impact` (or `severity`), `workaround`, and `proposed_resolution` alone. The report remains as filed, the amendment joins every issue the report belongs to, and the outcome is `amended`. Another account's report is refused `not_found`, as a number no report carries is. `files` attaches 1 to 4 images to a filing, each a PNG, JPEG, or WebP file of at most 524,288 bytes that `mint_upload_grant`'s put line stored in an area of the account's own application: the plane reads each under the call's credential before any call, refuses one it does not find `not_found` and one over the size `invalid_request`, and relays it as stored, serving no image on its own origin. With `key` and `recovered: true` and no member of a filing, the call is the 0.2.0 recovered mark. The plane bounds an account's filings and the relayed total per minute, refusing `feedback_rate_limited`, and refuses `issue_service_unreachable` where the service could not be reached. Registered while the issue service's origin is configured and unlisted, refusing `not_yet_provisioned`, before it. With `space`, the identifier of an issue space your account holds, the filing goes into that space. It is a space of the account's own, an application's own space, or one space of an application's per-environment pair. An identifier that matches no such space is refused `not_found` before any token is read. A token bounded to an application is refused `token_scope_refused`, its route to a space the egress gateway's.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": false
  }
}

MCP catalog entry #

{
  "name": "submit_feedback",
  "title": "Send feedback",
  "tier": "reversible",
  "scenario": "CHI-L0-14",
  "summary": "File feedback about Turn Zero: bugs, gaps, refusals, missing pages, workarounds or praise. Without `space`, your report goes to the Turn Zero feedback space.\n\nA report carries no personal details: no names, email addresses, telephone numbers, or anything else that identifies a person. A tool quotes the person's content in a report only if that person files it.\n\nA repeated `problem_key` joins the same issue. The result gives your report's number, the issue state and up to three possible duplicates. A call with `report` and `repeat_of` confirms a duplicate.\n\nRead Turn Zero's feedback API docs at https://dev.turnzero.ai/turnzero/guides/feedback/. Use read_documentation with /turnzero/guides/feedback/.",
  "owners": [
    "API-L0-20"
  ]
}

request #

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["source"]
Replaced members: application and environment were replaced by space
Retired members: personal and excerpt: A report has no personal option: file it again without it, leaving out anything you want excluded.
/properties/source Author: agent (you), person (dictated), or system (program). Only agent takes provider and session.

Type: string
Allowed values: ["person","agent","system"]
/properties/provider AI provider name.

Type: string
Pattern: ^[a-z][a-z0-9-]{0,31}$
/properties/session Host session id; paired with provider.

Type: string
Maximum length: 200
/properties/actor_name Taken on the HTTP action route alone. The MCP tool declares no actor_name argument and returns invalid_request if you send it. For a filing, confirmation or amendment, give your AI session's or job's name, or your own under your sign-in. Use one line of 1 to 64 visible characters.

Type: string
Minimum length: 1
Maximum length: 64
HTTP action route only, never an MCP tool argument: true
/properties/kind Required for filings; optional with amends, absent on confirmations; customer question/task refused.

Type: string
Allowed values: ["bug","gap","docs","friction","question","task","praise","idea","missing_capability","documentation_gap","refusal_not_understood","problem","error","mistake","usability"]
/properties/title Required for filings; optional with amends; absent on confirmations and recovered marks.

Type: string
Maximum length: 200
/properties/text Reporter's words, including dictated feedback, at most 20,000 characters. It carries no personal details: no names, email addresses, telephone numbers, or anything else that identifies a person.

Type: ["string","null"]
/properties/body Alias of text, at most 20,000 characters.

Type: ["string","null"]
/properties/impact Effect on the reporter or the person described.

Type: string
Allowed values: ["blocked","worked_around","annoyed","none"]
/properties/severity Maps to impact; see reference.

Type: string
Allowed values: ["critical","high","medium","low"]
/properties/workaround Workaround; null clears with amends.

Type: ["string","null"]
Maximum length: 4000
/properties/proposed_resolution Proposed fix; null clears with amends.

Type: ["string","null"]
Maximum length: 4000
/properties/labels Letters a-z, digits or -_.:; first a letter or digit.

Type: array
Maximum items: 20
/properties/labels/items Type: string
Maximum length: 64
/properties/evidence Call identifiers.

Type: object
Additional properties: false
/properties/evidence/properties/action Action name without tzcloud_.

Type: string
Maximum length: 200
/properties/evidence/properties/refusal Refusal name.

Type: string
Maximum length: 200
/properties/evidence/properties/reference Call's reference.

Type: string
Maximum length: 200
/properties/evidence/properties/code_site Code location in the answer.

Type: string
Maximum length: 200
/properties/evidence/properties/environment Build environment; recorded only with version.

Type: string
Maximum length: 200
/properties/evidence/properties/version Build version; recorded only with environment.

Type: string
Maximum length: 200
/properties/evidence/properties/context At most 20 short strings; keys: a-z, digits or _.

Type: object
maxProperties: 20
/properties/evidence/properties/context/additionalProperties Type: string
Maximum length: 500
/properties/restricted Hides a security report from other reporters.

Type: boolean
/properties/problem_key Your problem key.

Type: string
Maximum length: 200
/properties/key Alias of problem_key.

Type: string
Maximum length: 200
/properties/repeat_of Repeated issue, e.g. #92.

Type: string
Pattern: ^#[1-9][0-9]*$
/properties/report Report for repeat_of, not an issue.

Type: integer
Minimum: 1
/properties/amends Report to correct or withdraw.

Type: integer
Minimum: 1
/properties/withdraws Withdraws the amends report; false reverses it.

Type: boolean
/properties/recovered Legacy recovered mark; see reference.

Type: boolean
/properties/files Screenshots uploaded with mint_upload_grant: PNG/JPEG/WebP, at most 524,288 bytes each.

Type: array
Minimum items: 1
Maximum items: 4
/properties/files/items Type: object
Required fields: ["application","area","name"]
/properties/files/items/properties/application Screenshot's app id.

Type: string
/properties/files/items/properties/area Screenshot storage area.

Type: string
/properties/files/items/properties/name Stored path within the area.

Type: string
/properties/files/items/properties/environment Upload environment; absent uses the app's deploy target.

Type: string
Allowed values: ["development","production"]
/properties/space Issue space UUID; absent for platform.

Type: string
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
/properties/product Turn Zero product; absent for platform, MCP or your app's issues. In your space, only for that product.

Type: string
Allowed values: ["tzcloud","tztrack","tzmesh"]

response #

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["contract_version","issue","outcome"]
/properties/contract_version Required value: 1
/properties/reference The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call's record row. Quote it when you report the call.

Type: string
Pattern: ^[0-9a-f]{10}$
/properties/report An object holding only id, the report's number. Call read_feedback with the issue's id to read the report whole, including its evidence, builds and image ids.

Type: object
Required fields: ["id"]
Additional properties: false
/properties/report/properties/id The report's number, which you pass as report beside repeat_of to confirm a candidate.

Type: integer
Minimum: 1
/properties/issue On a filing, an amendment, or a confirmation: the issue the report is linked to, through the projection, or null on the platform's space where that issue is restricted and the credential does not read the queue. On the 0.2.0 recovered mark: the issue as that wire returns it to a credential that reads the queue or on a named space, and to any other credential its id, status, and disposition alone, or null.

Type: ["object","null"]
/properties/issue/properties/id Type: string
Pattern: ^#[1-9][0-9]*$
/properties/issue/properties/state Type: string
Allowed values: ["new","open","waiting","fixed","closed"]
/properties/issue/properties/outcome Type: ["string","null"]
/properties/issue/properties/sentence Type: string
/properties/issue/properties/workaround Type: ["string","null"]
/properties/issue/properties/note_to_reporters The note written for everyone who reported the issue, 1 to 2,000 characters, or null. The platform team writes a question or news there on any state, and a landed fix writes the line identifying its change. Through the projection, a landed fix's note is returned only while the issue is fixed, or closed done or verified, and a reader of the queue reads the note as it is. No filing sets it. On the platform's own space it is null where the note carries a statement or decision identifier, read by its form.

Type: ["string","null"]
Minimum length: 1
Maximum length: 2000
/properties/issue/properties/live_in Always null in this filing answer, even if the fix is released. Call read_feedback to read the build the fix is live in.

Type: ["object","null"]
/properties/issue/properties/requirements The identifiers of the statements that design the behaviour, strings, where the issue closed as designed in a team's own space; null otherwise, and always null on the platform's own space.

Type: ["array","null"]
/properties/outcome What the call did: filed a new issue, linked the report to an existing one, retried an earlier identical filing, noted praise, confirmed a candidate, related, or amended a report of your own; the 0.2.0 recovered mark returns that wire's words. The outcome reads related where repeat_of identifies an issue across the praise kind: nothing is linked, and the report keeps its own issue.

Type: string
Allowed values: ["filed","linked","retried","noted","confirmed","related","amended","recovered","repeated","reopened"]
/properties/candidates Up to three issues the report may repeat: each title, summary, and workaround only where a trusted actor wrote them. Each carries its issue's kind and component, and matched_evidence lists the members of your report's evidence that equal those of the standing reports whose evidence chose that issue, empty where only your title's words matched. A candidate may be an issue closed declined or as_designed: its outcome and fixed sentence mean the request was considered and not taken, and filing it again does not reopen it. A candidate's outcome is null while its issue is not closed. On the platform's own space the list is empty except to the platform team, which links duplicates when it triages a report. A null title means the platform team has not written that issue's title. The report is already filed: confirm a candidate with repeat_of only where you know it is the same issue. Otherwise nothing more is needed, since the platform's triage proposes duplicates itself.

Type: array
/properties/candidates/items Type: object
/properties/candidates/items/properties/issue Type: string
Pattern: ^#[1-9][0-9]*$
/properties/candidates/items/properties/title Type: ["string","null"]
/properties/candidates/items/properties/state Type: string
Allowed values: ["new","open","waiting","fixed","closed"]
/properties/candidates/items/properties/outcome Type: ["string","null"]
Allowed values: ["declined","as_designed",null]
/properties/candidates/items/properties/sentence Type: string
/properties/candidates/items/properties/workaround Type: ["string","null"]
/properties/candidates/items/properties/live_in Type: ["object","null"]
/properties/candidates/items/properties/summary Type: ["string","null"]
/properties/candidates/items/properties/kind Type: string
Allowed values: ["bug","gap","docs","friction","question","task","praise","idea"]
/properties/candidates/items/properties/component Type: ["string","null"]
/properties/candidates/items/properties/matched_evidence Type: array
/properties/candidates/items/properties/matched_evidence/items Type: string
Allowed values: ["action","refusal","reference","code_site"]
/properties/masked The credential forms the service masked in the filing: rotate each.

Type: array
/properties/masked/items Type: string
/properties/personal_removed The personal details the platform removed from the report's words before storing it, each identified by its kind: an email address, a telephone number in international form, or a payment card number, in that order. Empty where none was found. The platform takes reasonable measures and guarantees nothing, so leave such details out of a report.

Type: array
/properties/personal_removed/items Type: string
Allowed values: ["email_address","telephone_number","card_number"]
/properties/stamped True where the platform stamps your own refused call: the kind is bug; or the impact is blocked, the kind is neither praise nor idea, and the action is one of the target space's critical_actions. False otherwise, including no matching call or reference. A failed configuration read admits no critical action.

Type: boolean
/properties/repeat_of The issue a filing confirmed beside it, where one was given; absent where the answer reads related, where the filing itself already linked the report to that issue, and where the answer's issue is null. On the platform's own space, for a credential that does not read the queue, it is the master where the issue given was merged as a duplicate; elsewhere it is the issue given.

Type: string
Pattern: ^#[1-9][0-9]*$

Complete payload contract #

{
  "request": {
    "type": "object",
    "required": [
      "source"
    ],
    "properties": {
      "source": {
        "type": "string",
        "enum": [
          "person",
          "agent",
          "system"
        ],
        "description": "Author: `agent` (you), `person` (dictated), or `system` (program). Only `agent` takes `provider` and `session`."
      },
      "provider": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9-]{0,31}$",
        "description": "AI provider name."
      },
      "session": {
        "type": "string",
        "maxLength": 200,
        "description": "Host session id; paired with `provider`."
      },
      "actor_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64,
        "x-wire-only": true,
        "description": "Taken on the HTTP action route alone. The MCP tool declares no `actor_name` argument and returns `invalid_request` if you send it. For a filing, confirmation or amendment, give your AI session's or job's name, or your own under your sign-in. Use one line of 1 to 64 visible characters."
      },
      "kind": {
        "type": "string",
        "enum": [
          "bug",
          "gap",
          "docs",
          "friction",
          "question",
          "task",
          "praise",
          "idea",
          "missing_capability",
          "documentation_gap",
          "refusal_not_understood",
          "problem",
          "error",
          "mistake",
          "usability"
        ],
        "description": "Required for filings; optional with `amends`, absent on confirmations; customer `question`/`task` refused."
      },
      "title": {
        "type": "string",
        "maxLength": 200,
        "description": "Required for filings; optional with `amends`; absent on confirmations and recovered marks."
      },
      "text": {
        "type": [
          "string",
          "null"
        ],
        "description": "Reporter's words, including dictated feedback, at most 20,000 characters. It carries no personal details: no names, email addresses, telephone numbers, or anything else that identifies a person."
      },
      "body": {
        "type": [
          "string",
          "null"
        ],
        "description": "Alias of `text`, at most 20,000 characters."
      },
      "impact": {
        "type": "string",
        "enum": [
          "blocked",
          "worked_around",
          "annoyed",
          "none"
        ],
        "description": "Effect on the reporter or the person described."
      },
      "severity": {
        "type": "string",
        "enum": [
          "critical",
          "high",
          "medium",
          "low"
        ],
        "description": "Maps to `impact`; see reference."
      },
      "workaround": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 4000,
        "description": "Workaround; null clears with `amends`."
      },
      "proposed_resolution": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 4000,
        "description": "Proposed fix; null clears with `amends`."
      },
      "labels": {
        "type": "array",
        "maxItems": 20,
        "items": {
          "type": "string",
          "maxLength": 64
        },
        "description": "Letters `a-z`, digits or `-_.:`; first a letter or digit."
      },
      "evidence": {
        "type": "object",
        "description": "Call identifiers.",
        "properties": {
          "action": {
            "type": "string",
            "maxLength": 200,
            "description": "Action name without `tzcloud_`."
          },
          "refusal": {
            "type": "string",
            "maxLength": 200,
            "description": "Refusal name."
          },
          "reference": {
            "type": "string",
            "maxLength": 200,
            "description": "Call's `reference`."
          },
          "code_site": {
            "type": "string",
            "maxLength": 200,
            "description": "Code location in the answer."
          },
          "environment": {
            "type": "string",
            "maxLength": 200,
            "description": "Build environment; recorded only with `version`."
          },
          "version": {
            "type": "string",
            "maxLength": 200,
            "description": "Build version; recorded only with `environment`."
          },
          "context": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 500
            },
            "maxProperties": 20,
            "description": "At most 20 short strings; keys: `a-z`, digits or `_`."
          }
        },
        "additionalProperties": false
      },
      "restricted": {
        "type": "boolean",
        "description": "Hides a security report from other reporters."
      },
      "problem_key": {
        "type": "string",
        "maxLength": 200,
        "description": "Your problem key."
      },
      "key": {
        "type": "string",
        "maxLength": 200,
        "description": "Alias of `problem_key`."
      },
      "repeat_of": {
        "type": "string",
        "pattern": "^#[1-9][0-9]*$",
        "description": "Repeated issue, e.g. `#92`."
      },
      "report": {
        "type": "integer",
        "minimum": 1,
        "description": "Report for `repeat_of`, not an issue."
      },
      "amends": {
        "type": "integer",
        "minimum": 1,
        "description": "Report to correct or withdraw."
      },
      "withdraws": {
        "type": "boolean",
        "description": "Withdraws the `amends` report; false reverses it."
      },
      "recovered": {
        "type": "boolean",
        "description": "Legacy recovered mark; see reference."
      },
      "files": {
        "type": "array",
        "minItems": 1,
        "maxItems": 4,
        "items": {
          "type": "object",
          "required": [
            "application",
            "area",
            "name"
          ],
          "properties": {
            "application": {
              "type": "string",
              "description": "Screenshot's app id."
            },
            "area": {
              "type": "string",
              "description": "Screenshot storage area."
            },
            "name": {
              "type": "string",
              "description": "Stored path within the area."
            },
            "environment": {
              "type": "string",
              "enum": [
                "development",
                "production"
              ],
              "description": "Upload environment; absent uses the app's deploy target."
            }
          }
        },
        "description": "Screenshots uploaded with `mint_upload_grant`: PNG/JPEG/WebP, at most 524,288 bytes each."
      },
      "space": {
        "type": "string",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "description": "Issue space UUID; absent for platform."
      },
      "product": {
        "type": "string",
        "enum": [
          "tzcloud",
          "tztrack",
          "tzmesh"
        ],
        "description": "Turn Zero product; absent for platform, MCP or your app's issues. In your space, only for that product."
      }
    },
    "x-renamed": {
      "application": "space",
      "environment": "space"
    },
    "x-retired": {
      "personal": "A report has no personal option: file it again without it, leaving out anything you want excluded.",
      "excerpt": "A report has no personal option: file it again without it, leaving out anything you want excluded."
    }
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "issue",
      "outcome"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call's record row. Quote it when you report the call."
      },
      "report": {
        "type": "object",
        "description": "An object holding only `id`, the report's number. Call `read_feedback` with the issue's id to read the report whole, including its evidence, builds and image ids.",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The report's number, which you pass as `report` beside `repeat_of` to confirm a candidate."
          }
        }
      },
      "issue": {
        "type": [
          "object",
          "null"
        ],
        "description": "On a filing, an amendment, or a confirmation: the issue the report is linked to, through the projection, or null on the platform's space where that issue is restricted and the credential does not read the queue. On the 0.2.0 recovered mark: the issue as that wire returns it to a credential that reads the queue or on a named space, and to any other credential its `id`, `status`, and `disposition` alone, or null.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^#[1-9][0-9]*$"
          },
          "state": {
            "type": "string",
            "enum": [
              "new",
              "open",
              "waiting",
              "fixed",
              "closed"
            ]
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ]
          },
          "sentence": {
            "type": "string"
          },
          "workaround": {
            "type": [
              "string",
              "null"
            ]
          },
          "note_to_reporters": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 2000,
            "description": "The note written for everyone who reported the issue, 1 to 2,000 characters, or null. The platform team writes a question or news there on any state, and a landed fix writes the line identifying its change. Through the projection, a landed fix's note is returned only while the issue is `fixed`, or `closed` `done` or `verified`, and a reader of the queue reads the note as it is. No filing sets it. On the platform's own space it is null where the note carries a statement or decision identifier, read by its form."
          },
          "live_in": {
            "type": [
              "object",
              "null"
            ],
            "description": "Always null in this filing answer, even if the fix is released. Call `read_feedback` to read the build the fix is live in."
          },
          "requirements": {
            "type": [
              "array",
              "null"
            ],
            "description": "The identifiers of the statements that design the behaviour, strings, where the issue closed as designed in a team's own space; null otherwise, and always null on the platform's own space."
          }
        }
      },
      "outcome": {
        "type": "string",
        "enum": [
          "filed",
          "linked",
          "retried",
          "noted",
          "confirmed",
          "related",
          "amended",
          "recovered",
          "repeated",
          "reopened"
        ],
        "description": "What the call did: `filed` a new issue, `linked` the report to an existing one, `retried` an earlier identical filing, `noted` praise, `confirmed` a candidate, `related`, or `amended` a report of your own; the 0.2.0 recovered mark returns that wire's words. The outcome reads `related` where `repeat_of` identifies an issue across the praise kind: nothing is linked, and the report keeps its own issue."
      },
      "candidates": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "issue": {
              "type": "string",
              "pattern": "^#[1-9][0-9]*$"
            },
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "state": {
              "type": "string",
              "enum": [
                "new",
                "open",
                "waiting",
                "fixed",
                "closed"
              ]
            },
            "outcome": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "declined",
                "as_designed",
                null
              ]
            },
            "sentence": {
              "type": "string"
            },
            "workaround": {
              "type": [
                "string",
                "null"
              ]
            },
            "live_in": {
              "type": [
                "object",
                "null"
              ]
            },
            "summary": {
              "type": [
                "string",
                "null"
              ]
            },
            "kind": {
              "type": "string",
              "enum": [
                "bug",
                "gap",
                "docs",
                "friction",
                "question",
                "task",
                "praise",
                "idea"
              ]
            },
            "component": {
              "type": [
                "string",
                "null"
              ]
            },
            "matched_evidence": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "action",
                  "refusal",
                  "reference",
                  "code_site"
                ]
              }
            }
          }
        },
        "description": "Up to three issues the report may repeat: each title, summary, and workaround only where a trusted actor wrote them. Each carries its issue's `kind` and `component`, and `matched_evidence` lists the members of your report's `evidence` that equal those of the standing reports whose evidence chose that issue, empty where only your title's words matched. A candidate may be an issue closed `declined` or `as_designed`: its `outcome` and fixed `sentence` mean the request was considered and not taken, and filing it again does not reopen it. A candidate's `outcome` is null while its issue is not closed. On the platform's own space the list is empty except to the platform team, which links duplicates when it triages a report. A null `title` means the platform team has not written that issue's title. The report is already filed: confirm a candidate with `repeat_of` only where you know it is the same issue. Otherwise nothing more is needed, since the platform's triage proposes duplicates itself."
      },
      "masked": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The credential forms the service masked in the filing: rotate each."
      },
      "personal_removed": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "email_address",
            "telephone_number",
            "card_number"
          ]
        },
        "description": "The personal details the platform removed from the report's words before storing it, each identified by its kind: an email address, a telephone number in international form, or a payment card number, in that order. Empty where none was found. The platform takes reasonable measures and guarantees nothing, so leave such details out of a report."
      },
      "stamped": {
        "type": "boolean",
        "description": "True where the platform stamps your own refused call: the kind is `bug`; or the impact is `blocked`, the kind is neither `praise` nor `idea`, and the action is one of the target space's `critical_actions`. False otherwise, including no matching call or reference. A failed configuration read admits no critical action."
      },
      "repeat_of": {
        "type": "string",
        "pattern": "^#[1-9][0-9]*$",
        "description": "The issue a filing confirmed beside it, where one was given; absent where the answer reads `related`, where the filing itself already linked the report to that issue, and where the answer's `issue` is null. On the platform's own space, for a credential that does not read the queue, it is the master where the issue given was merged as a duplicate; elsewhere it is the issue given."
      }
    }
  }
}

Shared contracts #