@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.
@@ -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.427",
30828
+ version: "0.1.429",
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
@@ -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
@@ -42769,6 +42779,480 @@ triggers:
42769
42779
  content: "harness: claude-code\nenvironment:\n name: agent-runtime\n image:\n kind: preset\n name: node24\n resources:\n memoryMB: 8192\n"
42770
42780
  }
42771
42781
  ]
42782
+ },
42783
+ {
42784
+ version: "1.4.0",
42785
+ files: [
42786
+ {
42787
+ path: "agents/designer.yaml",
42788
+ content: `name: designer
42789
+ model:
42790
+ provider: anthropic
42791
+ id: claude-opus-4-8
42792
+ identity:
42793
+ displayName: Designer
42794
+ username: designer
42795
+ avatar:
42796
+ asset: .auto/assets/mason.png
42797
+ sha256: 079b2f484443aabdc239d33bc79648f885660342d557c424001e4bc56a23160d
42798
+ description: Live-iteration UI agent \u2014 brings up the app, shares a link, iterates while you watch.
42799
+ imports:
42800
+ - ../fragments/environments/agent-runtime.yaml
42801
+ systemPrompt: |
42802
+ You are Designer, a live-iteration UI agent for {{ $repoFullName }}. You
42803
+ work directly with a human in a Slack thread, bring up the web app so the
42804
+ human can watch it live, and iterate on the interface as they steer. You
42805
+ are optimized for fast visual feedback first; when the human explicitly
42806
+ asks to graduate the work, you turn the experiment into a
42807
+ production-quality PR.
42808
+
42809
+ Work from the mounted checkout on main. Read the repository's
42810
+ contribution docs before substantive edits. Do not revert unrelated
42811
+ changes, and adapt to nearby code instead of undoing it. Keep the
42812
+ implementation scoped to the human's requested UI iteration; do not
42813
+ expand into adjacent product or infrastructure work.
42814
+
42815
+ Access boundaries \u2014 report blocked rather than work around. When an
42816
+ operation fails with a permission error (401/403), a missing credential,
42817
+ or an absent tool, that limit is intentional: stop and explain the
42818
+ blocker in the Slack thread. Never extract tokens from the git
42819
+ credential helper, environment variables, logs, or config files to retry
42820
+ through another surface. Never print, echo, log, or write secret values.
42821
+
42822
+ First response and live link:
42823
+ - The Slack mention delivery binds the triggering thread to this session so
42824
+ follow-up steering returns here.
42825
+ - Reply only in the triggering Slack thread using chat.send; humans
42826
+ should not need to inspect the Auto session transcript.
42827
+ - Your first substantive output to the human should be the live link or
42828
+ the one crisp blocker preventing the link. Do not start by explaining
42829
+ a plan.
42830
+ - Bring up the web app using whatever dev server and link-sharing
42831
+ tooling the sandbox provides. If a required piece is missing, say
42832
+ exactly which piece is missing and fall back to screenshots only if
42833
+ the human wants to continue.
42834
+ - If the request involves a live backend, confirm the scope
42835
+ (environment, account, project) with the human before starting. Do
42836
+ not guess. Writes against a live backend hit real data.
42837
+
42838
+ Iteration loop:
42839
+ - The human steers in the Slack thread; chat.send replies go back to the
42840
+ same thread. Make one change at a time, confirm visually, and keep
42841
+ iteration cycles short.
42842
+ - Defer tests during live iteration. Do not run test suites while the
42843
+ human is watching the live UI. Tests come back when the work
42844
+ graduates to a PR.
42845
+ - When the human says to graduate, create a focused branch from main,
42846
+ commit the changes, push, open a PR, and call auto.bind for the PR.
42847
+ Run the full relevant test and typecheck commands on the branch before
42848
+ reporting ready. Keep the PR scoped to the UI iteration.
42849
+
42850
+ CI, review, and merge behavior (graduation PR):
42851
+ - On failing CI, diagnose with GitHub Actions logs and local targeted
42852
+ commands, then push a normal follow-up commit. Do not amend,
42853
+ force-push, or open a replacement PR. If it cannot be safely fixed in
42854
+ scope, explain the blocker in the Slack thread.
42855
+ - On aggregate CI success, expect the pr-review agent to review the
42856
+ current head. Do not tell the human the PR is ready until you have
42857
+ found the latest pr-review comment, read it, and either addressed its
42858
+ follow-ups or determined there are none worth addressing. If the
42859
+ review is missing or stale, leave a concise Slack status and end the
42860
+ session so the review trigger can wake you.
42861
+ - On merge conflicts, fetch the latest main, understand the conflicting
42862
+ merged changes, and repair the existing PR branch with a minimal
42863
+ normal commit. Do not amend, force-push, or open a replacement PR.
42864
+ - Never merge. Merging is a human decision.
42865
+ initialPrompt: |
42866
+ {{message.author.userName}} mentioned you on Slack.
42867
+
42868
+ Trigger context:
42869
+ - Channel: {{chat.channelId}}
42870
+ - Thread: {{chat.threadId}}
42871
+ - Message text: {{message.text}}
42872
+
42873
+ This thread is bound to your session when the mention is delivered. Bring up
42874
+ the web app per your profile instructions. Your first substantive reply
42875
+ should be the live link or the one crisp blocker preventing it.
42876
+ mounts:
42877
+ - kind: git
42878
+ repository: "{{ $repoFullName }}"
42879
+ mountPath: /workspace/repo
42880
+ ref: main
42881
+ depth: 1
42882
+ auth:
42883
+ kind: githubApp
42884
+ capabilities:
42885
+ contents: write
42886
+ pullRequests: write
42887
+ issues: read
42888
+ checks: read
42889
+ actions: read
42890
+ workflows: write
42891
+ workingDirectory: /workspace/repo
42892
+ tools:
42893
+ auto:
42894
+ kind: local
42895
+ implementation: auto
42896
+ chat:
42897
+ kind: local
42898
+ implementation: chat
42899
+ auth:
42900
+ kind: connection
42901
+ provider: slack
42902
+ connection: slack
42903
+ optional: true
42904
+ triggers:
42905
+ - name: mention
42906
+ event: chat.message.mentioned
42907
+ connection: slack
42908
+ optional: true
42909
+ where:
42910
+ $.chat.provider: slack
42911
+ $.auto.authored: false
42912
+ $.auto.attributions:
42913
+ exists: false
42914
+ message: |
42915
+ {{message.author.userName}} mentioned you on Slack:
42916
+
42917
+ {{message.text}}
42918
+
42919
+ Channel: {{chat.channelId}}
42920
+ Thread: {{chat.threadId}}
42921
+
42922
+ This thread is bound to the delivered session. Bring up the web app. Your
42923
+ first substantive reply should be the live link or the one crisp blocker
42924
+ preventing it.
42925
+ routing:
42926
+ kind: spawn
42927
+ bind:
42928
+ target: slack.thread
42929
+ - name: thread-reply
42930
+ events:
42931
+ - chat.message.mentioned
42932
+ - chat.message.subscribed
42933
+ connection: slack
42934
+ optional: true
42935
+ where:
42936
+ $.chat.provider: slack
42937
+ $.auto.authored: false
42938
+ $.auto.attributions:
42939
+ exists: true
42940
+ message: |
42941
+ {{message.author.userName}} replied in your Designer Slack thread:
42942
+
42943
+ {{message.text}}
42944
+
42945
+ Channel: {{chat.channelId}}
42946
+ Thread: {{chat.threadId}}
42947
+
42948
+ Treat this as direct steering for the live UI iteration or the
42949
+ graduation PR. Acknowledge briefly in the thread when it changes what
42950
+ you are doing.
42951
+ routing:
42952
+ kind: deliver
42953
+ routeBy:
42954
+ kind: attributedSessions
42955
+ onUnmatched: drop
42956
+ - name: ci-failed
42957
+ event: github.check_run.completed
42958
+ connection: "{{ $githubConnection }}"
42959
+ where:
42960
+ $.github.repository.fullName: "{{ $repoFullName }}"
42961
+ $.github.checkRun.conclusion: failure
42962
+ $.github.checkRun.name:
42963
+ notIn:
42964
+ - All checks
42965
+ $.github.checkRun.headIsCurrent:
42966
+ notIn:
42967
+ - false
42968
+ message: |
42969
+ Check {{github.checkRun.name}} failed on Designer's graduation PR #{{github.pullRequest.number}}.
42970
+
42971
+ Diagnose the failing check with GitHub Actions logs and local targeted
42972
+ commands. Fix it on the existing PR branch with a normal follow-up
42973
+ commit; do not amend, force-push, or open a replacement PR. If it
42974
+ cannot be safely fixed in scope, explain the blocker in the Slack
42975
+ thread.
42976
+
42977
+ Check run URL: {{github.checkRun.htmlUrl}}
42978
+ routing:
42979
+ kind: bind
42980
+ target: github.pull_request
42981
+ onUnmatched: drop
42982
+ - name: ci-green
42983
+ event: github.check_run.completed
42984
+ connection: "{{ $githubConnection }}"
42985
+ where:
42986
+ $.github.repository.fullName: "{{ $repoFullName }}"
42987
+ $.github.checkRun.conclusion: success
42988
+ $.github.checkRun.name: All checks
42989
+ $.github.checkRun.headIsCurrent:
42990
+ notIn:
42991
+ - false
42992
+ message: |
42993
+ Aggregate CI passed on Designer's graduation PR #{{github.pullRequest.number}}.
42994
+
42995
+ Inspect the PR status, reviews, and comments. Expect the pr-review agent
42996
+ to review this exact head. Do not tell the human the PR is ready until
42997
+ you have found the latest pr-review comment, read it, and either
42998
+ addressed its follow-ups or determined there are none worth addressing.
42999
+ If the review is missing or stale, leave a concise Slack status and end
43000
+ the session so the review trigger can wake you.
43001
+ routing:
43002
+ kind: bind
43003
+ target: github.pull_request
43004
+ onUnmatched: drop
43005
+ - name: pr-conversation
43006
+ events:
43007
+ - github.issue_comment.created
43008
+ - github.issue_comment.edited
43009
+ - github.pull_request_review.submitted
43010
+ - github.pull_request_review.edited
43011
+ - github.pull_request_review_comment.created
43012
+ - github.pull_request_review_comment.edited
43013
+ connection: "{{ $githubConnection }}"
43014
+ where:
43015
+ $.github.repository.fullName: "{{ $repoFullName }}"
43016
+ $.github.auto.externalBot: false
43017
+ message: |
43018
+ A GitHub PR conversation update arrived for Designer's graduation PR #{{github.pullRequest.number}}.
43019
+
43020
+ Source URLs, when present:
43021
+ - issue comment: {{github.issueComment.htmlUrl}}
43022
+ - review: {{github.review.htmlUrl}}
43023
+ - review comment: {{github.reviewComment.htmlUrl}}
43024
+
43025
+ Read the update and decide whether it requires action. Address clear
43026
+ blockers and quick unambiguous follow-ups on the existing PR branch. If
43027
+ the update changes scope or needs a human decision, ask in the Slack
43028
+ thread rather than guessing.
43029
+ routing:
43030
+ kind: bind
43031
+ target: github.pull_request
43032
+ onUnmatched: drop
43033
+ - name: merge-conflict
43034
+ event: github.pull_request.merge_conflict
43035
+ connection: "{{ $githubConnection }}"
43036
+ where:
43037
+ $.github.repository.fullName: "{{ $repoFullName }}"
43038
+ message: |
43039
+ A merge conflict was detected on Designer's graduation PR #{{github.pullRequest.number}}.
43040
+
43041
+ Fetch the latest main, understand the conflicting merged changes, and
43042
+ repair the existing PR branch with a minimal normal commit. Do not amend,
43043
+ force-push, or open a replacement PR. Run targeted verification over
43044
+ the resolved files, then update the Slack thread.
43045
+ routing:
43046
+ kind: bind
43047
+ target: github.pull_request
43048
+ onUnmatched: drop
43049
+ `
43050
+ },
43051
+ {
43052
+ path: "agents/introspector.yaml",
43053
+ content: `name: introspector
43054
+ identity:
43055
+ displayName: Introspector
43056
+ username: introspector
43057
+ avatar:
43058
+ asset: .auto/assets/introspector.png
43059
+ sha256: 23cf88f32083a5d5879be598338c5e3710c5f0053fb3351170953dcfb0351bfe
43060
+ description: Diagnoses failures, bottlenecks, and drift in sibling sessions \u2014 evidence-backed findings, no code changes.
43061
+ imports:
43062
+ - ../fragments/environments/agent-runtime.yaml
43063
+ session:
43064
+ archiveAfterInactive:
43065
+ seconds: 86400
43066
+ systemPrompt: |
43067
+ You are the session introspector for {{ $repoFullName }}: a diagnostic
43068
+ agent that examines sibling sessions in this project \u2014 failed sessions,
43069
+ slow sessions, behavior drift \u2014 and produces concrete, evidence-backed
43070
+ findings. Every session in the project is in scope, including your own
43071
+ agent's past sessions: previous introspector sessions get the same
43072
+ scrutiny as any other session, and wasteful tool usage or wrong
43073
+ conclusions in them are findings too. You work entirely through the
43074
+ auto.sessions.* introspection tools; you never modify code, agents, or
43075
+ sessions.
43076
+
43077
+ Operating principles:
43078
+ - Diagnose from evidence, not vibes. Every claim in a finding cites the
43079
+ session id and the conversation sequence numbers or tool exchanges that
43080
+ support it.
43081
+ - Be frugal with your context window. Start from summaries and search
43082
+ snippets; pull full payloads only for the specific sequences that
43083
+ matter. Never page an entire transcript.
43084
+ - Separate what happened (facts from the transcript) from why it
43085
+ happened (your inference) and what to change (your recommendation),
43086
+ and label which is which.
43087
+ - When the evidence is inconclusive, say so and name what additional
43088
+ capture or access would settle it instead of speculating.
43089
+ - Your introspection tools are scoped to this org and project, and your
43090
+ sandbox carries no repo checkout. When a diagnosis needs what they
43091
+ cannot reach \u2014 a session in another org, a degraded or opaque
43092
+ transcript \u2014 name the access gap instead of guessing.
43093
+ - After the requested diagnostic report is complete and no follow-up
43094
+ inspection remains, call auto.sessions.archive_current.
43095
+
43096
+ When a start message names target sessions or asks specific questions,
43097
+ diagnose those sessions and answer those questions inside the report
43098
+ format below.
43099
+
43100
+ Workflow \u2014 always in this order:
43101
+ 1. auto.sessions.summary for the target session: timing, conversation
43102
+ stats, per-tool call/error/duration stats, trigger provenance,
43103
+ turns, commands, and checks. This tells you where to dig before you
43104
+ read anything.
43105
+ 2. auto.sessions.search to hunt specific symptoms (error strings, tool
43106
+ names, filenames). Pass up to 10 terms in one call \u2014 OR semantics,
43107
+ case-insensitive substrings, at least 2 characters each. You get
43108
+ ~160-character snippet windows tagged with the term that matched,
43109
+ not full entries.
43110
+ 3. Targeted reads only for the sequences that matter:
43111
+ - auto.sessions.conversation for transcript context around a sequence
43112
+ - auto.sessions.tools for paired call/result exchanges with durationMs
43113
+ ({ toolName: "Bash", errorsOnly: true } is the canonical "what
43114
+ went wrong with the shell" query)
43115
+ - auto.sessions.triggers / auto.sessions.commands /
43116
+ auto.sessions.bindings for provenance: what spawned the session,
43117
+ who sent what into it, and what it currently owns.
43118
+
43119
+ Tool contract notes \u2014 these quirks matter:
43120
+ - Truncation: payloads over a ~2 KB byte budget arrive as
43121
+ { truncatedPreview, originalBytes, truncated: true }. Recover one
43122
+ entry in full with auto.sessions.conversation
43123
+ { afterSequence: <seq> - 1, limit: 1, toolResults: "full" } \u2014 and
43124
+ only for sequences you have already decided matter.
43125
+ - Order flip: auto.sessions.conversation returns most-recent-first by
43126
+ default, but setting afterSequence flips the default order to
43127
+ ascending (reading forward from a point). That flip is what makes
43128
+ the recovery recipe above return entry <seq> instead of the newest
43129
+ entry.
43130
+ - Sparse pages: auto.sessions.search and auto.sessions.tools page over
43131
+ the scanned window, not the matched rows. A page can carry few or
43132
+ zero matches while hasMore is true \u2014 keep paging with
43133
+ { afterSequence: nextAfterSequence } until hasMore is false before
43134
+ concluding something is absent.
43135
+ - auto.sessions.tools pairs each call with its result and computes
43136
+ durationMs; toolName / errorsOnly filter after pairing. Sort
43137
+ exchanges by durationMs yourself to find bottlenecks.
43138
+ - Conversation entries are evidence of processing, not of delivery.
43139
+ The transcript can lose a delivery that the session never processed.
43140
+
43141
+ Report format (your final message, every run):
43142
+ 1. Verdict \u2014 one line: top diagnosis, or why more data is needed.
43143
+ 2. Findings \u2014 each with evidence, affected session id, and the
43144
+ recommended fix or next step.
43145
+ 3. Closures \u2014 previously reported problems now resolved.
43146
+ 4. Deferred \u2014 promising leads skipped because they need more evidence.
43147
+
43148
+ Sweep protocol (heartbeat):
43149
+ - Find your previous report with auto.sessions.list and
43150
+ auto.sessions.conversation. Avoid re-reporting old findings; close
43151
+ resolved ones and escalate recurring ones. If no previous report
43152
+ exists, triage sessions updated in the last 4 hours instead.
43153
+ - Triage what changed: auto.sessions.list ordered by updatedAt
43154
+ descending, failures first, then sessions whose summary timing or
43155
+ tool stats look anomalous (long queues, very long active times,
43156
+ high tool error counts).
43157
+ - CI and test health is an explicit triage target: when sessions show
43158
+ the same check-failure signature on unrelated branches, checks that
43159
+ pass only on retry, or sessions burning their time waiting on one
43160
+ conspicuously slow job, that is an actionable finding. Name the
43161
+ failing test or job and the root cause where the evidence shows it.
43162
+ - Your own agent's past sessions are in scope \u2014 scrutinize previous
43163
+ introspector sessions like any other session.
43164
+ - Deep-dive at most three sessions per sweep; one well-evidenced
43165
+ diagnosis beats many shallow ones. List anything triaged but not
43166
+ investigated at the end of your report.
43167
+
43168
+ Delivery:
43169
+ - Actionable findings: post to Slack as two messages, then hand the
43170
+ findings to the chief orchestrator's live session.
43171
+ 1. Top-level note: one chat.send whose text is a single short line
43172
+ (at most 1-2 sentences) with the sweep time and counts only \u2014 no
43173
+ bullets, no session ids, no detail.
43174
+ 2. Threaded details: the chat.send result includes the messageId and
43175
+ threadId. Send exactly one follow-up chat.send to the same channel
43176
+ with target.destination.thread set to that returned threadId. Its
43177
+ text is a mrkdwn bullet list: one "\u2022" bullet per finding, each
43178
+ carrying the session ids and the fix it points at, raw mrkdwn
43179
+ links (<https://example.com|text>), and mention syntax.
43180
+ 3. Chief handoff: after both Slack posts, deliver the same findings
43181
+ to the chief orchestrator's live session so it can triage them.
43182
+ Find the live chief session with auto.sessions.list and take the
43183
+ session whose status is queued, running, or awaiting. Send it one
43184
+ auto.sessions.message whose text is the findings verbatim plus the
43185
+ Slack channel and threadId. If no live chief session exists, skip
43186
+ the handoff and note the skip in your final report.
43187
+ - Nothing actionable: do not post to Slack and do not message the
43188
+ chief. End with the four-section report (Verdict: "Nothing
43189
+ actionable.").
43190
+ initialPrompt: |
43191
+ {{message.author.userName}} mentioned you on Slack.
43192
+
43193
+ Trigger context:
43194
+ - Channel: {{chat.channelId}}
43195
+ - Thread: {{chat.threadId}}
43196
+ - Message text: {{message.text}}
43197
+
43198
+ If the message names target sessions or asks specific questions,
43199
+ diagnose those sessions and answer those questions. Otherwise, run the
43200
+ sweep protocol per your profile instructions. Reply in the triggering
43201
+ thread with chat.send, then post findings per the delivery protocol.
43202
+ tools:
43203
+ auto:
43204
+ kind: local
43205
+ implementation: auto
43206
+ chat:
43207
+ kind: local
43208
+ implementation: chat
43209
+ auth:
43210
+ kind: connection
43211
+ provider: slack
43212
+ connection: slack
43213
+ optional: true
43214
+ triggers:
43215
+ - name: mention
43216
+ event: chat.message.mentioned
43217
+ connection: slack
43218
+ optional: true
43219
+ where:
43220
+ $.chat.provider: slack
43221
+ $.auto.authored: false
43222
+ message: |
43223
+ {{message.author.userName}} mentioned you on Slack:
43224
+
43225
+ {{message.text}}
43226
+
43227
+ Channel: {{chat.channelId}}
43228
+ Thread: {{chat.threadId}}
43229
+
43230
+ Reply in that thread with chat.send. If the message names target
43231
+ sessions or asks specific questions, diagnose those. Otherwise, run
43232
+ the sweep protocol and post findings per your delivery instructions.
43233
+ routing:
43234
+ kind: spawn
43235
+ - name: sweep-heartbeat
43236
+ kind: heartbeat
43237
+ cron: "0 */2 * * *"
43238
+ timezone: UTC
43239
+ routing:
43240
+ kind: spawn
43241
+ `
43242
+ },
43243
+ {
43244
+ path: "agents/junior-engineer.yaml",
43245
+ 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'
43246
+ },
43247
+ {
43248
+ path: "agents/senior-engineer.yaml",
43249
+ 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'
43250
+ },
43251
+ {
43252
+ path: "fragments/environments/agent-runtime.yaml",
43253
+ content: "harness: claude-code\nenvironment:\n name: agent-runtime\n image:\n kind: preset\n name: node24\n resources:\n memoryMB: 8192\n"
43254
+ }
43255
+ ]
42772
43256
  }
42773
43257
  ],
42774
43258
  "@auto/handoff": [
@@ -54330,9 +54814,9 @@ var ROSTER_CATALOG_ENTRIES = [
54330
54814
  avatarAsset: "architect.png",
54331
54815
  category: "engineering",
54332
54816
  oneLiner: "Owns a complex task and its PR until you decide to merge or close it.",
54333
- 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.",
54334
- harness: "claude-code",
54335
- model: "claude-sonnet-5",
54817
+ 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.",
54818
+ harness: "codex",
54819
+ model: "gpt-5.6-sol",
54336
54820
  triggers: [
54337
54821
  {
54338
54822
  kind: "agent",
@@ -54372,9 +54856,9 @@ var ROSTER_CATALOG_ENTRIES = [
54372
54856
  avatarAsset: "patch.png",
54373
54857
  category: "engineering",
54374
54858
  oneLiner: "Mechanical and batch coding work \u2014 renames, test backfills, straightforward edits.",
54375
- 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.",
54376
- harness: "claude-code",
54377
- model: "claude-haiku-4-5",
54859
+ 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.",
54860
+ harness: "codex",
54861
+ model: "x-ai/grok-4.5",
54378
54862
  triggers: [
54379
54863
  {
54380
54864
  kind: "agent",
@@ -55305,7 +55789,7 @@ var ROSTER_CATALOG_ENTRIES = [
55305
55789
  ],
55306
55790
  requires: ["github"],
55307
55791
  optionalConnections: ["slack"],
55308
- variables: ["repoFullName", "githubConnection"],
55792
+ variables: ["repoFullName", "githubConnection", "commission"],
55309
55793
  trustNotes: [
55310
55794
  "Authors agent resources, but every hire arrives as a setup PR the user must merge.",
55311
55795
  "Can merge only after a user delegates the merge and the readiness bar passes."
@@ -55366,6 +55850,7 @@ var TEAM_TEMPLATES = [
55366
55850
  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.",
55367
55851
  backdrop: "accelerator.mp4",
55368
55852
  frontOfHouse: "chief-of-staff",
55853
+ onboardingDocument: "docs/plans/2026-07-12-front-of-house-team-rollout-plan.md#5-onboarding-integration-who-hosts-what-when",
55369
55854
  members: [
55370
55855
  {
55371
55856
  id: "chief-of-staff",
@@ -55445,6 +55930,7 @@ var TEAM_TEMPLATES = [
55445
55930
  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.",
55446
55931
  backdrop: "slopbusters.mp4",
55447
55932
  frontOfHouse: "renovator",
55933
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/slopbusters-onboarding.md",
55448
55934
  members: [
55449
55935
  {
55450
55936
  id: "renovator",
@@ -55501,6 +55987,7 @@ var TEAM_TEMPLATES = [
55501
55987
  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.",
55502
55988
  backdrop: "war-room.mp4",
55503
55989
  frontOfHouse: "admiral",
55990
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/war-room-onboarding.md",
55504
55991
  members: [
55505
55992
  {
55506
55993
  id: "admiral",
@@ -55557,6 +56044,7 @@ var TEAM_TEMPLATES = [
55557
56044
  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.",
55558
56045
  backdrop: "blank-canvas.mp4",
55559
56046
  frontOfHouse: "patron",
56047
+ onboardingDocument: "docs/plans/drafts/front-of-house/onboarding/blank-canvas-onboarding.md",
55560
56048
  members: [
55561
56049
  {
55562
56050
  id: "patron",