Data handling¶
What Shadewright stores, what it sends where, what it publishes and how long each of it lives. State on main. Where a part is designed but not built, the row says planned and links its issue or ADR. The project's claims about secrets are invariant 4 in AGENTS.md: everything from the cluster is untrusted, and secrets and tokens are redacted before storage and before a model sees anything. The adversaries and the tests behind each claim are in the threat model.
What it reads¶
| Source | What | By |
|---|---|---|
Events (events.k8s.io) and Pods |
Reason, type, reporting controller, note text, object names and owners, container termination state, in the watched namespaces only | Analyzer |
| Deployments, ReplicaSets, StatefulSets | Owner references and metadata (get) |
Analyzer |
| Nodes | list, for platform detection |
Analyzer |
RemediationPolicies named in --action-policies (only with the analysis on) |
Their bounds, targets and approval, for the policy bounds block of the context (get by name, resourceNames; no list or watch; #493) |
Analyzer |
Prometheus (only with --prometheus-url; read by the context builder and the read tools when the analysis runs, #76) |
The results of the approved query templates (design, section 4), only for the watched namespaces: Prometheus applies no authorization, so the adapter refuses any other namespace before a request | Analyzer |
Flux Kustomization and GitRepository, the target workload or ScaledObject, policy and settings |
Status and spec, for source mapping and the freshness check | Executor |
A ScaledObject that is an Incident's subject |
Spec and status, one get per analysis; the allow-listed fields are shown to the model (ADR-0036) |
Analyzer |
| The Git repository | The files of the build for the target's Kustomization (up to 256 files, 1 MiB each), through the GitHub API | Executor |
The pull requests it opened (reviewer hints, see below; off by default, --reviewer-hints) |
The conversation comments (never inline review comments), the author's ID, login, type and base permission, and the reviews of the pull request | Executor |
Neither identity reads Secrets or ConfigMap data (except its own budget ConfigMap). The executor reads no pod logs. The analyzer may read them (get on pods/log in the watched namespaces only; --pod-logs=false turns the source off, and in the Helm chart analyzer.podLogs.enabled=false also removes the grant), through the context builder and the get_pod_logs tool, which share one pod logs source. It reads one container per call, only in the watched namespaces, at most the last 2000 lines and at most 1 MiB per request (at most two requests per call), the running instance at most 24 hours back and a terminated earlier instance with no time limit, and returns at most 256 KiB of whole lines, redacted before it leaves the adapter and again by the context builder (design, section 4). Excerpts are never stored in a custom resource.
Redaction¶
One function, internal/redact, removes secrets and personal data before text is stored. It replaces a match with a marker that names the kind ([REDACTED:jwt], [REDACTED:token], [REDACTED:ip], and so on). It covers private keys, JWTs, tokens with known prefixes (also current-format Microsoft Entra client secrets) and long random strings, connection strings, credentials in URLs (also a user name or password holding < or >, as postgres://app:Hunter<2@db/x), Authorization values, values of secret-named keys in env, JSON and YAML (a quoted value goes on over a line end only to a line indented deeper than its key, so a stray quote does not take the next fields; a secret key and a block scalar indicator (password: |) count wherever the key stands on its line, also inside a JSON or logfmt string, and where a block was flattened onto that line the rest of the line goes. Text is redacted once, as it was read, before any character is replaced, a line joined or a value or log line cut, apart from two second looks at text that has only lost characters since: a log excerpt is redacted again where the context builder and the log tool take it from the log source, and the stored symptom is redacted after its cut until it no longer changes; every Unicode space and control character counts as indentation and a lone CR ends a line, a key name with an invisible character inside it or before its separator (Unicode's default ignorable and format characters), any colon look-alike of Unicode's confusables list after it, a separator of other characters after it (a run of blanks of any length and up to 16 controls, invisible characters, colons, = and arrows, look-alikes of : and = and the arrow characters → and ⇒ among them, such as userPassword:: <value>, password => <value> or password=<value>), as the value of another secret key (auth: password: <value>), or written as an explicit YAML key (also as a block scalar below ? |) counts as the key, in a text and in each string of a list, and a key in one string of a list and its value in a later one are seen together: a list is redacted as String redacts its strings joined by line breaks, and the string after a secret flag is its value whatever it looks like (["--token", "--verbose"] hides --verbose); a read tool's result is decided once, on the text the tool returns (the object's JSON for get_resource, the lines for the other tools), so a key in one field and its value in a sibling or the next field (an HTTP header's name and value, a selector's key and values) are seen together, and every value in an object or list under a secret-named field (secret, imagePullSecrets, serviceAccountToken) is hidden whole, so the name of a Secret a workload refers to and the paths in its items stay hidden, as before (whether to show them is #860); a value under a secret key name the object gives (a map key, a field or label name, auth and pass included) is hidden whole, line breaks included, a value with line breaks is also read with them escaped, as main read the encoded answer, and a map keeps every entry; invisible characters right after a redacted value go with it) and of secret-named command-line flags (also in YAML and JSON argument lists and across line ends; the string after a secret flag is hidden whatever it is, another flag included), short password flags of a fixed table of tools decided by the command word (mysql -p<value>, mongosh -p <value>, redis-cli -a <value>, sqlcmd -P <value>, the part after the colon of curl -u user:<value>; psql -p 5432 and mysql -P 3306 keep theirs), a container's args with no command read with the base name of its image as the command word when that is in the table (mysql:8.4, bitnami/redis), the value after -p, -P or -a and the part after the colon of -u in arguments with no command word (a container's args with the entrypoint in its image, a sequence whose first item is a flag) unless it is a port number from 1 to 65535, emails and IP addresses. It is best effort and errs towards removing too much; the package comment lists the known gaps (JSON escaped more than three times, a Kubernetes env entry whose value is far from its name, a base64 secret cut short by slashes with no secret key name before it, a value after a one-word key name and a blank without a dash (a compound name joined by _, - or in camelCase, such as aws_secret_access_key <value>, is redacted only when the whole value is 16 or more characters, every character is from A-Z a-z 0-9 / + = _ -, and it has at least one digit or one of / + =, so a password such as DB_PASSWORD changeme or client_secret hunter2 stays; after a flag or such a name an unquoted value ends at whitespace, the line end or a quote character, the separator after a flag is whitespace, a shell continuation, a YAML list dash at the start of a line or a comma directly after the flag name or its closing quote, and a match inside a value already taken is skipped unless it is a secret-named flag), a value after a single-letter flag of a tool not in the redactor's table of short password flags (mysqldump -p<value>), a numeric password of up to five digits that is a port number (1 to 65535) after -p, -P, -a or -u in arguments with no command word and no image of the table beside them (a bare sequence of strings, or an image of another name that wraps one of the tools), a password of only lower-case letters, digits and dashes glued to one of those flags there (-phunter2 reads as a flag of that name, as -password does), Unicode-escaped key names, a secret in a here-document, a plain YAML list item with blanks after a flag item, the part of a value after a key name past 4 KiB, a secret value on the lines below a key that follows other text on its line with nothing after its colon, the lines after the first of a scalar over several lines under a bare short key such as pass:, a value after a secret key and blanks alone, with no colon, = or arrow (userPassword <value>, read as prose like password reset failed), a value after a separator that holds more than 16 marks, controls or invisible characters, after a key and a separator of |, ~, >, - or a dash, or after a key, a line break and then the separator (finding such values by their shape is #859), a secret in a format no rule knows; it also removes the line after a value that ends at a lone carriage return, the text after ->, => or == behind a key word (token => refreshed), the name of a secret key that stands as another secret key's value, and a URL in angle brackets with a port before a link with an @, as main did). The package accepts extra patterns from the operator, but no flag or setting passes any yet, so only the built-in rules apply.
What is hidden can be more than the secret itself (#845, on the safe side). Under a field, map key or metric label whose name is a secret key, the whole value is hidden, line breaks included, and nothing after it. In free text (an Event note, a log line, a status message), the value after a secret key and a separator is hidden up to where the rule ends it: the end of its line (or of the indented lines of a block under it) where the text is shown as read or on one line, and the next blank where it is shown inside a JSON string, so the rest of an Event note after the line of the key stays readable. A tool result is decided once, on the text the tool returns. Troubleshooting lists the cases.
What is stored in the cluster¶
| Object | Holds | Never holds | Lifetime |
|---|---|---|---|
Incident (operator namespace) |
Fingerprint, the subject (kind, namespace, name), event reason and type, reporting controller, the normalized and redacted symptom (at most 1024 characters; names, UIDs, digests, timestamps, IPs and durations replaced by placeholders), counters and times, up to 32 occurrence records (an ID and a count each), analysis state and conditions | Raw event text, logs, transcripts | No expiry. At most 500 (--max-incidents); nothing deletes them, so once the cap is reached someone has to delete some, and the analyzer counts again only when it restarts. Retention by age is not built (design question 8) |
ConfigMap shadewright-analysis-budget |
day (UTC) and used (a count) |
Reused; reset by the first analysis of a new UTC day | |
RemediationRequest and status |
The action and its bounds, the target (kind, namespace, name, UID), the resolved source (repository, branch, file path), plan digest, the pull request number, URL and head commit, conditions with fixed text; with reviewer hints, the redacted hint text and its record | Provider response text, tokens, file contents, the text of a refused hint or of a comment that is no hint | No expiry; deleted by whoever deletes it (which closes its open pull request, see upgrade and uninstall) |
VerificationReport (operator namespace, one per request; the verifier writes it, #682; the executor reads it, #683) |
The request UID, merge commit, target UID, template revision and the action's container name; a sample counter, times on the verifier's clock, replica counts, the last reset's reason, a count of restart resets and the last one's time, at most 200 pod UIDs with a restart sum each, and one OOM kill record (pod UID, container name, finish time) | Any text from the cluster: no termination message, no pod spec, no log | Deleted with its request (owner reference) |
RemediationSettings and RemediationPolicy |
Repository URLs, the GitHub App client ID, the installation ID, the Key Vault key URL, the allowed scope | The private key, any token | Until deleted. Client and installation IDs are not secrets but belong in your overlay, not in a public repository |
| Events | Fixed-text reasons about requests, the cap and Incidents skipped as not recent (AnalysisSkipped) |
Provider text | The cluster's event TTL (the API server's --event-ttl, 1 hour by default) |
| Pod logs of the three components | Structured log lines with names, counts and error text; the analyzer's outcome line also has the result's summary and missing data (model text, redacted, then without control characters) and the count of tool calls refused for holding them | Tokens (a token type prints as a placeholder), the JWT, repository URLs in errors, key material | Whatever your log collection keeps |
| Memory | The collector's maps (10,000 events, 5,000 pods, least recently used dropped), read caches of Git files at a commit | Until the pod restarts |
Anything in the cluster is readable by whoever has get on it, so treat the Incidents as operational data of the watched namespaces: they name workloads and the reasons they fail.
Reviewer hints¶
built, off by default: no comment is read and nothing below is stored unless the executor runs with --reviewer-hints (chart value executor.reviewerHints.enabled, how to turn it on) (ADR-0028). This is what it does when it is on.
A hint is a comment on a pull request Shadewright opened. Its first line starts with /shadewright reanalyze:, and the rest of that line is the hint. The executor reads the comments of a pull request that waits for review, only a person's, and asks the code host whether the author may write (the check is made when the hint is accepted). Everything else is ignored.
| Question | Answer |
|---|---|
| What is stored | In status.hints of the RemediationRequest: the comment ID, the author's numeric ID and login, the hint text, its SHA-256 digest, the comment's update time, the time of acceptance and a state (Pending, Reserved, Consumed or Declined, with a reason when declined). status.refusedHints records a refused command (comment ID, author, reason, time) with no text. status.commentCursor holds the reading position and the IDs and update times of the commands already judged |
| Redaction | The text goes through internal/redact before it is stored. A hint whose redacted text the redactor would still change, or whose redaction is withheld whole because its work ran out of the budget of redaction (#873), is refused (NotRedactable). The analyzer redacts the stored text once more before it reaches the model |
| Bounds | At most 2048 bytes of text after redaction (a longer one is refused as TooLong), at most 10 stored hints per request, at most 3 of them Consumed or Reserved across a supersede chain (a further one is refused as CapReached), at most 10 refusals kept (the oldest goes first) |
| Who writes it | Only the executor, which alone writes request status. The analyzer reads the stored text and never the comment. The text is untrusted: the model sees it in a block marked as a reviewer's opinion, never as instructions or evidence |
| Edits and deletes | The stored text is pinned by digest. A later edit of the comment changes nothing; the hint's editedAfterAccept is set once. Deleting the comment removes nothing |
| Retention | A stored hint is never removed and has no expiry. It lives as long as its request and goes with it. A replacement request carries the hints of its chain, so the next handoff can count them and the merge gate knows their authors |
| What leaves the cluster | The executor's calls to the code host are reads (comments, permission, reviews) and, for the merge gate, a check run and one comment per approval by a hint author; when the plan goes stale, the same check run completed with failure and a fixed summary that names the stale reason (#713). One reply per hint or refused command goes back to the same pull request (#542): a fixed template with typed fields (the author's login, the comment ID, the reason, for an applied hint the new plan's values and head) and the first 200 bytes of the stored, already redacted hint text, which came from that pull request. No model text and no other cluster data. The whole reply is checked by the redactor and not posted at all when it would change anything |
A hint author already has write access to the repository, so a hint gives them no new power over the content. The merge gate keeps them from also being the approval that counts: see Use and H6 in the threat model.
What is sent to the model¶
Nothing unless the analyzer runs with --triage-model (off by default, also in the Helm chart: analyzer.analysis.triageModel). Without it the analysis loop does not start, no model is called and no Azure token is requested. With it (#76, ADR-0023), the analyzer calls the deployments named in spec.analysis.models through the Microsoft Foundry adapter (#75), with its own Azure workload identity (an Entra ID token for the Cognitive Services audience only, no API key), and only after the endpoint passed the host allow-list of --model-endpoint-suffixes, or through the Anthropic or OpenAICompatible adapters (below). Without --model-endpoint-suffixes no Cognitive Services token is requested and every Foundry deployment is refused. Until the evaluation gate exists (#78), turn it on only for an evaluation run in the lab.
Where the context goes, per provider¶
Each deployment in spec.analysis.models names its provider (ADR-0037), so triage and escalation can go to different places. The context sent is the same redacted context either way, built by the same code; only its destination differs.
Foundry(the default). The context stays inside the Azure resource you chose, in its region, subject to the deployment type (design, section 11). The analyzer authenticates with its workload identity; there is no key. A deployment withinferenceAPI: Responsesgets the same request through the Responses API, withstore: false, so the service keeps no stored response of it (#501).Anthropic. The context leaves Azure and goes to the Anthropic API atapi.anthropic.com, under the vendor account of the API key. The region of your Azure resources does not cover it. The analyzer can use this provider only when it runs with--anthropic-api-key-file(a key file you mount); without it everyAnthropicdeployment is refused (ProviderNotConfigured) and nothing is sent. Once the key file is there, anyone who may editRemediationSettingscan move triage or escalation to this provider, so that permission is also a decision about where context goes. The analyzer logs each role's provider when it changes and records a Normal EventModelProviderChangedon the Incident whose call to it is the first to return having sent a request.
Before you use Anthropic, check the vendor's current terms for your account yourself; Shadewright does not set or check them, and they can change. As read on 2026-11-14 and listed in ADR-0037 with links: how long the API keeps inputs and outputs (30 days by default; zero data retention is an arrangement per organization), where inference runs (the default global may run outside the EU; the adapter sends no inference_geo), whether API data may be used for training (as read, not by default: only if you opt in at the vendor, and the adapter never submits feedback; if a vendor's terms change to training by default, do not use the provider until ADR-0037 is revisited), and the spend limit, which is set per vendor workspace, not per key. Use a workspace and a key made for this cluster, with a spend limit.
What one analysis sends, per call:
- The system part, the same for every incident: the role and rules, the action catalog and the output JSON schema, all from code (
internal/analysis/prompts/). No cluster data. The one difference between incidents: for a KEDA ScaledObject that is not ready, the catalog leaves outAdjustKedaMaxReplicas(ADR-0036), decided by code from the object. - The context, one user message of delimited blocks tagged with their provenance: the incident summary (subject kind, namespace and name, reason, counts and times; for a cause Incident, the absorbed tally: the consequence reasons
BackOffandUnhealthyfrom the code's fixed table, their counts and last seen times, never an Event's note, always written whole and last in the summary, with room kept for it (the symptom text, the reporting controller, the reason, then the subject's name are shortened instead, in that order), #796), the object status and owners (for a pod being deleted, when its grace period ends, and for an exit that finished after its deletion began, a fixed note that says so, #969; for a KEDA ScaledObject subject, only its name, replica bounds, scale target, trigger types, metric names and four conditions with their reason and message, never a trigger's address, query or authentication reference, its annotations or its labels: ADR-0036), a log excerpt of the attributed pods (only with--pod-logs), selected metrics (only with--prometheus-url), a Git section that says it is not available, and a policy bounds block (only with--action-policies): operator configuration, the bounds of the RemediationPolicy that would decide a proposal, rendered from its typed fields, shown as data and never quotable as evidence (#493). Every block is redacted byinternal/redact(built-in rules and operator patterns) and bounded in size before the model sees it; the prompt says the text is data, not instructions. - On escalation only (with
--escalation-model): the read tool definitions, and each tool's redacted, bounded answer, at mostmaxToolStepscalls, each bound to the namespace of the incident's subject. - The deployment name,
maxOutputTokensand the response schema.
What is kept: nothing is stored beyond the Incident's status (phase, the condition Analyzed with a fixed reason, and the names of the requests created) and the request a valid proposal creates. The analyzer logs the outcome: reason, call and token counts, the model IDs the replies named, the prompt version and, from a valid result, its summary and the data it said were missing, redacted again and within the result's bounds (#422); never the context, the prompt or the raw reply. With --analysis-store-account and --analysis-store-container (Helm: analyzer.analysis.recordStore.azureBlob), the analyzer also writes one analysis record per run to that Blob Storage container (ADR-0015, #77) and puts its ID in the Incident's status.analysisRecords (the newest 20): the Incident's name, UID, fingerprint, reason and subject, when the run began and ended, the outcome's reason, the call, tool call and token counts, the deployments with their providers and the model IDs, the prompt version, the request's name, and the result's summary and missing data. Every string from the cluster, the settings or the model is redacted, and the record is refused before anything is sent if the redactor would still change it. It holds no context, prompt, tool result or raw reply. Without those flags no record is written. The model's output is a proposal only; deterministic policy decides whether it runs (invariant 1). How much it may spend: spec.analysis.maxAnalysesPerDay analyses per UTC day (default 100), and spec.analysis.models.*.maxTokensPerDay tokens per deployment, today a ceiling for one analysis only: the daily bound on spend is maxAnalysesPerDay times this ceiling. Where inference runs depends on the deployment type (design, section 11).
What leaves the cluster today¶
| To | What | When |
|---|---|---|
api.github.com |
Reads of the files and branch heads in the configured repository; a branch, one commit changing one value in one file, a pull request, and a close of that pull request. The App JWT (10 minutes) and an installation token scoped to that one repository, with five permissions (checks: write since #539; the handoff writes of reviewer hints, a second commit, a rewritten title and body, a check run and a comment, are off by default (--reviewer-hints); see reviewer hints) |
Only the executor, and only after a request is allowed and writes are not paused |
| Key Vault | The SHA-256 digest of the JWT to sign. The key stays in the vault | Each time a new installation token is needed, and once per provider to read the App's own ID (GET /app, before its first comment on a pull request) |
| Microsoft Entra ID | The projected ServiceAccount token, for a Key Vault token | Same |
api.anthropic.com |
The same redacted context, tool definitions and tool results a Foundry deployment gets (above), with the API key in a request header | Only the analyzer, only with --anthropic-api-key-file, and only for a role whose deployment has provider: Anthropic |
| A declared OpenAI-compatible base (ADR-0042, Accepted) | The same redacted context, tool definitions and tool results, to the declared base URL plus the fixed /chat/completions or /responses route, with that declaration's API key in the Authorization header when it has one. A key file belongs to one declaration: the analyzer refuses a file named by two declarations, or the Anthropic key file, by path and by file identity, so no other provider's key is sent to this base. The endpoint's operator sees the redacted context: check its retention, residency and training terms first |
Only the analyzer, only for a base declared in --openai-compatible-endpoints (chart: analyzer.analysis.openAICompatible.endpoints), and only for a deployment with provider: OpenAICompatible whose endpoint, API and model match that declaration. Never to a private, shared or link-local address, or to one in the declared in-cluster ranges (--openai-compatible-in-cluster-cidrs), unless the declaration is a cluster Service: the address is checked at dial time, before anything is sent. List the cluster's pod and Service ranges there when they are routable addresses (install) |
| The Kubernetes API | Reads and the writes listed in the configuration reference | Always |
| An OpenTelemetry collector you name | Analysis spans: IDs, counts, durations, fixed labels and the configured model and deployment names; never prompt, context, log, tool or model text, error messages or tokens (traces) | Only the analyzer, and only with OTEL_TRACES_EXPORTER=otlp (chart: analyzer.tracing.endpoint) |
No telemetry, usage reporting or update check is sent to the project from either binary: the only packages that open outbound HTTP connections are the GitHub adapter, its token source and the Key Vault signer, the Prometheus adapter, only when --prometheus-url is set, the Microsoft Foundry adapter with its Entra ID token source, in the analyzer only and only with --triage-model, the Anthropic API adapter, in the analyzer only, only with --anthropic-api-key-file and only for a deployment with provider: Anthropic (to api.anthropic.com only), the OpenAI-compatible adapter, in the analyzer only and only for a deployment with provider: OpenAICompatible that matches a base declared in --openai-compatible-endpoints (to that base only), and the Blob Storage analysis store, in the analyzer only and only with --analysis-store-account, and the OTLP trace exporter, in the analyzer only and only with OTEL_TRACES_EXPORTER=otlp (egress to the model endpoint and Entra ID on 443, which the analyzer's NetworkPolicy already allows). The analyzer queries the configured Prometheus with the approved templates of the design when the analysis runs (#76); its NetworkPolicy needs the Prometheus rule for that (networkPolicy.analyzer.prometheus, design, section 10). Opt-in sharing of outcomes is planned and off by default (#284). OpenTelemetry traces per analysis (#90) are off by default; turned on (OTEL_TRACES_EXPORTER=otlp, or the chart value analyzer.tracing.endpoint), the analyzer sends them over OTLP gRPC to the collector you name, and its NetworkPolicy needs the collector rule (networkPolicy.analyzer.traceCollector). A span carries IDs, counts, durations, fixed result labels and the configured model and deployment names only: no prompt, context, log, tool or model text, no error message and no token (traces reference).
The NetworkPolicies limit ports and directions (DNS, TCP 443 and 6443, and for the analyzer, if you enable it in the chart, TCP to the one Prometheus you name; for the declared OpenAI-compatible bases on public ports other than 443, one rule listing all those ports, to addresses outside 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16 and the IPv4 ranges of analyzer.analysis.openAICompatible.inClusterCIDRs; and for each declaration with a service, one rule to the pods its podSelector selects in its namespace, on its target port), not destinations: what keeps the analyzer away from GitHub is that its binary has no GitHub adapter and holds no GitHub credential. See the design for the two ways to narrow it.
What is published¶
The executor writes to the fleet repository, which is public in the reference lab. A pull request carries:
- the branch name
shadewright/<request UID>; - the commit message
fix: set <field> of <namespace>/<name> to <value>, or for a revertrevert: set <field> of <namespace>/<name> back to <value>; - the pull request body: the change (action, field, previous and desired value), the file path and target branch, the request's namespace, name and UID, the Incident name, the policy name and generation, the plan digest, the expected effect, the risk, the rollback and whether approval is required, plus a marker with the UID and the digest; for a revert also the name and UID of the request it reverts, the number of that request's pull request (the number only: the code host links it, and the URL in the request's status is not checked against anything) and the reason it failed, from that request's status;
- the changed file, with that one value different.
Everything in the title and body comes from validated fields and is redacted once more before it is sent: in the body each value is redacted on its own, so no value can make the redactor hide the fixed sections around it or another value's text. The Incident name and the namespace/name of the request (and, for a revert, of the request it reverts) are the exceptions, because their names are long hex strings that look like tokens. The Incident name is shown unredacted only if the executor reads that Incident and its name is the one the collector derives from its fingerprint and occurrence number (incident- and 64 hex digits, and for a later occurrence n -<n>, n from 2 to 999999 without a leading zero, the number its spec records). The request name is shown unredacted only if it is the name the analyzer derives from the request's own spec (remediation- and 24 hex digits of a SHA-256 of the Incident's UID and the plan), not merely a name of that shape, and only with a namespace the redactor leaves unchanged. A revert's name is shown unredacted only if it is the name derived from the UID in its own spec.reverts (revert- and 24 hex digits of a SHA-256 of revert/ and that UID), and the name of the request it reverts only if the executor read that request with that UID and its name is the analyzer's derivation of its spec. Otherwise each is shown redacted. The symptom text, event notes and logs are not in the pull request.
A merged pull request, its history and any branch left behind are in the Git host's retention, not Shadewright's. Shadewright never deletes a branch; a pull request it closed keeps its branch.
Retention¶
| Data | Default | Where it is set |
|---|---|---|
| Incidents, requests | No expiry. Incidents capped at 500 | --max-incidents; deleting is manual |
| Reviewer hints (text and record, in a request's status) | No expiry; never removed while the request exists, and not stored at all until hints are enabled | Goes with the request; see reviewer hints |
| Analysis records (redacted transcripts of each analysis) | Written only with --analysis-store-account (Azure Blob Storage, #77): one per analysis, create-only, never read back by the analyzer. They hold the outcome, counts and redacted summary listed above, not yet the full transcript. In the reference lab the store is a blob container in the foundation, kept 180 days (analysis_retention_days), with blob versioning, and 7 days of soft delete for deleted blobs |
shadewright-azure/foundation; ADR-0015. In other clusters the store is to be on by default and configurable (planned). The writer role does not yet enforce create-only (#154) |
Key Vault audit log (KeySign for every use of the App key) |
90 days in a Log Analytics workspace that outlives the lab | shadewright-azure/foundation |
| Key Vault, deleted vault or key | Recoverable for 7 days; purge protection on | Foundation |
| Pull requests, branches, commits | Git host's, indefinitely | Your repository settings |
| Kubernetes Events | Cluster event TTL (1 hour by default) | API server |
The lab cluster is destroyed after every session, so everything in the cluster goes with it; the blob container, the vault and the audit workspace are in the foundation and do not.
Deleting data¶
- Cluster:
kubectl deletethe Incidents and requests. Deleting a request first closes its open pull request. - Git: close or delete the pull requests and
shadewright/*branches in the repository. - Azure (lab): the records in the
analysescontainer (a delete leaves the versions until the retention rule removes them), the audit workspace and the vault follow Azure's own rules above.
OpenAI-compatible destinations¶
OpenAICompatible sends the same bounded, redacted context and tool results to
the endpoint allowed at install time. It may be the OpenAI API, a gateway or a
separately operated cluster Service; the provider name promises no residency or
retention policy. Check the server's retention, geography and opt-in training
terms before allowing it. Settings writers can select only declared bases, APIs
and model names. Keep each nonempty models list narrow: a gateway may route a
model alias to an upstream that receives both the key and redacted context.
Install-time base and model binding prevents an undeclared destination choice
through a settings edit. Gateway operators still control what declared aliases mean. No redirects, HTTP or environment proxy are used.
See ADR-0042.