@autohq/cli 0.1.428 → 0.1.430

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.
@@ -30825,7 +30825,7 @@ Object.assign(lookup, {
30825
30825
  // package.json
30826
30826
  var package_default = {
30827
30827
  name: "@autohq/cli",
30828
- version: "0.1.428",
30828
+ version: "0.1.430",
30829
30829
  license: "SEE LICENSE IN README.md",
30830
30830
  publishConfig: {
30831
30831
  access: "public"
@@ -36203,6 +36203,7 @@ var OnboardingRunEvidenceSchema = JsonObjectSchema;
36203
36203
  var ProjectOnboardingRunSnapshotSchema = external_exports.object({
36204
36204
  id: external_exports.string().min(1),
36205
36205
  teamId: OnboardingRunTeamIdSchema,
36206
+ commission: external_exports.string().max(2e3).nullable(),
36206
36207
  phase: OnboardingRunPhaseSchema,
36207
36208
  evidence: OnboardingRunEvidenceSchema,
36208
36209
  /** Monotonic per-run write counter; also the phase_changed dedup clock. */
@@ -37224,6 +37225,10 @@ var SetupOnboardingPullRequestCreateRequestSchema = external_exports.object({
37224
37225
  slackConnection: external_exports.string().trim().min(1).optional(),
37225
37226
  repo: GithubSyncRepositoryFullNameSchema,
37226
37227
  baseBranch: GithubSyncProductionBranchSchema.optional(),
37228
+ team: external_exports.object({
37229
+ id: external_exports.string().trim().min(1),
37230
+ commission: external_exports.string().trim().min(1).max(2e3).optional()
37231
+ }).optional(),
37227
37232
  // The picked roster from the assemble-your-team step: catalog agent ids
37228
37233
  // whose importing files join the PR (Slack-requiring picks are deferred
37229
37234
  // server-side when no Slack connection exists yet).
@@ -37243,6 +37248,10 @@ var SetupOnboardingPullRequestSchema = external_exports.object({
37243
37248
  baseBranch: GithubSyncProductionBranchSchema,
37244
37249
  headSha: external_exports.string().trim().min(1)
37245
37250
  });
37251
+ var SetupOnboardingRunReferenceSchema = external_exports.object({
37252
+ id: external_exports.string().trim().min(1),
37253
+ teamId: external_exports.string().trim().min(1)
37254
+ });
37246
37255
  var SetupOnboardingSyncSchema = external_exports.object({
37247
37256
  branch: GithubSyncProductionBranchSchema,
37248
37257
  headSha: external_exports.string().trim().min(1).optional(),
@@ -37251,11 +37260,13 @@ var SetupOnboardingSyncSchema = external_exports.object({
37251
37260
  var SetupOnboardingPullRequestCreateResponseSchema = external_exports.discriminatedUnion("mode", [
37252
37261
  external_exports.object({
37253
37262
  mode: external_exports.literal("pull_request"),
37254
- pullRequest: SetupOnboardingPullRequestSchema
37263
+ pullRequest: SetupOnboardingPullRequestSchema,
37264
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
37255
37265
  }),
37256
37266
  external_exports.object({
37257
37267
  mode: external_exports.literal("sync"),
37258
- sync: SetupOnboardingSyncSchema
37268
+ sync: SetupOnboardingSyncSchema,
37269
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
37259
37270
  })
37260
37271
  ]);
37261
37272
  var SetupOnboardingPullRequestStatusRequestSchema = external_exports.object({
@@ -37294,7 +37305,8 @@ var SetupOnboardingPullRequestSnapshotSchema = external_exports.discriminatedUni
37294
37305
  githubConnection: external_exports.string().trim().min(1),
37295
37306
  slackConnection: external_exports.string().trim().min(1).optional(),
37296
37307
  repo: GithubSyncRepositoryFullNameSchema,
37297
- pullRequest: SetupOnboardingPullRequestSchema
37308
+ pullRequest: SetupOnboardingPullRequestSchema,
37309
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
37298
37310
  }),
37299
37311
  external_exports.object({
37300
37312
  mode: external_exports.literal("sync"),
@@ -37302,14 +37314,16 @@ var SetupOnboardingPullRequestSnapshotSchema = external_exports.discriminatedUni
37302
37314
  githubConnection: external_exports.string().trim().min(1),
37303
37315
  slackConnection: external_exports.string().trim().min(1).optional(),
37304
37316
  repo: GithubSyncRepositoryFullNameSchema,
37305
- sync: SetupOnboardingSyncSchema
37317
+ sync: SetupOnboardingSyncSchema,
37318
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
37306
37319
  })
37307
37320
  ]
37308
37321
  );
37309
37322
  var SetupOnboardingRosterSnapshotSchema = external_exports.object({
37310
37323
  scope: SetupOnboardingScopeSchema,
37311
37324
  agents: external_exports.array(external_exports.string().trim().min(1)),
37312
- customBrief: external_exports.string().trim().min(1).max(500).nullable().default(null)
37325
+ customBrief: external_exports.string().trim().min(1).max(500).nullable().default(null),
37326
+ onboardingRun: SetupOnboardingRunReferenceSchema.optional()
37313
37327
  });
37314
37328
  var SetupOnboardingStateSchema = external_exports.object({
37315
37329
  introSeen: external_exports.boolean(),
@@ -40169,11 +40183,8 @@ triggers:
40169
40183
  # chief-of-staff FOH contract (@auto/agent-fleet) plus the onboarding
40170
40184
  # concierge's agent-authoring role, which the Patron absorbs for this preset.
40171
40185
  # Source plan: docs/plans/2026-07-12-front-of-house-team-rollout-plan.md.
40172
- # Commission intake: the blank-text-box brief threads into the install as a
40173
- # template variable once the setup-PR renderer supports it (plan C3); until
40174
- # then the commission arrives in the Patron's first conversation, and the
40175
- # doctrine below reads it from the intake surface plus the onboarding run
40176
- # record rather than a variable.
40186
+ # Commission intake: the blank-text-box brief threads into the install as the
40187
+ # \`commission\` template variable and is repeated in the one-shot kickoff.
40177
40188
  name: patron
40178
40189
  model:
40179
40190
  provider: anthropic
@@ -40183,7 +40194,7 @@ identity:
40183
40194
  username: patron
40184
40195
  avatar:
40185
40196
  asset: .auto/assets/patron.png
40186
- sha256: 7c03017e41ac05cbc453993dc0a3e91bf05b267a06b88e581514167ef87ce192
40197
+ sha256: 310a63df6fbd8a982c1f7955b2828f5d50683e2712a948b887a5fda101f9a537
40187
40198
  description:
40188
40199
  Name your commission. The workshop is yours. Stakes the bottega, staffs
40189
40200
  the apprentices, drives to your magic moment.
@@ -40201,11 +40212,10 @@ systemPrompt: |
40201
40212
  blank-canvas users you ARE the onboarding concierge, in character from the
40202
40213
  first hello \u2014 there is no separate onboarding agent.
40203
40214
 
40204
- The commission is the user's own words: the plain-language automation
40205
- brief they gave when choosing the Blank Canvas, restated in your intake
40206
- conversation or recorded in the onboarding run record. If you cannot find
40207
- a commission anywhere, your first move is to ask for one \u2014 warmly, as a
40208
- blank canvas, never as a form.
40215
+ The commission is the user's own words: {{ $commission }}. The one-shot
40216
+ kickoff repeats it and names the onboarding run record you must resume. If
40217
+ an older standalone install leaves the commission blank, your first move is
40218
+ to ask for one \u2014 warmly, as a blank canvas, never as a form.
40209
40219
 
40210
40220
  You never impose your own vision and you never write product code. Your
40211
40221
  taste is real \u2014 say plainly when the composition is unbalanced, when a
@@ -43243,6 +43253,480 @@ triggers:
43243
43253
  content: "harness: claude-code\nenvironment:\n name: agent-runtime\n image:\n kind: preset\n name: node24\n resources:\n memoryMB: 8192\n"
43244
43254
  }
43245
43255
  ]
43256
+ },
43257
+ {
43258
+ version: "1.5.0",
43259
+ files: [
43260
+ {
43261
+ path: "agents/designer.yaml",
43262
+ content: `name: designer
43263
+ model:
43264
+ provider: anthropic
43265
+ id: claude-opus-4-8
43266
+ identity:
43267
+ displayName: Designer
43268
+ username: designer
43269
+ avatar:
43270
+ asset: .auto/assets/designer.png
43271
+ sha256: 68ac2d8cceecceece97ad72095ef146cc9e7d6ca8de2742e37eeb8727a60e7a5
43272
+ description: Live-iteration UI agent \u2014 brings up the app, shares a link, iterates while you watch.
43273
+ imports:
43274
+ - ../fragments/environments/agent-runtime.yaml
43275
+ systemPrompt: |
43276
+ You are Designer, a live-iteration UI agent for {{ $repoFullName }}. You
43277
+ work directly with a human in a Slack thread, bring up the web app so the
43278
+ human can watch it live, and iterate on the interface as they steer. You
43279
+ are optimized for fast visual feedback first; when the human explicitly
43280
+ asks to graduate the work, you turn the experiment into a
43281
+ production-quality PR.
43282
+
43283
+ Work from the mounted checkout on main. Read the repository's
43284
+ contribution docs before substantive edits. Do not revert unrelated
43285
+ changes, and adapt to nearby code instead of undoing it. Keep the
43286
+ implementation scoped to the human's requested UI iteration; do not
43287
+ expand into adjacent product or infrastructure work.
43288
+
43289
+ Access boundaries \u2014 report blocked rather than work around. When an
43290
+ operation fails with a permission error (401/403), a missing credential,
43291
+ or an absent tool, that limit is intentional: stop and explain the
43292
+ blocker in the Slack thread. Never extract tokens from the git
43293
+ credential helper, environment variables, logs, or config files to retry
43294
+ through another surface. Never print, echo, log, or write secret values.
43295
+
43296
+ First response and live link:
43297
+ - The Slack mention delivery binds the triggering thread to this session so
43298
+ follow-up steering returns here.
43299
+ - Reply only in the triggering Slack thread using chat.send; humans
43300
+ should not need to inspect the Auto session transcript.
43301
+ - Your first substantive output to the human should be the live link or
43302
+ the one crisp blocker preventing the link. Do not start by explaining
43303
+ a plan.
43304
+ - Bring up the web app using whatever dev server and link-sharing
43305
+ tooling the sandbox provides. If a required piece is missing, say
43306
+ exactly which piece is missing and fall back to screenshots only if
43307
+ the human wants to continue.
43308
+ - If the request involves a live backend, confirm the scope
43309
+ (environment, account, project) with the human before starting. Do
43310
+ not guess. Writes against a live backend hit real data.
43311
+
43312
+ Iteration loop:
43313
+ - The human steers in the Slack thread; chat.send replies go back to the
43314
+ same thread. Make one change at a time, confirm visually, and keep
43315
+ iteration cycles short.
43316
+ - Defer tests during live iteration. Do not run test suites while the
43317
+ human is watching the live UI. Tests come back when the work
43318
+ graduates to a PR.
43319
+ - When the human says to graduate, create a focused branch from main,
43320
+ commit the changes, push, open a PR, and call auto.bind for the PR.
43321
+ Run the full relevant test and typecheck commands on the branch before
43322
+ reporting ready. Keep the PR scoped to the UI iteration.
43323
+
43324
+ CI, review, and merge behavior (graduation PR):
43325
+ - On failing CI, diagnose with GitHub Actions logs and local targeted
43326
+ commands, then push a normal follow-up commit. Do not amend,
43327
+ force-push, or open a replacement PR. If it cannot be safely fixed in
43328
+ scope, explain the blocker in the Slack thread.
43329
+ - On aggregate CI success, expect the pr-review agent to review the
43330
+ current head. Do not tell the human the PR is ready until you have
43331
+ found the latest pr-review comment, read it, and either addressed its
43332
+ follow-ups or determined there are none worth addressing. If the
43333
+ review is missing or stale, leave a concise Slack status and end the
43334
+ session so the review trigger can wake you.
43335
+ - On merge conflicts, fetch the latest main, understand the conflicting
43336
+ merged changes, and repair the existing PR branch with a minimal
43337
+ normal commit. Do not amend, force-push, or open a replacement PR.
43338
+ - Never merge. Merging is a human decision.
43339
+ initialPrompt: |
43340
+ {{message.author.userName}} mentioned you on Slack.
43341
+
43342
+ Trigger context:
43343
+ - Channel: {{chat.channelId}}
43344
+ - Thread: {{chat.threadId}}
43345
+ - Message text: {{message.text}}
43346
+
43347
+ This thread is bound to your session when the mention is delivered. Bring up
43348
+ the web app per your profile instructions. Your first substantive reply
43349
+ should be the live link or the one crisp blocker preventing it.
43350
+ mounts:
43351
+ - kind: git
43352
+ repository: "{{ $repoFullName }}"
43353
+ mountPath: /workspace/repo
43354
+ ref: main
43355
+ depth: 1
43356
+ auth:
43357
+ kind: githubApp
43358
+ capabilities:
43359
+ contents: write
43360
+ pullRequests: write
43361
+ issues: read
43362
+ checks: read
43363
+ actions: read
43364
+ workflows: write
43365
+ workingDirectory: /workspace/repo
43366
+ tools:
43367
+ auto:
43368
+ kind: local
43369
+ implementation: auto
43370
+ chat:
43371
+ kind: local
43372
+ implementation: chat
43373
+ auth:
43374
+ kind: connection
43375
+ provider: slack
43376
+ connection: slack
43377
+ optional: true
43378
+ triggers:
43379
+ - name: mention
43380
+ event: chat.message.mentioned
43381
+ connection: slack
43382
+ optional: true
43383
+ where:
43384
+ $.chat.provider: slack
43385
+ $.auto.authored: false
43386
+ $.auto.attributions:
43387
+ exists: false
43388
+ message: |
43389
+ {{message.author.userName}} mentioned you on Slack:
43390
+
43391
+ {{message.text}}
43392
+
43393
+ Channel: {{chat.channelId}}
43394
+ Thread: {{chat.threadId}}
43395
+
43396
+ This thread is bound to the delivered session. Bring up the web app. Your
43397
+ first substantive reply should be the live link or the one crisp blocker
43398
+ preventing it.
43399
+ routing:
43400
+ kind: spawn
43401
+ bind:
43402
+ target: slack.thread
43403
+ - name: thread-reply
43404
+ events:
43405
+ - chat.message.mentioned
43406
+ - chat.message.subscribed
43407
+ connection: slack
43408
+ optional: true
43409
+ where:
43410
+ $.chat.provider: slack
43411
+ $.auto.authored: false
43412
+ $.auto.attributions:
43413
+ exists: true
43414
+ message: |
43415
+ {{message.author.userName}} replied in your Designer Slack thread:
43416
+
43417
+ {{message.text}}
43418
+
43419
+ Channel: {{chat.channelId}}
43420
+ Thread: {{chat.threadId}}
43421
+
43422
+ Treat this as direct steering for the live UI iteration or the
43423
+ graduation PR. Acknowledge briefly in the thread when it changes what
43424
+ you are doing.
43425
+ routing:
43426
+ kind: deliver
43427
+ routeBy:
43428
+ kind: attributedSessions
43429
+ onUnmatched: drop
43430
+ - name: ci-failed
43431
+ event: github.check_run.completed
43432
+ connection: "{{ $githubConnection }}"
43433
+ where:
43434
+ $.github.repository.fullName: "{{ $repoFullName }}"
43435
+ $.github.checkRun.conclusion: failure
43436
+ $.github.checkRun.name:
43437
+ notIn:
43438
+ - All checks
43439
+ $.github.checkRun.headIsCurrent:
43440
+ notIn:
43441
+ - false
43442
+ message: |
43443
+ Check {{github.checkRun.name}} failed on Designer's graduation PR #{{github.pullRequest.number}}.
43444
+
43445
+ Diagnose the failing check with GitHub Actions logs and local targeted
43446
+ commands. Fix it on the existing PR branch with a normal follow-up
43447
+ commit; do not amend, force-push, or open a replacement PR. If it
43448
+ cannot be safely fixed in scope, explain the blocker in the Slack
43449
+ thread.
43450
+
43451
+ Check run URL: {{github.checkRun.htmlUrl}}
43452
+ routing:
43453
+ kind: bind
43454
+ target: github.pull_request
43455
+ onUnmatched: drop
43456
+ - name: ci-green
43457
+ event: github.check_run.completed
43458
+ connection: "{{ $githubConnection }}"
43459
+ where:
43460
+ $.github.repository.fullName: "{{ $repoFullName }}"
43461
+ $.github.checkRun.conclusion: success
43462
+ $.github.checkRun.name: All checks
43463
+ $.github.checkRun.headIsCurrent:
43464
+ notIn:
43465
+ - false
43466
+ message: |
43467
+ Aggregate CI passed on Designer's graduation PR #{{github.pullRequest.number}}.
43468
+
43469
+ Inspect the PR status, reviews, and comments. Expect the pr-review agent
43470
+ to review this exact head. Do not tell the human the PR is ready until
43471
+ you have found the latest pr-review comment, read it, and either
43472
+ addressed its follow-ups or determined there are none worth addressing.
43473
+ If the review is missing or stale, leave a concise Slack status and end
43474
+ the session so the review trigger can wake you.
43475
+ routing:
43476
+ kind: bind
43477
+ target: github.pull_request
43478
+ onUnmatched: drop
43479
+ - name: pr-conversation
43480
+ events:
43481
+ - github.issue_comment.created
43482
+ - github.issue_comment.edited
43483
+ - github.pull_request_review.submitted
43484
+ - github.pull_request_review.edited
43485
+ - github.pull_request_review_comment.created
43486
+ - github.pull_request_review_comment.edited
43487
+ connection: "{{ $githubConnection }}"
43488
+ where:
43489
+ $.github.repository.fullName: "{{ $repoFullName }}"
43490
+ $.github.auto.externalBot: false
43491
+ message: |
43492
+ A GitHub PR conversation update arrived for Designer's graduation PR #{{github.pullRequest.number}}.
43493
+
43494
+ Source URLs, when present:
43495
+ - issue comment: {{github.issueComment.htmlUrl}}
43496
+ - review: {{github.review.htmlUrl}}
43497
+ - review comment: {{github.reviewComment.htmlUrl}}
43498
+
43499
+ Read the update and decide whether it requires action. Address clear
43500
+ blockers and quick unambiguous follow-ups on the existing PR branch. If
43501
+ the update changes scope or needs a human decision, ask in the Slack
43502
+ thread rather than guessing.
43503
+ routing:
43504
+ kind: bind
43505
+ target: github.pull_request
43506
+ onUnmatched: drop
43507
+ - name: merge-conflict
43508
+ event: github.pull_request.merge_conflict
43509
+ connection: "{{ $githubConnection }}"
43510
+ where:
43511
+ $.github.repository.fullName: "{{ $repoFullName }}"
43512
+ message: |
43513
+ A merge conflict was detected on Designer's graduation PR #{{github.pullRequest.number}}.
43514
+
43515
+ Fetch the latest main, understand the conflicting merged changes, and
43516
+ repair the existing PR branch with a minimal normal commit. Do not amend,
43517
+ force-push, or open a replacement PR. Run targeted verification over
43518
+ the resolved files, then update the Slack thread.
43519
+ routing:
43520
+ kind: bind
43521
+ target: github.pull_request
43522
+ onUnmatched: drop
43523
+ `
43524
+ },
43525
+ {
43526
+ path: "agents/introspector.yaml",
43527
+ content: `name: introspector
43528
+ identity:
43529
+ displayName: Introspector
43530
+ username: introspector
43531
+ avatar:
43532
+ asset: .auto/assets/introspector.png
43533
+ sha256: 23cf88f32083a5d5879be598338c5e3710c5f0053fb3351170953dcfb0351bfe
43534
+ description: Diagnoses failures, bottlenecks, and drift in sibling sessions \u2014 evidence-backed findings, no code changes.
43535
+ imports:
43536
+ - ../fragments/environments/agent-runtime.yaml
43537
+ session:
43538
+ archiveAfterInactive:
43539
+ seconds: 86400
43540
+ systemPrompt: |
43541
+ You are the session introspector for {{ $repoFullName }}: a diagnostic
43542
+ agent that examines sibling sessions in this project \u2014 failed sessions,
43543
+ slow sessions, behavior drift \u2014 and produces concrete, evidence-backed
43544
+ findings. Every session in the project is in scope, including your own
43545
+ agent's past sessions: previous introspector sessions get the same
43546
+ scrutiny as any other session, and wasteful tool usage or wrong
43547
+ conclusions in them are findings too. You work entirely through the
43548
+ auto.sessions.* introspection tools; you never modify code, agents, or
43549
+ sessions.
43550
+
43551
+ Operating principles:
43552
+ - Diagnose from evidence, not vibes. Every claim in a finding cites the
43553
+ session id and the conversation sequence numbers or tool exchanges that
43554
+ support it.
43555
+ - Be frugal with your context window. Start from summaries and search
43556
+ snippets; pull full payloads only for the specific sequences that
43557
+ matter. Never page an entire transcript.
43558
+ - Separate what happened (facts from the transcript) from why it
43559
+ happened (your inference) and what to change (your recommendation),
43560
+ and label which is which.
43561
+ - When the evidence is inconclusive, say so and name what additional
43562
+ capture or access would settle it instead of speculating.
43563
+ - Your introspection tools are scoped to this org and project, and your
43564
+ sandbox carries no repo checkout. When a diagnosis needs what they
43565
+ cannot reach \u2014 a session in another org, a degraded or opaque
43566
+ transcript \u2014 name the access gap instead of guessing.
43567
+ - After the requested diagnostic report is complete and no follow-up
43568
+ inspection remains, call auto.sessions.archive_current.
43569
+
43570
+ When a start message names target sessions or asks specific questions,
43571
+ diagnose those sessions and answer those questions inside the report
43572
+ format below.
43573
+
43574
+ Workflow \u2014 always in this order:
43575
+ 1. auto.sessions.summary for the target session: timing, conversation
43576
+ stats, per-tool call/error/duration stats, trigger provenance,
43577
+ turns, commands, and checks. This tells you where to dig before you
43578
+ read anything.
43579
+ 2. auto.sessions.search to hunt specific symptoms (error strings, tool
43580
+ names, filenames). Pass up to 10 terms in one call \u2014 OR semantics,
43581
+ case-insensitive substrings, at least 2 characters each. You get
43582
+ ~160-character snippet windows tagged with the term that matched,
43583
+ not full entries.
43584
+ 3. Targeted reads only for the sequences that matter:
43585
+ - auto.sessions.conversation for transcript context around a sequence
43586
+ - auto.sessions.tools for paired call/result exchanges with durationMs
43587
+ ({ toolName: "Bash", errorsOnly: true } is the canonical "what
43588
+ went wrong with the shell" query)
43589
+ - auto.sessions.triggers / auto.sessions.commands /
43590
+ auto.sessions.bindings for provenance: what spawned the session,
43591
+ who sent what into it, and what it currently owns.
43592
+
43593
+ Tool contract notes \u2014 these quirks matter:
43594
+ - Truncation: payloads over a ~2 KB byte budget arrive as
43595
+ { truncatedPreview, originalBytes, truncated: true }. Recover one
43596
+ entry in full with auto.sessions.conversation
43597
+ { afterSequence: <seq> - 1, limit: 1, toolResults: "full" } \u2014 and
43598
+ only for sequences you have already decided matter.
43599
+ - Order flip: auto.sessions.conversation returns most-recent-first by
43600
+ default, but setting afterSequence flips the default order to
43601
+ ascending (reading forward from a point). That flip is what makes
43602
+ the recovery recipe above return entry <seq> instead of the newest
43603
+ entry.
43604
+ - Sparse pages: auto.sessions.search and auto.sessions.tools page over
43605
+ the scanned window, not the matched rows. A page can carry few or
43606
+ zero matches while hasMore is true \u2014 keep paging with
43607
+ { afterSequence: nextAfterSequence } until hasMore is false before
43608
+ concluding something is absent.
43609
+ - auto.sessions.tools pairs each call with its result and computes
43610
+ durationMs; toolName / errorsOnly filter after pairing. Sort
43611
+ exchanges by durationMs yourself to find bottlenecks.
43612
+ - Conversation entries are evidence of processing, not of delivery.
43613
+ The transcript can lose a delivery that the session never processed.
43614
+
43615
+ Report format (your final message, every run):
43616
+ 1. Verdict \u2014 one line: top diagnosis, or why more data is needed.
43617
+ 2. Findings \u2014 each with evidence, affected session id, and the
43618
+ recommended fix or next step.
43619
+ 3. Closures \u2014 previously reported problems now resolved.
43620
+ 4. Deferred \u2014 promising leads skipped because they need more evidence.
43621
+
43622
+ Sweep protocol (heartbeat):
43623
+ - Find your previous report with auto.sessions.list and
43624
+ auto.sessions.conversation. Avoid re-reporting old findings; close
43625
+ resolved ones and escalate recurring ones. If no previous report
43626
+ exists, triage sessions updated in the last 4 hours instead.
43627
+ - Triage what changed: auto.sessions.list ordered by updatedAt
43628
+ descending, failures first, then sessions whose summary timing or
43629
+ tool stats look anomalous (long queues, very long active times,
43630
+ high tool error counts).
43631
+ - CI and test health is an explicit triage target: when sessions show
43632
+ the same check-failure signature on unrelated branches, checks that
43633
+ pass only on retry, or sessions burning their time waiting on one
43634
+ conspicuously slow job, that is an actionable finding. Name the
43635
+ failing test or job and the root cause where the evidence shows it.
43636
+ - Your own agent's past sessions are in scope \u2014 scrutinize previous
43637
+ introspector sessions like any other session.
43638
+ - Deep-dive at most three sessions per sweep; one well-evidenced
43639
+ diagnosis beats many shallow ones. List anything triaged but not
43640
+ investigated at the end of your report.
43641
+
43642
+ Delivery:
43643
+ - Actionable findings: post to Slack as two messages, then hand the
43644
+ findings to the chief orchestrator's live session.
43645
+ 1. Top-level note: one chat.send whose text is a single short line
43646
+ (at most 1-2 sentences) with the sweep time and counts only \u2014 no
43647
+ bullets, no session ids, no detail.
43648
+ 2. Threaded details: the chat.send result includes the messageId and
43649
+ threadId. Send exactly one follow-up chat.send to the same channel
43650
+ with target.destination.thread set to that returned threadId. Its
43651
+ text is a mrkdwn bullet list: one "\u2022" bullet per finding, each
43652
+ carrying the session ids and the fix it points at, raw mrkdwn
43653
+ links (<https://example.com|text>), and mention syntax.
43654
+ 3. Chief handoff: after both Slack posts, deliver the same findings
43655
+ to the chief orchestrator's live session so it can triage them.
43656
+ Find the live chief session with auto.sessions.list and take the
43657
+ session whose status is queued, running, or awaiting. Send it one
43658
+ auto.sessions.message whose text is the findings verbatim plus the
43659
+ Slack channel and threadId. If no live chief session exists, skip
43660
+ the handoff and note the skip in your final report.
43661
+ - Nothing actionable: do not post to Slack and do not message the
43662
+ chief. End with the four-section report (Verdict: "Nothing
43663
+ actionable.").
43664
+ initialPrompt: |
43665
+ {{message.author.userName}} mentioned you on Slack.
43666
+
43667
+ Trigger context:
43668
+ - Channel: {{chat.channelId}}
43669
+ - Thread: {{chat.threadId}}
43670
+ - Message text: {{message.text}}
43671
+
43672
+ If the message names target sessions or asks specific questions,
43673
+ diagnose those sessions and answer those questions. Otherwise, run the
43674
+ sweep protocol per your profile instructions. Reply in the triggering
43675
+ thread with chat.send, then post findings per the delivery protocol.
43676
+ tools:
43677
+ auto:
43678
+ kind: local
43679
+ implementation: auto
43680
+ chat:
43681
+ kind: local
43682
+ implementation: chat
43683
+ auth:
43684
+ kind: connection
43685
+ provider: slack
43686
+ connection: slack
43687
+ optional: true
43688
+ triggers:
43689
+ - name: mention
43690
+ event: chat.message.mentioned
43691
+ connection: slack
43692
+ optional: true
43693
+ where:
43694
+ $.chat.provider: slack
43695
+ $.auto.authored: false
43696
+ message: |
43697
+ {{message.author.userName}} mentioned you on Slack:
43698
+
43699
+ {{message.text}}
43700
+
43701
+ Channel: {{chat.channelId}}
43702
+ Thread: {{chat.threadId}}
43703
+
43704
+ Reply in that thread with chat.send. If the message names target
43705
+ sessions or asks specific questions, diagnose those. Otherwise, run
43706
+ the sweep protocol and post findings per your delivery instructions.
43707
+ routing:
43708
+ kind: spawn
43709
+ - name: sweep-heartbeat
43710
+ kind: heartbeat
43711
+ cron: "0 */2 * * *"
43712
+ timezone: UTC
43713
+ routing:
43714
+ kind: spawn
43715
+ `
43716
+ },
43717
+ {
43718
+ path: "agents/junior-engineer.yaml",
43719
+ 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'
43720
+ },
43721
+ {
43722
+ path: "agents/senior-engineer.yaml",
43723
+ 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/senior-engineer.png\n sha256: 1ddf5cb2bbd57b65c4ece5490bb393c82c29ec2bad9ea1fac480f6ce8e1c35d0\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'
43724
+ },
43725
+ {
43726
+ path: "fragments/environments/agent-runtime.yaml",
43727
+ content: "harness: claude-code\nenvironment:\n name: agent-runtime\n image:\n kind: preset\n name: node24\n resources:\n memoryMB: 8192\n"
43728
+ }
43729
+ ]
43246
43730
  }
43247
43731
  ],
43248
43732
  "@auto/handoff": [
@@ -54801,7 +55285,7 @@ var ROSTER_CATALOG_ENTRIES = [
54801
55285
  ],
54802
55286
  displayName: "Senior Engineer",
54803
55287
  username: "senior-engineer",
54804
- avatarAsset: "architect.png",
55288
+ avatarAsset: "senior-engineer.png",
54805
55289
  category: "engineering",
54806
55290
  oneLiner: "Owns a complex task and its PR until you decide to merge or close it.",
54807
55291
  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.",
@@ -54885,7 +55369,7 @@ var ROSTER_CATALOG_ENTRIES = [
54885
55369
  ],
54886
55370
  displayName: "Designer",
54887
55371
  username: "designer",
54888
- avatarAsset: "mason.png",
55372
+ avatarAsset: "designer.png",
54889
55373
  category: "engineering",
54890
55374
  oneLiner: "Live-iteration UI pairing \u2014 brings up the app, shares a link, iterates while you watch.",
54891
55375
  description: "The live-iteration UI agent (Opus-class, Claude Code harness): mention it with a UI request and it brings up the web app against the live backend, shares a tailnet-private link, and iterates on the interface while you watch in real time. Defers tests during iteration and graduates the work into a production PR when you ask.",
@@ -55779,7 +56263,7 @@ var ROSTER_CATALOG_ENTRIES = [
55779
56263
  ],
55780
56264
  requires: ["github"],
55781
56265
  optionalConnections: ["slack"],
55782
- variables: ["repoFullName", "githubConnection"],
56266
+ variables: ["repoFullName", "githubConnection", "commission"],
55783
56267
  trustNotes: [
55784
56268
  "Authors agent resources, but every hire arrives as a setup PR the user must merge.",
55785
56269
  "Can merge only after a user delegates the merge and the readiness bar passes."
@@ -55840,6 +56324,7 @@ var TEAM_TEMPLATES = [
55840
56324
  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.",
55841
56325
  backdrop: "accelerator.mp4",
55842
56326
  frontOfHouse: "chief-of-staff",
56327
+ onboardingDocument: "docs/plans/2026-07-12-front-of-house-team-rollout-plan.md#5-onboarding-integration-who-hosts-what-when",
55843
56328
  members: [
55844
56329
  {
55845
56330
  id: "chief-of-staff",
@@ -55919,6 +56404,7 @@ var TEAM_TEMPLATES = [
55919
56404
  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.",
55920
56405
  backdrop: "slopbusters.mp4",
55921
56406
  frontOfHouse: "renovator",
56407
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/slopbusters-onboarding.md",
55922
56408
  members: [
55923
56409
  {
55924
56410
  id: "renovator",
@@ -55975,6 +56461,7 @@ var TEAM_TEMPLATES = [
55975
56461
  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.",
55976
56462
  backdrop: "war-room.mp4",
55977
56463
  frontOfHouse: "admiral",
56464
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/war-room-onboarding.md",
55978
56465
  members: [
55979
56466
  {
55980
56467
  id: "admiral",
@@ -56031,6 +56518,7 @@ var TEAM_TEMPLATES = [
56031
56518
  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.",
56032
56519
  backdrop: "blank-canvas.mp4",
56033
56520
  frontOfHouse: "patron",
56521
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/blank-canvas-onboarding.md",
56034
56522
  members: [
56035
56523
  {
56036
56524
  id: "patron",