User and operator guide · Deployment
DDIL Deployment
On this page
PurposeOperator PrerequisitesDDIL Node TopologyDeployment Building BlocksDeployment SequenceEdge Node Startup ProcedureFunctional ModesFederated Enterprise And Edge LabDDIL ValidationReplay And Reconnect ProcedureRollback And Mode RecoveryTroubleshootingEvidence ArtifactsBackup And RecoveryCross-References|
Important
|
DDIL deployment documentation must distinguish local functional evidence from deployed environment proof. Local sync completion means a local operation was staged unless enterprise reachback delivery and reconciliation evidence is present. |
Purpose
DDIL deployment prepares Atlas to preserve local security posture when enterprise reachback is disconnected, denied, intermittent, or limited. The deployment goal is not to trust stale state blindly. The goal is to make local identity, policy, cache, model, queue, and audit inputs explicit and reviewable.
Operator Prerequisites
Before enabling a DDIL node, the operator must have:
-
an approved edge-node deployment plan and rollback owner
-
local cache, queue, secret, model, PKI, and audit storage sized for the disconnected window
-
config/ddil-federation.yaml,config/trustai.yaml, andconfig/pki.yamlreviewed for the mission profile -
model bundle checksum and rollback bundle for TrustAI edge scoring
-
reachback state procedure: connected, disconnected, forced DDIL, and reconnect/replay
-
operator token or session with DDIL operator authority for protected control endpoints
Create a run directory before collecting DDIL evidence:
RUN_ID="$(date -u +%Y%m%d-%H%M%S)-ddil"
EVIDENCE_DIR="artifacts/deployment/ddil/$RUN_ID"
mkdir -p "$EVIDENCE_DIR/config" "$EVIDENCE_DIR/status" "$EVIDENCE_DIR/validation" "$EVIDENCE_DIR/replay"
cp config/ddil-federation.yaml "$EVIDENCE_DIR/config/ddil-federation.yaml"
cp config/trustai.yaml "$EVIDENCE_DIR/config/trustai.yaml"
cp config/pki.yaml "$EVIDENCE_DIR/config/pki.yaml"
Expected result: the evidence directory contains the exact DDIL policy, TrustAI, and PKI inputs reviewed for the run. If any of those files are overridden in the deployed environment, capture the rendered deployed version instead of the repository default.
DDIL Node Topology
Deployment Building Blocks
| Block | Deployment requirement | Evidence to collect |
|---|---|---|
Local gateway control plane |
Expose DDIL status, mode, queue, sync, model-weight, health, and event endpoints only through authenticated operator paths. |
HTTP route inventory, auth test output, and operator role validation. |
Session and denylist cache |
Gateway cache configuration, Atlas Cache deployment or platform cache |
Keep session revocation and token denylist state available locally. |
Cache health, TTL policy, encryption configuration, and failure behavior. |
TrustAI edge model |
Load a local model bundle and validate checksum/provenance before use. |
Model version, checksum, validation output, and rollback plan. |
Queue and sync state |
DDIL queue handlers, RabbitMQ or local queue backend |
Queue security events and sync payloads locally while reachback is unavailable. |
Queue depth, retention, pause/resume, purge, and replay evidence. |
PKI offline behavior |
Configure whether cached revocation status is required, how grace periods work, and how failures are audited. |
Revocation cache age, grace-period config, and accept/reject test cases. |
Audit custody |
Audit packages and validation artifacts |
Retain local event history and protect evidence from tampering or loss. |
Signed or hash-backed logs, transfer records, and reviewer notes. |
Deployment Sequence
-
Stage images, binaries, model bundles, configuration, trust bundles, and validation scripts on the edge node.
-
Validate checksums and provenance before startup.
-
Start local cache, queue, Vault or secret provider, gateway, TrustAI edge scoring, and monitoring components.
-
Confirm DDIL status reports local capability and expected reachback state.
-
Run local security validation and the DDIL live validation tests.
-
Record queue, cache, model, PKI, and audit evidence before mission use.
-
When reachback returns, run replay/reconciliation through approved channels and preserve before/after evidence.
Edge Node Startup Procedure
Use the runtime-specific Docker, Kubernetes, or enterprise procedure to start the node. The DDIL-specific environment and evidence checks are:
export ATLAS_DDIL_NODE_ID="<edge-node-id>"
export ATLAS_DDIL_NODE_ROLE="edge"
export ATLAS_DDIL_REACHBACK_STATE="disconnected"
export ATLAS_DDIL_ENTERPRISE_BASE_URL="https://<enterprise-gateway>"
export ATLAS_DDIL_FEDERATION_CONFIG="config/ddil-federation.yaml"
sha256sum config/ddil-federation.yaml config/trustai.yaml config/pki.yaml >"$EVIDENCE_DIR/config/config.sha256"
sha256sum -b models/trustai/edge-default/* >"$EVIDENCE_DIR/config/trustai-edge-model.sha256"
After the gateway is running, collect status from the protected DDIL control surface:
export ATLAS_BASE_URL="https://<edge-gateway>"
export ATLAS_BEARER_TOKEN="<operator-token>"
curl -kfsS -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
"$ATLAS_BASE_URL/api/v1/ddil/network-status" \
| tee "$EVIDENCE_DIR/status/network-status.json"
curl -kfsS -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
"$ATLAS_BASE_URL/api/v1/ddil/queues" \
| tee "$EVIDENCE_DIR/status/queues.json"
curl -kfsS -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
"$ATLAS_BASE_URL/api/v1/ddil/model-weights" \
| tee "$EVIDENCE_DIR/status/model-weights.json"
Expected result: network status shows the intended reachback state and operating mode, queue output shows capacity and depth, and model-weight output matches the approved local bundle.
Functional Modes
| Mode | Expected behavior | Validation anchor | Claim boundary |
|---|---|---|---|
Automatic DDIL |
Reachback is unavailable and Atlas reports |
|
Local-live proves gateway behavior, not field network conditions. |
Forced DDIL |
An operator explicitly enables DDIL mode and the gateway reports |
|
Operator authorization and environment procedure must be validated separately. |
Local staging |
Sync requests are recorded locally and completed as local evidence. |
|
Do not claim enterprise delivery until replay evidence exists. |
Reconnected replay |
Queued events or sync payloads are delivered and reconciled after reachback returns. |
|
Local-live proves deterministic edge replay/reconciliation. Deployed enterprise channel approval remains external. |
Federated Enterprise And Edge Lab
The local-live Federated DDIL gate simulates an enterprise node and a disconnected edge node. This is the first repository gate that proves DDIL federation cache behavior and replay/reconciliation together rather than treating DDIL sync as local staging only.
| Variable | Enterprise node | Edge node |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
Enterprise gateway URL |
Enterprise gateway URL used as reconnect target |
|
|
|
|
|
|
The edge node validates:
-
fresh cached provider metadata and fresh claims for degraded non-sensitive sessions
-
stale metadata, stale claim, disabled provider, invalid signature/thumbprint, and replayed nonce/state denial
-
sensitive API/PAM/admin step-up or deny when reachback is unavailable
-
queued events with event id and payload hash
-
denied reconciliation while disconnected
-
idempotent replay, duplicate detection, conflict recording, and reconciliation evidence after reconnect
DDIL Validation
REPORT_ROOT="$EVIDENCE_DIR/validation/local-live-validation" \
./scripts/run-local-live-validation.sh 2>&1 | tee "$EVIDENCE_DIR/validation/local-live-validation.console.log"
REPORT_ROOT="$EVIDENCE_DIR/validation/security-validation" \
ATLAS_BASE_URL=https://<edge-gateway> \
ATLAS_BEARER_TOKEN="$ATLAS_BEARER_TOKEN" \
./scripts/run-security-validation.sh --live 2>&1 | tee "$EVIDENCE_DIR/validation/security-validation.console.log"
Required validation observations:
| Observation | Expected evidence |
|---|---|
Network state |
Status endpoint shows expected |
Local capability |
Cache, local inference, and model-weight indicators match deployed configuration. |
Queue controls |
Operator can inspect queue state and authorized mutations are recorded. |
PKI posture |
Offline revocation handling follows the deployed grace-period and cache policy. |
Audit and event history |
DDIL events include state transitions, sync attempts, queue actions, and operator actions. |
Replay |
If reachback is available, staged items are delivered, deduplicated, reconciled, and audited. |
Replay And Reconnect Procedure
Run this only when the approved reachback path is available.
curl -kfsS -X POST -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reachbackState":"connected"}' \
"$ATLAS_BASE_URL/api/v1/ddil/reachback/state" \
| tee "$EVIDENCE_DIR/replay/reachback-connected.json"
curl -kfsS -X POST -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reason":"operator-reconnect-validation"}' \
"$ATLAS_BASE_URL/api/v1/ddil/sync/trigger" \
| tee "$EVIDENCE_DIR/replay/sync-trigger.json"
curl -kfsS -X POST -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reachbackState":"connected","targetNode":"atlas-enterprise"}' \
"$ATLAS_BASE_URL/api/v1/ddil/replay/reconcile" \
| tee "$EVIDENCE_DIR/replay/reconciliation.json"
Expected result: reconnect status is recorded, sync is accepted for the approved channel, reconciliation reports processed, duplicate, and conflict counts, and audit events identify the operator action.
Rollback And Mode Recovery
To leave forced DDIL mode after reachback is restored:
curl -kfsS -X POST -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
"$ATLAS_BASE_URL/api/v1/ddil/mode/disable" \
| tee "$EVIDENCE_DIR/status/forced-ddil-disabled.json"
If the local model bundle is wrong, stop the gateway or TrustAI edge service, restore the previously approved model bundle, verify the checksum, and restart the service:
sha256sum -c "$EVIDENCE_DIR/config/trustai-edge-model.sha256"
curl -kfsS -H "Authorization: Bearer $ATLAS_BEARER_TOKEN" \
"$ATLAS_BASE_URL/api/v1/ddil/model-weights" \
| tee "$EVIDENCE_DIR/status/model-weights-after-rollback.json"
Do not purge queues as a routine rollback. If a queue must be purged by procedure, export queue status and audit evidence first, record the approval, then run the protected purge endpoint for the named queue.
Troubleshooting
| Symptom | Command | Disposition |
|---|---|---|
DDIL status does not match expected mode |
|
Confirm runtime environment variables and operator action history before mission use. |
Queue depth grows during disconnection |
|
Compare depth to capacity and retention policy; pause nonessential producers if the mission procedure allows it. |
Sensitive action is denied while disconnected |
Audit event and DDIL policy config. |
This is expected when policy requires reachback or step-up. Record the denial as evidence, not as a failure. |
Reconciliation fails while disconnected |
|
Expected until reachback is connected. Do not claim enterprise delivery. |
Replay reports conflicts |
|
Follow the conflict-resolution procedure and retain both before and after evidence. |
Evidence Artifacts
Keep these artifacts with the DDIL deployment record:
-
DDIL, TrustAI, and PKI rendered configuration with hashes
-
model bundle checksum and rollback bundle reference
-
network status, queue status, model weight, offline capability, and event history output
-
local-live
phase5/Federated DDIL artifacts andphase5-manifest.sha256 -
live security-validation output for the deployed edge gateway
-
reconnect, replay, duplicate, conflict, reconciliation, and enterprise receipt evidence where reachback exists
-
audit records for mode changes, queue operations, and operator actions
Backup And Recovery
DDIL recovery must account for stale local state and replay, not just file restoration. Record which sessions are forced to reauthenticate, which queues are restored, how deduplication is proven, what revocation cache age is accepted, and which TrustAI model bundle is approved after restore. Use Backup And Recovery: DDIL Edge Runbook for the edge-node checklist.