Bind SYSTEM bootstrap to exact runtime and original process exit
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-16 14:37:53 +01:00
parent 9e64ccabdb
commit 4394b1bd85
4 changed files with 377 additions and 9 deletions
@@ -0,0 +1,229 @@
{
"schema_version": 1,
"scope": "actual_cloud_server_readonly_runtime_spec",
"target_mutations": false,
"activation_executed": false,
"source_controller_sha256": "e41f22a442176d49feeb0f99d8057973e8fb00b6c7295d121b58116427389d56",
"original_reports": [
{
"path": "devstate/windows-system-job-bootstrap/runtime-spec-read-only.json",
"sha256": "28e090370b661229af15d130a37b0153c0ef9c3d8bba6fac48880cff16b65552",
"result": {
"read_only": true,
"runtime_matches_resolved_compose": true,
"project_directory": "/opt/rust-discovery/deploy",
"roles": {
"api": "0fb4006de5facf6e3a04e874e2e58ab8a4c3cff5b4aeb62a6dcb7e19957217d2",
"gateway": "abd7f09a370d83697bbfb63721082e31bf85774265b63350abb77974df28a32e"
},
"private_environment_reported": false,
"target_mutations": false
}
},
{
"path": "devstate/windows-system-job-bootstrap/tenant-counts-before-system.json",
"sha256": "87643ddd344764b5527035189333af7ad52f189a6c13eb70d119a04d6bd46074",
"result": {
"read_only": true,
"counts_by_state": {
"succeeded": 25,
"failed": 4,
"cancelled": 2,
"expired": 3
},
"outputs_read": false
}
},
{
"path": "devstate/windows-system-job-bootstrap/mounts-read-only.json",
"sha256": "018d81e20fdc758987398f5c893b3d4af58da92dcd0916b48c0625ae8ee78cbe",
"result": {
"read_only": true,
"roles": {
"api": {
"actual": {
"IpcMode": "private",
"PidMode": "",
"UsernsMode": "",
"Devices": null,
"Binds": [
"/opt/rust-discovery/devstate/jobs:/jobs:ro",
"/opt/rust-discovery/devstate/root-policy:/root-policy:ro",
"/opt/rust-discovery/web/dist:/web:ro",
"/opt/rust-discovery/devstate/api-pki:/pki:ro"
]
},
"resolved": {
"ipc": null,
"pid": null,
"userns_mode": null,
"devices": null
},
"mounts": [
{
"Type": "bind",
"Source": "/opt/rust-discovery/devstate/jobs",
"Destination": "/jobs",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/rust-discovery/devstate/root-policy",
"Destination": "/root-policy",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/rust-discovery/web/dist",
"Destination": "/web",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/rust-discovery/devstate/api-pki",
"Destination": "/pki",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
}
],
"resolved_volumes": [
{
"type": "bind",
"source": "/opt/rust-discovery/devstate/api-pki",
"target": "/pki",
"read_only": true,
"bind": {
"create_host_path": true
}
},
{
"type": "bind",
"source": "/opt/rust-discovery/devstate/jobs",
"target": "/jobs",
"read_only": true,
"bind": {
"create_host_path": true
}
},
{
"type": "bind",
"source": "/opt/rust-discovery/devstate/root-policy",
"target": "/root-policy",
"read_only": true,
"bind": {
"create_host_path": true
}
},
{
"type": "bind",
"source": "/opt/rust-discovery/web/dist",
"target": "/web",
"read_only": true,
"bind": {
"create_host_path": true
}
}
]
},
"gateway": {
"actual": {
"IpcMode": "private",
"PidMode": "",
"UsernsMode": "",
"Devices": null,
"Binds": [
"/opt/rust-discovery/devstate/root-policy:/root-policy:ro",
"/opt/rust-discovery/devstate/pki:/pki:ro",
"/opt/rust-discovery/devstate/jobs:/jobs:ro"
]
},
"resolved": {
"ipc": null,
"pid": null,
"userns_mode": null,
"devices": null
},
"mounts": [
{
"Type": "bind",
"Source": "/opt/rust-discovery/devstate/root-policy",
"Destination": "/root-policy",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/rust-discovery/devstate/pki",
"Destination": "/pki",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/rust-discovery/devstate/jobs",
"Destination": "/jobs",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/run/rmm-time-source",
"Destination": "/run/rmm-time-source",
"Mode": "",
"RW": false,
"Propagation": "rprivate"
}
],
"resolved_volumes": [
{
"type": "bind",
"source": "/opt/rust-discovery/devstate/pki",
"target": "/pki",
"read_only": true,
"bind": {
"create_host_path": true
}
},
{
"type": "bind",
"source": "/opt/rust-discovery/devstate/jobs",
"target": "/jobs",
"read_only": true,
"bind": {
"create_host_path": true
}
},
{
"type": "bind",
"source": "/opt/rust-discovery/devstate/root-policy",
"target": "/root-policy",
"read_only": true,
"bind": {
"create_host_path": true
}
},
{
"type": "bind",
"source": "/run/rmm-time-source",
"target": "/run/rmm-time-source",
"read_only": true,
"bind": {}
}
]
}
},
"environment_reported": false
}
}
]
}
+27
View File
@@ -88,6 +88,33 @@ Zeitplan und 15-Minuten-Frist müssen beim tatsächlich koordinierten Schritt
frisch vorbereitet werden. Erst danach folgen ein eigenständiger persistenter
MCP-Antrag, echte simulierte WebUI-Genehmigung und native Einzelausführung.
Die unabhängige Controllerreview verlangte zusätzlich einen vollständigen
Runtime-CAS beim Server-Recreate. Der neue rein lesende Spec-Modus bestand
danach tatsächlich auf dem Cloudserver: aktuelles Compose-Projekt und
Arbeitsverzeichnis wurden aus den vorhandenen Containerlabels übernommen;
User10001, vollständige Umgebungen ausschließlich im RAM, Entrypoint/Command,
Arbeitsverzeichnis, Loopbackports, Mounts/Binds, Netzwerke, Restartpolicy,
Namespaces, Devices und Sandbox stimmen mit der aufgelösten Konfiguration
überein. Die Normalisierung folgt dem bereits eingesetzten Deployment205-
Controller. Der bestehende strikte Gateway-Zeitquellenmount wurde mit seinem
tatsächlichen Long-Mount-Format erhalten (`Mode=""`, ausdrücklich `RW=false`),
nicht als neuer Short-Bind umgedeutet. Nach einem späteren Recreate muss dieselbe
Runtimeform mit ausschließlich zwei zusätzlichen SYSTEM-Variablen und genau
einem neuen read-only Policymount übereinstimmen. Native Lesebelege:
`devstate/windows-system-job-bootstrap/runtime-spec-read-only.json` und
`mounts-read-only.json`. Keine Container wurden dafür verändert.
Die gleichzeitige tatsächliche lesende Mandantenzählung ergab 25 erfolgreiche,
4 fehlgeschlagene, 2 abgebrochene und 3 abgelaufene Aufträge; keine Unknown-
oder nichtterminalen Aufträge. Der entsprechende Guard wurde nicht gelockert.
Die Windows-Stopped-Prüfung verlangt weiterhin originale PID-/Creationzeugen
und deren beendeten Prozess sowie SCM-Stopped, jedoch keinen SCM-ProcessId0:
dieser Wert ist nach Stopped kein gültiger Prozessbeleg. Die koordinierende
Wartung muss die originalen Prozesshandles mit bestätigtem Exit vor dem
Bootstrapaufruf halten/nachweisen; bestehende Lebensdauersperren werden danach
erneut exklusiv gehalten. Diese Härtungen aktivierten keine Policy und
änderten keine Dienstkonfiguration.
## Tatsächlich lesend geprüft
Der bestehende bestätigte SSH-Entwicklungstransport wurde mit