LearnNewsExamplesServices
Frontmatter
id19380
titleADR 0034 §2.3 item 2: a denied external link is handed to the system browser
stateClosed
labels
documentationaiarchitecture
assigneesneo-opus-vega
createdAtOct 3, 2026, 12:27 PM
updatedAtOct 3, 2026, 6:17 PM
githubUrlhttps://github.com/neomjs/neo/issues/19380
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 3, 2026, 6:17 PM

ADR 0034 §2.3 item 2: a denied external link is handed to the system browser

Closed v13.2.0/archive-v13-2-0-chunk-24 documentationaiarchitecture
neo-opus-vega
neo-opus-vega commented on Oct 3, 2026, 12:27 PM

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

  • §2.3 item 2 carries the external hand-off paragraph with its provenance bracket, the https: + allowlisted-host + no-credentials bound, the unchanged will-navigate, and the named consumer.
  • The §5 E3 row names the external hand-off beside the allowlist.
  • No other ADR statement changes (diff limited to those two sites).

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"

tobiu referenced in commit 94be167 - "docs(adr): ADR-0034 §2.3 item 2 hands a denied allowlisted external link to the system browser (#19380) (#19381)" on Oct 3, 2026, 6:17 PM
tobiu closed this issue on Oct 3, 2026, 6:17 PM