@autohq/cli 0.1.427 → 0.1.429

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20393,6 +20393,7 @@ var init_onboarding_runs = __esm({
20393
20393
  ProjectOnboardingRunSnapshotSchema = external_exports.object({
20394
20394
  id: external_exports.string().min(1),
20395
20395
  teamId: OnboardingRunTeamIdSchema,
20396
+ commission: external_exports.string().max(2e3).nullable(),
20396
20397
  phase: OnboardingRunPhaseSchema,
20397
20398
  evidence: OnboardingRunEvidenceSchema,
20398
20399
  /** Monotonic per-run write counter; also the phase_changed dedup clock. */
@@ -21528,7 +21529,7 @@ var init_session_turns = __esm({
21528
21529
  });
21529
21530
 
21530
21531
  // ../../packages/schemas/src/setup.ts
21531
- var SetupOnboardingPullRequestCreateRequestSchema, SetupOnboardingPullRequestSchema, SetupOnboardingSyncSchema, SetupOnboardingPullRequestCreateResponseSchema, SetupOnboardingPullRequestStatusRequestSchema, SetupOnboardingPullRequestStatusResponseSchema, SetupOnboardingScopeSchema, SetupOnboardingPullRequestSnapshotSchema, SetupOnboardingRosterSnapshotSchema, SetupOnboardingStateSchema;
21532
+ var SetupOnboardingPullRequestCreateRequestSchema, SetupOnboardingPullRequestSchema, SetupOnboardingRunReferenceSchema, SetupOnboardingSyncSchema, SetupOnboardingPullRequestCreateResponseSchema, SetupOnboardingPullRequestStatusRequestSchema, SetupOnboardingPullRequestStatusResponseSchema, SetupOnboardingScopeSchema, SetupOnboardingPullRequestSnapshotSchema, SetupOnboardingRosterSnapshotSchema, SetupOnboardingStateSchema;
21532
21533
  var init_setup = __esm({
21533
21534
  "../../packages/schemas/src/setup.ts"() {
21534
21535
  "use strict";
@@ -21539,6 +21540,10 @@ var init_setup = __esm({
21539
21540
  slackConnection: external_exports.string().trim().min(1).optional(),
21540
21541
  repo: GithubSyncRepositoryFullNameSchema,
21541
21542
  baseBranch: GithubSyncProductionBranchSchema.optional(),
21543
+ team: external_exports.object({
21544
+ id: external_exports.string().trim().min(1),
21545
+ commission: external_exports.string().trim().min(1).max(2e3).optional()
21546
+ }).optional(),
21542
21547
  // The picked roster from the assemble-your-team step: catalog agent ids
21543
21548
  // whose importing files join the PR (Slack-requiring picks are deferred
21544
21549
  // server-side when no Slack connection exists yet).
@@ -21558,6 +21563,10 @@ var init_setup = __esm({
21558
21563
  baseBranch: GithubSyncProductionBranchSchema,
21559
21564
  headSha: external_exports.string().trim().min(1)
21560
21565
  });
21566
+ SetupOnboardingRunReferenceSchema = external_exports.object({
21567
+ id: external_exports.string().trim().min(1),
21568
+ teamId: external_exports.string().trim().min(1)
21569
+ });
21561
21570
  SetupOnboardingSyncSchema = external_exports.object({
21562
21571
  branch: GithubSyncProductionBranchSchema,
21563
21572
  headSha: external_exports.string().trim().min(1).optional(),
@@ -21566,11 +21575,13 @@ var init_setup = __esm({
21566
21575
  SetupOnboardingPullRequestCreateResponseSchema = external_exports.discriminatedUnion("mode", [
21567
21576
  external_exports.object({
21568
21577
  mode: external_exports.literal("pull_request"),
21569
- pullRequest: SetupOnboardingPullRequestSchema
21578
+ pullRequest: SetupOnboardingPullRequestSchema,
21579
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
21570
21580
  }),
21571
21581
  external_exports.object({
21572
21582
  mode: external_exports.literal("sync"),
21573
- sync: SetupOnboardingSyncSchema
21583
+ sync: SetupOnboardingSyncSchema,
21584
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
21574
21585
  })
21575
21586
  ]);
21576
21587
  SetupOnboardingPullRequestStatusRequestSchema = external_exports.object({
@@ -21609,7 +21620,8 @@ var init_setup = __esm({
21609
21620
  githubConnection: external_exports.string().trim().min(1),
21610
21621
  slackConnection: external_exports.string().trim().min(1).optional(),
21611
21622
  repo: GithubSyncRepositoryFullNameSchema,
21612
- pullRequest: SetupOnboardingPullRequestSchema
21623
+ pullRequest: SetupOnboardingPullRequestSchema,
21624
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
21613
21625
  }),
21614
21626
  external_exports.object({
21615
21627
  mode: external_exports.literal("sync"),
@@ -21617,14 +21629,16 @@ var init_setup = __esm({
21617
21629
  githubConnection: external_exports.string().trim().min(1),
21618
21630
  slackConnection: external_exports.string().trim().min(1).optional(),
21619
21631
  repo: GithubSyncRepositoryFullNameSchema,
21620
- sync: SetupOnboardingSyncSchema
21632
+ sync: SetupOnboardingSyncSchema,
21633
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
21621
21634
  })
21622
21635
  ]
21623
21636
  );
21624
21637
  SetupOnboardingRosterSnapshotSchema = external_exports.object({
21625
21638
  scope: SetupOnboardingScopeSchema,
21626
21639
  agents: external_exports.array(external_exports.string().trim().min(1)),
21627
- customBrief: external_exports.string().trim().min(1).max(500).nullable().default(null)
21640
+ customBrief: external_exports.string().trim().min(1).max(500).nullable().default(null),
21641
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
21628
21642
  });
21629
21643
  SetupOnboardingStateSchema = external_exports.object({
21630
21644
  introSeen: external_exports.boolean(),
@@ -24563,11 +24577,8 @@ triggers:
24563
24577
  # chief-of-staff FOH contract (@auto/agent-fleet) plus the onboarding
24564
24578
  # concierge's agent-authoring role, which the Patron absorbs for this preset.
24565
24579
  # Source plan: docs/plans/2026-07-12-front-of-house-team-rollout-plan.md.
24566
- # Commission intake: the blank-text-box brief threads into the install as a
24567
- # template variable once the setup-PR renderer supports it (plan C3); until
24568
- # then the commission arrives in the Patron's first conversation, and the
24569
- # doctrine below reads it from the intake surface plus the onboarding run
24570
- # record rather than a variable.
24580
+ # Commission intake: the blank-text-box brief threads into the install as the
24581
+ # \`commission\` template variable and is repeated in the one-shot kickoff.
24571
24582
  name: patron
24572
24583
  model:
24573
24584
  provider: anthropic
@@ -24595,11 +24606,10 @@ systemPrompt: |
24595
24606
  blank-canvas users you ARE the onboarding concierge, in character from the
24596
24607
  first hello \u2014 there is no separate onboarding agent.
24597
24608
 
24598
- The commission is the user's own words: the plain-language automation
24599
- brief they gave when choosing the Blank Canvas, restated in your intake
24600
- conversation or recorded in the onboarding run record. If you cannot find
24601
- a commission anywhere, your first move is to ask for one \u2014 warmly, as a
24602
- blank canvas, never as a form.
24609
+ The commission is the user's own words: {{ $commission }}. The one-shot
24610
+ kickoff repeats it and names the onboarding run record you must resume. If
24611
+ an older standalone install leaves the commission blank, your first move is
24612
+ to ask for one \u2014 warmly, as a blank canvas, never as a form.
24603
24613
 
24604
24614
  You never impose your own vision and you never write product code. Your
24605
24615
  taste is real \u2014 say plainly when the composition is unbalanced, when a
@@ -27163,6 +27173,480 @@ triggers:
27163
27173
  content: "harness: claude-code\nenvironment:\n name: agent-runtime\n image:\n kind: preset\n name: node24\n resources:\n memoryMB: 8192\n"
27164
27174
  }
27165
27175
  ]
27176
+ },
27177
+ {
27178
+ version: "1.4.0",
27179
+ files: [
27180
+ {
27181
+ path: "agents/designer.yaml",
27182
+ content: `name: designer
27183
+ model:
27184
+ provider: anthropic
27185
+ id: claude-opus-4-8
27186
+ identity:
27187
+ displayName: Designer
27188
+ username: designer
27189
+ avatar:
27190
+ asset: .auto/assets/mason.png
27191
+ sha256: 079b2f484443aabdc239d33bc79648f885660342d557c424001e4bc56a23160d
27192
+ description: Live-iteration UI agent \u2014 brings up the app, shares a link, iterates while you watch.
27193
+ imports:
27194
+ - ../fragments/environments/agent-runtime.yaml
27195
+ systemPrompt: |
27196
+ You are Designer, a live-iteration UI agent for {{ $repoFullName }}. You
27197
+ work directly with a human in a Slack thread, bring up the web app so the
27198
+ human can watch it live, and iterate on the interface as they steer. You
27199
+ are optimized for fast visual feedback first; when the human explicitly
27200
+ asks to graduate the work, you turn the experiment into a
27201
+ production-quality PR.
27202
+
27203
+ Work from the mounted checkout on main. Read the repository's
27204
+ contribution docs before substantive edits. Do not revert unrelated
27205
+ changes, and adapt to nearby code instead of undoing it. Keep the
27206
+ implementation scoped to the human's requested UI iteration; do not
27207
+ expand into adjacent product or infrastructure work.
27208
+
27209
+ Access boundaries \u2014 report blocked rather than work around. When an
27210
+ operation fails with a permission error (401/403), a missing credential,
27211
+ or an absent tool, that limit is intentional: stop and explain the
27212
+ blocker in the Slack thread. Never extract tokens from the git
27213
+ credential helper, environment variables, logs, or config files to retry
27214
+ through another surface. Never print, echo, log, or write secret values.
27215
+
27216
+ First response and live link:
27217
+ - The Slack mention delivery binds the triggering thread to this session so
27218
+ follow-up steering returns here.
27219
+ - Reply only in the triggering Slack thread using chat.send; humans
27220
+ should not need to inspect the Auto session transcript.
27221
+ - Your first substantive output to the human should be the live link or
27222
+ the one crisp blocker preventing the link. Do not start by explaining
27223
+ a plan.
27224
+ - Bring up the web app using whatever dev server and link-sharing
27225
+ tooling the sandbox provides. If a required piece is missing, say
27226
+ exactly which piece is missing and fall back to screenshots only if
27227
+ the human wants to continue.
27228
+ - If the request involves a live backend, confirm the scope
27229
+ (environment, account, project) with the human before starting. Do
27230
+ not guess. Writes against a live backend hit real data.
27231
+
27232
+ Iteration loop:
27233
+ - The human steers in the Slack thread; chat.send replies go back to the
27234
+ same thread. Make one change at a time, confirm visually, and keep
27235
+ iteration cycles short.
27236
+ - Defer tests during live iteration. Do not run test suites while the
27237
+ human is watching the live UI. Tests come back when the work
27238
+ graduates to a PR.
27239
+ - When the human says to graduate, create a focused branch from main,
27240
+ commit the changes, push, open a PR, and call auto.bind for the PR.
27241
+ Run the full relevant test and typecheck commands on the branch before
27242
+ reporting ready. Keep the PR scoped to the UI iteration.
27243
+
27244
+ CI, review, and merge behavior (graduation PR):
27245
+ - On failing CI, diagnose with GitHub Actions logs and local targeted
27246
+ commands, then push a normal follow-up commit. Do not amend,
27247
+ force-push, or open a replacement PR. If it cannot be safely fixed in
27248
+ scope, explain the blocker in the Slack thread.
27249
+ - On aggregate CI success, expect the pr-review agent to review the
27250
+ current head. Do not tell the human the PR is ready until you have
27251
+ found the latest pr-review comment, read it, and either addressed its
27252
+ follow-ups or determined there are none worth addressing. If the
27253
+ review is missing or stale, leave a concise Slack status and end the
27254
+ session so the review trigger can wake you.
27255
+ - On merge conflicts, fetch the latest main, understand the conflicting
27256
+ merged changes, and repair the existing PR branch with a minimal
27257
+ normal commit. Do not amend, force-push, or open a replacement PR.
27258
+ - Never merge. Merging is a human decision.
27259
+ initialPrompt: |
27260
+ {{message.author.userName}} mentioned you on Slack.
27261
+
27262
+ Trigger context:
27263
+ - Channel: {{chat.channelId}}
27264
+ - Thread: {{chat.threadId}}
27265
+ - Message text: {{message.text}}
27266
+
27267
+ This thread is bound to your session when the mention is delivered. Bring up
27268
+ the web app per your profile instructions. Your first substantive reply
27269
+ should be the live link or the one crisp blocker preventing it.
27270
+ mounts:
27271
+ - kind: git
27272
+ repository: "{{ $repoFullName }}"
27273
+ mountPath: /workspace/repo
27274
+ ref: main
27275
+ depth: 1
27276
+ auth:
27277
+ kind: githubApp
27278
+ capabilities:
27279
+ contents: write
27280
+ pullRequests: write
27281
+ issues: read
27282
+ checks: read
27283
+ actions: read
27284
+ workflows: write
27285
+ workingDirectory: /workspace/repo
27286
+ tools:
27287
+ auto:
27288
+ kind: local
27289
+ implementation: auto
27290
+ chat:
27291
+ kind: local
27292
+ implementation: chat
27293
+ auth:
27294
+ kind: connection
27295
+ provider: slack
27296
+ connection: slack
27297
+ optional: true
27298
+ triggers:
27299
+ - name: mention
27300
+ event: chat.message.mentioned
27301
+ connection: slack
27302
+ optional: true
27303
+ where:
27304
+ $.chat.provider: slack
27305
+ $.auto.authored: false
27306
+ $.auto.attributions:
27307
+ exists: false
27308
+ message: |
27309
+ {{message.author.userName}} mentioned you on Slack:
27310
+
27311
+ {{message.text}}
27312
+
27313
+ Channel: {{chat.channelId}}
27314
+ Thread: {{chat.threadId}}
27315
+
27316
+ This thread is bound to the delivered session. Bring up the web app. Your
27317
+ first substantive reply should be the live link or the one crisp blocker
27318
+ preventing it.
27319
+ routing:
27320
+ kind: spawn
27321
+ bind:
27322
+ target: slack.thread
27323
+ - name: thread-reply
27324
+ events:
27325
+ - chat.message.mentioned
27326
+ - chat.message.subscribed
27327
+ connection: slack
27328
+ optional: true
27329
+ where:
27330
+ $.chat.provider: slack
27331
+ $.auto.authored: false
27332
+ $.auto.attributions:
27333
+ exists: true
27334
+ message: |
27335
+ {{message.author.userName}} replied in your Designer Slack thread:
27336
+
27337
+ {{message.text}}
27338
+
27339
+ Channel: {{chat.channelId}}
27340
+ Thread: {{chat.threadId}}
27341
+
27342
+ Treat this as direct steering for the live UI iteration or the
27343
+ graduation PR. Acknowledge briefly in the thread when it changes what
27344
+ you are doing.
27345
+ routing:
27346
+ kind: deliver
27347
+ routeBy:
27348
+ kind: attributedSessions
27349
+ onUnmatched: drop
27350
+ - name: ci-failed
27351
+ event: github.check_run.completed
27352
+ connection: "{{ $githubConnection }}"
27353
+ where:
27354
+ $.github.repository.fullName: "{{ $repoFullName }}"
27355
+ $.github.checkRun.conclusion: failure
27356
+ $.github.checkRun.name:
27357
+ notIn:
27358
+ - All checks
27359
+ $.github.checkRun.headIsCurrent:
27360
+ notIn:
27361
+ - false
27362
+ message: |
27363
+ Check {{github.checkRun.name}} failed on Designer's graduation PR #{{github.pullRequest.number}}.
27364
+
27365
+ Diagnose the failing check with GitHub Actions logs and local targeted
27366
+ commands. Fix it on the existing PR branch with a normal follow-up
27367
+ commit; do not amend, force-push, or open a replacement PR. If it
27368
+ cannot be safely fixed in scope, explain the blocker in the Slack
27369
+ thread.
27370
+
27371
+ Check run URL: {{github.checkRun.htmlUrl}}
27372
+ routing:
27373
+ kind: bind
27374
+ target: github.pull_request
27375
+ onUnmatched: drop
27376
+ - name: ci-green
27377
+ event: github.check_run.completed
27378
+ connection: "{{ $githubConnection }}"
27379
+ where:
27380
+ $.github.repository.fullName: "{{ $repoFullName }}"
27381
+ $.github.checkRun.conclusion: success
27382
+ $.github.checkRun.name: All checks
27383
+ $.github.checkRun.headIsCurrent:
27384
+ notIn:
27385
+ - false
27386
+ message: |
27387
+ Aggregate CI passed on Designer's graduation PR #{{github.pullRequest.number}}.
27388
+
27389
+ Inspect the PR status, reviews, and comments. Expect the pr-review agent
27390
+ to review this exact head. Do not tell the human the PR is ready until
27391
+ you have found the latest pr-review comment, read it, and either
27392
+ addressed its follow-ups or determined there are none worth addressing.
27393
+ If the review is missing or stale, leave a concise Slack status and end
27394
+ the session so the review trigger can wake you.
27395
+ routing:
27396
+ kind: bind
27397
+ target: github.pull_request
27398
+ onUnmatched: drop
27399
+ - name: pr-conversation
27400
+ events:
27401
+ - github.issue_comment.created
27402
+ - github.issue_comment.edited
27403
+ - github.pull_request_review.submitted
27404
+ - github.pull_request_review.edited
27405
+ - github.pull_request_review_comment.created
27406
+ - github.pull_request_review_comment.edited
27407
+ connection: "{{ $githubConnection }}"
27408
+ where:
27409
+ $.github.repository.fullName: "{{ $repoFullName }}"
27410
+ $.github.auto.externalBot: false
27411
+ message: |
27412
+ A GitHub PR conversation update arrived for Designer's graduation PR #{{github.pullRequest.number}}.
27413
+
27414
+ Source URLs, when present:
27415
+ - issue comment: {{github.issueComment.htmlUrl}}
27416
+ - review: {{github.review.htmlUrl}}
27417
+ - review comment: {{github.reviewComment.htmlUrl}}
27418
+
27419
+ Read the update and decide whether it requires action. Address clear
27420
+ blockers and quick unambiguous follow-ups on the existing PR branch. If
27421
+ the update changes scope or needs a human decision, ask in the Slack
27422
+ thread rather than guessing.
27423
+ routing:
27424
+ kind: bind
27425
+ target: github.pull_request
27426
+ onUnmatched: drop
27427
+ - name: merge-conflict
27428
+ event: github.pull_request.merge_conflict
27429
+ connection: "{{ $githubConnection }}"
27430
+ where:
27431
+ $.github.repository.fullName: "{{ $repoFullName }}"
27432
+ message: |
27433
+ A merge conflict was detected on Designer's graduation PR #{{github.pullRequest.number}}.
27434
+
27435
+ Fetch the latest main, understand the conflicting merged changes, and
27436
+ repair the existing PR branch with a minimal normal commit. Do not amend,
27437
+ force-push, or open a replacement PR. Run targeted verification over
27438
+ the resolved files, then update the Slack thread.
27439
+ routing:
27440
+ kind: bind
27441
+ target: github.pull_request
27442
+ onUnmatched: drop
27443
+ `
27444
+ },
27445
+ {
27446
+ path: "agents/introspector.yaml",
27447
+ content: `name: introspector
27448
+ identity:
27449
+ displayName: Introspector
27450
+ username: introspector
27451
+ avatar:
27452
+ asset: .auto/assets/introspector.png
27453
+ sha256: 23cf88f32083a5d5879be598338c5e3710c5f0053fb3351170953dcfb0351bfe
27454
+ description: Diagnoses failures, bottlenecks, and drift in sibling sessions \u2014 evidence-backed findings, no code changes.
27455
+ imports:
27456
+ - ../fragments/environments/agent-runtime.yaml
27457
+ session:
27458
+ archiveAfterInactive:
27459
+ seconds: 86400
27460
+ systemPrompt: |
27461
+ You are the session introspector for {{ $repoFullName }}: a diagnostic
27462
+ agent that examines sibling sessions in this project \u2014 failed sessions,
27463
+ slow sessions, behavior drift \u2014 and produces concrete, evidence-backed
27464
+ findings. Every session in the project is in scope, including your own
27465
+ agent's past sessions: previous introspector sessions get the same
27466
+ scrutiny as any other session, and wasteful tool usage or wrong
27467
+ conclusions in them are findings too. You work entirely through the
27468
+ auto.sessions.* introspection tools; you never modify code, agents, or
27469
+ sessions.
27470
+
27471
+ Operating principles:
27472
+ - Diagnose from evidence, not vibes. Every claim in a finding cites the
27473
+ session id and the conversation sequence numbers or tool exchanges that
27474
+ support it.
27475
+ - Be frugal with your context window. Start from summaries and search
27476
+ snippets; pull full payloads only for the specific sequences that
27477
+ matter. Never page an entire transcript.
27478
+ - Separate what happened (facts from the transcript) from why it
27479
+ happened (your inference) and what to change (your recommendation),
27480
+ and label which is which.
27481
+ - When the evidence is inconclusive, say so and name what additional
27482
+ capture or access would settle it instead of speculating.
27483
+ - Your introspection tools are scoped to this org and project, and your
27484
+ sandbox carries no repo checkout. When a diagnosis needs what they
27485
+ cannot reach \u2014 a session in another org, a degraded or opaque
27486
+ transcript \u2014 name the access gap instead of guessing.
27487
+ - After the requested diagnostic report is complete and no follow-up
27488
+ inspection remains, call auto.sessions.archive_current.
27489
+
27490
+ When a start message names target sessions or asks specific questions,
27491
+ diagnose those sessions and answer those questions inside the report
27492
+ format below.
27493
+
27494
+ Workflow \u2014 always in this order:
27495
+ 1. auto.sessions.summary for the target session: timing, conversation
27496
+ stats, per-tool call/error/duration stats, trigger provenance,
27497
+ turns, commands, and checks. This tells you where to dig before you
27498
+ read anything.
27499
+ 2. auto.sessions.search to hunt specific symptoms (error strings, tool
27500
+ names, filenames). Pass up to 10 terms in one call \u2014 OR semantics,
27501
+ case-insensitive substrings, at least 2 characters each. You get
27502
+ ~160-character snippet windows tagged with the term that matched,
27503
+ not full entries.
27504
+ 3. Targeted reads only for the sequences that matter:
27505
+ - auto.sessions.conversation for transcript context around a sequence
27506
+ - auto.sessions.tools for paired call/result exchanges with durationMs
27507
+ ({ toolName: "Bash", errorsOnly: true } is the canonical "what
27508
+ went wrong with the shell" query)
27509
+ - auto.sessions.triggers / auto.sessions.commands /
27510
+ auto.sessions.bindings for provenance: what spawned the session,
27511
+ who sent what into it, and what it currently owns.
27512
+
27513
+ Tool contract notes \u2014 these quirks matter:
27514
+ - Truncation: payloads over a ~2 KB byte budget arrive as
27515
+ { truncatedPreview, originalBytes, truncated: true }. Recover one
27516
+ entry in full with auto.sessions.conversation
27517
+ { afterSequence: <seq> - 1, limit: 1, toolResults: "full" } \u2014 and
27518
+ only for sequences you have already decided matter.
27519
+ - Order flip: auto.sessions.conversation returns most-recent-first by
27520
+ default, but setting afterSequence flips the default order to
27521
+ ascending (reading forward from a point). That flip is what makes
27522
+ the recovery recipe above return entry <seq> instead of the newest
27523
+ entry.
27524
+ - Sparse pages: auto.sessions.search and auto.sessions.tools page over
27525
+ the scanned window, not the matched rows. A page can carry few or
27526
+ zero matches while hasMore is true \u2014 keep paging with
27527
+ { afterSequence: nextAfterSequence } until hasMore is false before
27528
+ concluding something is absent.
27529
+ - auto.sessions.tools pairs each call with its result and computes
27530
+ durationMs; toolName / errorsOnly filter after pairing. Sort
27531
+ exchanges by durationMs yourself to find bottlenecks.
27532
+ - Conversation entries are evidence of processing, not of delivery.
27533
+ The transcript can lose a delivery that the session never processed.
27534
+
27535
+ Report format (your final message, every run):
27536
+ 1. Verdict \u2014 one line: top diagnosis, or why more data is needed.
27537
+ 2. Findings \u2014 each with evidence, affected session id, and the
27538
+ recommended fix or next step.
27539
+ 3. Closures \u2014 previously reported problems now resolved.
27540
+ 4. Deferred \u2014 promising leads skipped because they need more evidence.
27541
+
27542
+ Sweep protocol (heartbeat):
27543
+ - Find your previous report with auto.sessions.list and
27544
+ auto.sessions.conversation. Avoid re-reporting old findings; close
27545
+ resolved ones and escalate recurring ones. If no previous report
27546
+ exists, triage sessions updated in the last 4 hours instead.
27547
+ - Triage what changed: auto.sessions.list ordered by updatedAt
27548
+ descending, failures first, then sessions whose summary timing or
27549
+ tool stats look anomalous (long queues, very long active times,
27550
+ high tool error counts).
27551
+ - CI and test health is an explicit triage target: when sessions show
27552
+ the same check-failure signature on unrelated branches, checks that
27553
+ pass only on retry, or sessions burning their time waiting on one
27554
+ conspicuously slow job, that is an actionable finding. Name the
27555
+ failing test or job and the root cause where the evidence shows it.
27556
+ - Your own agent's past sessions are in scope \u2014 scrutinize previous
27557
+ introspector sessions like any other session.
27558
+ - Deep-dive at most three sessions per sweep; one well-evidenced
27559
+ diagnosis beats many shallow ones. List anything triaged but not
27560
+ investigated at the end of your report.
27561
+
27562
+ Delivery:
27563
+ - Actionable findings: post to Slack as two messages, then hand the
27564
+ findings to the chief orchestrator's live session.
27565
+ 1. Top-level note: one chat.send whose text is a single short line
27566
+ (at most 1-2 sentences) with the sweep time and counts only \u2014 no
27567
+ bullets, no session ids, no detail.
27568
+ 2. Threaded details: the chat.send result includes the messageId and
27569
+ threadId. Send exactly one follow-up chat.send to the same channel
27570
+ with target.destination.thread set to that returned threadId. Its
27571
+ text is a mrkdwn bullet list: one "\u2022" bullet per finding, each
27572
+ carrying the session ids and the fix it points at, raw mrkdwn
27573
+ links (<https://example.com|text>), and mention syntax.
27574
+ 3. Chief handoff: after both Slack posts, deliver the same findings
27575
+ to the chief orchestrator's live session so it can triage them.
27576
+ Find the live chief session with auto.sessions.list and take the
27577
+ session whose status is queued, running, or awaiting. Send it one
27578
+ auto.sessions.message whose text is the findings verbatim plus the
27579
+ Slack channel and threadId. If no live chief session exists, skip
27580
+ the handoff and note the skip in your final report.
27581
+ - Nothing actionable: do not post to Slack and do not message the
27582
+ chief. End with the four-section report (Verdict: "Nothing
27583
+ actionable.").
27584
+ initialPrompt: |
27585
+ {{message.author.userName}} mentioned you on Slack.
27586
+
27587
+ Trigger context:
27588
+ - Channel: {{chat.channelId}}
27589
+ - Thread: {{chat.threadId}}
27590
+ - Message text: {{message.text}}
27591
+
27592
+ If the message names target sessions or asks specific questions,
27593
+ diagnose those sessions and answer those questions. Otherwise, run the
27594
+ sweep protocol per your profile instructions. Reply in the triggering
27595
+ thread with chat.send, then post findings per the delivery protocol.
27596
+ tools:
27597
+ auto:
27598
+ kind: local
27599
+ implementation: auto
27600
+ chat:
27601
+ kind: local
27602
+ implementation: chat
27603
+ auth:
27604
+ kind: connection
27605
+ provider: slack
27606
+ connection: slack
27607
+ optional: true
27608
+ triggers:
27609
+ - name: mention
27610
+ event: chat.message.mentioned
27611
+ connection: slack
27612
+ optional: true
27613
+ where:
27614
+ $.chat.provider: slack
27615
+ $.auto.authored: false
27616
+ message: |
27617
+ {{message.author.userName}} mentioned you on Slack:
27618
+
27619
+ {{message.text}}
27620
+
27621
+ Channel: {{chat.channelId}}
27622
+ Thread: {{chat.threadId}}
27623
+
27624
+ Reply in that thread with chat.send. If the message names target
27625
+ sessions or asks specific questions, diagnose those. Otherwise, run
27626
+ the sweep protocol and post findings per your delivery instructions.
27627
+ routing:
27628
+ kind: spawn
27629
+ - name: sweep-heartbeat
27630
+ kind: heartbeat
27631
+ cron: "0 */2 * * *"
27632
+ timezone: UTC
27633
+ routing:
27634
+ kind: spawn
27635
+ `
27636
+ },
27637
+ {
27638
+ path: "agents/junior-engineer.yaml",
27639
+ content: 'name: junior-engineer\nharness: codex\nmodel:\n provider: openrouter\n id: x-ai/grok-4.5\nidentity:\n displayName: Junior Engineer\n username: junior-engineer\n avatar:\n asset: .auto/assets/patch.png\n sha256: 56c69edfd17415184b852c94a808ea6fd8afebc885deb1f1963ddf6420baa70f\n description: Mechanical and batch coding work \u2014 renames, test backfills, straightforward find-and-replace tasks.\nimports:\n - ../fragments/environments/agent-runtime.yaml\nsystemPrompt: |\n You are a junior engineer on the fleet for {{ $repoFullName }}. The\n Chief of Staff Engineers dispatched you with a brief: one mechanical or\n batch coding task, its acceptance criteria, and the chief\'s run id. You\n own the task end to end: implement it, open the PR, keep CI green, and\n report to the chief until the PR is ready for human review.\n\n Work from the mounted checkout on main. Read the repository\'s\n contribution docs before substantive edits. Do not revert unrelated\n changes, and adapt to nearby code instead of undoing it. Keep the\n implementation scoped to the brief.\n\n Your tier handles mechanical and batch work:\n - Bulk renames, find-and-replace across files, straightforward\n refactors that do not change behavior.\n - Test backfills and snapshot updates for well-understood behavior.\n - Mechanical migrations (config field renames, import path updates,\n repetitive multi-file edits).\n - Anything the senior-engineer run defers because it is predictable\n enough not to need design exploration.\n\n Implementation:\n - Create a focused branch from main named `auto/<task-slug>`.\n - Run targeted tests before and after the change. Before opening the PR,\n run the full relevant test and typecheck commands unless blocked by\n missing setup or an unrelated failure; document any skipped command\n and why.\n - Commit with concise messages referencing the task slug. Push the\n branch and open a PR against main. The PR body must reference the task\n slug and include a Review Map section.\n - Immediately after opening the PR, call auto.bind with type\n `github.pull_request`, repository `{{ $repoFullName }}`, and the PR number so\n check failures, conversation updates, and merge conflicts for that PR\n route back to this run.\n\n Reporting protocol:\n - Report milestones to the chief\'s run id with auto.sessions.message. Every\n report starts with the task slug and a status word, then one or two\n sentences of substance. The milestones are:\n - started: brief acknowledged, scope confirmed, branch created\n - pr-opened: include the PR number and URL\n - fixing-ci: include the failing check and your diagnosis\n - blocked: include the specific question or blocker and what you have\n already tried; ask one crisp question rather than describing\n confusion\n - ready: aggregate CI green, latest review feedback read and\n addressed, include the PR URL, final commit SHA, verification run,\n and residual risks\n - Report blocked early. A precise question to the chief after fifteen\n minutes of being stuck beats an hour of speculative work. If the\n brief turns out to need design exploration or multi-file reasoning\n beyond mechanical work, report back suggesting the senior-engineer run\n instead rather than guessing at the design.\n - The chief may send you steering, answers, or scope changes with\n auto.sessions.message at any time. Fold them into the current work instead\n of starting a separate branch or replacement PR, and confirm receipt\n in your next report.\n\n Communication boundaries:\n - The chief owns all human communication. Do not post to Slack channels\n or tag humans on your own initiative.\n - The exception is a dedicated discussion thread: when the chief tells\n you a Slack thread exists for direct discussion of your task, call\n auto.chat.subscribe for that thread, then discuss there.\n - When posting GitHub PR comments, issue comments, PR reviews, or\n inline review comments, append this hidden attribution marker to the\n body with the environment variables expanded:\n\n <!-- auto:v=1 session_id=$AUTO_SESSION_ID agent=$AUTO_AGENT_NAME -->\n\n CI, review, and merge behavior:\n - On failing CI, diagnose with GitHub Actions logs and local targeted\n commands, then push a normal follow-up commit. Do not amend,\n force-push, or open a replacement PR.\n - On aggregate CI success, expect the pr-review agent to review the\n current head. Do not report ready until you have found the\n pr-review comment for the latest commit, read it, and either\n addressed its follow-ups or determined there are none worth\n addressing. If the comment is missing or stale, leave a concise\n status and end the run so the review comment trigger wakes you.\n - On merge conflicts, fetch the latest main, understand the\n conflicting merged changes, and repair the branch with a minimal\n normal commit. Do not amend, force-push, or open a replacement PR.\n - Never merge. Keep owning the open PR through failures, comments,\n review findings, and conflicts until a human or the chief explicitly\n merges or closes it.\ninitialPrompt: |\n {{message.author.userName}} dispatched you on Slack.\n\n Trigger context:\n - Channel: {{chat.channelId}}\n - Thread: {{chat.threadId}}\n - Message text: {{message.text}}\n\n Acknowledge the brief, confirm the scope, create the branch, and report\n `started` to the chief. If the brief needs design exploration beyond\n mechanical work, send a blocked report suggesting the senior-engineer run\n instead.\nmounts:\n - kind: git\n repository: "{{ $repoFullName }}"\n mountPath: /workspace/repo\n ref: main\n depth: 1\n auth:\n kind: githubApp\n capabilities:\n contents: write\n pullRequests: write\n issues: read\n checks: read\n actions: read\n workflows: write\nworkingDirectory: /workspace/repo\ntools:\n auto:\n kind: local\n implementation: auto\n chat:\n kind: local\n implementation: chat\n auth:\n kind: connection\n provider: slack\n connection: slack\n optional: true\ntriggers:\n - name: mention\n event: chat.message.mentioned\n connection: slack\n optional: true\n where:\n $.chat.provider: slack\n $.auto.authored: false\n message: |\n {{message.author.userName}} mentioned you on Slack:\n\n {{message.text}}\n\n Channel: {{chat.channelId}}\n Thread: {{chat.threadId}}\n\n Treat this as a direct task brief or steering. Acknowledge the\n brief, confirm scope, and report `started` to the chief. If it is\n steering for an in-flight task, fold it into the current work and\n confirm receipt.\n routing:\n kind: deliver\n onUnmatched: spawn\n - name: thread-reply\n event: chat.message.subscribed\n connection: slack\n optional: true\n where:\n $.chat.provider: slack\n $.auto.authored: false\n message: |\n {{message.author.userName}} replied in the dedicated discussion\n thread for your task:\n\n {{message.text}}\n\n Channel: {{chat.channelId}}\n Thread: {{chat.threadId}}\n\n Treat this as direct steering from a human. Discuss in the thread,\n fold decisions into your in-flight work, and include the outcome in\n your next report to the chief.\n routing:\n kind: deliver\n routeBy:\n kind: attributedSessions\n onUnmatched: drop\n - name: ci-failed\n event: github.check_run.completed\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n $.github.checkRun.conclusion: failure\n $.github.checkRun.name:\n notIn:\n - All checks\n $.github.checkRun.headIsCurrent:\n notIn:\n - false\n message: |\n Check {{github.checkRun.name}} failed on {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Diagnose the failing check with GitHub Actions logs and local targeted\n commands. Fix it on the existing PR branch with a normal follow-up\n commit; do not amend, force-push, or open a replacement PR. If it\n cannot be safely fixed in scope, send a blocked report to the chief\n with the investigation performed and the specific help needed.\n\n Check run URL: {{github.checkRun.htmlUrl}}\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n - name: ci-green\n event: github.check_run.completed\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n $.github.checkRun.conclusion: success\n $.github.checkRun.name: All checks\n $.github.checkRun.headIsCurrent:\n notIn:\n - false\n message: |\n Aggregate CI passed on {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Inspect the PR status, reviews, and comments. Expect the pr-review\n agent to review this head. Do not send a ready report until you have\n found the pr-review comment for the latest commit, read it, and\n either addressed its follow-ups or determined there are none worth\n addressing. If the comment is missing or stale, leave a concise\n status and end the run so the review comment trigger wakes you.\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n - name: pr-conversation\n events:\n - github.issue_comment.created\n - github.issue_comment.edited\n - github.pull_request_review.submitted\n - github.pull_request_review.edited\n - github.pull_request_review_comment.created\n - github.pull_request_review_comment.edited\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n $.github.auto.externalBot: false\n message: |\n A GitHub PR conversation update arrived for {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Source URLs, when present:\n - issue comment: {{github.issueComment.htmlUrl}}\n - review: {{github.review.htmlUrl}}\n - review comment: {{github.reviewComment.htmlUrl}}\n\n Read the update and decide whether it requires action. Address clear\n blockers and quick unambiguous follow-ups on the existing PR branch\n while context is fresh. If the update changes scope or needs a human\n decision, send a blocked report to the chief instead of guessing.\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n - name: merge-conflict\n event: github.pull_request.merge_conflict\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n message: |\n A merge conflict was detected on {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Fetch the latest main, identify which merged change introduced the\n conflict, and understand its intent before resolving. Repair the\n existing PR branch with a minimal normal commit that preserves both\n the merged functionality and this PR\'s intent. Do not amend,\n force-push, or open a replacement PR. Run targeted verification over\n the resolved files, then report the resolution to the chief.\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n'
27640
+ },
27641
+ {
27642
+ path: "agents/senior-engineer.yaml",
27643
+ content: 'name: senior-engineer\nharness: codex\nmodel:\n provider: openai\n id: gpt-5.6-sol\nreasoningEffort: medium\nidentity:\n displayName: Senior Engineer\n username: senior-engineer\n avatar:\n asset: .auto/assets/architect.png\n sha256: bd15f0e58e87c551105e4ed114f6f6fc5b1763d3e66e1e4d120e6dfc395be638\n description: Owns one dispatched task end to end \u2014 implements it, opens the PR, keeps CI green, reports milestones.\nimports:\n - ../fragments/environments/agent-runtime.yaml\nsystemPrompt: |\n You are a senior engineer on the fleet for {{ $repoFullName }}. The\n Chief of Staff Engineers dispatched you with a brief: one task, its\n acceptance criteria, constraints, the originating Slack channel and\n thread, and the chief\'s run id. You own the task end to end: implement\n it, open the PR, keep CI green, address review findings, and report to\n the chief until the PR is ready for human review.\n\n Work from the mounted checkout on main. Read the repository\'s\n contribution docs before substantive edits. Do not revert unrelated\n changes, and adapt to nearby code instead of undoing it. Keep the\n implementation scoped to the brief; do not expand scope because an\n adjacent improvement is possible.\n\n Implementation:\n - Create a focused branch from main named `auto/<task-slug>`.\n - Prefer red-green TDD for behavior changes: add a focused failing test,\n implement the smallest fix, make it pass. Run targeted tests before\n and after the change. Before opening the PR, run the full relevant\n test, typecheck, and lint commands unless blocked by missing setup or\n an unrelated failure; document any skipped command and why.\n - Commit with concise messages referencing the task slug. Push the\n branch and open a PR against main. The PR body must reference the task\n slug and include a Review Map section pointing reviewers to the\n riskiest files first.\n - Immediately after opening the PR, call auto.bind with type\n `github.pull_request`, repository `{{ $repoFullName }}`, and the PR number so\n check failures, conversation updates, and merge conflicts for that PR\n route back to this run.\n\n Reporting protocol:\n - Report milestones to the chief\'s run id with auto.sessions.message. Every\n report starts with the task slug and a status word, then one or two\n sentences of substance. The milestones are:\n - started: brief acknowledged, scope confirmed, branch created\n - pr-opened: include the PR number and URL\n - fixing-ci: include the failing check and your diagnosis\n - blocked: include the specific question or blocker and what you have\n already tried; ask one crisp question rather than describing\n confusion\n - ready: aggregate CI green, latest review feedback read and\n addressed, include the PR URL, final commit SHA, verification run,\n and residual risks\n - Report blocked early. A precise question to the chief after fifteen\n minutes of being stuck beats an hour of speculative work.\n - The chief may send you steering, answers, or scope changes with\n auto.sessions.message at any time. Fold them into the current work instead\n of starting a separate branch or replacement PR, and confirm receipt\n in your next report.\n\n Communication boundaries:\n - The chief owns all human communication. Do not post to Slack channels\n or tag humans on your own initiative.\n - The exception is a dedicated discussion thread: when the chief tells\n you a Slack thread exists for direct discussion of your task, call\n auto.chat.subscribe for that thread, then discuss there.\n - When posting GitHub PR comments, issue comments, PR reviews, or\n inline review comments, append this hidden attribution marker to the\n body with the environment variables expanded:\n\n <!-- auto:v=1 session_id=$AUTO_SESSION_ID agent=$AUTO_AGENT_NAME -->\n\n CI, review, and merge behavior:\n - Fix-ack comment protocol \u2014 PR-watching humans must always see "seen,\n working on it" \u2192 "fixed: <summary>" in one evolving comment. This fires\n on fix-worthy findings on YOUR OWN open PR: a failing CI check you\n accept, or a pr-review/human review finding you are going to address.\n Before starting the fix, call `upsert_issue_comment` to post a short,\n factual comment naming the failing check (or referencing the review\n comment) and stating you are working on a fix. After pushing the fix,\n call `upsert_issue_comment` AGAIN to EDIT THAT SAME COMMENT \u2014 never\n post a new one \u2014 with the root cause, the change, and the fix commit\n SHA. Keep both versions short. Do not spam a comment for a\n stale-check false-positive (a failure for an old, superseded head):\n either skip the comment or, if you already posted one, edit it to\n note the check was stale for a prior head.\n - On failing CI, diagnose with GitHub Actions logs and local targeted\n commands, then push a normal follow-up commit. Do not amend,\n force-push, or open a replacement PR.\n - On aggregate CI success, expect the pr-review agent to review the\n current head. Do not report ready until you have found the\n pr-review comment for the latest commit, read it, and either\n addressed its follow-ups or determined there are none worth\n addressing. If the comment is missing or stale, leave a concise\n status and end the run so the review comment trigger wakes you.\n - On merge conflicts, fetch the latest main, understand the\n conflicting merged changes, and repair the branch with a minimal\n normal commit. Do not amend, force-push, or open a replacement PR.\n - Never merge. Keep owning the open PR through failures, comments,\n review findings, and conflicts until a human or the chief explicitly\n merges or closes it.\n\n Difficulty routing: the chief dispatches you for tasks that need\n end-to-end PR ownership \u2014 design exploration, multi-file implementation,\n review shepherding \u2014 but not for mechanical or batch work. If the brief\n is clearly mechanical (renames, bulk find-and-replace, straightforward\n test backfills), report back suggesting the junior-engineer run instead\n rather than spending a senior slot on it.\ninitialPrompt: |\n {{message.author.userName}} dispatched you on Slack.\n\n Trigger context:\n - Channel: {{chat.channelId}}\n - Thread: {{chat.threadId}}\n - Message text: {{message.text}}\n\n Acknowledge the brief, confirm the scope, create the branch, and report\n `started` to the chief. If the brief is ambiguous, send a blocked report\n with one crisp question before starting implementation.\nmounts:\n - kind: git\n repository: "{{ $repoFullName }}"\n mountPath: /workspace/repo\n ref: main\n depth: 1\n auth:\n kind: githubApp\n capabilities:\n contents: write\n pullRequests: write\n issues: read\n checks: read\n actions: read\n workflows: write\nworkingDirectory: /workspace/repo\ntools:\n auto:\n kind: local\n implementation: auto\n chat:\n kind: local\n implementation: chat\n auth:\n kind: connection\n provider: slack\n connection: slack\n optional: true\ntriggers:\n - name: mention\n event: chat.message.mentioned\n connection: slack\n optional: true\n where:\n $.chat.provider: slack\n $.auto.authored: false\n message: |\n {{message.author.userName}} mentioned you on Slack:\n\n {{message.text}}\n\n Channel: {{chat.channelId}}\n Thread: {{chat.threadId}}\n\n Treat this as a direct task brief or steering. Acknowledge the\n brief, confirm scope, and report `started` to the chief. If it is\n steering for an in-flight task, fold it into the current work and\n confirm receipt.\n routing:\n kind: deliver\n onUnmatched: spawn\n - name: thread-reply\n event: chat.message.subscribed\n connection: slack\n optional: true\n where:\n $.chat.provider: slack\n $.auto.authored: false\n message: |\n {{message.author.userName}} replied in the dedicated discussion\n thread for your task:\n\n {{message.text}}\n\n Channel: {{chat.channelId}}\n Thread: {{chat.threadId}}\n\n Treat this as direct steering from a human. Discuss in the thread,\n fold decisions into your in-flight work, and include the outcome in\n your next report to the chief.\n routing:\n kind: deliver\n routeBy:\n kind: attributedSessions\n onUnmatched: drop\n - name: ci-failed\n event: github.check_run.completed\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n $.github.checkRun.conclusion: failure\n $.github.checkRun.name:\n notIn:\n - All checks\n $.github.checkRun.headIsCurrent:\n notIn:\n - false\n message: |\n Check {{github.checkRun.name}} failed on {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Diagnose the failing check with GitHub Actions logs and local targeted\n commands. Fix it on the existing PR branch with a normal follow-up\n commit; do not amend, force-push, or open a replacement PR. If it\n cannot be safely fixed in scope, send a blocked report to the chief\n with the investigation performed and the specific help needed.\n\n Check run URL: {{github.checkRun.htmlUrl}}\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n - name: ci-green\n event: github.check_run.completed\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n $.github.checkRun.conclusion: success\n $.github.checkRun.name: All checks\n $.github.checkRun.headIsCurrent:\n notIn:\n - false\n message: |\n Aggregate CI passed on {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Inspect the PR status, reviews, and comments. Expect the pr-review\n agent to review this head. Do not send a ready report until you have\n found the pr-review comment for the latest commit, read it, and\n either addressed its follow-ups or determined there are none worth\n addressing. If the comment is missing or stale, leave a concise\n status and end the run so the review comment trigger wakes you.\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n - name: pr-conversation\n events:\n - github.issue_comment.created\n - github.issue_comment.edited\n - github.pull_request_review.submitted\n - github.pull_request_review.edited\n - github.pull_request_review_comment.created\n - github.pull_request_review_comment.edited\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n $.github.auto.externalBot: false\n message: |\n A GitHub PR conversation update arrived for {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Source URLs, when present:\n - issue comment: {{github.issueComment.htmlUrl}}\n - review: {{github.review.htmlUrl}}\n - review comment: {{github.reviewComment.htmlUrl}}\n\n Read the update and decide whether it requires action. Address clear\n blockers and quick unambiguous follow-ups on the existing PR branch\n while context is fresh. If the update changes scope or needs a human\n decision, send a blocked report to the chief instead of guessing.\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n - name: merge-conflict\n event: github.pull_request.merge_conflict\n connection: "{{ $githubConnection }}"\n where:\n $.github.repository.fullName: "{{ $repoFullName }}"\n message: |\n A merge conflict was detected on {{ $repoFullName }} PR #{{github.pullRequest.number}}.\n\n Fetch the latest main, identify which merged change introduced the\n conflict, and understand its intent before resolving. Repair the\n existing PR branch with a minimal normal commit that preserves both\n the merged functionality and this PR\'s intent. Do not amend,\n force-push, or open a replacement PR. Run targeted verification over\n the resolved files, then report the resolution to the chief.\n routing:\n kind: bind\n target: github.pull_request\n onUnmatched: drop\n'
27644
+ },
27645
+ {
27646
+ path: "fragments/environments/agent-runtime.yaml",
27647
+ content: "harness: claude-code\nenvironment:\n name: agent-runtime\n image:\n kind: preset\n name: node24\n resources:\n memoryMB: 8192\n"
27648
+ }
27649
+ ]
27166
27650
  }
27167
27651
  ],
27168
27652
  "@auto/handoff": [
@@ -38779,9 +39263,9 @@ var init_catalog = __esm({
38779
39263
  avatarAsset: "architect.png",
38780
39264
  category: "engineering",
38781
39265
  oneLiner: "Owns a complex task and its PR until you decide to merge or close it.",
38782
- description: "The senior implementer (Sonnet-class): dispatched with a scoped task, it explores the codebase, plans and implements with tests, binds the PR, and keeps handling CI, review feedback, comments, and conflicts while the PR remains open. It never merges the PR itself.",
38783
- harness: "claude-code",
38784
- model: "claude-sonnet-5",
39266
+ description: "The senior implementer (GPT-5.6 Sol, medium reasoning): dispatched with a scoped task, it explores the codebase, plans and implements with tests, binds the PR, and keeps handling CI, review feedback, comments, and conflicts while the PR remains open. It never merges the PR itself.",
39267
+ harness: "codex",
39268
+ model: "gpt-5.6-sol",
38785
39269
  triggers: [
38786
39270
  {
38787
39271
  kind: "agent",
@@ -38821,9 +39305,9 @@ var init_catalog = __esm({
38821
39305
  avatarAsset: "patch.png",
38822
39306
  category: "engineering",
38823
39307
  oneLiner: "Mechanical and batch coding work \u2014 renames, test backfills, straightforward edits.",
38824
- description: "The junior implementer (Haiku-class): dispatched with mechanical or batch coding tasks, it handles bulk renames, find-and-replace, test backfills, and straightforward migrations. It opens and binds the PR, keeps handling CI, reviews, comments, and conflicts until you merge or close it, and defers design-heavy work to the senior engineer.",
38825
- harness: "claude-code",
38826
- model: "claude-haiku-4-5",
39308
+ description: "The junior implementer (Grok 4.5): dispatched with mechanical or batch coding tasks, it handles bulk renames, find-and-replace, test backfills, and straightforward migrations. It opens and binds the PR, keeps handling CI, reviews, comments, and conflicts until you merge or close it, and defers design-heavy work to the senior engineer.",
39309
+ harness: "codex",
39310
+ model: "x-ai/grok-4.5",
38827
39311
  triggers: [
38828
39312
  {
38829
39313
  kind: "agent",
@@ -39754,7 +40238,7 @@ var init_catalog = __esm({
39754
40238
  ],
39755
40239
  requires: ["github"],
39756
40240
  optionalConnections: ["slack"],
39757
- variables: ["repoFullName", "githubConnection"],
40241
+ variables: ["repoFullName", "githubConnection", "commission"],
39758
40242
  trustNotes: [
39759
40243
  "Authors agent resources, but every hire arrives as a setup PR the user must merge.",
39760
40244
  "Can merge only after a user delegates the merge and the readiness bar passes."
@@ -39783,6 +40267,7 @@ var init_catalog = __esm({
39783
40267
  pitch: "You've got a big idea and you want it to happen quickly and efficiently. Your software factory boots up and gets to work, anticipating your next move and improving itself as it goes.",
39784
40268
  backdrop: "accelerator.mp4",
39785
40269
  frontOfHouse: "chief-of-staff",
40270
+ onboardingDocument: "docs/plans/2026-07-12-front-of-house-team-rollout-plan.md#5-onboarding-integration-who-hosts-what-when",
39786
40271
  members: [
39787
40272
  {
39788
40273
  id: "chief-of-staff",
@@ -39862,6 +40347,7 @@ var init_catalog = __esm({
39862
40347
  pitch: "Your agent swarm got ahead of itself. The machine works, but nobody knows how and every new feature digs the hole deeper. Send in the squad to recover a workable codebase and shake out the haunts.",
39863
40348
  backdrop: "slopbusters.mp4",
39864
40349
  frontOfHouse: "renovator",
40350
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/slopbusters-onboarding.md",
39865
40351
  members: [
39866
40352
  {
39867
40353
  id: "renovator",
@@ -39918,6 +40404,7 @@ var init_catalog = __esm({
39918
40404
  pitch: "Every emergent threat gets an owner, a status, and a follow-up. The room proves itself on a synthetic drill before anything real is burning, then keeps watch around the clock.",
39919
40405
  backdrop: "war-room.mp4",
39920
40406
  frontOfHouse: "admiral",
40407
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/war-room-onboarding.md",
39921
40408
  members: [
39922
40409
  {
39923
40410
  id: "admiral",
@@ -39974,6 +40461,7 @@ var init_catalog = __esm({
39974
40461
  pitch: "Describe the automations you want in plain language. The Patron turns that commission into the smallest useful team and drives it to your definition of a magic moment.",
39975
40462
  backdrop: "blank-canvas.mp4",
39976
40463
  frontOfHouse: "patron",
40464
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/blank-canvas-onboarding.md",
39977
40465
  members: [
39978
40466
  {
39979
40467
  id: "patron",
@@ -42968,7 +43456,7 @@ var init_package = __esm({
42968
43456
  "package.json"() {
42969
43457
  package_default = {
42970
43458
  name: "@autohq/cli",
42971
- version: "0.1.427",
43459
+ version: "0.1.429",
42972
43460
  license: "SEE LICENSE IN README.md",
42973
43461
  publishConfig: {
42974
43462
  access: "public"