@cluesmith/codev 3.0.7 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard-dist/assets/{index-DUQ8fmjX.js → index-CM6A5r59.js} +39 -39
- package/dashboard-dist/assets/index-CM6A5r59.js.map +1 -0
- package/dashboard-dist/assets/index-Cl5tt1AP.css +32 -0
- package/dashboard-dist/index.html +2 -2
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +14 -0
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/attach.d.ts.map +1 -1
- package/dist/agent-farm/commands/attach.js +4 -1
- package/dist/agent-farm/commands/attach.js.map +1 -1
- package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
- package/dist/agent-farm/commands/cleanup.js +4 -2
- package/dist/agent-farm/commands/cleanup.js.map +1 -1
- package/dist/agent-farm/commands/send.d.ts +13 -2
- package/dist/agent-farm/commands/send.d.ts.map +1 -1
- package/dist/agent-farm/commands/send.js +54 -15
- package/dist/agent-farm/commands/send.js.map +1 -1
- package/dist/agent-farm/commands/status.d.ts.map +1 -1
- package/dist/agent-farm/commands/status.js +43 -14
- package/dist/agent-farm/commands/status.js.map +1 -1
- package/dist/agent-farm/commands/stop.d.ts.map +1 -1
- package/dist/agent-farm/commands/stop.js +14 -8
- package/dist/agent-farm/commands/stop.js.map +1 -1
- package/dist/agent-farm/commands/workspace-remove-architect.d.ts +16 -0
- package/dist/agent-farm/commands/workspace-remove-architect.d.ts.map +1 -0
- package/dist/agent-farm/commands/workspace-remove-architect.js +40 -0
- package/dist/agent-farm/commands/workspace-remove-architect.js.map +1 -0
- package/dist/agent-farm/db/index.d.ts.map +1 -1
- package/dist/agent-farm/db/index.js +125 -2
- package/dist/agent-farm/db/index.js.map +1 -1
- package/dist/agent-farm/db/migrate.d.ts +11 -2
- package/dist/agent-farm/db/migrate.d.ts.map +1 -1
- package/dist/agent-farm/db/migrate.js +24 -5
- package/dist/agent-farm/db/migrate.js.map +1 -1
- package/dist/agent-farm/db/schema.d.ts +1 -1
- package/dist/agent-farm/db/schema.d.ts.map +1 -1
- package/dist/agent-farm/db/schema.js +15 -2
- package/dist/agent-farm/db/schema.js.map +1 -1
- package/dist/agent-farm/db/types.d.ts +1 -0
- package/dist/agent-farm/db/types.d.ts.map +1 -1
- package/dist/agent-farm/db/types.js.map +1 -1
- package/dist/agent-farm/servers/overview.d.ts +26 -0
- package/dist/agent-farm/servers/overview.d.ts.map +1 -1
- package/dist/agent-farm/servers/overview.js +31 -12
- package/dist/agent-farm/servers/overview.js.map +1 -1
- package/dist/agent-farm/servers/tower-instances.d.ts +25 -0
- package/dist/agent-farm/servers/tower-instances.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-instances.js +314 -49
- package/dist/agent-farm/servers/tower-instances.js.map +1 -1
- package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-routes.js +241 -6
- package/dist/agent-farm/servers/tower-routes.js.map +1 -1
- package/dist/agent-farm/servers/tower-server.js +8 -0
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.js +76 -12
- package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
- package/dist/agent-farm/servers/tower-types.d.ts +24 -0
- package/dist/agent-farm/servers/tower-types.d.ts.map +1 -1
- package/dist/agent-farm/servers/worktree-config-watcher.d.ts +36 -0
- package/dist/agent-farm/servers/worktree-config-watcher.d.ts.map +1 -0
- package/dist/agent-farm/servers/worktree-config-watcher.js +80 -0
- package/dist/agent-farm/servers/worktree-config-watcher.js.map +1 -0
- package/dist/agent-farm/state.d.ts +59 -16
- package/dist/agent-farm/state.d.ts.map +1 -1
- package/dist/agent-farm/state.js +137 -34
- package/dist/agent-farm/state.js.map +1 -1
- package/dist/agent-farm/types.d.ts +23 -0
- package/dist/agent-farm/types.d.ts.map +1 -1
- package/dist/agent-farm/utils/architect-name.d.ts +5 -0
- package/dist/agent-farm/utils/architect-name.d.ts.map +1 -1
- package/dist/agent-farm/utils/architect-name.js +8 -0
- package/dist/agent-farm/utils/architect-name.js.map +1 -1
- package/dist/agent-farm/utils/config.d.ts +2 -12
- package/dist/agent-farm/utils/config.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.js +20 -0
- package/dist/agent-farm/utils/config.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/consult/index.d.ts +4 -0
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +160 -31
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/porch/artifacts.d.ts +32 -0
- package/dist/commands/porch/artifacts.d.ts.map +1 -1
- package/dist/commands/porch/artifacts.js +129 -0
- package/dist/commands/porch/artifacts.js.map +1 -1
- package/dist/lib/config.d.ts +17 -2
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +30 -2
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/default-branch.d.ts +11 -0
- package/dist/lib/default-branch.d.ts.map +1 -0
- package/dist/lib/default-branch.js +23 -0
- package/dist/lib/default-branch.js.map +1 -0
- package/dist/terminal/pty-session.d.ts.map +1 -1
- package/dist/terminal/pty-session.js +5 -0
- package/dist/terminal/pty-session.js.map +1 -1
- package/dist/terminal/shellper-client.d.ts +15 -0
- package/dist/terminal/shellper-client.d.ts.map +1 -1
- package/dist/terminal/shellper-client.js +37 -0
- package/dist/terminal/shellper-client.js.map +1 -1
- package/dist/terminal/shellper-process.d.ts +1 -0
- package/dist/terminal/shellper-process.d.ts.map +1 -1
- package/dist/terminal/shellper-process.js +8 -0
- package/dist/terminal/shellper-process.js.map +1 -1
- package/dist/terminal/shellper-protocol.d.ts +12 -0
- package/dist/terminal/shellper-protocol.d.ts.map +1 -1
- package/dist/terminal/shellper-protocol.js.map +1 -1
- package/package.json +3 -3
- package/scripts/forge/github/pr-search.sh +2 -2
- package/skeleton/protocols/air/consult-types/pr-review.md +5 -1
- package/skeleton/protocols/aspir/builder-prompt.md +3 -3
- package/skeleton/protocols/aspir/consult-types/pr-review.md +5 -1
- package/skeleton/protocols/bugfix/consult-types/pr-review.md +2 -1
- package/skeleton/protocols/maintain/consult-types/pr-review.md +5 -1
- package/skeleton/protocols/pir/builder-prompt.md +2 -2
- package/skeleton/protocols/pir/consult-types/pr-review.md +3 -2
- package/skeleton/protocols/pir/prompts/implement.md +15 -7
- package/skeleton/protocols/pir/prompts/review.md +27 -21
- package/skeleton/protocols/pir/protocol.json +1 -1
- package/skeleton/protocols/pir/protocol.md +4 -6
- package/skeleton/protocols/spir/builder-prompt.md +3 -3
- package/skeleton/protocols/spir/consult-types/pr-review.md +5 -1
- package/skeleton/roles/builder.md +21 -0
- package/skeleton/templates/AGENTS.md +20 -0
- package/skeleton/templates/CLAUDE.md +20 -0
- package/dashboard-dist/assets/index-0yEACH2F.css +0 -32
- package/dashboard-dist/assets/index-DUQ8fmjX.js.map +0 -1
|
@@ -33,6 +33,12 @@ export class ShellperProcess extends EventEmitter {
|
|
|
33
33
|
cols = DEFAULT_COLS;
|
|
34
34
|
rows = DEFAULT_ROWS;
|
|
35
35
|
startTime = Date.now();
|
|
36
|
+
// Wall-clock epoch (ms) of the last PTY byte received. Sent in every
|
|
37
|
+
// WELCOME so Tower (which loses its own in-memory tracker on restart)
|
|
38
|
+
// can hydrate to the genuine last-activity moment instead of treating
|
|
39
|
+
// reconnect as fresh activity. Initialised to startTime so a brand-new
|
|
40
|
+
// shellper that has emitted nothing yet still reports a sane value.
|
|
41
|
+
lastDataAt = Date.now();
|
|
36
42
|
exited = false;
|
|
37
43
|
constructor(ptyFactory, socketPath, replayBufferLines = 10_000, log = () => { }) {
|
|
38
44
|
super();
|
|
@@ -68,6 +74,7 @@ export class ShellperProcess extends EventEmitter {
|
|
|
68
74
|
return;
|
|
69
75
|
const buf = Buffer.from(data, 'utf-8');
|
|
70
76
|
this.replayBuffer.append(buf);
|
|
77
|
+
this.lastDataAt = Date.now();
|
|
71
78
|
this.broadcast(encodeData(buf));
|
|
72
79
|
});
|
|
73
80
|
pty.onExit((exitInfo) => {
|
|
@@ -266,6 +273,7 @@ export class ShellperProcess extends EventEmitter {
|
|
|
266
273
|
cols: this.cols,
|
|
267
274
|
rows: this.rows,
|
|
268
275
|
startTime: this.startTime,
|
|
276
|
+
lastDataAt: this.lastDataAt,
|
|
269
277
|
});
|
|
270
278
|
socket.write(welcome);
|
|
271
279
|
this.log(`WELCOME sent: pid=${pid}, version=${PROTOCOL_VERSION}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shellper-process.js","sourceRoot":"","sources":["../../src/terminal/shellper-process.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GAOjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA8BxD,0BAA0B;AAE1B,MAAM,OAAO,eAAgB,SAAQ,YAAY;IAa5B;IACA;IAEA;IAfX,GAAG,GAAwB,IAAI,CAAC;IAChC,MAAM,GAAsB,IAAI,CAAC;IACjC,WAAW,GAAiC,IAAI,GAAG,EAAE,CAAC;IACtD,cAAc,GAAoB,IAAI,GAAG,EAAE,CAAC;IAC5C,gBAAgB,GAAG,CAAC,CAAC;IACrB,YAAY,CA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;QACH,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAEzB,wCAAwC;QACxC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACzC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtB,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,CAAC;QACH,CAAC;QACD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAE5B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"shellper-process.js","sourceRoot":"","sources":["../../src/terminal/shellper-process.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GAOjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA8BxD,0BAA0B;AAE1B,MAAM,OAAO,eAAgB,SAAQ,YAAY;IAmB5B;IACA;IAEA;IArBX,GAAG,GAAwB,IAAI,CAAC;IAChC,MAAM,GAAsB,IAAI,CAAC;IACjC,WAAW,GAAiC,IAAI,GAAG,EAAE,CAAC;IACtD,cAAc,GAAoB,IAAI,GA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,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;QAC/B,CAAC;QAED,iCAAiC;QACjC,KAAK,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACzC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;gBAC5B,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACzB,CAAC;QACH,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAEzB,wCAAwC;QACxC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACzC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtB,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,CAAC;QACH,CAAC;QACD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAE5B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -47,6 +47,18 @@ export interface WelcomeMessage {
|
|
|
47
47
|
cols: number;
|
|
48
48
|
rows: number;
|
|
49
49
|
startTime: number;
|
|
50
|
+
/**
|
|
51
|
+
* Epoch (ms) of the most recent PTY byte the shellper has seen.
|
|
52
|
+
*
|
|
53
|
+
* Optional for backward compatibility: a Tower talking to an older
|
|
54
|
+
* shellper that doesn't send the field treats it as missing and falls
|
|
55
|
+
* back to construct-time `Date.now()`. The new shellper sends it on
|
|
56
|
+
* every WELCOME, including reconnects — so Tower hydrates its own
|
|
57
|
+
* `lastDataAt` to the genuine last-activity moment across Tower
|
|
58
|
+
* restarts (which discard the in-memory value but leave the shellper
|
|
59
|
+
* process running and still tracking).
|
|
60
|
+
*/
|
|
61
|
+
lastDataAt?: number;
|
|
50
62
|
}
|
|
51
63
|
export interface SpawnMessage {
|
|
52
64
|
command: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shellper-protocol.d.ts","sourceRoot":"","sources":["../../src/terminal/shellper-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhE,eAAO,MAAM,SAAS;;;;;;;;;;;CAWZ,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAIxE,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,eAAO,MAAM,cAAc,QAAmB,CAAC;AAC/C,eAAO,MAAM,WAAW,IAAI,CAAC;AAI7B,eAAO,MAAM,eAAe,aAM1B,CAAC;AAIH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,GAAG,UAAU,CAAC;CAClC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"shellper-protocol.d.ts","sourceRoot":"","sources":["../../src/terminal/shellper-protocol.ts"],"names":[],"mappings":"AAAA;;;;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;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,CAE/C;AAMD,6CAA6C;AAC7C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,cAAc,CAErE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAEtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shellper-protocol.js","sourceRoot":"","sources":["../../src/terminal/shellper-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAA0B,MAAM,aAAa,CAAC;AAEhE,sBAAsB;AAEtB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;CACH,CAAC;AAIX,6BAA6B;AAE7B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO;AACvD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,CAAC,+BAA+B;AAE7D,0BAA0B;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IACrC,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,UAAU;IACb,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,WAAW;CAChB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"shellper-protocol.js","sourceRoot":"","sources":["../../src/terminal/shellper-protocol.ts"],"names":[],"mappings":"AAAA;;;;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,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAM,CAAC;AACpD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cluesmith/codev",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Codev CLI - AI-assisted software development framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"open": "^10.1.0",
|
|
35
35
|
"tree-kill": "^1.2.2",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
|
-
"@cluesmith/codev-core": "3.
|
|
37
|
+
"@cluesmith/codev-core": "3.1.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@playwright/test": "^1.58.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"typescript": "^5.7.2",
|
|
51
51
|
"vitest": "^4.0.15",
|
|
52
52
|
"@cluesmith/codev-dashboard": "0.0.0",
|
|
53
|
-
"@cluesmith/codev-types": "3.
|
|
53
|
+
"@cluesmith/codev-types": "3.1.2"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=20.0.0"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
# Forge concept: pr-search (GitHub via gh CLI)
|
|
3
3
|
# Input: CODEV_SEARCH_QUERY
|
|
4
|
-
# Output: JSON [{number, headRefName}]
|
|
5
|
-
exec gh pr list --search "$CODEV_SEARCH_QUERY" --json number,headRefName
|
|
4
|
+
# Output: JSON [{number, headRefName, baseRefName}]
|
|
5
|
+
exec gh pr list --search "$CODEV_SEARCH_QUERY" --json number,headRefName,baseRefName
|
|
@@ -34,7 +34,11 @@ If the baked decisions themselves contain contradictions, do not pick one — `R
|
|
|
34
34
|
5. **PR Quality**
|
|
35
35
|
- Does the PR link to the issue?
|
|
36
36
|
- Is the PR body review section informative?
|
|
37
|
-
- Is the branch up to date with
|
|
37
|
+
- Is the branch up to date with its base (the integration branch the PR targets)?
|
|
38
|
+
|
|
39
|
+
## Scope
|
|
40
|
+
|
|
41
|
+
- **DO NOT** flag the syntax of `git diff` examples that appear in review-file prose (e.g., `git diff ci..HEAD` inside a "Files Changed" caption or "How to Test Locally" section). Quoted diff syntax is documentation, not a command. Apply two-dot/three-dot scrutiny only to diffs you compute yourself.
|
|
38
42
|
|
|
39
43
|
## Verdict Format
|
|
40
44
|
|
|
@@ -74,10 +74,10 @@ The architect MAY request a PR at any point — for spec review, mid-implementat
|
|
|
74
74
|
Your worktree is persistent — it survives across PR merges. When the architect asks for sequential PRs (e.g., to slice a large spec into shippable pieces), use this loop:
|
|
75
75
|
|
|
76
76
|
1. Cut a branch, open a PR, wait for merge
|
|
77
|
-
2. After merge: `git fetch origin
|
|
77
|
+
2. After merge: `git fetch origin <integration-branch> && git checkout -b <next-branch> origin/<integration-branch>` — where `<integration-branch>` is the branch the architect targets PRs at (usually `main`; check the open PR's `baseRefName` if unsure)
|
|
78
78
|
3. Continue to the next slice, open another PR
|
|
79
79
|
|
|
80
|
-
**Important**: Do NOT run `git checkout
|
|
80
|
+
**Important**: Do NOT run `git checkout <integration-branch>` — git worktrees cannot check out a branch that's checked out elsewhere. Always branch off `origin/<integration-branch>` via fetch.
|
|
81
81
|
|
|
82
82
|
Record PRs: `porch done {{project_id}} --pr <N> --branch <name>`
|
|
83
83
|
Record merges: `porch done {{project_id}} --merged <N>`
|
|
@@ -85,7 +85,7 @@ Record merges: `porch done {{project_id}} --merged <N>`
|
|
|
85
85
|
## Verify Phase
|
|
86
86
|
|
|
87
87
|
After the final PR merges, the project enters the **verify** phase. You stay alive through verify:
|
|
88
|
-
1. Pull
|
|
88
|
+
1. Pull the integration branch into your worktree
|
|
89
89
|
2. Run `porch done {{project_id}}` to signal verification is ready
|
|
90
90
|
3. The architect approves `verify-approval` when satisfied
|
|
91
91
|
|
|
@@ -28,10 +28,14 @@ You are performing a final self-check during the Review phase. The builder has c
|
|
|
28
28
|
- Are any new APIs documented?
|
|
29
29
|
|
|
30
30
|
5. **PR Readiness**
|
|
31
|
-
- Is the branch up to date with
|
|
31
|
+
- Is the branch up to date with its base (the integration branch the PR targets)?
|
|
32
32
|
- Are commits atomic and well-described?
|
|
33
33
|
- Is the change diff reasonable in size?
|
|
34
34
|
|
|
35
|
+
## Scope
|
|
36
|
+
|
|
37
|
+
- **DO NOT** flag the syntax of `git diff` examples that appear in review-file prose (e.g., `git diff ci..HEAD` inside a "Files Changed" caption or "How to Test Locally" section). Quoted diff syntax is documentation, not a command. Apply two-dot/three-dot scrutiny only to diffs you compute yourself.
|
|
38
|
+
|
|
35
39
|
## Verdict Format
|
|
36
40
|
|
|
37
41
|
After your review, provide your verdict in exactly this format:
|
|
@@ -41,7 +41,7 @@ There is **no `codev/specs/`, `codev/plans/`, or `codev/reviews/` file** for a B
|
|
|
41
41
|
|
|
42
42
|
6. **PR Hygiene**
|
|
43
43
|
- Commits use the BUGFIX format: `Fix #<N>: ...` or `[Bugfix #<N>] ...` (**not** `[Spec NNNN][Phase]`).
|
|
44
|
-
- Branch is up to date with
|
|
44
|
+
- Branch is up to date with its base (or close enough for clean merge).
|
|
45
45
|
- PR is linked to the issue.
|
|
46
46
|
|
|
47
47
|
## Out of Scope (Do NOT request changes for)
|
|
@@ -54,6 +54,7 @@ The following are **not** part of the BUGFIX protocol and must **not** be cited
|
|
|
54
54
|
- Commit format `[Spec NNNN][Phase]` — BUGFIX intentionally uses `Fix #N:` / `[Bugfix #N]`.
|
|
55
55
|
- `status.yaml` fields like `build_complete: false` — porch manages `status.yaml`; the builder is **forbidden** from editing it directly. Treat porch state as informational, not a fixable issue.
|
|
56
56
|
- Phase-scoping concerns — BUGFIX is a single-phase protocol; there are no plan phases to scope against.
|
|
57
|
+
- **DO NOT** flag the syntax of `git diff` examples that appear in review-file prose (e.g., `git diff ci..HEAD` inside a "Files Changed" caption). Quoted diff syntax is documentation, not a command. Apply two-dot/three-dot scrutiny only to diffs you compute yourself.
|
|
57
58
|
|
|
58
59
|
## Verdict Format
|
|
59
60
|
|
|
@@ -28,10 +28,14 @@ You are performing a final self-check during the Review phase. The builder has c
|
|
|
28
28
|
- Are any new APIs documented?
|
|
29
29
|
|
|
30
30
|
5. **PR Readiness**
|
|
31
|
-
- Is the branch up to date with
|
|
31
|
+
- Is the branch up to date with its base (the integration branch the PR targets)?
|
|
32
32
|
- Are commits atomic and well-described?
|
|
33
33
|
- Is the change diff reasonable in size?
|
|
34
34
|
|
|
35
|
+
## Scope
|
|
36
|
+
|
|
37
|
+
- **DO NOT** flag the syntax of `git diff` examples that appear in review-file prose (e.g., `git diff ci..HEAD` inside a "Files Changed" caption or "How to Test Locally" section). Quoted diff syntax is documentation, not a command. Apply two-dot/three-dot scrutiny only to diffs you compute yourself.
|
|
38
|
+
|
|
35
39
|
## Verdict Format
|
|
36
40
|
|
|
37
41
|
After your review, provide your verdict in exactly this format:
|
|
@@ -33,7 +33,7 @@ Read and internalize the protocol before starting any work.
|
|
|
33
33
|
PIR has three phases:
|
|
34
34
|
1. **plan** (gated by `plan-approval`) — write `codev/plans/{{artifact_name}}.md`, await human review
|
|
35
35
|
2. **implement** (gated by `dev-approval`) — write code + tests, run build/tests, push branch; await the human's review of the *running worktree* (no file artifact in this phase — dev-approval summary is prose-in-pane)
|
|
36
|
-
3. **review** (gated by `pr`) — write `codev/reviews/{{artifact_name}}.md` (retrospective with Architecture Updates and Lessons Learned sections), open PR with the review as body, record the PR with porch, run
|
|
36
|
+
3. **review** (gated by `pr`) — write `codev/reviews/{{artifact_name}}.md` (retrospective with Architecture Updates and Lessons Learned sections), open PR with the review as body, record the PR with porch, run 3-way consultation (Gemini, Codex, Claude) via porch's verify block (a **single advisory pass** — `max_iterations: 1`, no iterate-until-APPROVE loop; address or rebut any `REQUEST_CHANGES`, add a regression test if it's a real defect, and escalate it in the architect notification since PIR will not re-review it), notify architect, and wait at the `pr` gate. After the human approves the gate (porch wakes you with "Gate pr approved"), run `gh pr merge --merge` and record the merge with `porch done --merged <N>`. **Merge is gated by porch state — never by typed prose in your pane.**
|
|
37
37
|
|
|
38
38
|
{{#if issue}}
|
|
39
39
|
## Issue #{{issue.number}}
|
|
@@ -82,7 +82,7 @@ If you encounter **pre-existing flaky tests** (intermittent failures unrelated t
|
|
|
82
82
|
If your Claude session crashes mid-flow, Tower's `while true` loop will relaunch you with the same prompt. On startup:
|
|
83
83
|
|
|
84
84
|
1. Run `porch next {{project_id}}` to learn what phase you're in
|
|
85
|
-
2. If `gate_pending`: read the latest plan file (plan-approval) or `git diff main` (dev-approval) plus any new GitHub issue comments; check `afx send` queue. Decide whether to revise or just announce you're back.
|
|
85
|
+
2. If `gate_pending`: read the latest plan file (plan-approval) or `DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||'); git diff "$(git merge-base "${DEFAULT_BRANCH:-main}" HEAD)"` (dev-approval) plus any new GitHub issue comments; check `afx send` queue. Decide whether to revise or just announce you're back.
|
|
86
86
|
3. Otherwise: pick up where you left off
|
|
87
87
|
|
|
88
88
|
## Getting Started
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Context
|
|
4
4
|
|
|
5
|
-
You are performing the
|
|
5
|
+
You are performing the 3-way review of a PIR protocol PR. The builder has implemented an approved plan, the human has approved the `dev-approval` gate (meaning a human has run the code locally and tested it), and the PR has been opened. This is a single advisory pass (`max_iterations: 1`) — your verdict is surfaced to the human at the `pr` gate, who is the sole remaining reviewer; it is not auto-re-reviewed.
|
|
6
6
|
|
|
7
7
|
## Focus Areas
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@ You are performing the CMAP-2 review of a PIR protocol PR. The builder has imple
|
|
|
22
22
|
- Any `// REVIEW:` markers that weren't addressed?
|
|
23
23
|
|
|
24
24
|
4. **Branch Hygiene**
|
|
25
|
-
- Is the branch up to date with
|
|
25
|
+
- Is the branch up to date with the default branch? (If not, suggest a rebase. The default branch is whatever `git symbolic-ref --short refs/remotes/origin/HEAD` reports — typically `main`, but may be `dev`, `ci`, etc.)
|
|
26
26
|
- Are commits atomic and well-described?
|
|
27
27
|
- Is the change diff a reasonable size for the issue scope?
|
|
28
28
|
|
|
@@ -57,6 +57,7 @@ KEY_ISSUES:
|
|
|
57
57
|
- **DO** flag obvious problems the human reviewer at the gate might have missed
|
|
58
58
|
- **DO NOT** redesign the approach — that was settled at `plan-approval` and validated at `dev-approval`
|
|
59
59
|
- **DO NOT** demand changes the human reviewer already accepted at the `dev-approval` gate (the human ran the code and approved it; you didn't)
|
|
60
|
+
- **DO NOT** flag the syntax of `git diff` examples that appear in review-file prose (e.g., `git diff ci..HEAD` inside a "Files Changed" caption or "How to Test Locally" section). Quoted diff syntax is documentation, not a command. Apply two-dot/three-dot scrutiny only to diffs you compute yourself.
|
|
60
61
|
|
|
61
62
|
## Notes
|
|
62
63
|
|
|
@@ -17,12 +17,20 @@ Implement the approved plan, write tests, and pause at the `dev-approval` gate s
|
|
|
17
17
|
|
|
18
18
|
Run `porch next {{project_id}}`. If the response is `gate_pending` on `dev-approval`, the code is already written and you're awaiting review. In that case:
|
|
19
19
|
|
|
20
|
-
1.
|
|
21
|
-
|
|
20
|
+
1. Resolve your repo's default branch and the merge-base. The merge-base anchors the diff at the branch's fork point, so commits the base branch picked up *after* you branched don't show up as phantom "scope creep". (`DEFAULT_BRANCH` falls back to `main` if `origin/HEAD` isn't set.)
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')
|
|
24
|
+
DEFAULT_BRANCH=${DEFAULT_BRANCH:-main}
|
|
25
|
+
MERGE_BASE=$(git merge-base "$DEFAULT_BRANCH" HEAD)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
2. Check for feedback:
|
|
29
|
+
- `git diff "$MERGE_BASE"` — has the reviewer made any direct edits to your code?
|
|
22
30
|
- `gh issue view {{issue.number}} --comments`
|
|
23
31
|
- `afx send` queue messages
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
3. If feedback requires code changes: make them, re-run build + tests, recommit.
|
|
33
|
+
4. If feedback is a discussion question: respond and stay in the session.
|
|
26
34
|
|
|
27
35
|
Otherwise (`tasks` response — first run), continue below.
|
|
28
36
|
|
|
@@ -99,7 +107,7 @@ porch done {{project_id}}
|
|
|
99
107
|
porch next {{project_id}}
|
|
100
108
|
```
|
|
101
109
|
|
|
102
|
-
PIR's `implement` phase has no AI consult — the `dev-approval` gate becomes pending immediately, and the human is the sole reviewer of the running code. (
|
|
110
|
+
PIR's `implement` phase has no AI consult — the `dev-approval` gate becomes pending immediately, and the human is the sole reviewer of the running code. (The 3-way consultation runs later, in the `review` phase, after the human approves the gate and the PR is opened.)
|
|
103
111
|
|
|
104
112
|
### 7. End Your Turn With a Code-Review Summary (Prose, Not a File)
|
|
105
113
|
|
|
@@ -107,7 +115,7 @@ When the gate goes pending, output a short prose summary in the pane to orient t
|
|
|
107
115
|
|
|
108
116
|
> **What changed**: 2–3 sentence summary.
|
|
109
117
|
>
|
|
110
|
-
> **Files**: `git diff --stat
|
|
118
|
+
> **Files**: `git diff --stat "$MERGE_BASE"` style list — paths and +/-. (Resolve `$MERGE_BASE` once per session: `DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||'); DEFAULT_BRANCH=${DEFAULT_BRANCH:-main}; MERGE_BASE=$(git merge-base "$DEFAULT_BRANCH" HEAD)`. Anchoring at the merge-base excludes commits the base branch picked up after you branched.)
|
|
111
119
|
>
|
|
112
120
|
> **Test results**: `npm run build` ✓, `npm test` ✓ (X tests, Y new).
|
|
113
121
|
>
|
|
@@ -133,7 +141,7 @@ Then **stay in the interactive session**. Do not exit. Wait for the user's next
|
|
|
133
141
|
- **Don't write `codev/reviews/<id>-<slug>.md` in this phase** — it's the next phase's artifact, with a different shape (retrospective with arch + lessons updates)
|
|
134
142
|
- Don't add features not in the plan — scope creep is a `BLOCKED` signal, not a free expansion
|
|
135
143
|
- Don't run `porch approve` yourself
|
|
136
|
-
- Don't push to
|
|
144
|
+
- Don't push to the default branch — only to your builder branch
|
|
137
145
|
- Don't squash commits — let the merge commit preserve history
|
|
138
146
|
- Don't use `git add .` or `git add -A`
|
|
139
147
|
- Don't open the PR yet — that's the `review` phase
|
|
@@ -4,7 +4,7 @@ You are executing the **REVIEW** phase of the PIR protocol.
|
|
|
4
4
|
|
|
5
5
|
## Your Goal
|
|
6
6
|
|
|
7
|
-
Write a retrospective at `codev/reviews/{{artifact_name}}.md` including **Summary**, **Architecture Updates**, and **Lessons Learned Updates** sections. Push, open a PR using the review file as the PR body, record the PR with porch, then signal completion — **porch runs
|
|
7
|
+
Write a retrospective at `codev/reviews/{{artifact_name}}.md` including **Summary**, **Architecture Updates**, and **Lessons Learned Updates** sections. Push, open a PR using the review file as the PR body, record the PR with porch, then signal completion — **porch runs 3-way consultation (Gemini, Codex, Claude) once** via the verify block. The consultation is a *single advisory pass* (`max_iterations: 1`): its verdicts are surfaced to the human at the `pr` gate, **not** an iterate-until-APPROVE loop. After the single pass the `pr` gate fires regardless of verdict; you notify the architect (leading with any REQUEST_CHANGES) and wait at the gate while the human merges on GitHub.
|
|
8
8
|
|
|
9
9
|
The retrospective ships with the merged PR — it's durable team knowledge, searchable in `codev/reviews/` on `main`.
|
|
10
10
|
|
|
@@ -38,7 +38,7 @@ Fixes #{{issue.number}}
|
|
|
38
38
|
|
|
39
39
|
## Files Changed
|
|
40
40
|
|
|
41
|
-
Output of `git diff --stat
|
|
41
|
+
Output of `git diff --stat "$MERGE_BASE"`, formatted as a list (resolve once: `DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||'); DEFAULT_BRANCH=${DEFAULT_BRANCH:-main}; MERGE_BASE=$(git merge-base "$DEFAULT_BRANCH" HEAD)`. Anchoring at the merge-base keeps the file list scoped to *your* changes, not commits the base branch absorbed after you branched.):
|
|
42
42
|
|
|
43
43
|
- `path/to/file.ts` (+12 / -3)
|
|
44
44
|
- `path/to/new-file.ts` (+45 / -0)
|
|
@@ -123,7 +123,7 @@ gh pr edit <PR-number> --body-file codev/reviews/{{artifact_name}}.md
|
|
|
123
123
|
|
|
124
124
|
### 4a. Record the PR with Porch
|
|
125
125
|
|
|
126
|
-
Immediately after creating the PR, tell porch about it so `status.yaml` carries the PR number and branch. This is a metadata-only call — it does NOT advance the phase or trigger
|
|
126
|
+
Immediately after creating the PR, tell porch about it so `status.yaml` carries the PR number and branch. This is a metadata-only call — it does NOT advance the phase or trigger the consultation:
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
129
|
porch done {{project_id}} --pr <PR-number> --branch "$(git branch --show-current)"
|
|
@@ -131,7 +131,7 @@ porch done {{project_id}} --pr <PR-number> --branch "$(git branch --show-current
|
|
|
131
131
|
|
|
132
132
|
Without this, porch's `history:` for the project stays empty and downstream tooling (status views, analytics, audit trails) can't link the porch project to its GitHub PR.
|
|
133
133
|
|
|
134
|
-
### 5. Signal Completion to Porch (porch runs
|
|
134
|
+
### 5. Signal Completion to Porch (porch runs 3-way consultation)
|
|
135
135
|
|
|
136
136
|
```bash
|
|
137
137
|
porch done {{project_id}}
|
|
@@ -139,14 +139,14 @@ porch done {{project_id}}
|
|
|
139
139
|
|
|
140
140
|
Porch will:
|
|
141
141
|
1. Run the `pr_exists` / `review_has_arch_updates` / `review_has_lessons_updates` checks.
|
|
142
|
-
2. **
|
|
143
|
-
3.
|
|
142
|
+
2. **Run 3-way consultation (Gemini, Codex, Claude) automatically** via the protocol's `verify` block. Outputs land in `codev/projects/{{project_id}}-<slug>/{{project_id}}-gemini.txt`, `<id>-codex.txt`, and `<id>-claude.txt`.
|
|
143
|
+
3. The consultation runs **exactly once** (`max_iterations: 1`). Whatever the verdicts, porch records them in `status.yaml` and advances to the `pr` gate — there is **no automated re-review pass and no "stays in the review phase" loop**. `APPROVE` and `REQUEST_CHANGES` differ only in what you must surface to the human (steps 6–7), not in whether the gate fires. The output of `porch done` surfaces the verdicts.
|
|
144
144
|
|
|
145
|
-
> **Why
|
|
145
|
+
> **Why consult after the human already approved the running code?** The human approved the *running* implementation at the `dev-approval` gate; the 3-way consultation at the PR is a pre-merge hygiene + code-quality pass, not a functional review.
|
|
146
146
|
|
|
147
147
|
### 6. Handle a REQUEST_CHANGES Verdict (single-pass — no automated re-review)
|
|
148
148
|
|
|
149
|
-
PIR's
|
|
149
|
+
PIR's consultation is one advisory pass (`max_iterations: 1`). If a reviewer returns `REQUEST_CHANGES`, porch does **not** loop or re-run it — it records the verdict and proceeds to the `pr` gate. There is no iter-2. The correctness backstop for a consultation-flagged issue is therefore **(a)** your fix + a regression test and **(b)** the human's `pr`-gate review — *not* an independent model re-review. Treat that as load-bearing: a substantive finding you "address and rebut" gets no second AI opinion.
|
|
150
150
|
|
|
151
151
|
For any `REQUEST_CHANGES`:
|
|
152
152
|
|
|
@@ -154,22 +154,23 @@ For any `REQUEST_CHANGES`:
|
|
|
154
154
|
2. **Assess it honestly:**
|
|
155
155
|
- **Real defect** (correctness / cancellation / security / data-loss): fix it in code, add a regression test that fails without the fix, commit + push (the PR updates automatically — no new `gh pr create`). Then document the finding, your fix, and the pinning test in the review file's **"Things to Look At During PR Review"** section.
|
|
156
156
|
- **False positive / out of scope**: write a brief rebuttal in that same section explaining why no change is warranted.
|
|
157
|
-
3. Do **not** re-run `porch done` expecting another
|
|
157
|
+
3. Do **not** re-run `porch done` expecting another consultation pass — `max_iterations: 1` means it will not re-review. Proceed to step 7.
|
|
158
158
|
|
|
159
159
|
Whether you fixed it or rebutted it, a `REQUEST_CHANGES` that PIR will never re-check **must be escalated to the human at the `pr` gate** (step 7) — they are the only remaining reviewer of that decision.
|
|
160
160
|
|
|
161
|
-
### 7. Notify the Architect (after the single
|
|
161
|
+
### 7. Notify the Architect (after the single consultation pass — gate is now pending)
|
|
162
162
|
|
|
163
|
-
After the one
|
|
163
|
+
After the one consultation pass + structural checks, porch fires the **`pr` gate** (pending) **regardless of the verdicts**. Read the verdicts from porch state and notify — and if any verdict is `REQUEST_CHANGES`, **lead with it and state the disposition**, because PIR will not re-review it and the human at the `pr` gate is the only remaining check:
|
|
164
164
|
|
|
165
165
|
```bash
|
|
166
166
|
GEMINI_VERDICT=$(grep -m1 -i '^\(approve\|request_changes\|comment\)' "codev/projects/{{project_id}}-"*/"{{project_id}}-gemini.txt" || echo UNKNOWN)
|
|
167
167
|
CODEX_VERDICT=$(grep -m1 -i '^\(approve\|request_changes\|comment\)' "codev/projects/{{project_id}}-"*/"{{project_id}}-codex.txt" || echo UNKNOWN)
|
|
168
|
+
CLAUDE_VERDICT=$(grep -m1 -i '^\(approve\|request_changes\|comment\)' "codev/projects/{{project_id}}-"*/"{{project_id}}-claude.txt" || echo UNKNOWN)
|
|
168
169
|
|
|
169
|
-
if echo "$GEMINI_VERDICT $CODEX_VERDICT" | grep -qi request_changes; then
|
|
170
|
-
afx send architect "⚠️ PR #<M> (PIR #{{issue.number}}):
|
|
170
|
+
if echo "$GEMINI_VERDICT $CODEX_VERDICT $CLAUDE_VERDICT" | grep -qi request_changes; then
|
|
171
|
+
afx send architect "⚠️ PR #<M> (PIR #{{issue.number}}): 3-way consultation returned REQUEST_CHANGES (gemini=$GEMINI_VERDICT, codex=$CODEX_VERDICT, claude=$CLAUDE_VERDICT). Disposition: <one line — fixed in <sha> + regression test | rebutted, see review 'Things to Look At'>. PIR is single-pass — this was NOT independently re-reviewed; please verify the fix/rebuttal at the pr gate before approving. Full verdicts in codev/projects/{{project_id}}-*/."
|
|
171
172
|
else
|
|
172
|
-
afx send architect "PR #<M> ready for review (PIR #{{issue.number}}).
|
|
173
|
+
afx send architect "PR #<M> ready for review (PIR #{{issue.number}}). 3-way consultation all clear: gemini=$GEMINI_VERDICT, codex=$CODEX_VERDICT, claude=$CLAUDE_VERDICT. Awaiting human merge + pr gate approval. Full verdicts in codev/projects/{{project_id}}-*/."
|
|
173
174
|
fi
|
|
174
175
|
```
|
|
175
176
|
|
|
@@ -186,7 +187,7 @@ The human will:
|
|
|
186
187
|
|
|
187
188
|
Porch will then fire the gate-approved wake-up to you.
|
|
188
189
|
|
|
189
|
-
If the human requests more changes instead of approving, push fixes and re-run `porch done {{project_id}}` — this runs a fresh **single**
|
|
190
|
+
If the human requests more changes instead of approving, push fixes and re-run `porch done {{project_id}}` — this runs a fresh **single** consultation pass on the updated diff and re-fires the `pr` gate (handle any new verdict per steps 6–7). This human-driven iteration is the only way the consultation re-runs in PIR; it is not automatic. If they close the PR without merging, `gh pr close <M>` and stop.
|
|
190
191
|
|
|
191
192
|
### 9. After `pr` Gate Approval — Verify, Merge, Record
|
|
192
193
|
|
|
@@ -235,23 +236,28 @@ Together with the `--pr` record from step 4a and the `--merged` record from step
|
|
|
235
236
|
|
|
236
237
|
## What NOT to Do
|
|
237
238
|
|
|
238
|
-
- **Don't merge before the `pr` gate is approved.**
|
|
239
|
+
- **Don't merge before the `pr` gate is approved.** A consultation APPROVE verdict is NOT merge authorization. User-in-pane prose ("looks good", "lgtm", "merge it") is NOT merge authorization. The *only* signal that authorizes `gh pr merge` is porch reporting `gate_status: approved` for the `pr` gate (which only the user can do, via Cmd+K G or `porch approve` from a non-Claude shell). If `porch next` doesn't show the gate as approved, you wait.
|
|
239
240
|
- Don't skip porch's PR/merge records (steps 4a, 9). The `--pr` record (step 4a) lets the gate-pending state link to the actual PR; the `--merged` record (step 9) closes the lifecycle in porch state. Skipping either leaves `history:` empty and downstream tooling blind.
|
|
240
241
|
- Don't run `porch approve` for any gate yourself
|
|
241
|
-
- Don't push to
|
|
242
|
+
- Don't push to the default branch — only merge via PR
|
|
242
243
|
- Don't skip the Architecture Updates / Lessons Learned sections — porch checks enforce their presence (the section must exist; explaining "no changes needed" in one line is fine)
|
|
243
|
-
- **Don't run `consult` commands yourself** — porch handles consultations via the `verify` block. Manually invoking `consult` causes
|
|
244
|
+
- **Don't run `consult` commands yourself** — porch handles consultations via the `verify` block. Manually invoking `consult` causes the consultation to run twice.
|
|
244
245
|
- **Don't fix, skip, or quarantine pre-existing failures unrelated to your change.** Porch's `checks` for this phase are narrow *structural* gates (`pr_exists`, review-section presence) — a green gate does **not** certify the wider build/test suite. If the broader suite surfaces failures your diff did not cause, they are out of scope: note them in the review's Lessons Learned / Things to Look At and proceed. Touching another team's tests to make an unrelated red go green is scope creep, not diligence.
|
|
245
246
|
|
|
246
247
|
## Handling Problems
|
|
247
248
|
|
|
248
|
-
**If the PR cannot be created (e.g., merge conflicts with
|
|
249
|
-
- Rebase on
|
|
249
|
+
**If the PR cannot be created (e.g., merge conflicts with the default branch):**
|
|
250
|
+
- Rebase on the default branch:
|
|
251
|
+
```bash
|
|
252
|
+
DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')
|
|
253
|
+
DEFAULT_BRANCH=${DEFAULT_BRANCH:-main}
|
|
254
|
+
git fetch origin "$DEFAULT_BRANCH" && git rebase "origin/$DEFAULT_BRANCH"
|
|
255
|
+
```
|
|
250
256
|
- Resolve conflicts (do NOT use destructive shortcuts)
|
|
251
257
|
- Force-push with lease: `git push --force-with-lease`
|
|
252
258
|
- Re-run `gh pr create`
|
|
253
259
|
|
|
254
|
-
**If porch's
|
|
260
|
+
**If porch's consultation fails (e.g., model unavailable):**
|
|
255
261
|
- `porch done` will report the failure. Inspect `codev/projects/{{project_id}}-*/{{project_id}}-<model>.txt` for the failure details.
|
|
256
262
|
- Re-run `porch done {{project_id}}` once — porch will retry the consult.
|
|
257
263
|
- If the model is persistently unavailable, notify the architect and ask whether to proceed without that model's verdict. They may direct you to skip via a manual override.
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
{
|
|
71
71
|
"id": "review",
|
|
72
72
|
"name": "Review",
|
|
73
|
-
"description": "Write retrospective (arch + lessons), push, open PR with review as body, run
|
|
73
|
+
"description": "Write retrospective (arch + lessons), push, open PR with review as body, run 3-way consultation, then wait at pr gate while the human merges on GitHub",
|
|
74
74
|
"type": "build_verify",
|
|
75
75
|
"build": {
|
|
76
76
|
"prompt": "review.md",
|
|
@@ -101,7 +101,7 @@ The builder:
|
|
|
101
101
|
2. Updates `codev/resources/arch.md` and/or `codev/resources/lessons-learned.md` if real changes need recording. If not, the review file's sections state "no changes needed" with a one-line explanation (the porch `checks` block enforces section presence, not content).
|
|
102
102
|
3. Commits the review file (and arch / lessons updates if any) and pushes
|
|
103
103
|
4. Opens a PR with `gh pr create`; PR body is the review file content + `Fixes #<N>`. Records the PR with `porch done <id> --pr <M> --branch <name>`.
|
|
104
|
-
5. Runs `porch done <id>` — porch's `verify` block runs
|
|
104
|
+
5. Runs `porch done <id>` — porch's `verify` block runs 3-way consultation (Gemini, Codex, Claude; type=impl) as a **single advisory pass** (`max_iterations: 1`); consultation outputs land in `codev/projects/<id>-*/`. There is no iterate-until-APPROVE loop: whatever the verdicts, porch records them and advances to the `pr` gate. A `REQUEST_CHANGES` is not auto-re-reviewed — the builder addresses or rebuts it, adds a regression test if it's a real defect, and escalates it in the architect notification so the human verifies it at the `pr` gate. Outcomes are not auto-appended to the PR body; reviewers with the worktree read them from the projects dir.
|
|
105
105
|
6. The `pr` gate fires (pending) regardless of verdict. Builder notifies the architect once — leading with any `REQUEST_CHANGES` and its disposition (since PIR will not re-review it) rather than burying it in a flat status line.
|
|
106
106
|
7. Builder waits at the `pr` gate. The human reviews the PR on GitHub, then approves the `pr` gate (Cmd+K G or `porch approve <id> pr --a-human-explicitly-approved-this`). Porch wakes the builder.
|
|
107
107
|
8. Builder verifies the gate is genuinely approved via `porch next` (defensive — typed prose can't trigger this branch, only real porch state does), then runs `gh pr merge --merge`, records via `porch done --merged <M>`, and sends the cleanup-ready notification. Protocol complete (`next: null`).
|
|
@@ -152,13 +152,11 @@ Without `worktree.devCommand`, `afx dev` won't work and the `dev-approval` gate
|
|
|
152
152
|
|
|
153
153
|
- **plan**: human-only review. No AI consultation.
|
|
154
154
|
- **implement**: no AI consult — the human at the `dev-approval` gate is the sole reviewer of the running code.
|
|
155
|
-
- **review**:
|
|
155
|
+
- **review**: 3-way consultation (Gemini, Codex, Claude; type=impl) after the PR is opened, as a **single advisory pass** (`max_iterations: 1`). Same consult type (`impl`) as BUGFIX / AIR's PR-creation consult.
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
The consultation at the PR is a single pass — there is **no iterate-until-APPROVE loop**. A `REQUEST_CHANGES` does not block or re-trigger it; the builder addresses or rebuts it and escalates it to the human at the `pr` gate, who is the sole remaining reviewer of any resulting fix (the consultation does not re-check it).
|
|
158
158
|
|
|
159
|
-
Net: PIR
|
|
160
|
-
|
|
161
|
-
**The 2-model footprint is a design invariant.** porch's model precedence is *config > protocol* (`porch.consultation.models` in `.codev/config.json` overrides a protocol's declared `verify.models`). A project-wide setting tuned for SPIR (gemini + codex + claude) will silently inflate PIR to a 3-model pass, breaking the BUGFIX/AIR-parity cost story. To keep PIR at CMAP-2, leave `porch.consultation.models` unset or scope it per-protocol.
|
|
159
|
+
Net: PIR's distinguishing features are the two human gates (`plan-approval`, `dev-approval`), not AI-consult density.
|
|
162
160
|
|
|
163
161
|
To disable consultation entirely, say "without multi-agent consultation" when starting work.
|
|
164
162
|
|
|
@@ -74,11 +74,11 @@ The architect MAY request a PR at any point — for spec review, mid-implementat
|
|
|
74
74
|
Your worktree is persistent — it survives across PR merges. When the architect asks for sequential PRs (e.g., to slice a large spec into shippable pieces), use this loop:
|
|
75
75
|
|
|
76
76
|
1. Cut a branch, open a PR, wait for merge
|
|
77
|
-
2. After merge: `git fetch origin
|
|
77
|
+
2. After merge: `git fetch origin <integration-branch> && git checkout -b <next-branch> origin/<integration-branch>` — where `<integration-branch>` is the branch the architect targets PRs at (usually `main`; check the open PR's `baseRefName` if unsure)
|
|
78
78
|
3. Continue to the next slice, open another PR
|
|
79
79
|
4. Repeat
|
|
80
80
|
|
|
81
|
-
**Important**: Do NOT run `git checkout
|
|
81
|
+
**Important**: Do NOT run `git checkout <integration-branch>` — git worktrees cannot check out a branch that's checked out elsewhere. Always branch off `origin/<integration-branch>` via fetch.
|
|
82
82
|
|
|
83
83
|
Record PRs in status.yaml: `porch done {{project_id}} --pr <N> --branch <name>`
|
|
84
84
|
Record merges: `porch done {{project_id}} --merged <N>`
|
|
@@ -86,7 +86,7 @@ Record merges: `porch done {{project_id}} --merged <N>`
|
|
|
86
86
|
## Verify Phase
|
|
87
87
|
|
|
88
88
|
After the final PR merges, the project enters the **verify** phase. You stay alive through verify:
|
|
89
|
-
1. Pull
|
|
89
|
+
1. Pull the integration branch into your worktree
|
|
90
90
|
2. Run `porch done {{project_id}}` to signal verification is ready
|
|
91
91
|
3. The architect approves `verify-approval` when satisfied
|
|
92
92
|
|
|
@@ -28,10 +28,14 @@ You are performing a final self-check during the Review phase. The builder has c
|
|
|
28
28
|
- Are any new APIs documented?
|
|
29
29
|
|
|
30
30
|
5. **PR Readiness**
|
|
31
|
-
- Is the branch up to date with
|
|
31
|
+
- Is the branch up to date with its base (the integration branch the PR targets)?
|
|
32
32
|
- Are commits atomic and well-described?
|
|
33
33
|
- Is the change diff reasonable in size?
|
|
34
34
|
|
|
35
|
+
## Scope
|
|
36
|
+
|
|
37
|
+
- **DO NOT** flag the syntax of `git diff` examples that appear in review-file prose (e.g., `git diff ci..HEAD` inside a "Files Changed" caption or "How to Test Locally" section). Quoted diff syntax is documentation, not a command. Apply two-dot/three-dot scrutiny only to diffs you compute yourself.
|
|
38
|
+
|
|
35
39
|
## Verdict Format
|
|
36
40
|
|
|
37
41
|
After your review, provide your verdict in exactly this format:
|