P15.b DiffT Before 5211acfe95a0c6d82a60e2524b5e46b47fe67a3e After bb35b941115a0a9f818e8512eebe67c29ee68355 Threshold: ZERO semantic mismatches to declared oracle; ZERO reducer mismatches; all mandatory head assertions PASS. Compare each stream and service/upstream channel independently; ignore only cross-channel arrival interleaving. --- P15.b 5211acfe95a0c6d82a60e2524b5e46b47fe67a3e +++ P15.b bb35b941115a0a9f818e8512eebe67c29ee68355 @@ -37,55 +37,9 @@ "url": "https://github.com/proof-audit/status-fixture/pull/613" } } - } - ], - "expectedPredicate": true, - "observedPredicate": false, - "outcome": "FAIL", - "test": "pulled local published while second remote read held", - "virtualTimeMs": 0 - }, - { - "actual": 1, - "expectedPredicate": true, - "observedPredicate": true, - "outcome": "PASS", - "test": "exactly one pull", - "virtualTimeMs": 0 - }, - { - "actual": { - "result": { - "aheadCount": 0, - "aheadOfDefaultCount": 1, - "behindCount": 0, - "branchChanges": { - "baseRef": "origin/main", - "deletions": 0, - "insertions": 6 - }, - "hasPrimaryRemote": true, - "hasUpstream": true, - "hasWorkingTreeChanges": false, - "isDefaultRef": true, - "isRepo": true, - "pr": { - "baseRef": "main", - "headRef": "main", - "number": 613, - "state": "open", - "title": "Fixture A", - "url": "https://github.com/proof-audit/status-fixture/pull/613" - }, - "refName": "main", - "workingTree": { - "deletions": 0, - "files": [], - "insertions": 0 - } - }, - "snapshot": { - "_tag": "snapshot", + }, + { + "_tag": "localUpdated", "local": { "branchChanges": { "baseRef": "origin/main", @@ -102,34 +56,105 @@ "files": [], "insertions": 0 } + } + } + ], + "expectedPredicate": true, + "observedPredicate": true, + "outcome": "PASS", + "test": "pulled local published while second remote read held", + "virtualTimeMs": 0 + }, + { + "actual": 1, + "expectedPredicate": true, + "observedPredicate": true, + "outcome": "PASS", + "test": "exactly one pull", + "virtualTimeMs": 0 + }, + { + "actual": { + "result": { + "aheadCount": 0, + "aheadOfDefaultCount": 0, + "behindCount": 0, + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 6 }, - "remote": { - "aheadCount": 0, - "aheadOfDefaultCount": 1, - "behindCount": 0, - "hasUpstream": true, - "pr": { - "baseRef": "main", - "headRef": "main", - "number": 613, - "state": "open", - "title": "Fixture A", - "url": "https://github.com/proof-audit/status-fixture/pull/613" + "hasPrimaryRemote": true, + "hasUpstream": false, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "pr": null, + "refName": "B", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 + } + }, + "snapshot": { + "_tag": "snapshot", + "local": { + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 6 + }, + "hasPrimaryRemote": true, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "refName": "B", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 } - } + }, + "remote": null } }, "expectedPredicate": true, - "observedPredicate": false, - "outcome": "FAIL", + "observedPredicate": true, + "outcome": "PASS", "test": "switch discards post-pull A remote and returns B/null", "virtualTimeMs": 0 } ], - "branchProbeChannel": [], + "branchProbeChannel": [ + { + "branch": "main", + "virtualTimeMs": 0 + }, + { + "branch": "main", + "virtualTimeMs": 0 + }, + { + "branch": "main", + "virtualTimeMs": 0 + }, + { + "branch": "main", + "virtualTimeMs": 0 + }, + { + "branch": "main", + "virtualTimeMs": 0 + }, + { + "branch": "B", + "virtualTimeMs": 0 + } + ], "checkpoints": [ { - "localReads": 4, + "localReads": 5, "name": "remote-held", "pending": true, "pulls": 1, @@ -153,7 +178,7 @@ "pulls": 1, "result": { "aheadCount": 0, - "aheadOfDefaultCount": 1, + "aheadOfDefaultCount": 0, "behindCount": 0, "branchChanges": { "baseRef": "origin/main", @@ -161,18 +186,62 @@ "insertions": 6 }, "hasPrimaryRemote": true, - "hasUpstream": true, - "hasWorkingTreeChanges": false, - "isDefaultRef": true, - "isRepo": true, - "pr": { - "baseRef": "main", - "headRef": "main", - "number": 613, - "state": "open", - "title": "Fixture A", - "url": "https://github.com/proof-audit/status-fixture/pull/613" - }, + "hasUpstream": false, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "pr": null, + "refName": "B", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 + } + }, + "virtualTimeMs": 0 + } + ], + "invalidationChannel": [ + { + "kind": "invalidate-remote" + }, + { + "kind": "invalidate-local" + }, + { + "kind": "invalidate-all" + }, + { + "kind": "invalidate-remote" + }, + { + "kind": "invalidate-local" + }, + { + "kind": "invalidate-all" + }, + { + "kind": "invalidate-local" + }, + { + "kind": "invalidate-remote" + }, + { + "kind": "invalidate-local" + } + ], + "localReadChannel": [ + { + "local": { + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 1 + }, + "hasPrimaryRemote": true, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, "refName": "main", "workingTree": { "deletions": 0, @@ -180,21 +249,9 @@ "insertions": 0 } }, - "virtualTimeMs": 0 - } - ], - "invalidationChannel": [ - { - "kind": "invalidate-all" - }, - { - "kind": "invalidate-local" - }, - { - "kind": "invalidate-all" - } - ], - "localReadChannel": [ + "n": 1, + "virtualTimeMs": 0 + }, { "local": { "branchChanges": { @@ -213,7 +270,7 @@ "insertions": 0 } }, - "n": 1, + "n": 2, "virtualTimeMs": 0 }, { @@ -234,7 +291,7 @@ "insertions": 0 } }, - "n": 2, + "n": 3, "virtualTimeMs": 0 }, { @@ -255,7 +312,7 @@ "insertions": 0 } }, - "n": 3, + "n": 4, "virtualTimeMs": 0 }, { @@ -276,7 +333,28 @@ "insertions": 0 } }, - "n": 4, + "n": 5, + "virtualTimeMs": 0 + }, + { + "local": { + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 6 + }, + "hasPrimaryRemote": true, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "refName": "B", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 + } + }, + "n": 6, "virtualTimeMs": 0 } ], @@ -307,31 +385,18 @@ "hasWorkingTreeChanges": false, "isDefaultRef": true, "isRepo": true, - "refName": "main", + "refName": "B", "workingTree": { "deletions": 0, "files": [], "insertions": 0 } }, - "remote": { - "aheadCount": 0, - "aheadOfDefaultCount": 1, - "behindCount": 0, - "hasUpstream": true, - "pr": { - "baseRef": "main", - "headRef": "main", - "number": 613, - "state": "open", - "title": "Fixture A", - "url": "https://github.com/proof-audit/status-fixture/pull/613" - } - } + "remote": null }, "merged": { "aheadCount": 0, - "aheadOfDefaultCount": 1, + "aheadOfDefaultCount": 0, "behindCount": 0, "branchChanges": { "baseRef": "origin/main", @@ -339,19 +404,12 @@ "insertions": 6 }, "hasPrimaryRemote": true, - "hasUpstream": true, - "hasWorkingTreeChanges": false, - "isDefaultRef": true, - "isRepo": true, - "pr": { - "baseRef": "main", - "headRef": "main", - "number": 613, - "state": "open", - "title": "Fixture A", - "url": "https://github.com/proof-audit/status-fixture/pull/613" - }, - "refName": "main", + "hasUpstream": false, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "pr": null, + "refName": "B", "workingTree": { "deletions": 0, "files": [], @@ -587,7 +645,7 @@ }, { "event": { - "_tag": "snapshot", + "_tag": "localUpdated", "local": { "branchChanges": { "baseRef": "origin/main", @@ -603,27 +661,13 @@ "deletions": 0, "files": [], "insertions": 0 - } - }, - "remote": { - "aheadCount": 0, - "aheadOfDefaultCount": 1, - "behindCount": 0, - "hasUpstream": true, - "pr": { - "baseRef": "main", - "headRef": "main", - "number": 613, - "state": "open", - "title": "Fixture A", - "url": "https://github.com/proof-audit/status-fixture/pull/613" } } }, "merged": { "aheadCount": 0, "aheadOfDefaultCount": 1, - "behindCount": 0, + "behindCount": 2, "branchChanges": { "baseRef": "origin/main", "deletions": 0, @@ -650,6 +694,80 @@ } }, "virtualTimeMs": 0 + }, + { + "event": { + "_tag": "remoteUpdated", + "remote": null + }, + "merged": { + "aheadCount": 0, + "aheadOfDefaultCount": 0, + "behindCount": 0, + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 6 + }, + "hasPrimaryRemote": true, + "hasUpstream": false, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "pr": null, + "refName": "main", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 + } + }, + "virtualTimeMs": 0 + }, + { + "event": { + "_tag": "localUpdated", + "local": { + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 6 + }, + "hasPrimaryRemote": true, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "refName": "B", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 + } + } + }, + "merged": { + "aheadCount": 0, + "aheadOfDefaultCount": 0, + "behindCount": 0, + "branchChanges": { + "baseRef": "origin/main", + "deletions": 0, + "insertions": 6 + }, + "hasPrimaryRemote": true, + "hasUpstream": false, + "hasWorkingTreeChanges": false, + "isDefaultRef": true, + "isRepo": true, + "pr": null, + "refName": "B", + "workingTree": { + "deletions": 0, + "files": [], + "insertions": 0 + } + }, + "virtualTimeMs": 0 } ] }