Skip to content

error: document the error.* module + error.create reporting#41

Merged
acoshift merged 2 commits into
mainfrom
error-module
Jun 21, 2026
Merged

error: document the error.* module + error.create reporting#41
acoshift merged 2 commits into
mainfrom
error-module

Conversation

@acoshift

Copy link
Copy Markdown
Member

Updates the docs for the new error.* API module and the new error.create direct-reporting capability (tracks deploys-app/api#106).

Rename

The error-detection actions move to the dedicated error.* module everywhere in the docs:

  • deployment.errors -> error.list
  • deployment.errorGet -> error.get
  • deployment.errorUpdate -> error.update

Permission gating is updated to match: list reads gated by error.list, single-issue reads by error.get, and triage (resolve / mute / reopen) by error.update (previously deployment.logs). The secret-safety note now points at error.get. Touches the error-detection page, the API function catalog (content/api/conventions.md), and the MCP reference (content/automation/mcp.md).

New: error.create

Documents the headline new capability — a running deployment or embedded SDK reports its own application errors directly instead of relying only on log mining. A reported error and a log-mined trace with the same stack signature merge into one issue (shared fingerprint), so reporting never double-counts what mining would catch.

  • Request shape: { project, location, name, events: [...] }; each event has required type, kind (defaults to generic), title, frames: [{func, file, line}], sample, pod, ts; batch up to 100 events.
  • Auth: a project service-account key, or a me.generateToken scoped token attenuated to error.create (least-privilege, short-lived). No new infra.
  • Secret-safety: notifications carry only the exception type, never title/sample.
  • Concrete curl example posting to https://api.deploys.app/error.create.
  • Mentions the deploys error report CLI command and the error.create MCP tool.

Verification

hugo --minify builds clean (56 pages, no errors/warnings); all intra-page anchors resolve (verified the error.create section anchor reporting-errors-from-your-app--errorcreate); zero remaining deployment.errors / deployment.errorGet / deployment.errorUpdate references.

🤖 Generated with Claude Code

https://claude.ai/code/session_011d4bVuGLnCbcJD9ZvastPH

Rename the error-detection actions to the new error.* module across the docs
(deployment.errors -> error.list, deployment.errorGet -> error.get,
deployment.errorUpdate -> error.update) and update the permission gating: reads
by error.list / error.get, triage by error.update, all previously deployment.logs.

Document the new error.create capability: a running deployment or SDK reports its
own application errors directly; a reported error and a log-mined trace with the
same stack signature merge into one issue (shared fingerprint). Covers the request
shape (events[] with required type, kind defaulting to generic, frames[].func/file/line,
batch up to 100), auth (service-account key OR a me.generateToken scoped token
attenuated to error.create), the secret-safety note (notifications carry only the
exception type, never title/sample), and a concrete curl example. Adds the
error report CLI command and error.create MCP tool to the reference pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011d4bVuGLnCbcJD9ZvastPH
@deploys-app deploys-app Bot temporarily deployed to pr-41 June 21, 2026 15:33 Destroyed
@deploys-app

deploys-app Bot commented Jun 21, 2026

Copy link
Copy Markdown

Preview deleted (PR closed).

….error

The api PR renamed the new/regressed-issue change event from deployment.error to
error.detected (resource error, action detected) as part of the error.* module.
Update the Notifications section's event name, the subscribe example, and the
wildcard hint (error.* not deployment.*).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011d4bVuGLnCbcJD9ZvastPH
@acoshift acoshift merged commit 3f95fb8 into main Jun 21, 2026
1 check passed
@acoshift acoshift deleted the error-module branch June 21, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant