docs: keep model results and identity comments public-facing

This commit is contained in:
pingqiu committed 2026-11-22 06:28:48 -08:00
1 parent 94a6c0de4b
commit 5e7728e65a
6 files changed
+28 -48

No files matched your search

@@ -33,7 +33,7 @@ func TestPublishTargetIsPrimaryOwned(t *testing.T) {
if !ok || got.ISCSIAddr != "192.0.2.1:3260" || got.Multipath || got.IQN != "iqn.v1" {
t.Fatalf("foreign target: %+v ok=%v, want only the primary's", got, ok)
}
// iSCSI paths match on IQN AND LUN (codex01): a supporting q/LUN2 is another target, never a path to the primary's q/LUN1
// iSCSI paths match on both IQN and LUN: a supporting q/LUN2 is another target, not a path to the primary's q/LUN1.
lun := func(replica, addr string, n uint32) *control.FrontendTarget {
return &control.FrontendTarget{Protocol: string(ProtocolISCSI), Addr: addr, Iqn: "iqn.q", Lun: n, ReplicaId: replica}
}
@@ -46,7 +46,7 @@ func TestPublishTargetIsPrimaryOwned(t *testing.T) {
t.Fatalf("nonzero LUN match: %+v ok=%v, want multipath primary-first at LUN 1", got, ok)
}
// two PRIMARY-owned units of one IQN (q/LUN1 at A, q/LUN2 at B) are two targets, never one multipath target with
// LUN1 for both (codex01: the final grouping binds IQN and LUN too)
// LUN1 for both: the final grouping also binds IQN and LUN.
got, ok = publishTargetFromStatus(status(lun("r1", "192.0.2.1:3260", 1), lun("r1", "192.0.2.2:3260", 2)), true, false)
if !ok || got.ISCSIAddr != "192.0.2.1:3260" || got.LUN != 1 || got.Multipath || len(got.ISCSIAddrs) != 0 {
t.Fatalf("two primary units: %+v ok=%v, want q/LUN1 at 192.0.2.1 alone (no multipath with LUN2's path)", got, ok)
@@ -115,7 +115,7 @@ func TestDisplayedPrimaryIsTheIssuedHolderNotThePlacementSlot(t *testing.T) {
}
}
}
// the whole primary row is the issued holder (codex01 P2): never placement's node-b carrying node-a's frontend
// The whole primary row names the issued holder, never placement's node-b carrying node-a's frontend.
if vol == nil || vol.node != "node-a" || vol.target != "127.0.0.1:3260" || vol.rowServer != "node-a" || vol.rowNode != "node-a" || vol.rowFrontend != "127.0.0.1:3260" {
t.Fatalf("displayed primary %+v, want node-a at 127.0.0.1:3260 in the volume and its primary row (the issued holder, not the placement slot or the old host)", vol)
}
@@ -296,7 +296,7 @@ func registerWorkspaceHolder(t *testing.T, h *Host, server string) {
}
}
// codex01 P1: a CSI client takes the first frontend as the primary. When the primary's evidence (from the line's server)
// A CSI client takes the first frontend as the primary. When the primary's evidence (from the line's server)
// is missing, the status lists NO frontend, even though supporting replicas report theirs; without the rule a
// supporting replica's frontend would be published under the primary identity.
func TestStatusListsNoFrontendWhenThePrimaryEvidenceIsMissing(t *testing.T) {
@@ -329,7 +329,7 @@ func (e inProcEvidence) QueryVolumeStatus(ctx context.Context, in *control.Statu
return e.s.QueryVolumeStatus(ctx, in)
}
// codex01 #416 P1-2: through the real CSI ControlStatusLookup, with supporting replicas reporting usable frontends, no
// Through the real CSI ControlStatusLookup, with supporting replicas reporting usable frontends, no
// target is published when the primary's slot (on the line's server) exists but carries no frontend, or when its only
// frontend is one CSI rejects (loopback, with loopback targets rejected). Control: the same lookup without the loopback
// rejection publishes the primary's own frontend.
@@ -374,7 +374,7 @@ func TestCSIPublishesNoTargetWhenThePrimaryFrontendIsMissingOrRejected(t *testin
}
}
// codex01 #416 P2: a workspace volume being deleted is still a workspace volume: its assignment stream keeps the holder
// A workspace volume being deleted is still a workspace volume: its assignment stream keeps the holder
// host check (a deletion reservation must not open a bypass).
func TestDeletionReservedWorkspaceVolumeKeepsTheStreamHostCheck(t *testing.T) {
r := newIsolationRig(t, false, t.TempDir(), t.TempDir())
@@ -398,7 +398,7 @@ func TestDeletionReservedWorkspaceVolumeKeepsTheStreamHostCheck(t *testing.T) {
}
}
// codex01 #416 P2 (INV-WS-RENEW-NONBLOCKING-001): a LIVE lease renewal through holderMatches, whose host check reads the
// INV-WS-RENEW-NONBLOCKING-001: a live lease renewal through holderMatches, whose host check reads the
// node registry, completes while a registration write is held (the store mutex RegisterNode keeps across file I/O). The
// hold is proven real: a concurrent RegisterNode does not finish until it is released.
func TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite(t *testing.T) {
@@ -56,7 +56,7 @@ func (s *services) workspaceVolumeForRenewal(volume string) error {
// isWorkspaceVolume reports whether volume is a workspace volume (workspace RPC on, an existing RF1 volume), from the
// lock-free lifecycle snapshot. Unlike workspaceVolumeForRenewal it ignores a deletion reservation: a volume being
// deleted is still a workspace volume, and its assignment stream keeps the holder host check (codex01 #416 P2).
// deleted is still a workspace volume, and its assignment stream keeps the holder host check.
func (s *services) isWorkspaceVolume(volume string) bool {
if !s.host.cfg.WorkspaceRPC || s.host.lifecycle == nil {
return false
@@ -110,7 +110,7 @@ func TestAssignmentHolderIdentityFencesPreviouslyHealthySameReplica(t *testing.T
}
}
// Endpoints are routing data, not the holder identity (claude06 ruling).
// INV-AUTH-HOLDER-IDENTITY-001: endpoint differences warn without refusing the matching holder.
func TestAssignmentHolderIdentityAdoptsAndWarnsCarriedEndpointMismatch(t *testing.T) {
for _, endpoint := range []string{"data", "control"} {
t.Run(endpoint, func(t *testing.T) {
+3 -3
View File
@@ -105,9 +105,9 @@ Each `.cfg` names its spec on its first line.
## Owner-label simulation results
[Workspace owner-label round 4: source pins and results](WorkspaceRegrant-owner-label-results.md)
is **SIMULATION ONLY** (3 seeds x 20,000 traces, depth 120); exhaustive round 4
`combo10` is **PENDING**. Counterexample lengths are counts of states, including
[Workspace owner-label simulation results](WorkspaceRegrant-owner-label-results.md)
is **SIMULATION ONLY** (3 seeds x 20,000 traces, depth 120); exhaustive checking
is **PENDING**. Counterexample lengths are counts of states, including
the initial state, not trace identifiers. These results are separate from the
exhausted bounds below.
@@ -1,49 +1,29 @@
# Workspace owner-label model: round 4 pins
# Workspace owner-label simulation results
This is a citation of claude06's external model and its reported simulations,
not an exhaustive public-spec result. Source bundle:
`V:/share/rdma/claude06-sw-tla-regrant-r0-20261122/`.
An assignment carries the owner of its published line. Reconstructing that
owner from a later store read can label a line with a different server when
the store view lags. An unknown moved owner remains empty, so the volume
refuses adoption; only a move-less line can use placement as its owner.
`WorkspaceRegrant.tla` round 4 maps `StreamLabelFromStore = FALSE` to
`Publisher.captureAssignmentOwner` -> immutable `AssignmentInfo` ->
`services.assignmentFact` -> `Host.workspaceLineOwner`. The lease view derives
the same owner metadata (`INV-LEASE-VIEW-001`). A moved unknown owner is empty;
only a move-less line falls back to placement (`INV-AUTH-HOLDER-IDENTITY-001`).
The TRUE switch injects a send-time owner store that can lag. This is a model
fault schedule, not evidence of a reachable pre-issued publication in current
Go code; the real P5 trace showed the old host refusing both foreign facts.
`NoForeignAdoption` checks that a process does not adopt another server's line.
`TargetNotFencedByOwnLine` checks that a target is not fenced by its own line
because its owner label was reconstructed incorrectly.
## Results and limits
Status: **SIMULATION ONLY**. `summary-r4.tsv` reports 3 seeds x 20,000 traces,
depth 120. Counterexample lengths below count states, including the initial
state; they are not trace identifiers. The exact configurations are:
Status: **SIMULATION ONLY**. The reported search used 3 seeds x 20,000 traces,
depth 120. Counterexample lengths count states, including the initial state;
they are not trace identifiers.
| Configuration | Reported result |
|---|---|
| `WR_id4_fix_label.cfg` | No violation in the simulations |
| `WR_id4_fix_label_ownline.cfg` | No violation in the simulations |
| `WR_id4_RED_label.cfg` | `NoForeignAdoption` violated; counterexamples contain 14, 17, 15 states |
| `WR_id4_RED_label_safety.cfg` | No safety-invariant violation in the simulations; lease layer stops the adopter |
| `WR_id4_RED_label_safety.cfg` | No safety-invariant violation in the simulations; lease validation stops the adopter |
| `WR_id4_fix_label_volguard.cfg` | `NoForeignAdoption` still violated; counterexamples contain 14, 17, 15 states; a fresh process has no recorded foreign line |
The result interpretation is in `REGRANT-REPORT.md`, "Round 4: adoption fence".
A simulation finding is a counterexample; no sampled violation does not prove
an invariant. Exhaustive round 4 is **PENDING** in claude06's next Azure slot,
bundle `combo10`, results expected under
`V:/share/rdma/claude06-tlc-azure-results-20261120/tlc-combo10-*`.
Date depends on the open budget decision. No exhaustive state count or GO claim
is made here. This pending model is not added to the Exhausted bounds table.
## Exact source pins
| Artifact (relative to source bundle) | SHA-256 |
|---|---|
| `WorkspaceRegrant.tla` | `d92922331afa2bb127d4f29b9d6fc266354c30b8d11a9a0bd3931e67d2c27d1c` |
| `cfg/WR_id4_fix_label.cfg` | `d716ed5a9d4fce039e2dda084901c789f85f5a44e03d2db28d30a17312ad199f` |
| `cfg/WR_id4_fix_label_ownline.cfg` | `49188ae6776114c9c4358bac0e0dbf8187622feba25a69c1aaf97ed0da8bcdc1` |
| `cfg/WR_id4_RED_label.cfg` | `d22cf52f84bc6b2eed4f0696e4f84285daba2fe5ad0111bbae3358da7a3d1d50` |
| `cfg/WR_id4_RED_label_safety.cfg` | `ca1b0b66fdeb4fef31d43a5efb4e3bb5ef501270f1a6441c8250fb084d4f0e69` |
| `cfg/WR_id4_fix_label_volguard.cfg` | `86fad07c3a9e321ea5dd52a1e4b104c61bdc34a3ce08b4bc123d9b2d97e47f65` |
| `summary-r4.tsv` | `4ca8155ff7c3922d5ff6b0880c41ef59ef13169cc1af9cc630f7fd06256cdbd3` |
| `REGRANT-REPORT.md` | `eab94a6d2e5d81ad9318cb56a90b77958b1a73719258c9500cf71f9c95fc286a` |
A counterexample demonstrates a failure in the model. No sampled violation
does not prove an invariant. Exhaustive checking is **PENDING**; no exhaustive
state count or safety proof is claimed. These results are separate from the
Exhausted bounds table.