Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: label the Digital Twin personality provider/model select for screen readers (#3921)

[._.]/ Adam Eivyac7a508d031d
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 53f7b54d99..f5b9139971 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -39,6 +39,8 @@
## Changed
+- The AI provider/model dropdown on the Digital Twin personality panel — the one shown before any traits have been analyzed — now carries a screen-reader label. It sat in a centered row next to the Analyze Traits button with no `id`, no `<label htmlFor>` and no `aria-label`, so focusing it announced only an option string like "Example Provider - example-model" with nothing saying what the choice was for. A visually hidden `<label htmlFor="personality-model-select">AI Provider & Model</label>` now names it without changing the layout.
+
- `docs/PORTS.md` now matches the code it documents. The allocation table labelled `portos-ui`'s port 5554 `ui`, but the baseline app entry in `server/services/apps.js` has always registered it as `devUi` — so anyone matching the doc against `/api/apps` output saw a label that wasn't there. The recommended-range table was drifting the other way: it opened the core block at 5554, leaving the `:5553` loopback HTTP mirror undocumented as a reserved port, and closed it at 5560, which put `portos-db` on 5561 inside the "reserved for PortOS extensions" band. Core services now read 5553-5561 with extensions starting at 5562, and the common-labels list gained the `api-local` and `devUi` entries the table already uses.
- The series arc verifier can now see the world canon it was already judging against. A Universe Builder world keeps its factions, locations, vehicles, artifacts and interfaces as category variations; the named-canon trunks the verify prompt rendered stay empty until prose mints entities into them. So the verifier was handed a block labelled "world canon" that omitted the entire built world, and reported locked faction cards as invented and "absent from the World Canon" — findings no arc edit can ever close. That is a stall rather than a nuisance: the foundation gate's structure repair reverts its whole rewrite whenever verification leaves any blocker, so one permanent false positive discards every real fix beside it and the autopilot pauses. The sibling arc-resolve and volume-verify prompts already rendered this block, which is exactly why the verify/resolve pair could never converge. The arc-verify prompt now renders the category and composite canon, states that a listed entity is grounded, and a new contract test holds the pair to one world — plus the field-level half of the same class, asserting that every record field the checklist cites is one the context actually renders.
diff --git a/client/src/components/digital-twin/PersonalityMap.jsx b/client/src/components/digital-twin/PersonalityMap.jsx
index 09cc14afa9..fc7f7e4f57 100644
--- a/client/src/components/digital-twin/PersonalityMap.jsx
+++ b/client/src/components/digital-twin/PersonalityMap.jsx
@@ -116,7 +116,9 @@ export default function PersonalityMap({ traits, confidence, providers, onAnalyz
No personality traits analyzed yet. Run an analysis to extract Big Five traits from your documents.
</p>
<div className="flex flex-col sm:flex-row items-center justify-center gap-3">
+ <label htmlFor="personality-model-select" className="sr-only">AI Provider &amp; Model</label>
<select
+ id="personality-model-select"
value={selectedProvider ? `${selectedProvider.providerId}:${selectedProvider.model}` : ''}
onChange={(e) => {
const [providerId, model] = e.target.value.split(':');
diff --git a/client/src/components/digital-twin/PersonalityMap.test.jsx b/client/src/components/digital-twin/PersonalityMap.test.jsx
new file mode 100644
index 0000000000..436b194e31
--- /dev/null
+++ b/client/src/components/digital-twin/PersonalityMap.test.jsx
@@ -0,0 +1,18 @@
+import { describe, it, expect } from 'vitest';
+import { render, screen } from '@testing-library/react';
+
+import PersonalityMap from './PersonalityMap';
+
+const PROVIDERS = [
+ { id: 'example-provider', name: 'Example Provider', defaultModel: 'example-model', models: [] }
+];
+
+describe('PersonalityMap provider picker', () => {
+ it('labels the provider/model select so screen readers announce it', () => {
+ render(<PersonalityMap traits={null} confidence={null} providers={PROVIDERS} />);
+
+ const select = screen.getByLabelText('AI Provider & Model');
+ expect(select.tagName).toBe('SELECT');
+ expect(select).toHaveValue('example-provider:example-model');
+ });
+});