Repository navigation
Route Sentry and Datadog findings through one audited draft-PR repair lane #3338
Description
Activity
Initial project bindings
- Rehoboam senses/release program: https://github.com/Subconscious-ai/rehoboam/issues/2255
- Holodeck behavior/source-map program: https://github.com/Subconscious-ai/holodeck/issues/1313
- Active-session capacity prerequisite: feat(bin): cap active crew concurrency per home #3323
Live provider intake stays disabled until each project has provider-readable immutable release identity. Fixture/dry-run implementation can proceed independently.
Canonical implementation references (reviewed 2026-08-30)
- Firstmate architecture and one-writer worktrees: https://github.com/aviyashchin/firstmate/blob/master/docs/architecture.md
- Firstmate process-event source contract: https://github.com/aviyashchin/firstmate/blob/master/bin/fm-procevent.sh
- Sentry issues API: https://docs.sentry.io/api/events/
- Sentry releases/commit identity: https://docs.sentry.io/api/releases/create-a-new-release-for-an-organization/
- Datadog Bits investigation: https://docs.datadoghq.com/bits_ai/bits_investigation/investigate_issues/
- Datadog Bits code changes: https://docs.datadoghq.com/bits_ai/bits_code/
- Datadog Bits remediation: https://docs.datadoghq.com/bits_ai/bits_remediation/
Provider output is untrusted reported evidence. Normalize repository, environment, release SHA, provider object ID, and fingerprint before deduplication; dispatch only one writer; retain separate receipts for reproduction, change, test, commit, and draft PR. Provider self-healing must never bypass Firstmate's captain-only merge/deploy boundary.
Speaking as Kun's firstmate: Triaged against main
1260adce77a49ffd5979d8158743d4b0ac40d15d.Verdict: VISION-aligned feature when kept captain-gated and opt-in; unfixed on main (no Sentry/Datadog/repair-intake surface in tree); no covering open PR. Prerequisite #3323 remains open — fixture/dry-run may proceed; live intake stays off until that bound and project release identity exist. Labeling
ready-for-pr.Contract-class:
opt-in— off unless the captain enables intake; draft-PR only; never auto-merge/deploy.VISION (per major section):
- One captain one interface: aligns — one audited repair lane to the captain, not vendor chatter.
- Authority explicit: aligns — draft PR only; captain merge; no consent assumed; live intake disabled by default.
- Scripts vs agents: aligns — normalize/dedupe/determinism in scripts; repair judgment in a writer agent.
- Restart non-event: aligns — durable incident/task records.
- Delegation with spine: aligns — explicit contract, one writer, existing validation path.
- Fleet outlives vendor: aligns — provider-neutral schema; vendors are evidence sources.
- Scope: aligns if tightly scoped — adapter into existing inbox/procevent/intake; does not align if it grows into an incident-management product or workshop. Issue's out-of-scope list is load-bearing.
Ship as the smallest opt-in adapter + fixtures (
tests/test-provider-repair-intake.sh); refuse merge/deploy regardless of provider recommendation; keep credentials out of briefs/state/PRs. Do not open a competing implementation PR beyond this issue's scope.- addedready-for-prTriage: real bug or VISION-aligned feature, open for a PRTriage: real bug or VISION-aligned feature, open for a PR
on Aug 30, 2026 devin-ai-integration commented
on Sep 24, 2026 More actionsNo description provided.
Job
Firstmate can accept a Sentry Seer or Datadog Bits finding for a registered project, deduplicate it into one incident, assign exactly one repair writer, and deliver at most a draft PR with an auditable evidence chain; it can never auto-merge or auto-deploy.
Why this belongs in Firstmate
Sentry and Datadog can investigate and propose repairs, but they do not own cross-agent concurrency, project worktree isolation, proof policy, or captain merge authority. If both vendors independently edit the same incident, observability becomes a second uncontrolled fleet. Firstmate is the orchestration and claim-provenance boundary.
Observable outcome
Given two provider findings that refer to the same repository/SHA/error fingerprint, Firstmate creates one durable task, records both sources, launches no more than one writer, runs the project's existing validation path, and reports a draft PR plus provider/test evidence to the captain.
Exit criterion
returns 0 and proves:
Prerequisites
Files in scope
Reuse first
procevent, durable inbox, task metadata, project registry, one-writer worktree guard, no-mistakes pipeline, PR polling, and captain merge boundary.Security and authority
reported, neververifieduntil reproduced.Out of scope