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
36 changes: 33 additions & 3 deletions contracts/job-allocation/v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@
"node",
"cluster",
"observed_at",
"expires_at",
"cpu_topology",
"numa",
"gpus",
Expand Down Expand Up @@ -611,7 +610,10 @@
},
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
"enum": [
"node.interconnect/v1",
"node.interconnect/v2"
]
},
"node": {
"$ref": "#/$defs/hardware_record/$defs/ref"
Expand Down Expand Up @@ -863,6 +865,33 @@
"$ref": "#/$defs/hardware_record/$defs/cpuIds"
}
}
},
"review_after": {
"$ref": "#/$defs/hardware_record/$defs/timestamp"
}
},
"if": {
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
}
}
},
"then": {
"required": [
"expires_at"
],
"not": {
"required": [
"review_after"
]
}
},
"else": {
"not": {
"required": [
"expires_at"
]
}
}
},
Expand Down Expand Up @@ -926,7 +955,8 @@
"record_invalid",
"node_limit",
"size_limit",
"node_restarted"
"node_restarted",
"not_yet_observed"
]
}
}
Expand Down
36 changes: 33 additions & 3 deletions contracts/job-allocation/v3/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@
"node",
"cluster",
"observed_at",
"expires_at",
"cpu_topology",
"numa",
"gpus",
Expand Down Expand Up @@ -611,7 +610,10 @@
},
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
"enum": [
"node.interconnect/v1",
"node.interconnect/v2"
]
},
"node": {
"$ref": "#/$defs/hardware_record/$defs/ref"
Expand Down Expand Up @@ -863,6 +865,33 @@
"$ref": "#/$defs/hardware_record/$defs/cpuIds"
}
}
},
"review_after": {
"$ref": "#/$defs/hardware_record/$defs/timestamp"
}
},
"if": {
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
}
}
},
"then": {
"required": [
"expires_at"
],
"not": {
"required": [
"review_after"
]
}
},
"else": {
"not": {
"required": [
"expires_at"
]
}
}
},
Expand Down Expand Up @@ -926,7 +955,8 @@
"record_invalid",
"node_limit",
"size_limit",
"node_restarted"
"node_restarted",
"not_yet_observed"
]
}
}
Expand Down
36 changes: 33 additions & 3 deletions contracts/job-placement/v1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,6 @@
"node",
"cluster",
"observed_at",
"expires_at",
"cpu_topology",
"numa",
"gpus",
Expand Down Expand Up @@ -864,7 +863,10 @@
},
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
"enum": [
"node.interconnect/v1",
"node.interconnect/v2"
]
},
"node": {
"$ref": "#/$defs/hardware_record/$defs/ref"
Expand Down Expand Up @@ -1116,6 +1118,33 @@
"$ref": "#/$defs/hardware_record/$defs/cpuIds"
}
}
},
"review_after": {
"$ref": "#/$defs/hardware_record/$defs/timestamp"
}
},
"if": {
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
}
}
},
"then": {
"required": [
"expires_at"
],
"not": {
"required": [
"review_after"
]
}
},
"else": {
"not": {
"required": [
"expires_at"
]
}
}
},
Expand Down Expand Up @@ -1179,7 +1208,8 @@
"record_invalid",
"node_limit",
"size_limit",
"node_restarted"
"node_restarted",
"not_yet_observed"
]
}
}
Expand Down
36 changes: 33 additions & 3 deletions contracts/job-placement/v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@
"node",
"cluster",
"observed_at",
"expires_at",
"cpu_topology",
"numa",
"gpus",
Expand Down Expand Up @@ -900,7 +899,10 @@
},
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
"enum": [
"node.interconnect/v1",
"node.interconnect/v2"
]
},
"node": {
"$ref": "#/$defs/hardware_record/$defs/ref"
Expand Down Expand Up @@ -1152,6 +1154,33 @@
"$ref": "#/$defs/hardware_record/$defs/cpuIds"
}
}
},
"review_after": {
"$ref": "#/$defs/hardware_record/$defs/timestamp"
}
},
"if": {
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
}
}
},
"then": {
"required": [
"expires_at"
],
"not": {
"required": [
"review_after"
]
}
},
"else": {
"not": {
"required": [
"expires_at"
]
}
}
},
Expand Down Expand Up @@ -1215,7 +1244,8 @@
"record_invalid",
"node_limit",
"size_limit",
"node_restarted"
"node_restarted",
"not_yet_observed"
]
}
}
Expand Down
36 changes: 33 additions & 3 deletions contracts/managed-run-placement/v1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,6 @@
"node",
"cluster",
"observed_at",
"expires_at",
"cpu_topology",
"numa",
"gpus",
Expand Down Expand Up @@ -1396,7 +1395,10 @@
},
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
"enum": [
"node.interconnect/v1",
"node.interconnect/v2"
]
},
"node": {
"$ref": "#/$defs/hardware_record/$defs/ref"
Expand Down Expand Up @@ -1648,6 +1650,33 @@
"$ref": "#/$defs/hardware_record/$defs/cpuIds"
}
}
},
"review_after": {
"$ref": "#/$defs/hardware_record/$defs/timestamp"
}
},
"if": {
"properties": {
"schema_version": {
"const": "node.interconnect/v1"
}
}
},
"then": {
"required": [
"expires_at"
],
"not": {
"required": [
"review_after"
]
}
},
"else": {
"not": {
"required": [
"expires_at"
]
}
}
},
Expand Down Expand Up @@ -1711,7 +1740,8 @@
"record_invalid",
"node_limit",
"size_limit",
"node_restarted"
"node_restarted",
"not_yet_observed"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions contracts/native-topology-source.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"repository": "AI4SAI/sai-portal",
"path": "sai_native_topology.py",
"revision": "5becfe3d9f84767e1461aad342a48c49d98807b2",
"sha256": "e47bb673b644435c91086f3e7c2718256a410a9c1981782a1d01676d9de721df"
"revision": "15a5bcc7c2e38e0d1a7c0c36a068a605b915f104",
"sha256": "af9781be2dda2cfdf62ed77581b22f3ea2b71f9b65efbe62c86bb330593d2a1b"
}
14 changes: 14 additions & 0 deletions contracts/node-interconnect/v1/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Node interconnect facts, v1

The existing operator normalizer also emits `node.interconnect/v2` from a
capture by default. The v2 schema is in [the adjacent version](../v2/schema.json).
It keeps the hardware and optional CPU-map observation times. An optional
`--review-after` records when the operator plans to review the evidence.
Readers can continue to use a published v2 observation after that date when
the allocation, configuration and native daemon generation still match.
Hardware replacement, rewiring or an incompatible mapping requires the
publisher to withdraw or replace the affected record. Reuse of a node name or
unchanged device counts is insufficient evidence that its hardware is unchanged.

An explicit `--expires-at` still emits v1 and its deadline remains binding.
The join envelope accepts both record versions. Upgrade stored-schema consumers
and their embedded validators before the publisher switches records to v2.

`node.interconnect/v1` is a bounded, read-only projection of one compute node's
hardware relationships. It is a view over native observations, not a scheduler,
asset database, or utilization stream. The producer records a node-local
Expand Down
Loading
Loading