@miraland-labs/conduit-bridge 0.16.171 → 0.16.172
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/dist/execution.js +7 -6
- package/dist/failure-signal.js +1 -0
- package/package.json +1 -1
package/dist/execution.js
CHANGED
|
@@ -2219,11 +2219,11 @@ async function runAttempt(client, config, driver, workspace, brief, taskId, watc
|
|
|
2219
2219
|
landContinuationUsed,
|
|
2220
2220
|
landBaseCommit: deliveryBaseCommit,
|
|
2221
2221
|
});
|
|
2222
|
-
if (
|
|
2222
|
+
if (landed.kind === "failed") {
|
|
2223
2223
|
failedLandResult = landed.result;
|
|
2224
2224
|
}
|
|
2225
2225
|
else {
|
|
2226
|
-
report = landed;
|
|
2226
|
+
report = landed.report;
|
|
2227
2227
|
// Mechanical land path: the agent only pushes; Bridge pushes again if needed and the control
|
|
2228
2228
|
// plane opens the change request with the organization's forge connection.
|
|
2229
2229
|
report = await ensureDeliveryPullRequest({
|
|
@@ -2499,7 +2499,7 @@ async function runLandContinuationTurn(input) {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
async function finalizeRepositoryLand(input) {
|
|
2501
2501
|
if (!requiresLandCommit({ grants: input.grants, spec: input.spec }))
|
|
2502
|
-
return input.report;
|
|
2502
|
+
return { kind: "landed", report: input.report };
|
|
2503
2503
|
const applyLand = async (report) => {
|
|
2504
2504
|
const land = await ensureLandCommit({
|
|
2505
2505
|
workspace: input.workspace,
|
|
@@ -2520,7 +2520,7 @@ async function finalizeRepositoryLand(input) {
|
|
|
2520
2520
|
return report;
|
|
2521
2521
|
};
|
|
2522
2522
|
try {
|
|
2523
|
-
return await applyLand(input.report);
|
|
2523
|
+
return { kind: "landed", report: await applyLand(input.report) };
|
|
2524
2524
|
}
|
|
2525
2525
|
catch (error) {
|
|
2526
2526
|
if (!(error instanceof AgentNoLandCommitError))
|
|
@@ -2559,7 +2559,7 @@ async function finalizeRepositoryLand(input) {
|
|
|
2559
2559
|
catch {
|
|
2560
2560
|
// Land may have succeeded even when the continuation envelope is malformed — git is authoritative.
|
|
2561
2561
|
}
|
|
2562
|
-
return applyLand(report);
|
|
2562
|
+
return { kind: "landed", report: await applyLand(report) };
|
|
2563
2563
|
}
|
|
2564
2564
|
function buildDeliveryRepairPrompt(issues, previousReply, acceptance, options = {}) {
|
|
2565
2565
|
const replyTail = redactSecrets(previousReply.slice(-8_000));
|
|
@@ -3310,6 +3310,7 @@ export async function flushTerminal(client, taskId) {
|
|
|
3310
3310
|
const { failure, signal: _signal, delivery_packet: _packet, repair_brief: _brief, ...rest } = active.terminal.body;
|
|
3311
3311
|
const refusal = `Terminal report rejected by the Control Plane: ${error.message}\n${JSON.stringify(error.details ?? null)}`;
|
|
3312
3312
|
const cause = failure && typeof failure === "object" ? failure : null;
|
|
3313
|
+
console.error(`Assignment ${taskId}: the Control Plane refused the ${active.terminal.action} report for attempt ${active.attemptId}: ${redactSecrets(refusal)}`);
|
|
3313
3314
|
await client.updateAttempt(taskId, {
|
|
3314
3315
|
terminal: {
|
|
3315
3316
|
action: "fail",
|
|
@@ -3327,7 +3328,7 @@ export async function flushTerminal(client, taskId) {
|
|
|
3327
3328
|
next_action: boundedSentence(cause.next_action),
|
|
3328
3329
|
diagnostic_detail: boundedDetail(`${refusal}\n${typeof cause.diagnostic_detail === "string" ? cause.diagnostic_detail : ""}`),
|
|
3329
3330
|
}
|
|
3330
|
-
: bridgeCause("
|
|
3331
|
+
: bridgeCause("terminal_report_refused", refusal),
|
|
3331
3332
|
idempotency_key: rejectedKey,
|
|
3332
3333
|
},
|
|
3333
3334
|
},
|
package/dist/failure-signal.js
CHANGED
|
@@ -129,6 +129,7 @@ export const BRIDGE_CAUSES = {
|
|
|
129
129
|
verification_failed_after_run: { class: "transient", disposition: "retry", responsible_party: "conduit", message: "The agent run failed its own verification before delivery.", next_action: "Conduit will diagnose the retained failed run and brief the next authoring attempt." },
|
|
130
130
|
bridge_finalize_failed: { class: "platform", disposition: "stop", responsible_party: "conduit", message: "Bridge stopped while finishing the delivery report.", next_action: "Inspect Bridge logs for the finalize fault. Fix Bridge or open a revision if the plan is wrong, then Retry." },
|
|
131
131
|
work_package_invalid: { class: "platform", disposition: "stop", responsible_party: "conduit", message: "Bridge refused this work package: this Bridge release does not know its shape.", next_action: "Update Bridge and Conduit to the same release, then Retry. The work package itself needs no change from you." },
|
|
132
|
+
terminal_report_refused: { class: "platform", disposition: "stop", responsible_party: "conduit", message: "Conduit refused Bridge's report for this run: this Bridge release and Conduit disagree on the report shape.", next_action: "Update Bridge and Conduit to the same release, then Retry. The work itself needs no change from you." },
|
|
132
133
|
bridge_preflight_missing: { class: "environment", disposition: "hold", responsible_party: "computer_operator", message: "This computer has not reported Bridge readiness.", next_action: "Run Bridge Doctor and reinstall or restart the background service, then recheck readiness." },
|
|
133
134
|
bridge_preflight_stale: { class: "environment", disposition: "hold", responsible_party: "computer_operator", message: "This computer's Bridge readiness report is stale.", next_action: "Wake or restart the Bridge and wait for a fresh heartbeat, then recheck readiness." },
|
|
134
135
|
hosted_computer: { class: "environment", disposition: "hold", responsible_party: "conduit", message: "This hosted computer is Conduit's responsibility.", next_action: "Conduit fixes the hosted computer; Recheck runs the work package again." },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miraland-labs/conduit-bridge",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.172",
|
|
4
4
|
"description": "Conduit Bridge CLI \u2014 join, connect, disconnect, multi-driver lanes, and run Claude Code / Codex / Cursor / OpenCode / Pi / Kiro / Antigravity / Grok Build agents for a Conduit organization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|