FACTORY_OUTCOME: OWNER_CHECKPOINT

I built and tested the diagnostics in this clone, but I did not deploy to staging or make the one real DeepSeek request. The cause of the Northgate "Invalid architect JSON" failure is still unproven. The work is committed as `4318f9a`, and the report is `docs/e2e/SAAS-045-REPORT.md`.

**Provider calls made: 0.** There were no Builder runs, new Northgate messages or deployments either. I couldn't do the live steps because:
- `/var/www/console-saas-data` is mode 0700 and owned by `iovon-saas`, and there is no passwordless sudo, so I couldn't read the live data.
- The DeepSeek key is a systemd credential I can't read.
- The project rules forbid touching live services from this clone.

**Implemented:**
- **Metadata table `architect_response_diagnostics`:** it records the metadata the task listed, for every response, first and repair. It has no content, prompts, headers or reasoning. Rows are scoped by user and site, and there is no UI endpoint.
- **Retention and permissions:** rows are purged after 30 days, and the SQLite file is set to 0600.
- **Repair fix:** when the first response hit the output limit, the worker no longer sends the repair call. That call would ask for the same full-spec output under the same 4000-token cap and fail the same way. Other parse failures still get the one existing repair. I did not change `max_tokens`, because there is no evidence truncation is the cause.
- **Repair switch:** setting `IOVON_ARCHITECT_SUPPRESS_REPAIR=1` turns off the repair call for the one diagnostic attempt.

The new tests cover tenant isolation, the 30-day cleanup, no stored content, the 0600 file mode and call counts. The diagnostics, repair, multilingual and builder-handoff tests pass.

**Decisions and steps for you:**
- **Encryption secret for raw capture:** the platform has no encryption secret of its own, and I didn't reuse the DeepSeek key or invent one. So raw response content is never stored, even with the raw flag on. To capture it for failed parses, you need to supply a secret.
- **Operator steps:** back up the live DB and deploy this commit to staging. Then retry the existing failed Northgate message once with repair suppressed and read the single diagnostics row. If `completion_tokens` is near 4000 with `truncated_length`, the output cap is the cause. If the response is `empty_content` or `malformed_json`, it points elsewhere. The report has the full interpretation.