{"$id":"/schemas/qa-profile.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"type":"number","const":1},"scope":{"type":"object","properties":{"repos":{"minItems":1,"type":"array","items":{"type":"string","minLength":1},"description":"The first entry is the repo that holds this file."},"include":{"default":[],"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"source":{"type":"string","minLength":1,"description":"Who or what established it: a user message, a run or a task."}},"required":["text","source"],"additionalProperties":false}},"exclude":{"default":[],"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"source":{"type":"string","minLength":1,"description":"Who or what established it: a user message, a run or a task."}},"required":["text","source"],"additionalProperties":false}},"priorities":{"default":[],"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"source":{"type":"string","minLength":1,"description":"Who or what established it: a user message, a run or a task."}},"required":["text","source"],"additionalProperties":false}}},"required":["repos"],"additionalProperties":false},"harness":{"type":"object","properties":{"lanes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"runner":{"type":"string","minLength":1,"description":"The test runner, for example Playwright."},"config":{"type":"string","minLength":1,"description":"Repo-relative path of the config."},"selects":{"type":"string","minLength":1,"description":"What the config selects: testDir, testMatch, projects."},"command":{"type":"string","minLength":1},"port":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"workers":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","minLength":1}]},"retries":{"type":"integer","minimum":0,"maximum":9007199254740991},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["name","runner","config","selects","command","evidence"],"additionalProperties":false}},"server":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","minLength":1},"build":{"type":"string","minLength":1},"port":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["start","evidence"],"additionalProperties":false},{"type":"null"}]},"ci":{"type":"array","items":{"type":"object","properties":{"trigger":{"type":"string","minLength":1},"runs":{"type":"array","items":{"type":"string","minLength":1}},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["trigger","runs","evidence"],"additionalProperties":false}},"notRunInCi":{"default":[],"type":"array","items":{"type":"string","minLength":1}},"e2eCatalog":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Repo-relative path of the E2E catalog file, or null."},"suiteConvention":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"found"},"declare":{"type":"string","minLength":1,"description":"How a test declares Smoke, Feature, Journey or Regression."},"select":{"type":"string","minLength":1,"description":"How CI selects a suite."},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["status","declare","select","evidence"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"none_found"},"searched":{"type":"string","minLength":1,"description":"The scope that was searched."}},"required":["status","searched"],"additionalProperties":false}]},"qaFlowDirectory":{"type":"object","properties":{"status":{"type":"string","enum":["existing","proposed","not_needed"]},"path":{"type":"string","minLength":1},"discoveredBy":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["status"],"additionalProperties":false},"conventionsDoc":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","minLength":1},"rules":{"type":"array","items":{"type":"string","minLength":1}}},"required":["path","rules"],"additionalProperties":false},{"type":"null"}]},"patternsToCopy":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1},"shows":{"type":"string","minLength":1}},"required":["path","shows"],"additionalProperties":false}}},"required":["lanes","server","ci","e2eCatalog","suiteConvention","qaFlowDirectory","conventionsDoc","patternsToCopy"],"additionalProperties":false},"sandbox":{"type":"array","items":{"type":"string","minLength":1},"description":"Ordered steps to run QA in a sandbox. Never a secret value."},"determinism":{"type":"object","properties":{"auth":{"type":"array","items":{"type":"object","properties":{"fixture":{"type":"string","minLength":1},"proves":{"type":"string","minLength":1},"skips":{"type":"string","minLength":1},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["fixture","proves","skips","evidence"],"additionalProperties":false}},"fakes":{"type":"array","items":{"type":"object","properties":{"boundary":{"type":"string","minLength":1},"fake":{"type":"string","minLength":1},"unverified":{"type":"string","minLength":1},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["boundary","fake","unverified","evidence"],"additionalProperties":false}},"unfakedBoundaries":{"type":"array","items":{"type":"object","properties":{"boundary":{"type":"string","minLength":1},"rule":{"type":"string","minLength":1},"missing":{"type":"string","minLength":1}},"required":["boundary","rule","missing"],"additionalProperties":false}},"testOnlyBehavior":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"found"},"items":{"minItems":1,"type":"array","items":{"type":"object","properties":{"behavior":{"type":"string","minLength":1},"skips":{"type":"string","minLength":1,"description":"The shipped path this behavior skips; it stays unverified."},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["behavior","skips","evidence"],"additionalProperties":false}}},"required":["status","items"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"none_found"},"searched":{"type":"string","minLength":1,"description":"The scope that was searched."}},"required":["status","searched"],"additionalProperties":false}]},"visualAssets":{"type":"array","items":{"type":"string","minLength":1}},"captureReadiness":{"type":"array","items":{"type":"string","minLength":1}},"requestPolicy":{"type":"array","items":{"type":"string","minLength":1}}},"required":["auth","fakes","unfakedBoundaries","testOnlyBehavior","visualAssets","captureReadiness","requestPolicy"],"additionalProperties":false},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"kind":{"type":"string","enum":["authorization_role","persona","entitlement_state","actor_group"]},"permissions":{"type":"string","minLength":1},"signIn":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The fixture or helper a test uses to become this role, or null."},"gaps":{"default":[],"type":"array","items":{"type":"string","minLength":1}},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."}},"required":["name","kind","permissions","signIn","evidence"],"additionalProperties":false}},"productMap":{"type":"array","items":{"type":"object","properties":{"area":{"type":"string","minLength":1},"entryPoints":{"type":"array","items":{"type":"string","minLength":1}},"roles":{"type":"array","items":{"type":"string","minLength":1}},"notes":{"type":"string","minLength":1}},"required":["area","entryPoints","roles","notes"],"additionalProperties":false}},"idiosyncrasies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"symptom":{"type":"string","minLength":1},"cause":{"type":"string","minLength":1},"action":{"type":"string","minLength":1},"evidence":{"type":"array","items":{"type":"string","minLength":1},"description":"Repo-relative `path:line` citations."},"source":{"type":"string","minLength":1},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Quoted, so every YAML parser reads it as a string."}},"required":["name","symptom","cause","action","evidence","source","date"],"additionalProperties":false}},"bestPractices":{"type":"array","items":{"type":"object","properties":{"rule":{"type":"string","minLength":1},"why":{"type":"string","minLength":1},"source":{"type":"string","minLength":1}},"required":["rule","why","source"],"additionalProperties":false}}},"required":["version","scope","harness","sandbox","determinism","roles","productMap","idiosyncrasies","bestPractices"],"additionalProperties":false,"title":"Gleamrun QA Agent profile"}