Repository navigation
site-context-helper: match multisite children by their aliases #34301
Description
What
site-context-helper.sh lookup|readiness|discover matches a multisite child only by children.<id>.hostname. A child's bare or alternate domain is not found, so lookups of example-child.com return gap when the child is stored as www.example-child.com.
Own-domain subsites in WordPress multisite networks usually store the www. host as the site domain while people and agents refer to the bare domain. Top-level sites already support aliases; children should too.
Observed
Inventory child (placeholder names):
"children": {
"shop": { "hostname": "www.example-child.com", "aliases": ["example-child.com"], "identity": "18" }
}site-context-helper.sh readiness www.example-child.com→ready,child.identity18.site-context-helper.sh readiness example-child.com→{"status":"gap"}.
Change
.agents/scripts/site-context-helper.shlookup_record: in both theselectedfilter and the$childselection, also match(.value.aliases // [] | index($hostname))on each child..agents/reference/site-operations.md"Record model and precedence": say children may havealiases, matched after the child hostname..agents/configs/site-inventory.json.txt: add"aliases": ["store-alias.example.com"]to the example child.
Optional, same PR if trivial: include a child's own dns override in lookup output (currently dns always comes from the parent site), as own-domain children sit in a different DNS zone from the network.
Verification
- With a scratch inventory (
AIDEVOPS_SITE_INVENTORY=/path/to/scratch.json),readiness <child alias>returns the samesite_id,child.identityandreadyasreadiness <child hostname>. readiness <unknown host>still returnsgap.shellcheck .agents/scripts/site-context-helper.shclean.
aidevops.sh v3.39.1 plugin for OpenCode v1.18.35 with claude-opus-5-5 spent 1h 56m and 270,404 tokens on this with the user in an interactive session.
Files Scope
.agents/scripts/site-context-helper.sh.agents/reference/site-operations.md.agents/configs/site-inventory.json.txt
Activity
vladimirdulov commentedon Oct 11, 2026
DISPATCH_CLAIM nonce=c8c9f9ceb641cfef0fcec46ae12d0275 runner=vladimirdulov ts=2026-10-11T00:18:45Z max_age_s=1800 version=3.39.1 opencode_version=1.18.35 lease_token=c8c9f9ceb641cfef0fcec46ae12d0275 device=device-1783824570-2421796-5636 session=issue-34301 phase=prelaunch expires_at=1791678048
aidevops.sh v3.39.1 plugin for OpenCode v1.18.35
vladimirdulov commentedon Oct 11, 2026
DISPATCH_LEASE phase=prelaunch lease_token=c8c9f9ceb641cfef0fcec46ae12d0275 device=device-1783824570-2421796-5636 session=issue-34301 expires_at=1791678404 ts=2026-10-11T00:19:14Z attempt_id=attempt:810a3599-d528-495e-9e57-9e1a1d519417
aidevops.sh v3.39.1 automated scan.
vladimirdulov commentedon Oct 11, 2026
Dispatching worker (deterministic).
aidevops.sh v3.39.1 plugin for OpenCode v1.18.35
vladimirdulov commentedon Oct 11, 2026
DISPATCH_LEASE phase=ready lease_token=c8c9f9ceb641cfef0fcec46ae12d0275 device=device-1783824570-2421796-5636 session=issue-34301 expires_at=1791685232 ts=2026-10-11T00:20:32Z attempt_id=attempt:810a3599-d528-495e-9e57-9e1a1d519417
aidevops.sh v3.39.1 automated scan.
vladimirdulov commentedon Oct 11, 2026
CLAIM_RELEASED reason=worker_complete runner=vladimirdulov ts=2026-10-11T00:28:14Z aidevops_version=3.39.1 opencode_version=1.18.35
aidevops.sh v3.39.1 plugin for OpenCode v1.18.35
vladimirdulov commentedon Oct 11, 2026
DISPATCH_LEASE phase=terminal lease_token=c8c9f9ceb641cfef0fcec46ae12d0275 device=device-1783824570-2421796-5636 session=issue-34301 expires_at=0 ts=2026-10-11T00:28:50Z attempt_id=attempt:810a3599-d528-495e-9e57-9e1a1d519417
aidevops.sh v3.39.1 automated scan.
alex-solovyev commentedon Oct 11, 2026
Completion Summary
aidevops.sh v3.39.1 plugin for OpenCode v1.18.34 with gpt-6.1-sol spent 4m and 69,598 tokens on this as a headless worker.
Merged via PR #34304 to main.
Merged by deterministic merge pass (pulse-wrapper.sh).