DSG Spacetime — Mandatory AI Continuity Protocol
This repository is the operational source of truth for the private DSG Spacetime production runtime. Chat history, model memory, and verbal summaries are secondary and must never override verified repository state.
Every AI/operator is replaceable. Safe operation is governed by the identity-independent contract in docs/OPERATOR_CONSTITUTION.md. A different model, chat, person, or toolset does not create a different proof or safety standard.
Remote Browser canonical interface
For browser work, the canonical path is Chat/Agent/CLI -> DSG Spacetime governance -> DSG Cinema on the existing AWS stack -> managed Chromium -> Evidence. Read docs/REMOTE_BROWSER_USAGE.md before execution. The official product CLI is dsg-browser from tdealer01-crypto/DSG-Cinema-Proof-Agent; reuse Cinema's persistent governed browser where actually connected instead of creating a second stack. Azure-hosted browser documentation is historical/manual rollback context only. Agent mutations remain plan-bound; approval is task-level, not click-level. An unconnected browser provider stays BLOCKED.
The private scripts/dsg_browser_cli.sh is a legacy read-verification fallback only and must not be treated as the product capability boundary.
Phase 0 — canonical session bootstrap
For every new chat/session/model and after material context loss, first read docs/DSG_SESSION_BOOTSTRAP.json, then docs/CURRENT_HANDOFF.md and docs/PROJECT_STATE.json. Resolve the current GitHub main SHA live, resolve exact-SHA CI evidence, and verify the task-relevant production/provider state before trusting any stored checkpoint or chat memory.
docs/DSG_SESSION_BOOTSTRAP.json is a durable protocol, not a current-SHA snapshot. It MUST NOT store a value that claims to be the current main SHA. Newer verified GitHub/provider evidence supersedes stale repository snapshots and chat memory. Phase 0 does not replace the full startup sequence below; material mutation still requires that sequence and the operator work-unit lifecycle.
Mandatory startup sequence
Before changing code, configuration, releases, commerce, or documentation, every AI/operator MUST read these files in order:
README.mdAGENTS.mddocs/OPERATOR_CONSTITUTION.md— mandatory identity-independent operating contractdocs/CONTINUITY_MEMORY.mddocs/ACTIVITY_CALENDAR.md— owner-visible calendar and today indexcurrent
docs/daily/YYYY-MM-DD.md— timestamped work today, if presentdocs/HISTORY_LEDGER.md— pastdocs/STATUS_CHECKPOINT.md— presentdocs/PROJECT_STATE.json— present, machine-readabledocs/CAPABILITY_BASELINE.md— minimum capability that must not regressdocs/WORK_QUEUE.md— immediate futuredocs/FUTURE_ROADMAP.md— broader futuredocs/SKILLS_REGISTRY.md— required operating proceduresdocs/TOOLS_REGISTRY.md— tool/service boundariesdocs/DECISION_LOG.mdIP_POLICY.mdPUBLIC_DISCLOSURE_POLICY.md
Then verify the current main SHA, repository visibility, relevant CI state, latest commercial release, and any external provider state involved in the requested task.
No material mutation may begin until the startup sequence and the work-unit lifecycle in docs/OPERATOR_CONSTITUTION.md have been applied, except for an explicit owner-directed break-glass action where waiting would materially increase harm.
Plan-authorized work-first rule
The governance sequence MUST distinguish reversible local work from external authority:
Once the owner goal and bounded plan authorize the work, reversible local actions inside the assigned workspace (create/edit files, prepare artifacts, run local tests, and persist checkpoints/evidence) may proceed without first resolving an unrelated external provider credential.
Capability discovery and local preparation MUST NOT require a provider secret that is needed only for a later external action.
Bind credentials, OAuth sessions, provider permissions, and human approval just in time for the exact external or irreversible action that requires them.
A missing or expired external credential MUST pause only that action as
WAITING_PERMISSION, persist a resumable checkpoint and required permission descriptor, and leave completed local work intact.After the exact permission is bound, resume from the checkpoint; do not restart completed steps solely because authorization was interrupted.
Use
BLOCKEDonly when policy denies the action, the request is outside the authorized plan, the action is unsafe, or no valid resume path exists. Never reinterpretWAITING_PERMISSIONas execution authority.Every external mutation still requires the existing plan, scope, entitlement, approval, secret-isolation, evidence, and resulting-state verification controls.
This rule changes gate timing, not authority or proof thresholds.
Completion-first execution rule
For a bounded owner-authorized plan, governance MUST advance the plan instead of globally stopping it:
continue every currently satisfiable in-plan action automatically;
pending CI/proof blocks only dependent promotion, not unrelated work;
use
WAITING_APPROVALfor obtainable human approval andWAITING_PERMISSIONfor obtainable credential/session/scope;use bounded retry/checkpoint recovery for transient executor/provider failures;
preserve successful execution when proof is pending; do not replay a mutation only to obtain a receipt;
request no ceremonial re-approval for work already covered by the current plan;
reserve
BLOCKEDfor out-of-plan, hard policy/safety denial, invalid/tampered authority, unsupported capability, or no valid resume path;every pause must expose one concrete next action and resume from the last verified checkpoint.
Operator-equivalence rule
A future operator MUST preserve the same operating guarantees even when its model, context window, connectors, or preferred workflow differ.
Required equivalence means:
same truth labels and proof thresholds,
same anti-regression baseline,
same owner-approval gates,
same branch → PR → CI → merge → post-merge verification discipline during normal operation,
same secrets/IP boundaries,
same checkpoint/handoff completeness,
no fake completion when a required tool or proof is unavailable.
If the current operator cannot reproduce a previously VERIFIED path, it must mark the affected work PARTIAL or BLOCKED and leave exact next steps; it must not silently substitute a weaker path.
Owner break-glass rule
A clear owner instruction to act immediately on an urgent DSG Spacetime problem is sufficient authorization for the exact requested emergency action. Do not ask for a second ceremonial confirmation when the owner's instruction is already explicit.
When waiting for normal workflow sequencing would materially increase outage, security, commerce, deployment, licensing, data-loss, or similar risk, the operator may perform the minimum reversible/fail-closed containment or repair first. This may include immediate provider/configuration action or, when explicitly ordered and necessary, an urgent repository hotfix before normal PR sequencing.
Break-glass requirements:
verify exact target/current state when technically possible,
make the smallest necessary change,
do not make unrelated changes,
never fabricate evidence/permissions,
never expose secrets/private signing material,
run relevant CI/tests/provider checks immediately after containment,
reconcile emergency repository mutations through normal branch/PR/checkpoint flow as soon as stable,
record
OWNER BREAK-GLASS, reason, action, evidence, result, and residual risk in Daily Log + History Ledger.
Break-glass changes sequencing only. It never changes the evidence threshold for VERIFIED and cannot override platform/system safety requirements outside project control.
Owner-visible activity rule
The owner must be able to follow the work without reading the full AI chat.
For every material work block, update the current daily log using:
Time → Topic → Action → Status → Evidence/reference → Next
Rules:
Human-facing timestamps use
Asia/Bangkok (UTC+7)unless the owner changes timezone.Record material actions, proofs, blockers, reversals, merges, deploys, commerce changes, and exact next action.
Do not fill the log with every trivial tool call; log meaningful work blocks.
If an earlier status is corrected, mark it
SUPERSEDEDrather than deleting history.At the start of a new date, create
docs/daily/YYYY-MM-DD.mdand add that date todocs/ACTIVITY_CALENDAR.md.Before ending a material session, update the daily log with final state and next safe action.
Five-dimensional memory rule
docs/PROJECT_STATE.json is the single editable observed documentation checkpoint. Update its scoped facts, evidence, queue and procedure/tool references, then run python scripts/sync_continuity_docs.py --write. README, CURRENT_HANDOFF, STATUS_CHECKPOINT, CONTINUITY_MEMORY, WORK_QUEUE, FUTURE_ROADMAP, TOOLS_REGISTRY, CAPABILITY_BASELINE and ACTIVITY_CALENDAR are generated views; never maintain independent current facts in them. Run python scripts/sync_continuity_docs.py --check before commit.
docs/PROJECT_STATE_RECONCILIATION_*.json and dated closeouts are historical evidence only, not overlays to merge into current state. Read docs/history/2026-09-12-superseded-checkpoints.md for the preserved originals. This documentation authority does not override live GitHub/provider evidence or the Operator Constitution.
Continuity must preserve all five dimensions:
Past — append material events and superseded claims to
HISTORY_LEDGER.md.Present — edit
PROJECT_STATE.json, then regenerateSTATUS_CHECKPOINT.mdand the other views.Future — keep
WORK_QUEUE.mdandFUTURE_ROADMAP.mdaligned.Skills — keep
SKILLS_REGISTRY.mdaligned with the procedures required to operate safely.Tools — keep
TOOLS_REGISTRY.mdaligned with the actual operational toolchain and its limits.
A project state is incomplete if any of these dimensions is missing or materially stale.
Capability preservation rule
A previously VERIFIED capability MUST NOT be silently replaced by a weaker path, mock, fallback, manual-only process, or unverified implementation.
Before material implementation changes, read docs/CAPABILITY_BASELINE.md and identify affected baseline rows.
If a proof cannot be rerun, mark the capability PARTIAL or BLOCKED; do not claim it remains VERIFIED merely because code still exists.
Any intentional reduction of capability requires explicit owner approval and an entry in docs/DECISION_LOG.md.
Truth labels
Use only:
VERIFIED— execution evidence exists for the stated scope.PARTIAL— implementation exists but one or more material execution proofs are missing.BLOCKED— a required dependency, control, permission, secret, proof, or safety condition is not satisfied.SUPERSEDED— a historical claim/state was valid or recorded previously but has been replaced by a newer verified state.IN PROGRESS— owner-facing activity-log state for work that has started but is not yet closed; it is not a production proof label.
Never convert PARTIAL or BLOCKED to VERIFIED from static inspection alone.
Merge and production rules
Production source stays private.
Work on a branch and PR; do not intentionally bypass CI during normal operation.
Runtime/security/licensing changes require fail-closed tests.
Release packaging must prove customer bundles contain no production source/bytecode.
Do not expose secrets in commits, logs, issues, PR text, public manifests, or chat.
AI proposals are untrusted until bound to deployment identity, entitlement, policy and evidence requirements.
No agent may approve its own governed execution.
Do not move existing customer/provider systems into a central DSG service unless explicitly approved as a separate migration.
If a process deviation occurs outside authorized break-glass operation, follow the process-deviation rule in
docs/OPERATOR_CONSTITUTION.md; do not hide it.
Tool-state rule
A future AI may have different connectors/tools than a previous AI. Listing a tool in TOOLS_REGISTRY.md does not prove that tool is connected in the current session.
Before relying on a tool:
discover/verify that the tool is actually available,
verify whether the needed read/write action exists,
verify current external state before mutation,
if unavailable, mark the action
BLOCKEDrather than simulate completion,never replace a stronger verified path with a weaker manual/mock path without explicit approval.
Commerce fail-closed rule
Public checkout MUST remain inactive whenever a paid customer can complete payment but the system cannot provably deliver every artifact required to use the purchased product.
For the current commercial model, a complete paid delivery must include at minimum:
verified LIVE Stripe payment and exact SKU/amount,
customer/deployment identity required for licensing,
customer-specific signed entitlement,
compiled source-free runtime package,
integrity hash,
verified email delivery,
durable/idempotent fulfillment record.
A binary-only email is NOT a complete entitlement delivery.
Checkpoint rule
Make current-state changes in docs/PROJECT_STATE.json and regenerate its views together. Keep daily/history entries append-only and explicitly supersede earlier conflicting instructions. A checkpoint records the source/deploy SHAs actually observed; a later documentation merge does not change the recorded production identity. Resolve that documentation merge and current main live instead of recursively embedding the document's own commit SHA.
After every material production/commercial/continuity change, update the relevant durable memory dimensions:
docs/ACTIVITY_CALENDAR.mdand currentdocs/daily/YYYY-MM-DD.mddocs/HISTORY_LEDGER.mddocs/STATUS_CHECKPOINT.mddocs/PROJECT_STATE.jsondocs/WORK_QUEUE.mddocs/FUTURE_ROADMAP.mdwhen direction changesdocs/SKILLS_REGISTRY.mdwhen procedure changesdocs/TOOLS_REGISTRY.mdwhen operational tools changedocs/CAPABILITY_BASELINE.mdwhen verified capability scope changesdocs/DECISION_LOG.mdwhen a durable decision changes
Before ending a work session, record unresolved blockers and the exact next safe action.
CI enforcement rule
The private runtime CI must execute scripts/validate_operator_contract.py.
The operator-contract gate must fail closed if the mandatory constitution, startup linkage, owner break-glass rule, decision record, required operator skills, canonical checkpoint evidence bindings, or generated continuity views are missing or inconsistent.
Documentation alone is not enough: the operating contract must remain part of CI until an explicit owner-approved superseding decision changes the enforcement model.
Recovery rule
If context is lost, do not reconstruct the project from memory. Start from the mandatory startup sequence above, verify external state, and continue from the highest-priority unresolved item in docs/WORK_QUEUE.md that is within the owner's assigned scope.
อัปเดตล่าสุด