name: c-08-ar-coordination-context-resolver description: "Resolve the active Agents Remember context for a target repository, including topology, coordination root, memory root, settings, storage, pathRules, worktree contract facts, ledger path, and branch-gated cross-repo allowances."
c-08-ar-coordination-context-resolver AR Coordination Resolver
Use this skill whenever an agent needs the active Agents Remember context for a repository.
In the normal workflow, pass the code repository name. The c-08-ar-coordination-context-resolver skill decides whether that repository is using repo-local internal memory or selected external memory, then returns the resolved code repository root, coordination, memory, settings, task, worktree, ledger, and cross-repo facts that downstream skills must use.
Inputs
code_repository_name: name of the code repository being worked on. This is the normal input.workspace_root: optional workspace root used to findcode_repository_namewhen the caller is not already in the workspace root.requested_topology: optionalinternalorexternaloverride for repair or explicit external-memory operations.coordination_root: optional coordination-root hint. Normal installed resolution uses MCP settings. Package-local resolver calls use explicit input first, then the installed runtime root when invoked from an installed coordinator, then the built-in source-development default../ar-coordination.settings_path: optional override for repair cases.onboarding_root: optional override when a caller has already resolved the repository onboarding root.code_repository_root: optional root directory of the code repository for callers that already have the path. This does not replacecode_repository_nameas the normal agent-facing contract.contract_path: optionalseries-contract.mdpath for worktree-backed task context.task_name: optional task name used to locate an active task root underar-coordination/tasks/<code-repository-name>/, excluding0_archive/. Root series contracts live at<task>/series-contract.md; leaf worktree contracts live at<task>/enclosures/<leaf-id>/series-contract.md. Withouttask_name,task_rootresolves to the repository task namespacear-coordination/tasks/<code-repository-name>/.leaf_id: optional leaf enclosure id when a task has multiple active leaf worktrees.parent_task: optional parent task name used only to disambiguate nested task roots with the same task name.worktree_name: optional worktree name used to compute the worktree group when no contract exists.
When a sibling settings.json exists beside settings.md, the c-08-ar-coordination-context-resolver skill prefers that JSON file for machine-readable storage, pathRules, and crossRepo data. settings.md remains the human and agent instruction file, and fenced settings in settings.md are accepted when JSON is absent.
Outputs
The resolver returns one coordination context for the target repository:
topology:internalorexternalcode_repository_namecode_repository_rootcoordination_rootmemory_rootmemory_modeonboarding_rootsettings_pathpath_settings_path: sibling machine-readable settings path whensettings.jsonexists, otherwise empty in JSON outputtask_root: repository task namespace when no task name is supplied; task-specific folder whentask_nameor a contract is suppliedtemp_rootdocs_rootsystem_rootsources_pathtools_pathcontract_pathworktree_groupcode_worktreememory_worktreeledger_pathstorage: storage mode, default, and storage rule datapathRules: include/exclude eligibility rules by source path and file typecrossRepo: branch-gated allowed adjacent repositories, with included/excluded state and reasons
Resolution Rules
- If
onboarding_rootis supplied, treat it as an explicit override only when it points under a supported memory location:<code-repository-root>/ar-memory/onboardingor<ar-coordination>/memory-repos/ar-<code-repository-name>/onboarding. - If a worktree contract path is supplied, use the contract's
coordination_rootbefore validating memory so task worktrees resolve against their own coordinator. - Resolve the coordinator from explicit
coordination_root, the installed runtime root when invoked from an installed coordinator, or the built-in source-development default../ar-coordination. - If
requested_topologyisinternal, require<code-repository-root>/ar-memory/to exist and use it asmemory_root. - If
requested_topologyisexternal, require<coordination-root>/memory-repos/ar-<code-repository-name>/to exist and use it asmemory_root. - If no topology override is supplied, check
<code-repository-root>/ar-memory/first, then<coordination-root>/memory-repos/ar-<code-repository-name>/. - If neither supported memory location exists, fail with a missing-memory error that lists both checked paths. The agent should ask the developer whether to initialize memory with
c-00-initialize-memory-repo, explain that thec-00-initialize-memory-reposkill creates the scaffold/settings, and then run thec-03-repo-bootstrapskill only if onboarding content should be generated.
Mixed workspaces are resolved per target repository. One external memory repo does not move neighboring local repositories onto the coordination root, and one local repository does not prevent another repository from using external memory.
MCP Tools
Use the Agents Remember MCP resolver tools as the normal installed runtime entry point:
resolve_context(repo_id="<repo-id>", task_name="<task>", parent_task="<parent-task>", leaf_id="<leaf-id>", contract_path="<series-contract.md>", worktree_name="<worktree>", topology="<internal|external>")
For startup context that also needs provider status or drift summary, request:
context_packet(repo_id="<repo-id>", include_providers=true, include_drift=false)
The MCP server owns the authority settings for repository IDs, workspace roots, coordination root, and provider configuration. Callers that already know a checkout path should still identify the configured repository through the MCP settings rather than inventing a parallel resolver path.
The skill tree is instruction-only; installed and development workflows use the MCP/package route.
Consumers
AGENTS.mdGate 1 uses this skill to resolve coordination root, memory root, task root, temp root, onboarding root, settings, storage,pathRules, worktree facts, ledger path, and cross-repo allowances.c-02-memory-quality-controlconsumes the resolved context and owns memory quality checks, including task-start drift classification and trust reporting.c-03-repo-bootstrap,c-04-retrieval-strategy-router,c-05-create-or-update-onboarding-files, and task workflows use the resolved roots instead of rebuilding topology rules.c-09-git-worktree-managerconsumes the resolved context and owns Git worktree mutation, task contract updates, and closeout sequencing.
Boundaries
- The
c-08-ar-coordination-context-resolverskill owns topology detection, coordination-root and memory-root resolution, JSON-first settings parsing with Markdown fallback, storage semantics,pathRules, task-contract fact loading, and cross-repo allowance parsing. - Other skills may request MCP
resolve_contextorcontext_packet, but they must not keep parallel resolver implementations. - The top
AGENTS.mdtopology explanation remains orientation guidance for humans and agents, not a replacement runtime path. - The
c-08-ar-coordination-context-resolverskill resolves where context lives; it does not create missing scaffolding or Git worktrees. Use thec-00-initialize-memory-reposkill for memory-root creation and thec-09-git-worktree-managerskill for worktree lifecycle mutation.