Context
neomjs/neo-agent-institution#493 (FM v1): in the packaged Fleet Manager an external link does nothing. The catch-up view renders PR citations as <a target="_blank">, and the merge-queue rows of neomjs/neo-agent-institution#449 want to link their PRs; the shell's setWindowOpenHandler returns {action: 'deny'} for every URL isHarnessPopupUrl refuses, and nothing in the harness calls shell.openExternal. That is exactly the fail-closed window policy ADR 0034 §2.3 item 2 specifies — ALLOW same-origin harness URLs, DENY everything else — and the ADR names no hand-off to the system browser. The implementation leaf's own order: amend the ADR first, then the harness.
The Problem
The policy's intent is that no foreign document ever renders inside the shell, and that intent is right. Its letter also forbids the one thing a cockpit must do with a pull-request URL: open it where the operator reads GitHub. Without the amendment the Institution leaf would be implementation-before-authority (the #17919 class).
The Architectural Reality
- ADR 0034 §2.3 item 2 (
learn/agentos/decisions/0034-electron-shell-architecture.md), already amended once in place for the about:blank staging realm (#19237, 2026-09-26) — the precedent for the shape of this amendment: an in-place paragraph with a provenance bracket, naming the admitted thing and its bounds.
- Electron:
setWindowOpenHandler runs for window.open() and for target="_blank" anchors; {action: 'deny'} cancels the window; shell.openExternal(url) opens the URL in the OS default browser.
- The consumer side:
harness/contentPolicy.mjs (isHarnessPopupUrl), harness/main.mjs (configureWebContents), neomjs/neo-agent-institution#493.
The Fix
One paragraph appended to §2.3 item 2, in the #19237 shape: The external hand-off (amended 2026-10-03, this ticket — for neomjs/neo-agent-institution#493): a denied window-open whose URL is https: on an allowlisted host (github.com; additions amend this paragraph) and carries no credentials is handed to the system browser with shell.openExternal; the in-app window stays denied, will-navigate is unchanged (same-window off-origin navigation stays denied), and nothing foreign renders in the shell. The §5 E3 row gains the hand-off in its scope cell. No other statement moves.
Acceptance Criteria
Out of Scope
The harness implementation (neomjs/neo-agent-institution#493); any host beyond github.com; browsing external pages inside the app.
Related
neomjs/neo-agent-institution#493 (the consumer leaf; depends on this). #19237 (the amendment precedent). neomjs/neo-agent-institution#7 (the shell epic).
Decision Record impact: amends ADR 0034 §2.3 item 2.
Live latest-open sweep: latest 20 open neo issues read at 2026-10-03T10:28Z; no equivalent (#19377 amends item 10). Search "ADR 0034 external link openExternal": none. A2A: the #493 lane-claim at 10:27Z is mine. Own-assignment: #19375 closed today, nothing else on the ADR.
Origin Session ID: 075e6b2a-b93a-4972-b143-0fca9e7c06d8
Retrieval Hint: "ADR 0034 §2.3 item 2 external hand-off openExternal github allowlist"
Context
neomjs/neo-agent-institution#493 (FM v1): in the packaged Fleet Manager an external link does nothing. The catch-up view renders PR citations as
<a target="_blank">, and the merge-queue rows of neomjs/neo-agent-institution#449 want to link their PRs; the shell'ssetWindowOpenHandlerreturns{action: 'deny'}for every URLisHarnessPopupUrlrefuses, and nothing in the harness callsshell.openExternal. That is exactly the fail-closed window policy ADR 0034 §2.3 item 2 specifies — ALLOW same-origin harness URLs, DENY everything else — and the ADR names no hand-off to the system browser. The implementation leaf's own order: amend the ADR first, then the harness.The Problem
The policy's intent is that no foreign document ever renders inside the shell, and that intent is right. Its letter also forbids the one thing a cockpit must do with a pull-request URL: open it where the operator reads GitHub. Without the amendment the Institution leaf would be implementation-before-authority (the #17919 class).
The Architectural Reality
learn/agentos/decisions/0034-electron-shell-architecture.md), already amended once in place for theabout:blankstaging realm (#19237, 2026-09-26) — the precedent for the shape of this amendment: an in-place paragraph with a provenance bracket, naming the admitted thing and its bounds.setWindowOpenHandlerruns forwindow.open()and fortarget="_blank"anchors;{action: 'deny'}cancels the window;shell.openExternal(url)opens the URL in the OS default browser.harness/contentPolicy.mjs(isHarnessPopupUrl),harness/main.mjs(configureWebContents), neomjs/neo-agent-institution#493.The Fix
One paragraph appended to §2.3 item 2, in the #19237 shape: The external hand-off (amended 2026-10-03, this ticket — for neomjs/neo-agent-institution#493): a denied window-open whose URL is
https:on an allowlisted host (github.com; additions amend this paragraph) and carries no credentials is handed to the system browser withshell.openExternal; the in-app window stays denied,will-navigateis unchanged (same-window off-origin navigation stays denied), and nothing foreign renders in the shell. The §5 E3 row gains the hand-off in its scope cell. No other statement moves.Acceptance Criteria
https:+ allowlisted-host + no-credentials bound, the unchangedwill-navigate, and the named consumer.Out of Scope
The harness implementation (neomjs/neo-agent-institution#493); any host beyond
github.com; browsing external pages inside the app.Related
neomjs/neo-agent-institution#493 (the consumer leaf; depends on this). #19237 (the amendment precedent). neomjs/neo-agent-institution#7 (the shell epic).
Decision Record impact: amends ADR 0034 §2.3 item 2.
Live latest-open sweep: latest 20 open neo issues read at 2026-10-03T10:28Z; no equivalent (#19377 amends item 10). Search "ADR 0034 external link openExternal": none. A2A: the #493 lane-claim at 10:27Z is mine. Own-assignment: #19375 closed today, nothing else on the ADR.
Origin Session ID: 075e6b2a-b93a-4972-b143-0fca9e7c06d8 Retrieval Hint: "ADR 0034 §2.3 item 2 external hand-off openExternal github allowlist"