@mmerterden/multi-agent-pipeline 24.0.0 → 24.1.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -0
  3. package/README.tr.md +2 -0
  4. package/docs/facts.json +2 -2
  5. package/docs/features.md +8 -0
  6. package/install/_dev-only-files.mjs +1 -0
  7. package/manifest.json +43 -42
  8. package/package.json +4 -2
  9. package/pipeline/commands/multi-agent/SKILL.md +1 -1
  10. package/pipeline/commands/multi-agent/analysis/SKILL.md +1 -1
  11. package/pipeline/contract/CHANGELOG.md +15 -0
  12. package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
  13. package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
  14. package/pipeline/contract/fixtures/runs-awaiting-question.json +6 -1
  15. package/pipeline/contract/fixtures/runs-empty.json +1 -1
  16. package/pipeline/contract/fixtures/runs-failed.json +21 -1
  17. package/pipeline/contract/fixtures/runs-old-schema.json +18 -3
  18. package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +31 -1
  19. package/pipeline/contract/fixtures/runs-pr-opened.json +31 -1
  20. package/pipeline/contract/fixtures/runs-running.json +16 -1
  21. package/pipeline/contract/manifest.json +13 -13
  22. package/pipeline/contract/types/index.d.ts +19 -1
  23. package/pipeline/multi-agent-refs/analysis/render.md +12 -1
  24. package/pipeline/multi-agent-refs/help/en.md +10 -2
  25. package/pipeline/multi-agent-refs/help/tr.md +8 -2
  26. package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -0
  27. package/pipeline/multi-agent-refs/phases/phase-4-commit.md +1 -0
  28. package/pipeline/multi-agent-refs/phases/phase-5-report.md +1 -1
  29. package/pipeline/multi-agent-refs/tracker-contract.md +36 -10
  30. package/pipeline/office/index.html +75 -2
  31. package/pipeline/schemas/activity.schema.json +63 -4
  32. package/pipeline/schemas/now-lines.json +103 -0
  33. package/pipeline/schemas/now-lines.schema.json +42 -0
  34. package/pipeline/schemas/runs-index.schema.json +22 -1
  35. package/pipeline/scripts/_contract-core.mjs +1 -1
  36. package/pipeline/scripts/activity-snapshot.mjs +27 -1
  37. package/pipeline/scripts/phase-tracker.sh +80 -12
  38. package/pipeline/scripts/render-work-summary.sh +51 -1
  39. package/pipeline/scripts/runs-index.mjs +2 -1
  40. package/pipeline/skills/.skill-manifest.json +1 -1
  41. package/pipeline/scripts/.doctor-mut.47076.mjs +0 -2253
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.5.0",
2
+ "contractVersion": "1.6.0",
3
3
  "count": 1,
4
4
  "runs": [
5
5
  {
@@ -35,6 +35,11 @@
35
35
  "now": null,
36
36
  "subs": 0,
37
37
  "subList": [],
38
+ "tokens": {
39
+ "in": 1200,
40
+ "out": 340,
41
+ "cached": 900
42
+ },
38
43
  "progress": 1,
39
44
  "tasks": []
40
45
  },
@@ -48,6 +53,11 @@
48
53
  "now": null,
49
54
  "subs": 0,
50
55
  "subList": [],
56
+ "tokens": {
57
+ "in": 1200,
58
+ "out": 340,
59
+ "cached": 900
60
+ },
51
61
  "progress": 1,
52
62
  "tasks": []
53
63
  },
@@ -61,6 +71,11 @@
61
71
  "now": null,
62
72
  "subs": 0,
63
73
  "subList": [],
74
+ "tokens": {
75
+ "in": 1200,
76
+ "out": 340,
77
+ "cached": 900
78
+ },
64
79
  "progress": 1,
65
80
  "tasks": []
66
81
  },
@@ -74,6 +89,11 @@
74
89
  "now": null,
75
90
  "subs": 0,
76
91
  "subList": [],
92
+ "tokens": {
93
+ "in": 1200,
94
+ "out": 340,
95
+ "cached": 900
96
+ },
77
97
  "progress": 1,
78
98
  "tasks": []
79
99
  },
@@ -87,6 +107,11 @@
87
107
  "now": null,
88
108
  "subs": 0,
89
109
  "subList": [],
110
+ "tokens": {
111
+ "in": 1200,
112
+ "out": 340,
113
+ "cached": 900
114
+ },
90
115
  "progress": 1,
91
116
  "tasks": []
92
117
  },
@@ -100,6 +125,11 @@
100
125
  "now": null,
101
126
  "subs": 0,
102
127
  "subList": [],
128
+ "tokens": {
129
+ "in": 1200,
130
+ "out": 340,
131
+ "cached": 900
132
+ },
103
133
  "progress": 1,
104
134
  "tasks": []
105
135
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.5.0",
2
+ "contractVersion": "1.6.0",
3
3
  "logsRoot": "/Users/example/.claude/logs/multi-agent",
4
4
  "count": 1,
5
5
  "runs": [
@@ -40,6 +40,11 @@
40
40
  "now": null,
41
41
  "subs": 0,
42
42
  "subList": [],
43
+ "tokens": {
44
+ "in": 1200,
45
+ "out": 340,
46
+ "cached": 900
47
+ },
43
48
  "progress": 1,
44
49
  "tasks": []
45
50
  },
@@ -53,6 +58,11 @@
53
58
  "now": null,
54
59
  "subs": 0,
55
60
  "subList": [],
61
+ "tokens": {
62
+ "in": 1200,
63
+ "out": 340,
64
+ "cached": 900
65
+ },
56
66
  "progress": 1,
57
67
  "tasks": []
58
68
  },
@@ -66,6 +76,11 @@
66
76
  "now": null,
67
77
  "subs": 0,
68
78
  "subList": [],
79
+ "tokens": {
80
+ "in": 1200,
81
+ "out": 340,
82
+ "cached": 900
83
+ },
69
84
  "progress": 1,
70
85
  "tasks": []
71
86
  },
@@ -79,6 +94,11 @@
79
94
  "now": null,
80
95
  "subs": 0,
81
96
  "subList": [],
97
+ "tokens": {
98
+ "in": 1200,
99
+ "out": 340,
100
+ "cached": 900
101
+ },
82
102
  "progress": 1,
83
103
  "tasks": []
84
104
  },
@@ -92,6 +112,11 @@
92
112
  "now": null,
93
113
  "subs": 0,
94
114
  "subList": [],
115
+ "tokens": {
116
+ "in": 1200,
117
+ "out": 340,
118
+ "cached": 900
119
+ },
95
120
  "progress": 1,
96
121
  "tasks": []
97
122
  },
@@ -105,6 +130,11 @@
105
130
  "now": null,
106
131
  "subs": 0,
107
132
  "subList": [],
133
+ "tokens": {
134
+ "in": 1200,
135
+ "out": 340,
136
+ "cached": 900
137
+ },
108
138
  "progress": 1,
109
139
  "tasks": []
110
140
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.5.0",
2
+ "contractVersion": "1.6.0",
3
3
  "logsRoot": "/Users/example/.claude/logs/multi-agent",
4
4
  "count": 1,
5
5
  "runs": [
@@ -40,6 +40,11 @@
40
40
  "now": null,
41
41
  "subs": 0,
42
42
  "subList": [],
43
+ "tokens": {
44
+ "in": 1200,
45
+ "out": 340,
46
+ "cached": 900
47
+ },
43
48
  "progress": 1,
44
49
  "tasks": []
45
50
  },
@@ -53,6 +58,11 @@
53
58
  "now": null,
54
59
  "subs": 0,
55
60
  "subList": [],
61
+ "tokens": {
62
+ "in": 1200,
63
+ "out": 340,
64
+ "cached": 900
65
+ },
56
66
  "progress": 1,
57
67
  "tasks": []
58
68
  },
@@ -77,6 +87,11 @@
77
87
  "status": "in_progress"
78
88
  }
79
89
  ],
90
+ "tokens": {
91
+ "in": 0,
92
+ "out": 0,
93
+ "cached": 0
94
+ },
80
95
  "progress": 0.5,
81
96
  "tasks": [
82
97
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "2.3.0",
2
+ "contractVersion": "2.4.0",
3
3
  "supportedMajors": [2, 1],
4
4
  "description": "The pipeline's client contract: every surface a client reads or writes, the CLI invocation and the HTTP route that carry it, and the schema its JSON follows. Schemas are not copied here; schemasDir points at the one tree the producers validate against. Paths in cli are relative to the pipeline directory (installed: ~/.claude).",
5
5
  "schemasDir": "../schemas",
@@ -95,7 +95,7 @@
95
95
  "query": ["group", "redact"],
96
96
  "cli": ["node", "scripts/runs-index.mjs", "--json", "[--group <group>]", "[--redact]"],
97
97
  "schema": "runs-index.schema.json",
98
- "version": "1.5.0",
98
+ "version": "1.6.0",
99
99
  "remote": "read",
100
100
  "risk": "read"
101
101
  },
@@ -106,7 +106,7 @@
106
106
  "query": ["redact"],
107
107
  "cli": ["node", "scripts/runs-index.mjs", "--json", "--task-id", "{id}", "[--redact]"],
108
108
  "schema": "runs-index.schema.json",
109
- "version": "1.5.0",
109
+ "version": "1.6.0",
110
110
  "remote": "read",
111
111
  "risk": "read"
112
112
  },
@@ -204,7 +204,7 @@
204
204
  "body": "repo-request.schema.json",
205
205
  "cli": ["node", "scripts/launch-request.mjs", "register-repo", "<path>"],
206
206
  "schema": "repo-change.schema.json",
207
- "version": "1.4.0",
207
+ "version": "1.5.0",
208
208
  "note": "Two steps: the preview names the repository, the confirmation stores it in launch-repos.json. Only a git checkout that is neither the home directory nor the root is accepted.",
209
209
  "remote": "local-only",
210
210
  "risk": "high"
@@ -215,7 +215,7 @@
215
215
  "path": "/v1/repos/{id}",
216
216
  "query": ["confirm"],
217
217
  "schema": "repo-change.schema.json",
218
- "version": "1.4.0",
218
+ "version": "1.5.0",
219
219
  "note": "Two steps: without confirm the preview and a token; with ?confirm=<token> the registered entry is removed. Configured autopilot repositories are not touched.",
220
220
  "remote": "local-only",
221
221
  "risk": "high"
@@ -397,7 +397,7 @@
397
397
  "query": [],
398
398
  "cli": ["node", "scripts/activity-snapshot.mjs", "--json"],
399
399
  "schema": "activity.schema.json",
400
- "version": "1.4.0",
400
+ "version": "1.5.0",
401
401
  "note": "Derived from disk on every call; no field is machine-local, so redact changes nothing.",
402
402
  "remote": "read",
403
403
  "risk": "read"
@@ -409,7 +409,7 @@
409
409
  "query": [],
410
410
  "cli": ["node", "scripts/activity-snapshot.mjs", "--json"],
411
411
  "schema": "activity.schema.json",
412
- "version": "1.4.0",
412
+ "version": "1.5.0",
413
413
  "note": "text/event-stream: an `activity` event carrying the document whenever it changes (checked every 2 seconds), a comment line as heartbeat. At most 4 streams at once (429 too-many-streams).",
414
414
  "remote": "read",
415
415
  "risk": "read"
@@ -429,7 +429,7 @@
429
429
  "[--limit <n>]"
430
430
  ],
431
431
  "schema": "activity-chat.schema.json",
432
- "version": "1.4.0",
432
+ "version": "1.5.0",
433
433
  "note": "agentId main is the session itself. Refused (403) to any Origin but the server's own page, even an allowed one. limit is 1 to 500, 200 by default; before is the offset the previous page returned.",
434
434
  "remote": "read",
435
435
  "risk": "read"
@@ -441,7 +441,7 @@
441
441
  "query": [],
442
442
  "cli": ["node", "scripts/routine-registry.mjs", "list", "--json"],
443
443
  "schema": "routines.schema.json",
444
- "version": "1.4.0",
444
+ "version": "1.5.0",
445
445
  "remote": "read",
446
446
  "risk": "read"
447
447
  },
@@ -452,7 +452,7 @@
452
452
  "query": ["confirm"],
453
453
  "cli": ["node", "scripts/routine-registry.mjs", "remove", "--name", "{name}"],
454
454
  "schema": "routine-delete.schema.json",
455
- "version": "1.4.0",
455
+ "version": "1.5.0",
456
456
  "note": "Two steps: without confirm the preview and a token; with ?confirm=<token> the removal. A shipped command is refused (409 not-removable). An unattended server refuses both steps with 409 unattended-refused.",
457
457
  "remote": "local-only",
458
458
  "risk": "high"
@@ -464,7 +464,7 @@
464
464
  "query": [],
465
465
  "cli": ["node", "scripts/routine-share.mjs", "browse"],
466
466
  "schema": "shared-routines.schema.json",
467
- "version": "1.4.0",
467
+ "version": "1.5.0",
468
468
  "note": "The routines other site members shared that this machine may see, without bodies, read with the machine's usage token by routine-share.mjs. When sharing cannot answer the body says why (available false, reason) instead of an error. Local only: it spends this machine's token.",
469
469
  "remote": "local-only",
470
470
  "risk": "read"
@@ -476,7 +476,7 @@
476
476
  "query": [],
477
477
  "cli": ["node", "scripts/routine-share.mjs", "fetch", "--id", "{id}"],
478
478
  "schema": "shared-routine.schema.json",
479
- "version": "1.4.0",
479
+ "version": "1.5.0",
480
480
  "note": "One shared routine with its body, version and payload digest, after the body was checked against its sha256; description and argumentHint are the values an import writes, unscrubbed. An unknown id is 404 not-found; a refusal from the sharing server is 502 upstream-failed.",
481
481
  "remote": "local-only",
482
482
  "risk": "read"
@@ -499,7 +499,7 @@
499
499
  "{name}"
500
500
  ],
501
501
  "schema": "shared-routine-import.schema.json",
502
- "version": "1.4.0",
502
+ "version": "1.5.0",
503
503
  "note": "Two steps. {} or {as} previews the full body, its sha256, the description, descriptionTr and argument hint as they become frontmatter, the payload digest over all of them and the local name, and returns a token bound to that routine, sha256, digest and name; a taken name is 409 name-taken, answered with another as; an as that is not a valid local name (the reserved shared included) is 400 invalid-body; a shared routine that would fail the import checks (name, description, descriptionTr, argumentHint, body, sha256) is 502 upstream-failed naming the field. {confirmToken, sha256, digest} installs the routine only when both are the previewed ones (else 409 confirm-mismatch) and the routine still matches them and still passes the import checks (else 409 state-moved). The frontmatter is rebuilt locally and the routine is never run. An unattended server refuses both steps with 409 unattended-refused.",
504
504
  "remote": "local-only",
505
505
  "risk": "high"
@@ -1,7 +1,7 @@
1
1
  // Generated by pipeline/contract/build.mjs from pipeline/schemas/*.schema.json.
2
2
  // Do not edit: change the schema and run `node pipeline/contract/build.mjs --write`.
3
3
 
4
- export type ContractVersion = "2.3.0";
4
+ export type ContractVersion = "2.4.0";
5
5
  export type SurfaceId = "runs" | "run" | "commands" | "skills" | "questions" | "issues" | "worktrees" | "launch-spec" | "repos" | "repo-add" | "repo-remove" | "launch" | "answer" | "run-log" | "resume" | "kill" | "gc" | "autopilot" | "autopilot-off" | "autopilot-on" | "steer" | "activity" | "activity-stream" | "agent-chat" | "routines" | "routine-delete" | "routines-shared" | "routine-shared" | "routine-shared-import" | "jobs" | "job-start" | "stack" | "stack-set" | "ledger" | "system" | "prune-logs" | "disk-clean" | "settings" | "settings-set" | "learning-curve" | "credentials" | "memory" | "server-room" | "mcp-health" | "archive" | "run-results" | "run-evidence" | "review-verdict" | "issue-maturity" | "prs" | "prs-reach" | "tools" | "tool-call" | "service-confluence" | "service-crashlytics" | "service-figma" | "permissions";
6
6
 
7
7
  /** What `runs-index.mjs --json` prints: every run under the log root and the unattended log root (one record per task id), grouped per status/SKILL.md 3b. Fields are only ever added - a decoder ignores keys it does not know. `--redact` drops every x-sensitivity local field (and `logsRoot`) and scrubs the free text in the title, `now`, sub-step names, task subjects and the pending question. */
@@ -123,6 +123,12 @@ export interface RunsIndexPhase {
123
123
  name: string;
124
124
  status: string;
125
125
  }>;
126
+ /** What this one phase spent, from its own tracker counters. The run's total is the `tokens` beside it on the run record. Added in 1.6.0. */
127
+ tokens: {
128
+ in: number;
129
+ out: number;
130
+ cached: number;
131
+ };
126
132
  /** 1 for a completed or skipped phase, 0 for a pending one; otherwise completed tasks over tasks, and null when the phase has no tasks. Added in 1.2.0. */
127
133
  progress?: number | null;
128
134
  /** The host's native task list for this phase (TaskCreate/TaskUpdate, update_plan steps, card rows) as `phase-tracker.sh task` mirrored it; empty when there are none. subject and activeForm are scrubbed under --redact. Added in 1.2.0. */
@@ -716,6 +722,18 @@ export interface ActivityTable {
716
722
  status: string;
717
723
  startedAt: string | null;
718
724
  completedAt: string | null;
725
+ /** The model that spent this phase's tokens, as the tracker recorded it; null until one is set. */
726
+ model: string | null;
727
+ /** What the phase is doing, for a running or failed phase only. Falls back to the name of the in-progress sub-step, and is null when neither exists. */
728
+ now: string | null;
729
+ /** Input plus output tokens for this phase; null when none were recorded. */
730
+ tokens: number | null;
731
+ /** The phase's own steps, as the card and the subject counter use them. */
732
+ subs: Array<{
733
+ id: string;
734
+ name: string;
735
+ status: "pending" | "in_progress" | "completed";
736
+ }>;
719
737
  }>;
720
738
  startedAt: string | null;
721
739
  elapsedSeconds: number | null;
@@ -94,7 +94,7 @@ options:
94
94
  description: <resolved path, shown literally: "<repo>/analysis/<feature>-<platform>.md" per selected repo, or "~/Desktop/multiAgentAnalysis/<feature-name>/<feature>-<channel>.md" when no repo was selected>
95
95
  - label: "Confluence page"
96
96
  - label: "Jira issue"
97
- description: <localized: "As a comment by default; writing the description is a separate, explicit choice">
97
+ description: <localized: "As a comment by default; writing the description is a separate, explicit choice. With Confluence also selected the comment carries the page link, not a second copy of the document.">
98
98
  ```
99
99
 
100
100
  Conditional follow-ups:
@@ -141,6 +141,17 @@ Iterate `state.analysisSpec.outputs.requested`. For each target:
141
141
  | Confluence | Re-humanize each draft with `formal-stakeholder` tone. One page per draft under the chosen parent, titled `<Feature> - <Platform>` - including a repo-less run, whose drafts are the derived channels (`<Feature> - Mobile` / `<Feature> - Web`, Locked 34). A single channel-agnostic draft becomes one page titled `<Feature>`, with no suffix implying a split that was not made. Cross-link siblings inside each page via `<ac:link><ri:page ri:content-title="<Feature> - <OtherPlatform>"/></ac:link>`; a lone page has no sibling block. Markdown -> storage XML via `$HOME/.claude/multi-agent-refs/channels/confluence.md`. Re-emit on existing pages uses PUT with version bump. |
142
142
  | Jira | Re-humanize the combined body with `informal-technical` tone. Concatenate the drafts under `h2. Platform: <X>` separators in production order - `iOS`, `Android`, `Web`, `Backend` repo-backed, `Mobile` / `Web` for channels derived on a repo-less run (Locked 34). A single channel-agnostic draft gets no separator: a heading announcing a split of one is noise. then run the whole body through the markdown → Jira wiki conversion table in `$HOME/.claude/multi-agent-refs/channels/jira.md` - both the comment body and the `description` field render wiki markup, so raw `##`/`**`/backticks arrive as literal text. Write the converted body to a file; it is published by step 3 there, with `$HOME/.claude/lib/jira-publish.sh`, never with a hand-rolled `curl`: <br><br>`bash "$HOME/.claude/lib/jira-publish.sh" --issue "$KEY" --body-file "$F" --target comment` <br>`bash "$HOME/.claude/lib/jira-publish.sh" --issue "$KEY" --body-file "$F" --target description --mode append` <br><br>The script runs `jira-wiki-escape.mjs`, keeps host and token out of argv, and on the description path backs the current value up under `~/.claude/logs/multi-agent/jira-backups/` (path reported), appends below a `----` rule by default, and **refuses with exit 3** when `--mode replace` would discard a non-empty description unless `--confirm-overwrite` is passed. Exit 3 is reported with the backup path, never retried with the flag added: only the user's explicit "Description - replace" answer from Phase 3.5 supplies it. `--dry-run` previews the exact final body without writing. |
143
143
 
144
+ **When Confluence is selected too, the Jira body is a pointer, not a copy.** The
145
+ page is published first, and the Jira body is then a short lead - the feature,
146
+ the platforms covered, the date - followed by the page URL from
147
+ `outputs.confluencePageUrls[]`, one line per emitted document. A second full
148
+ copy in a ticket is stale from the first edit of the page, and the two then
149
+ disagree with nothing to say which is current. The lead is there because a
150
+ reader who cannot open the page, or finds it moved, is left with a bare URL and
151
+ no idea what it was. This orders the dispatch: Confluence before Jira, and a
152
+ Confluence write that failed leaves the Jira body as the full document, since a
153
+ link to a page that does not exist is worse than the copy.
154
+
144
155
  **Jira write and Issue Links:** `$HOME/.claude/multi-agent-refs/features/analysis-issue-links.md`. Nothing reaches Jira before approval.
145
156
 
146
157
  **Output capture**: fill `state.analysisSpec.outputs.localPaths[]` (one entry per per-platform-per-repo write, or one per derived channel on a repo-less run), `outputs.confluencePageUrls[]` (one entry per emitted document), `outputs.confluencePages[]` (the same pages by IDENTITY - `pageId`, `title`, `space`, `channel` - because a write-back needs the id and a `/display/SPACE/Title` URL cannot be parsed for one), `outputs.jiraIssueKey` (single string).
@@ -40,6 +40,12 @@ Develop
40
40
  The approved plan goes on the issue: plan-<id>-v<N>.md on Jira, a
41
41
  <details> comment on GitHub (prefs.global.planAttachment: ask|always|never).
42
42
 
43
+ While a run works, the phase line says which model is spending, how long it
44
+ has been going, its tokens and rough cost, which step of how many, and what
45
+ it is doing right now. At the end it prints a plain summary: what changed,
46
+ what was checked, what was delivered and what is left for you. The office
47
+ page shows the same per phase.
48
+
43
49
  Continuous mode
44
50
 
45
51
  /multi-agent:autopilot-on Pick repos; labelled items run to a PR on a schedule
@@ -53,8 +59,10 @@ Continuous mode
53
59
  Analysis has a queue of its own, on its own label: agent-analysis, per
54
60
  repository as analysisGithubLabel and analysisJiraLabel. An item there is
55
61
  analysed unattended and ends at the document, recorded as doc-delivered; it
56
- never opens a pull request. The two labels have to differ, and a repository
57
- that gives both the same value is refused.
62
+ never opens a pull request. It ranks the same way: agent-analysis:1 ..
63
+ agent-analysis:9 order that queue as agent-queue:1 .. :9 order development.
64
+ The two labels have to differ, and a repository that gives both the same
65
+ value is refused.
58
66
 
59
67
  Jira and GitHub
60
68
 
@@ -40,6 +40,11 @@ Geliştir
40
40
  Onaylanan plan issue'ya eklenir: Jira'da plan-<id>-v<N>.md, GitHub'da
41
41
  <details> içinde yorum (prefs.global.planAttachment: ask|always|never).
42
42
 
43
+ Koşu sürerken faz satırı şunu söyler: hangi model harcıyor, ne kadar süre
44
+ geçti, kaç token ve yaklaşık ne kadar tuttu, kaçıncı adım kaçta, şu an ne
45
+ yapıyor. Sonunda yalın bir özet basar: ne değişti, ne denetlendi, ne teslim
46
+ edildi, sende ne kaldı. Ofis sayfası aynısını faz faz gösterir.
47
+
43
48
  Sürekli mod
44
49
 
45
50
  /multi-agent:autopilot-on Repo seç; etiketli maddeler zamanlamayla PR'a koşar
@@ -53,8 +58,9 @@ Sürekli mod
53
58
  Analizin kendi kuyruğu ve kendi etiketi var: agent-analysis; repo bazında
54
59
  analysisGithubLabel ve analysisJiraLabel. Oradaki madde analiz komutunu
55
60
  gözetimsiz koşturur ve dokümanda biter; kuyruk bunu doc-delivered diye yazar,
56
- PR açılmaz. İki etiket farklı olmak zorunda; ikisine
57
- aynı değeri veren repo reddedilir.
61
+ PR açılmaz. Sıralama da aynı: agent-analysis:1 .. agent-analysis:9 bu kuyruğu,
62
+ agent-queue:1 .. :9 geliştirmeyi sıralar. İki etiket farklı olmak zorunda;
63
+ ikisine aynı değeri veren repo reddedilir.
58
64
 
59
65
  Jira ve GitHub
60
66
 
@@ -744,3 +744,4 @@ It asserts five things:
744
744
  A failure is a halt, not a warning: fix the state, re-run the gate, and leave the phase
745
745
  `in_progress` until it passes. Never close Phase 0 on the grounds that its steps ran -
746
746
  the gate checks the output, which is what Phase 2 consumes.
747
+
@@ -314,3 +314,4 @@ LOG_METRIC_FORWARD_TO_TRACKER=1 $HOME/.claude/scripts/log-metric.sh "$TASK_ID" 4
314
314
  ```
315
315
 
316
316
  Best-effort. See `$HOME/.claude/multi-agent-refs/progress-contract.md#token-telemetry-forwarding`.
317
+
@@ -288,7 +288,7 @@ Print the closing report to the terminal. Two blocks, in this order - what the
288
288
 
289
289
  ```bash
290
290
  bash $HOME/.claude/scripts/phase-tracker.sh report
291
- bash $HOME/.claude/scripts/render-work-summary.sh "$TASK_ID" --worktree "$WORKTREE_PATH"
291
+ bash $HOME/.claude/scripts/render-work-summary.sh "$TASK_ID" --format terminal --worktree "$WORKTREE_PATH"
292
292
  ```
293
293
 
294
294
  `report` prices the run phase by phase; `render-work-summary.sh` says what changed on disk. Both land in tool output, which the host collapses, so **reprint them in your reply** followed by this line:
@@ -249,23 +249,49 @@ bash $HOME/.claude/scripts/phase-tracker.sh render
249
249
 
250
250
  ### Active phase - "what is it doing right now"
251
251
 
252
- **Claude Code** - `TaskUpdate({activeForm: ...})` updates the spinner header:
253
- ```text
254
- TaskUpdate({taskId: <dev_task>, activeForm: "Editing TopBarView.swift"})
255
- TaskUpdate({taskId: <dev_task>, activeForm: "Running xcodebuild test"})
256
- ```
257
-
258
- **Other CLIs** - the dedicated `now` action (quiet: writes `meta.Now`, never renders; the card picks it up at the next boundary render/update):
252
+ **Every host** - the `now` action, always, first. It is quiet: it writes
253
+ `meta.Now` and renders nothing, and the card picks it up at the next boundary.
259
254
  ```bash
260
255
  bash $HOME/.claude/scripts/phase-tracker.sh now 3 "editing TopBarView.swift"
261
256
  ```
262
257
 
263
- The `Now` value shows up in the bordered card as `Now: editing TopBarView.swift` (truncated to 60 chars by the script).
258
+ Writing it to the tracker is what makes the line outlive the moment. The
259
+ tracker is what the card renders, what the subject is composed from, what the
260
+ office reads and what the run's own report can look back at; a line that went
261
+ only to the host's spinner is gone the instant it is replaced, and nothing
262
+ afterwards can say what a phase was doing.
263
+
264
+ The lines themselves are not invented per run: `$HOME/.claude/schemas/now-lines.json`
265
+ carries a canonical set per phase, keyed by phase id, and naming the moments that
266
+ phase says something. Read the set for the phase that is running and write the
267
+ line that fits; skip the call when the text would repeat the last value. The call
268
+ is here and not in each phase document because six copies of it is six times the
269
+ context and six places to drift.
270
+
271
+ | Phase | Call |
272
+ |---|---|
273
+ | 0 Init | `bash "$HOME/.claude/scripts/phase-tracker.sh" now 0 "<line>"` |
274
+ | 1 Plan | `bash "$HOME/.claude/scripts/phase-tracker.sh" now 1 "<line>"` |
275
+ | 2 Dev | `bash "$HOME/.claude/scripts/phase-tracker.sh" now 2 "<line>"` |
276
+ | 3 Review | `bash "$HOME/.claude/scripts/phase-tracker.sh" now 3 "<line>"` |
277
+ | 4 Commit | `bash "$HOME/.claude/scripts/phase-tracker.sh" now 4 "<line>"` |
278
+ | 5 Report | `bash "$HOME/.claude/scripts/phase-tracker.sh" now 5 "<line>"` |
279
+
280
+ **Claude Code, additionally** - mirror the same text into the tile so the
281
+ spinner header carries it too:
282
+ ```text
283
+ TaskUpdate({taskId: <dev_task>, activeForm: "editing TopBarView.swift"})
284
+ ```
285
+
286
+ The `Now` value shows up in the bordered card as `Now: editing TopBarView.swift`
287
+ (truncated to 60 chars by the script) and at the end of that phase's subject.
288
+ When nothing has been set, the name of the in-progress sub-step fills the same
289
+ place, so the question "what is it doing" always has an answer.
264
290
 
265
291
  **Progress-line mirror (required).** Every `normal`-tier progress line from the progress contract's canonical "When to emit" set is ALSO mirrored to the active phase, so the tracker always answers "what is it doing right now":
266
292
 
267
- - Claude Code: `TaskUpdate({activeForm: "<line text, arrow prefix stripped>"})`
268
- - Other CLIs: `phase-tracker.sh now <N> "<line text, arrow prefix stripped>"`
293
+ - Every host: `phase-tracker.sh now <N> "<line text, arrow prefix stripped>"`
294
+ - Claude Code, additionally: `TaskUpdate({activeForm: "<the same text>"})`
269
295
 
270
296
  Throttling rules: mirror only canonical-set lines (`verbose`-tier internals are not mirrored); at most one mirror per emitted line; skip the mirror when the text is identical to the last mirrored value; the mirror itself never triggers a render. Text is truncated to 60 chars.
271
297