Skip to content

ui-react: add trusted origins and repositories/organizations CRUD to Security settings #3610

Closed

Description

@schlessera

Out of scope

No full Settings redesign, hardcoded personal accounts, alternate policy writer or automatic legacy-history clearing.

Context

Part of #3597.

SettingsPanel (packages/ui-react/src/components/settings/settings-panel.tsx:42) already has Security and Devices & agents sections. AgentPolicyGroup (packages/ui-react/src/components/settings/agent-policy-group.tsx:8) shows enforcing policy facts, and Apify settings demonstrate protected exact-base proposal review.

Read the reviewed implementation design and requested gpt-6-astra review/disposition. The reviewed implementation plan and ADR are delivered at docs/plans/reviewable-session-safety.md and docs/decisions/session-safety-reviews.md. Current Settings source anchors were verified on qualified main a09942a60230be010b68d46c17af930a17ba3a1d; the original historical design review remains linked above. ROADMAP.md “What binds future work”, the provider-history decision, G6 and the protected policy-writer boundary apply.

Scope

  • Add the two requested canonical trust lists with create/read/edit/remove, type-specific inputs, owner-only mutation and truthful capability/enforcing-policy state.
  • Reuse existing kit layout and protected writer review; explain future input trust and endpoint-recipient consequences before Save.
  • Preserve drafts, focus and auth isolation through stale-base, background updates, invalid policy and responsive layout changes.

Acceptance criteria

  • Origins and exact repo/owner rows can be added, read, edited and removed without editing YAML; targets and broad owner scopes are never truncated or silently normalized into a broader grant.
  • Opaque tunnel rows are explicitly labeled and never presented as verified HTTPS; duplicates and field errors have actionable messages.
  • An unauthorized user sees read-only state; missing enforcement capability and last-valid/default policy are explicit, not claims that a configured rule is active.
  • At 320px and desktop, dark/light themes retain 44px controls, keyboard reachability, correct focus return and unsaved drafts across errors.
  • Settings-only CRUD never resolves historical events, and removing a rule explains its future-only effect.
  • Source trust and recipient permission have separate visible controls; recipient permission defaults off with primary copy explaining data sending.
  • Repo rule rows stay disabled/unverified until the repository enforcement capability exists; initial origin CRUD does not wait on transparent Git support.

Verification

Real browser tests with current host/API doubles at the lowest shared request layer, pointer/keyboard/touch and owner/auth-loss scenarios; no styling-only predicate proof.

Every behavioral implementation needs meaningful failing-first/mutation receipts and the relevant real runtime/browser proof. Run contribution preflight before opening a PR; missing/cancelled selected hosted proof is not green. No tests may require an API key or external network.

Contract impact

Implement the reviewed optional schema/API/history additions and the relevant effective-taint behavior. Update integration contracts and API reports in the same implementing commit with CONTRACT metadata and a minor changeset. The G6 default/coverage and effective-state semantic break follows the recorded breaking-before-1.0 ruling and breaking label; preserve mixed-version fallback.

Triage 2026-11-05 at main 35217d283b849b5ef81700d5d4c2ec7486405d12: verified source anchors and the published plan/review, retained all still-open output dependencies and existing native parent, and classified this requested but unscheduled work as priority: p2 without inventing a release milestone. The brief is complete with no independent needs gap; agent-ready may coexist with blocked, and this issue remains unpickable until its named outputs exist.

2026-11-20 dependency reconciliation: #3608 delivered through #3622, squash 65883f2d5332220db8a17fd1ddba0f926a1888be, with passing exact-candidate run 44748884654 and automatic main run 44751827563; actual checkout identities and squash parent/tree verified. Removed only the satisfied #3608 declaration. #3609 remains open, so blocked is retained. Original scope and acceptance criteria are unchanged; this reconciliation claims no implementation of this issue.

2026-11-21 dependency and readiness reconciliation: #3609 is delivered and closed after #4270, admission fix #4405 and socket fix #4409. Automatic main run 44903045249 on a09942a passed every selected job, with actual checkout/tree proof and hosted native/provider-history evidence. Removed the satisfied active #3609 declaration and blocked label. No active dependency or independent needs gap remains; retained the existing agent-ready label and original scope, acceptance criteria, priority and release scheduling. Repository choices stay disabled/unverified until their own enforcement capability exists, as this issue already specifies. This reconciliation claims no implementation of this follow-on issue. Current source anchors were refreshed; earlier dated dependency notes remain historical context.

2026-11-21 delivery reconciliation: #4425 delivered the Settings UI and additive read contract; #4441 repaired the Settings layout fixtures and conservative missing-capability fallback. Full main run 44929789192 on 50fc64314c1f21cfb04c49e69d7d284e5b981a29 passed all selected jobs, including layout (2). All 17 executed job checkout logs and their embedded resource checkout receipts match that SHA/tree; only the expected push repeatability jobs were skipped. Milestone 0.45.0 is retained. The acceptance boxes reflect delivered capability-gated behavior, with the independently reviewed edge/hardening deferrals explicitly retained in #4432, #4433, #4434 and #4442; #4439 tracks the separate coordinator gap. See the closing reconciliation comment for the criterion-by-criterion proof and those limitations. Qualified Git provenance and the combined verdict flow remain sibling work, not claims of this issue.

Activity

  1. added
    type: feat
    area: ui-sdk
    area: ui-react
    blocked
    on Nov 5, 2026
  2. added
    contract
    security
    agent-ready
    priority: p2
    on Nov 5, 2026
  3. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    2026-11-20: removed only the satisfied #3608 dependency after #3622's qualified delivery. #3609 is still open, so blocked is retained. Original scope and acceptance criteria remain unchanged.

  4. removed
    blocked
    on Nov 21, 2026
  5. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    2026-11-21: removed the final active #3609 dependency after its original criteria were reconciled and it was closed. Final automatic main run 44903045249 passed every selected job on a09942a, including FULL-writer peers, native admission and provider-history guards. The only skips were the two repetition jobs intentionally unselected for main pushes. Updated the body and source anchors, removed blocked, and retained the existing agent-ready label: no active dependency or independent needs gap remains. Original feature criteria, priority and release scheduling are unchanged; this is readiness reconciliation, not implementation of this issue.

  6. self-assigned this
    on Nov 21, 2026
  7. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-ac692f76. Branch: feat/settings-trusted-origins-crud.

  8. added this to the 0.45.0 milestone on Nov 21, 2026
  9. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    Coordination for #3611: the combined review uses the existing trust-settings publisher and adds a host-only optional safety-review binding to its durable payload/commit fence. UI work is in safety-indicator.tsx, safety-reviewer.ts and API methods prefixed safetyFuture. No Settings CRUD components are being edited. Please keep these additions when refreshing the shared publisher/API surfaces.

  10. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    PR #4425 merged as 70970e41a997869e97e06a72f5dd949b244ea1f0. Its squash tree matches the qualified candidate checkout (c3f0ac41d0714337af6d5b4ba3a39635fcc89508), and the squash is on main. Candidate confirmation run 44920884959 passed.

    Reopened after automatic closure: this issue stays open until the squash's main CI run 44922440401 qualifies. Milestone 0.45.0 is retained. Main qualification and final reconciliation remain pending.

  11. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    Delivery reconciliation — 2026-11-21

    Closing #3610 after full automatic-main qualification. #4425 delivered the feature as 70970e41a997869e97e06a72f5dd949b244ea1f0; #4441 delivered the layout/compatibility repair as 50fc64314c1f21cfb04c49e69d7d284e5b981a29. Main run 44929789192, attempt 1, concluded success. Milestone 0.45.0 is assigned and read back.

    Every acceptance criterion

    ID Criterion Delivered evidence / qualification
    A1 Canonical origin and exact repository/owner create/read/edit/remove, full scopes Real-browser canonical origin CRUD and both qualified repository/owner host-double CRUD cases pass. Full targets, stable identities and broad future-owner scope remain visible; protected exact-byte review precedes publication. Actual repository creation/editing stays capability-gated as A7 requires.
    A2 Explicit opaque-tunnel scope, duplicates and field errors Tunnel rows say opaque connection, not verified HTTPS. Invalid origins and duplicate canonical targets retain the draft and show actionable errors. Named mixed-version/tunnel and duplicate/cancel browser cases pass.
    A3 Read-only authority and honest capability/policy facts Non-owners and old hosts without mutationAllowed are read-only. Missing capability objects/fields disable the corresponding write and disclose unconfirmed enforcement. Invalid/default/last-valid facts, denied refreshes and auth loss are covered. The last-valid warning's wording during refresh remains the explicitly accepted #4433 follow-up.
    A4 320px/desktop, dark/light, 44px reach, keyboard/focus and drafts Fine/coarse/mixed pointer, native touch, keyboard review/cancel, stale-base/error, remount and draft-recovery cases pass. Full Settings manual traversal passes at 320/768/1280 in both themes. The successful-save Add/Edit opener-return edge remains the explicitly accepted #4434 follow-up; it is not claimed fixed here.
    A5 Future-only CRUD and removal, no historical resolution Settings uses only the protected trust publication/read paths. Before removal the UI explains future-only input/data-sending effects and unchanged historical events. Historical trigger verdicts remain the separate #3611 flow.
    A6 Separate source/recipient controls, recipient off by default The incoming-source and data-sending checkboxes are independent; initial recipient permission is unticked with explicit restricted-data-sending copy. The recipient-default mutation killed all four canonical width/theme cases before restoration.
    A7 Repository gating; origins do not wait for Git support Repository/organization rows disclose disabled/unverified enforcement while the real host lacks qualified repository capability. Qualified host doubles exercise the ready path, while origin CRUD uses its existing qualified enforcement. No Git-provenance completion is claimed.

    The additive read contract, API reports and changesets are on main. Required local build/typecheck/preflight and failing-first/mutation receipts are retained on the two PRs. Final focused recovery proof passed 231 real-browser/layout cases and 456 fast tests; the full main run below supplies complete selected hosted proof. Provider-facing history is unchanged.

    Full main checkout proof

    Every executed job below concluded success. Each job's actual checkout log reports 50fc64314c1f21cfb04c49e69d7d284e5b981a29. Every embedded resource checkout receipt also matches tree 40b8a3d5ed7866073cd6c73f9442d7e321073c1f, the tested candidate/squash tree. Squash parent and ancestry on origin/main were independently verified.

    Job Job ID
    changeset 136923670253
    pack 136924112178
    runtime 136924112184
    browser (3) 136924112194
    layout (1) 136924112219
    verify 136924112225
    browser (2) 136924112226
    unit (2) 136924112252
    captures 136924112270
    browser (1) 136924112272
    unit (4) 136924112283
    runtime_host 136924112289
    layout (2) 136924112300
    unit (1) 136924112309
    endurance 136924112371
    unit (3) 136924112410
    integrated or exhaustive proof 136930512064

    layout (2), job 136924112300 passed 839 tests, including all six previously failing Settings pane width/theme cases. determinism and browser_determinism were the only non-success jobs and were intentionally skipped on this push; no selected job was missing, cancelled or failed.

    Accepted follow-ups remain open

    All five have no release milestone. These independently reviewed deferrals remain explicit; closing this delivered Settings slice does not claim them fixed. #3597 remains open for #3611 and its other remaining scopes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-reactarea: ui-sdkcontractpriority: p2securitytype: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions