Skip to main content

ARSGATE Context Persistence Rule

Status: Canonical governance rule
Owner: Project Bootstrap
Enforcement: Resource Ownership Registry + bin/arsgate-context

Rule​

Once Project Bootstrap has validated ownership, repository, worktree/branch, Redmine mapping, Forgejo owner and secret references for a resource, every downstream automation must reuse that canonical context.

Full discovery is repeated only when the context is absent, explicitly invalidated, or conflicts with currently validated state.

No downstream script may invent, infer or hardcode repository paths, worktrees, branches, Redmine IDs, Forgejo owners or secret paths in conflict with the persisted canonical context.

On conflict, automation stops with CONFLICT_STOP instead of creating, replacing or silently redirecting resources.

Resolver contract​

Use:

sudo bin/arsgate-context <canonical-manifest>

or:

eval "$(sudo bin/arsgate-context <canonical-manifest>)"

The resolver performs fast validation of already-persisted bindings. It does not search for replacement resources.

Possible states:

  • VERIFIED: reuse the persisted context.
  • MISSING_CONTEXT: perform one full Discovery Gate pass, then persist the resulting binding.
  • CONFLICT_STOP: stop. Do not create or substitute resources.

Secret handling​

Only references to secret files are persisted. Secret values never belong in the Registry, Git, Redmine, logs or documentation.

Worktree handling​

An implementation worktree/branch is persisted only after it has actually been validated for that resource. Until then it remains explicitly UNBOUND; downstream automation must not invent one.

Initial persisted context​

The first context persisted under this rule is arsgate-network-routing-dns, using the ownership already validated by BOOT-004 and the Platform Foundation Gate.

The implementation worktree remains intentionally unbound until an actual PF-DNS implementation worktree is validated.