# Programs access selector

Agents configures access. Programs manages the callable entities.

## Surfaces

| Surface | Shows | Interaction |
| --- | --- | --- |
| Agent panel | Policy, Functions, Workflows and Applications counts, collapsible effective entries | Expanding reads structure and changes nothing. A collapsed list is cheap. |
| Selector left | Type and category navigation | Search, Selected only, Issues only |
| Selector centre | Names, descriptions, selected and availability states | Checkboxes edit the Agent draft, not global enablement. The detailed catalog is read when the section shows, so **Browse Programs** usually opens on a list already there; the last list read draws at once. |
| Inspector | Entry signature, input and output, direct dependencies, validation evidence | Opens Programs for source and full graph. Expands at most two levels. |
| Workflow tree | Stable circular expand controls, continuous hierarchy lines | Keyboard-expandable, honours reduced motion. Preview and access editing are separate actions. |
| MCP entries | Not repeated in Program choices | Managed in the MCP section. Runtime tools still use shared invocation. |

## Selection and failures

| Case | Rule |
| --- | --- |
| Modes | All, Selected, None, following the shared capability contract |
| Preset | A reference. Preview shows expanded names and version. Switching to explicit selection copies names only, not Program definitions. |
| `Selected=[]` | Same effect as None |
| Missing entry | Listed under Issues by stored name, removable, not invocable |
| Catalog failure | Nothing is said; the last list stays, or the list stays empty, while the read is tried again. "No matching entries" appears only for a search over a list that arrived |
| Done, Cancel | Done keeps local draft changes. Cancel restores the draft from when the selector opened. Neither saves. |
| Save | The global Save commits every section under one `expected_revision` |
| Validated mark | Never from a title, source status or stale test count. Evidence shows apart from capability readiness. Catalog APIs supply the metadata before the inspector counts as complete. |
| First-turn context | Resident schemas and scoped search guidance, not the full deferred inventory |
| Nested Workflow | Enforces the existing program and trust boundary. Selecting a Workflow does not authorize hidden tool calls. |

## Implementation status

| State | Items |
| --- | --- |
| In place | Agents page, saved configurations with revisions, memory policy, mode summary, lazy catalog dialog with search and checkboxes |
| Target | Two-level Workflow structure inspector, richer metadata |

**Acceptance**

- Real expand, search, select, close and reopen actions; preserved scroll and drafts.
- Denied calls rejected through the public executor.
- Narrow-screen and keyboard behaviour.
- No additional Workflow execution engine.

[Configuration contract](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/agent-configuration/agent-configuration-ui.html) · [Editor and core fields](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/agent-configuration/agent-core-configuration-ui.html) · [Capabilities](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/agent-configuration/agent-capability-configuration-ui.html) · [Implementation plan](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/agent-configuration/agent-configuration-plan.html)
