Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ describe("OpenClaw launch-readiness pairing qualification", () => {
});

expect(observeOrdinarySettlement()).toEqual({
state: "pairing-only",
state: "scope-upgrade-pending",
deviceIdentitySha256: expect.stringMatching(/^[a-f0-9]{64}$/),
});
expect(() => observeRepairSettlement()).toThrow(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,14 @@ export function parseOpenClawPairingSettlementObservation(
output: string,
): OpenClawPairingSettlementObservation | null {
const record = parseOpenClawPairingSettlementRecord(output);
if (!record || (record.state !== "pairing-only" && record.state !== "settled")) return null;
if (
!record ||
(record.state !== "pairing-only" &&
record.state !== "scope-upgrade-pending" &&
record.state !== "settled")
) {
return null;
}
return record as OpenClawPairingSettlementObservation;
}

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/openclaw-real-device-self-approval-proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ fs.statSync = function nemoclawProofStatSync(candidate, ...args) {
requireLiveProof(
portableRepairObservation.state === "pairing-pending" &&
portableRepairObservation.deviceIdentitySha256 ===
pairingOnlyObservation.deviceIdentitySha256,
pendingUpgradeObservation.deviceIdentitySha256,
"Portable repair observation did not preserve the canonical pending transition",
);
const pendingBeforeOrdinaryApproval = fs.readFileSync(pendingPath, "utf8");
Expand Down
Loading