Skip to content

Commit 03830bd

Browse files
V48: QA Deposit Try Pcc Reason
Tag: QA Pipeline Deposit Phase Setup Agent Clone-Vcs Step Try Failsafe Prepare-Concise-Context Thinking Reason Call-Site Resume deposit progressive QA at Try PCC reason after Plan close. Accept §1.D8: keys-only selection under Try, no useTools, conf 0.92, debugStop callCount 15.
1 parent 584dd5f commit 03830bd

2 files changed

Lines changed: 98 additions & 17 deletions

File tree

.qa/BITCODE_V48_CANONICAL_PROMOTION_ACCEPTANCE.md

Lines changed: 92 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
| § | Topic | Status |
3131
| --- | --- | --- |
32-
| 1 | Every-call / every-pipeline LLM debug | **Partial** (read 1.1; deposit **Plan step complete** 1.D1–1.D7; Try fence) |
33-
| 2 | SDIVF deposit pipeline production-like accept | **Partial** (clone-vcs **Plan step closed**; Try not yet) |
32+
| 1 | Every-call / every-pipeline LLM debug | **Partial** (read 1.1; deposit 1.D1–1.D8; **Try PCC reason**) |
33+
| 2 | SDIVF deposit pipeline production-like accept | **Partial** (clone-vcs Plan closed; Try PCC started) |
3434
| 3 | SDIVF read pipeline production-like accept | Open (partial offline via §1.1) |
3535
| 4 | Settle Simple pipeline production-like accept | Open |
3636
| 5 | Discovery law (wave-1 parallel → product search keys) | Open |
@@ -75,9 +75,9 @@ pnpm --filter @bitcode/pipeline-hosts run qa:read:debug-first-llm
7575
| `BITCODE_DEBUG_FORCE_CLONE_PTRR` | `1` | Force real clone PTRR agent |
7676
| `BITCODE_DEBUG_STOP_AFTER_FIRST_REASON` | `1` | Hard-stop **flag** name (historical); generation pin is separate |
7777
| `BITCODE_DEBUG_STOP_PHASE` | `setup` | |
78-
| `BITCODE_DEBUG_STOP_STEP` | **`try`** (Plan-complete fence; was plan) | +1 after 1.D6 / Plan close |
79-
| `BITCODE_DEBUG_STOP_FAILSAFE` | **`prepare_concise_context`** (Try PCC; Plan used CS SO) | fence after Plan |
80-
| `BITCODE_DEBUG_STOP_GENERATION` | **`reason`** (Try PCC reason fence) | first LLM after Plan |
78+
| `BITCODE_DEBUG_STOP_STEP` | **`try`** | progressive Try (after 1.D7 Plan close) |
79+
| `BITCODE_DEBUG_STOP_FAILSAFE` | **`prepare_concise_context`** | Try PCC selection |
80+
| `BITCODE_DEBUG_STOP_GENERATION` | **`reason`** | Try PCC reason (1.D8) |
8181
| `BITCODE_DEBUG_STOP_AGENT_FILTER` | `clone-vcs` | |
8282
| `BITCODE_LLM_PROVIDER` / `BITCODE_LLM_MODEL` | anthropic / `claude-haiku-4-5` | |
8383

@@ -1254,11 +1254,94 @@ Nested bulk under a **selected** key (e.g. `#pipeline:input` → depositoryAsset
12541254

12551255
---
12561256

1257+
### 1.D8 Deposit · Setup · clone-vcs · **Try** · PCC · reason
1258+
1259+
- **status:** **Accepted (fully successful call-site; Try PCC selection reason)**
1260+
- **date:** 2026-07-16
1261+
- **commit_tag:** `QA Pipeline Deposit Phase Setup Agent Clone-Vcs Step Try Failsafe Prepare-Concise-Context Thinking Reason Call-Site`
1262+
- **pipeline:** `ExecutionPipelineSDIVFSynthesizeDepositAssetPacks`
1263+
- **phase:** setup
1264+
- **agent:** `asset-pack-clone-vcs-repository-agent`
1265+
- **step:** **try**
1266+
- **failsafe:** prepare_concise_context
1267+
- **thinking:** reason
1268+
- **execution_path:**
1269+
`…/agent:asset-pack-clone-vcs-repository-agent → try → … → failsafe:prepare_concise_context → selection → seq-0 → thinkings:reason`
1270+
- **provider / model:** anthropic / `claude-haiku-4-5-20251001`
1271+
- **usage:** 4480 in / 465 out / 4945 total (Try PCC reason)
1272+
- **harness:** `ok: true`, `debugStop: true`, `callCount: 15`, stopStep=`try`, stopFailsafe=`prepare_concise_context`, stopGeneration=`reason`
1273+
- **abort:** `hard-stop after try/prepare_concise_context/reason agent=asset-pack-clone-vcs-repository-agent`
1274+
1275+
#### expected_schemas
1276+
1277+
| Layer | Schema | Notes |
1278+
| --- | --- | --- |
1279+
| **thinking_return** | ReasoningSchema | PCC selection only — **not** clone task |
1280+
| **PCC terminal** | later SO `{ selectedKeys }` | Not this call |
1281+
1282+
#### tools
1283+
1284+
| | |
1285+
| --- | --- |
1286+
| **usable (Try step)** | clone tool on try node (system documents Try execution) |
1287+
| **this call useTools** | **omitted** (correct — PCC reason never selects tools) |
1288+
| **executed** | none |
1289+
1290+
#### contextful_inputs
1291+
1292+
- Lean PCC user: task identity (phase setup, agent clone-vcs, **PTRR step: try**) + `pipeline_execution_keys` (keys only).
1293+
- Full hierarchy system: Execution once + Setup + Agent VCS + **TRY** purpose + PCC law + Reason.
1294+
- Plan already complete (1.D1–1.D7); Try must select keys for **execution** of clone.
1295+
1296+
#### completion (summary)
1297+
1298+
Valid Reasoning: analysis + reasoningItems + conclusion + confidence **0.92**; **no selectedKeys**; **no useTools**.
1299+
Candidates for SO: deposit repository + source-safety triad, host manifestRoot/sourceRevision, pipeline input/userId/synthesizeMode.
1300+
Explicit: “No tools are invoked in this Reason generation.”
1301+
1302+
#### excellence
1303+
1304+
| Axis | Result |
1305+
| --- | --- |
1306+
| **schema_parse** | **Pass** |
1307+
| **role** | **Pass** — PCC key selection under **Try**, not Plan strategy, not clone execution |
1308+
| **task_quality** | **Pass** — deposit/host coords + safety for clone; omits lineage/debug |
1309+
| **prompt_hygiene** | **Pass** — 6-block hierarchy; keys-only user; no settleDelivery |
1310+
| **tools law** | **Pass** — PCC omits useTools; Try tool surface reserved for later CS task SO |
1311+
1312+
#### residual
1313+
1314+
- Conclusion text says “7 keys” while listing more namespaces (count soft inconsistency — SO will normalize).
1315+
- Prefer `#host:sourceRevision` over empty `#deposit:repository` coordinates when SO runs (same as Plan PCC residual).
1316+
1317+
#### stability_confidence
1318+
1319+
- **0.93** that this Try PCC reason call-site is successful; marker may advance to **Try PCC judge**.
1320+
1321+
#### decision
1322+
1323+
| | |
1324+
| --- | --- |
1325+
| **this stop** | **Accepted** |
1326+
| **next marker** | Try · prepare_concise_context · **judge** |
1327+
| **not yet** | Try PCC SO → CS → useTools → clone tool; remaining Setup |
1328+
1329+
#### artifacts
1330+
1331+
| Kind | Path |
1332+
| --- | --- |
1333+
| Request | `.tmp/llm-call-debug/…/0013-request-…-try-prepare_concise_context-reason.json` |
1334+
| Response | `.tmp/llm-call-debug/…/0014-response-…-try-prepare_concise_context-reason.json` |
1335+
| Abort | `.tmp/llm-call-debug/…/0015-abort-…-try-…-reason.json` |
1336+
| Re-run | `pnpm --filter @bitcode/pipeline-hosts run qa:deposit:debug-first-llm` |
1337+
1338+
---
1339+
12571340
### 1.2+ Read next / Deposit next
12581341

1259-
- **1.D8** Deposit · Setup · clone-vcs · **Try** · PCC · judge (or progressive Try Thinkings)
1342+
- **1.D9** Deposit · Setup · clone-vcs · **Try** · PCC · **judge**
12601343
- **1.2** Read · Setup · clone-vcs · Plan · PCC · **judge**
1261-
- **1.D9+** Try CS / tools / clone; remaining Setup; Discovery · … · settle
1344+
- **1.D10+** Try PCC SO → CS tools/clone; remaining Setup; Discovery · …
12621345

12631346
---
12641347

@@ -1268,8 +1351,8 @@ Nested bulk under a **selected** key (e.g. `#pipeline:input` → depositoryAsset
12681351

12691352
- **status:** **Partial**
12701353
- **criterion:** full Setup→…→Finish deposit run under LocalHost / production-like accept with real inference; until then, §1 deposit call-by-call rows are the progressive proof.
1271-
- **proof (current):** §1.D1–1.D7 clone-vcs **Plan step complete** (PCC+CS Thinkings; Stitch stitchCount=0); Try fenced at first PCC reason.
1272-
`pnpm --filter @bitcode/pipeline-hosts run qa:deposit:debug-first-llm``debugStop: true`, stopStep=`try`, callCount=15.
1354+
- **proof (current):** §1.D1–1.D7 Plan complete; §1.D8 Try PCC reason Accepted.
1355+
`pnpm --filter @bitcode/pipeline-hosts run qa:deposit:debug-first-llm``debugStop: true`, stopStep=`try`, stopGeneration=`reason`, callCount=15.
12731356

12741357
### §3 SDIVF read pipeline production-like accept
12751358

packages/pipeline-hosts/src/dev/run-local-deposit-pipeline-debug.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ writeFileSync(
136136
);
137137

138138
// --- Debug abort marker (advance only after §1 acceptance) ---
139-
// Target: first LLM *after* Plan completes — Try · PCC · reason.
140-
// Proves Plan failsafe triple (PCC → CS → Stitch pass-through or stitch LLM)
141-
// finished; stitch is often zero-LLM when CS SO is schema-valid.
139+
// Target: Setup clone-vcs → Try → prepare_concise_context → reason
140+
// (§1.D8 progressive Try PCC after Plan closed at 1.D7).
142141
// FORCE_CLONE_PTRR skips host clone/env/workspace short-circuits so the real
143142
// factoryPTRRAgent (Plan→Try→Retry→Refine) + clone tool path runs.
144143
// Note: BITCODE_DEBUG_STOP_AFTER_FIRST_REASON is the hard-stop *flag* name;
@@ -183,15 +182,14 @@ writeFileSync(
183182
'```',
184183
'phase: setup',
185184
'agent: clone-vcs (asset-pack-clone-vcs-repository-agent)',
186-
'step: try (fence after Plan complete)',
185+
'step: try',
187186
'failsafe: prepare_concise_context',
188187
'generation: reason',
189188
'BITCODE_DEBUG_FORCE_CLONE_PTRR=1',
190189
'```',
191190
'',
192191
'PTRR order under test: Plan → Try → Retry → Refine.',
193-
'This stop fences Plan completion (PCC+CS+Stitch). After §1 accepts Plan close,',
194-
'continue progressive Try validation (judge / SO / tools).',
192+
'After this call is accepted in §1, advance to Try PCC judge.',
195193
'',
196194
'## Artifacts',
197195
'',
@@ -440,7 +438,7 @@ const summary = {
440438
callCount: latestCalls.length,
441439
forceClonePtrr: true,
442440
expectedAbort:
443-
'Setup → clone-vcs → Try → prepare_concise_context → reason (Plan complete fence)',
441+
'Setup → clone-vcs → Try → prepare_concise_context → reason',
444442
ptrrOrder: 'Plan → Try → Retry → Refine',
445443
stopGeneration: env.BITCODE_DEBUG_STOP_GENERATION,
446444
stopFailsafe: env.BITCODE_DEBUG_STOP_FAILSAFE,
@@ -450,7 +448,7 @@ const summary = {
450448
writeFileSync(join(workRoot, 'debug-summary.json'), JSON.stringify(summary, null, 2));
451449
console.log(JSON.stringify(summary, null, 2));
452450

453-
// Success for this pass: hard stop after first Try PCC reason (Plan finished).
451+
// Success for this pass: hard stop after Try PCC reason.
454452
// Exit may be non-zero because of the intentional throw.
455453
if (debugStop) process.exit(0);
456454
process.exit(run.status === 0 ? 0 : 1);

0 commit comments

Comments
 (0)