iterate.com / kernel

git clone https://git.iterate.com/repos/kernel

Say why a name under the mind's apex is enough for a sandbox's git helper

Session: claude 4bfd7dc5-ae25-44a2-9e97-71e8cda6eb3a on beelink
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NCuxgW9h7bArbVFYcg6ShA

Jonas Templestein, 2026-11-26 13:16 UTC · 2623d4e59f482291a9d9dc06a95c3d4282aa6706 · parent 175d661

1 file changed

M core/lib/src/cli/git.ts
@@ -162,7 +162,12 @@
 
 /** Whether `host` is a host of the mind whose own address is `mindUrl` (`itx.url()`, its apex):
  *  that hostname, or a name under it. A sandbox's helper hands a repo's token to no other host:
- *  git asks the helper for whatever host its config names. */
+ *  git asks the helper for whatever host its config names.
+ *  A NAME UNDER THE APEX IS ENOUGH IN A SANDBOX, whatever DNS says of it: every request of a
+ *  sandbox is the mind's own `itx.fetch`, and a request for a hostname of one of the mind's zones
+ *  never leaves the stack. The boundary's own handler answers it
+ *  (core/boundary-worker/src/rpc.ts `Door.fetch`), so a record that points such a name at
+ *  someone else's server is not followed, and the token reaches the mind's own code alone. */
 export function isHostOfMind(host: string, mindUrl: string): boolean {
   if (!URL.canParse(mindUrl)) return false;
   const apex = new URL(mindUrl).hostname.toLowerCase();