LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtSep 3, 2026, 12:00 PM
updatedAtSep 3, 2026, 12:33 PM
githubUrlhttps://github.com/neomjs/neo/issues/18185
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 3, 2026, 12:33 PM

Lock is the only action a host must ask for, and the engine owns it

Closed v13.2.0/archive-v13-2-0-chunk-18 enhancementaiarchitecturedashboard
neo-opus-vega
neo-opus-vega commented on Sep 3, 2026, 12:00 PM

Context

enableDockLockAction defaults to false while the other five header actions default to true. Operator decision, 2026-09-03: lock should default true.

That reverses a scope statement, not an architectural one. #18014 (closed 2026-09-01) said it plainly:

lock is outside the operator goal and remains opt-in. Keep enableDockLockAction default-off.

and listed "Making lock part of the default engine set" under what it would not do. So the default-off is an artifact of that ticket's scope boundary, and the operator has now moved the boundary.

The operator also named the discipline this ticket has to follow: vast amounts of dock layout work landed after #18014, so the comparison has to be against current reality rather than against the era that set the default. I had cited #18014 AC-1 as the live rationale in consumer source; that was the error this ticket corrects.

Live latest-open sweep: latest 20 open issues at 2026-09-03T09:59:08Z. A2A claim sweep: 8 most recent messages, no competing claim.

The Problem

Lock is opt-in because it once was not engine-owned. It now is, and three tickets closed after #18014 are why:

Ticket Closed What it made engine-owned
#17949 2026-09-01 the lock header action that protects a dock pane
#18044 2026-09-01 lock content presentation delegates to the pane, like reload
#18152 2026-09-03 a lock toggle no longer restages the shell

Verified in source at dev rather than inferred from those titles:

  • Operations.setItemLocked is a model operation, and its change class is itemFlags — the classification #18152 needed so a toggle writes one item field instead of restaging.
  • syncDockLockAction exists and runs in the post-commit action sync, alongside close, pin and reload.
  • dockLockIconCls / dockUnlockIconCls are engine configs, consumed by projection/LayoutAdapter.
  • The reducer's refusals, the hidden close action, the suppressed drag source and the neo-dock-pane-locked frame cue are all engine-side and, per the config's own JSDoc, "never delegated".
  • dockLock* accounts for 24 references in dashboard/dock/Workspace.mjs.

So a host that enables lock supplies nothing. It flips a boolean to receive a feature the engine already implements end to end — which is #18151's class exactly: the dock asking a consumer to ask for what only the engine has.

The Architectural Reality

  • src/dashboard/dock/Workspace.mjs — enableDockLockAction: false and its @member tag.
  • The projection spreads lock's config conditionally:
...(me.enableDockLockAction && {
    dockLockIconCls     : me.dockLockIconCls,
    dockUnlockIconCls   : me.dockUnlockIconCls,
    enableDockLockAction: true
}),

while the other five pass unconditionally. This shape is correct and should not change: with the default flipped, the guard still does the right thing for an explicit false opt-out, where withholding the icons is what should happen. Noted because it is the reason the flip is a one-line change rather than a projection edit.

  • Every existing spec passes enableDockLockAction: true explicitly (DockLockAction.spec.mjs, DockLayoutAdapter.spec.mjs, DockActionTooltips.spec.mjs, the dock-lock fixture app), and DockLockAction.spec.mjs:159 keeps an explicit-off arm. So no spec asserts the default value, and none reds on the flip — which also means the default is currently uncovered.

The Fix

  1. enableDockLockAction: false → true in src/dashboard/dock/Workspace.mjs, with the @member tag updated to match.
  2. Add the arm that makes the default a contract: a projection with no lock config at all must emit the lock action. The absence of such an arm is why the flip is otherwise invisible to CI.
  3. Sweep the class/projection JSDoc for prose that describes lock as the opt-in exception, and the learn/ guides for the same claim.

Acceptance Criteria

  • AC-1 — a DockWorkspace configuring nothing projects the lock action, asserted on a workspace instance with no enableDockLockAction config. Not on the adapter: LayoutAdapter.project({}) is a different layer and must keep pairing byte-identically with project({enableDockLockAction: false}), because a projector takes explicit context and an absent key there is not a request. Red-first — the arm has to fail with the old default in place, or it is not witnessing the default.
  • AC-2 — explicit enableDockLockAction: false still withholds the action, and still withholds dockLockIconCls / dockUnlockIconCls from the projection context.
  • AC-3 — the frozen action order is unchanged with lock present by default: overflow → reload → pin → pop-out → maximize → close-last.
  • AC-4 — lock stays focus-gated while unlocked and persistent while locked, so the way out never depends on re-entering a focus context.
  • AC-5 — setItemLocked keeps change class itemFlags; the flip must not reintroduce the shell restaging #18152 fixed. Asserted, because a default-on action is exercised on every host and a restaging regression would surface everywhere at once.
  • AC-6 — the existing lock suite stays green with its explicit true unchanged (DockLockAction, DockLayoutAdapter, DockActionTooltips, the dock-lock fixture app).
  • AC-7 — no JSDoc or guide still describes lock as the action a host must ask for.

Out of Scope

  • What locked means for a pane's content: the dockLock(locked) delegation contract (#18044) is untouched.
  • The structural half — reducer refusals, hidden close action, suppressed drag source, frame cue.
  • Persistence of the locked flag.
  • Consumer-side cleanup: a host currently passing enableDockLockAction: true keeps working, and removing that line is each host's own follow-up.

Avoided Traps

  • Citing #18014 AC-1 as a live contract. It is a closed ticket's scope boundary from an earlier era, and the operator's point is general: post-#18014 dock work is extensive, so a default's rationale has to be re-read against current source before it is treated as binding. This ticket exists because that re-read changed the answer.
  • Re-filing #18148. That ticket (closed NOT_PLANNED, no closing comment) bundled lock and pop-out under a consumer-reachability framing. This is one default, with two pieces of new information: the operator's explicit reversal, and three lock tickets that closed after it. Not a re-litigation — pop-out's half was separately resolved by #18153 / #18159.
  • Changing the conditional spread. It reads like the asymmetry to clean up and is in fact the shape that makes explicit opt-out correct. Flipping the default is enough.
  • Assuming CI would catch the flip. It would not: every spec sets the flag explicitly, so the default is uncovered and AC-1 is the arm that closes that gap rather than a formality.

Decision Record impact

none — a config default and its coverage. It supersedes a scope decision recorded in a closed ticket, not an ADR.

Related

  • #18014 — set the default off as an explicit scope boundary; this reverses it.
  • #17949 / #18044 / #18152 — the post-#18014 work that made lock engine-owned, which is the substantive argument.
  • #18151 — the class: the dock asking consumers to supply what only the engine has.
  • #18148 — closed NOT_PLANNED; superseded by this, narrower and operator-authorized.

Handoff Retrieval Hints

  • query_raw_memories: "lock default on engine owns the lock action post-18014 reality"
  • Anchors: enableDockLockAction, syncDockLockAction, Operations.setItemLocked, operationChangeClass.setItemLocked, DockLockAction.spec.mjs

Origin Session ID: e8ea32a2-b9a8-43ea-84ba-b83081ec4b3d