Skip to content

Epic: Security settings manage explicit persistent source trust and destination permissions #3597

Open
5 of 15 issues completed

Description

@schlessera

Outcome

Settings exposes basic CRUD for trusted origins and GitHub repository/owner rules. Incoming-content trust and permission to send data while restricted are separate choices. A history review can save a future rule while resolving only its selected finalized trigger.

Why now

The unmerged scoped approvals tracked by #3595 are intended to reduce repeated network prompts, but do not provide persistent configurable trust or an owner-controlled way to learn common safe cases. The owner requested both trust lists in Settings and broader safe-review scopes.

Shared context

Part of #3428, under the controlled-egress work in #1645.

GovernancePolicySchema (packages/common/src/governance-policy.ts:132), createPolicyProposals (packages/ui-server/src/brain/policy-proposal.ts:101), createApifyRoutes (packages/ui-server/src/routes/apify.ts:45) and SettingsPanel (packages/ui-react/src/components/settings/settings-panel.tsx:42) provide the existing protected configuration and UI paths.

The repository design and ADR are on main. The complete reviewed design and gpt-6-astra review disposition remain the recorded ruling. #3599/#3600/#3601/#3604/#3602/#3603 are delivered with complete selected candidate and automatic-main qualification. The prior source-pointer refresh was at main 29203c43424f1916e7b5d079db4b97da5dbb3ed4; the latest delivery reconciliation uses fully qualified main 7e861bdb3ba0729e217f2980063e18f3dd0172df. Individual owner verdict mutation is now delivered by #3603 through merged #3661 at 1619741f291f525d17cde4970a5ada40644117c1. Protected owner publication for both trust lists is delivered by #3608/#3622 (65883f2d5). Origin/recipient live enforcement and Security Settings UI are now delivered. The combined rule-plus-verdict flow is now delivered by #3611/#4428; qualified Git source trust remains a separate open outcome. #3595 remains adjacent scoped network approval; classifier spike #3434 is separate.

Decision (maintainer, 2026-11-05)

The maintainer requested Settings CRUD for trusted origins and repositories/organizations, per-entry taint indicators with hover/tap details, and single-trigger human review that can restore a chat without clearing later triggers. This supersedes unconditional G6 stickiness for individually reviewed evidence once implemented. The requested gpt-6-astra source review found the exposure-lifecycle, coverage, authority, recipient-permission and provenance gaps; the revised design closes or explicitly qualifies them before implementation readiness. No additional runtime capability is claimed by filing this plan.

Constraints and non-goals

Protected Markdown remains authoritative with empty built-in trust lists. No personal owners or deployment details in the public project. Reuse the protected publication core with human Settings operation identity, never fabricate an agent turn. Source trust never silently grants recipient permission. New rules apply prospectively; all existing later triggers survive. Only taint/trust revisions update live, not ordinary governance policy. Endpoint permissions never override deny/allowlist, bytes, provider credentials or outward writes. Git rules cannot activate without independently verified repository provenance.

Breakdown

The canonical model (#3607), durable human publication (#3608), origin/recipient live enforcement (#3609), and Security Settings UI (#3610) are delivered. #3610 closed after #4425 and its #4441 recovery, with full successful main run 44929789192 on 50fc64314c1f21cfb04c49e69d7d284e5b981a29. All 17 executed job checkout identities match that squash, including successful layout (2); only the two expected push repeatability jobs were skipped.

Publication still uses the protected Settings identity and exact-base journal (createTrustSettings, packages/ui-server/src/brain/trust-settings.ts:84; createTrustSettingsRoutes, packages/ui-server/src/routes/trust-settings.ts:8). The UI exposes incoming-source trust and recipient permission separately. Repository create/edit remains disabled/unverified until qualified enforcement exists; source/recipient origin CRUD is available now.

#3611 is delivered by #4428, squash 7e861bdb3ba0729e217f2980063e18f3dd0172df, with successful exact-candidate run 44932523390 and full automatic main run 44934429808. All 17 executed main checkouts and all 13 runtime resource parent/tree receipts match the squash; only the two expected push determinism jobs were skipped. All five core implementation children #3607–#3611 are closed. Qualified repository provenance remains in sibling epic #3598. Existing native follow-ups #4351, #4352 and #4370 remain open at milestone 0.45.0. The unscheduled review sub-issues #4432, #4433, #4434, #4436 and #4442 remain open. Related test follow-up #4440 is also open without a milestone and is not a direct sub-issue; the isolated cancelFuture test gap is recorded on #4436. These deferrals do not reopen #3611; #4439 separately tracks the CI coordinator gap. These are separate remaining scopes, so this epic stays open. Child milestones are preserved.

Definition of done

  • Both requested lists support canonical create/read/edit/remove with exact scope, reviewed effects and 320px/desktop accessible layouts.
  • Origin, explicit tunnel and GitHub identity types have bounded spoof-resistant canonicalization; source/recipient capabilities are distinct and recipient defaults off.
  • Live trust removal fences new admissions before reporting enforcement; in-flight input cannot keep a removed source grant without splitting/interruption.
  • Settings publication/retries/crashes preserve exact-base safety and honest publication proof; no second privileged writer exists.
  • Optional rule-plus-verdict review has durable partial/unknown receipts and never clears B/C or claims a removed rule remains active.

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. This remains an epic, never an agent-ready coding task.

Source refresh 2026-11-07: folded the delivered decision/collector/verdict/history/live-admission foundations and source-anchor drift into the current context at 29203c43424f1916e7b5d079db4b97da5dbb3ed4. Definition of done, scope exclusions and all sub-issue criteria remain unchanged; no unfinished parent release commitment is inferred.

Triage 2026-11-08 at main 1619741f291f525d17cde4970a5ada40644117c1: Folded the recorded #3603/#3661 owner-verdict delivery into current context. Preserve the separate remaining UI, persistent trust and Git-provenance scopes, native membership and epic-only readiness. No new safety/runtime qualification is claimed.

2026-11-10 triage at main 3aadc8df5: repaired line citations that moved since the last pass (by named anchor). Scope, rulings, breakdown, labels and readiness unchanged.

Source refresh 2026-11-20 at main cb4236234: verified all four cited anchors and repaired GovernancePolicySchema/createPolicyProposals line drift during #3609 readiness review. Scope and outcomes are unchanged.

2026-11-20 triage — Folded the existing #3608 delivery receipt into the active brief and verified the three remaining native tasks.

2026-11-21 delivery reconciliation — Recorded qualified #3609/#3610 outcomes and closed #3610 after the repaired squash passed every selected main job. Refreshed the moved createTrustSettings anchor. #3611, qualified Git provenance and the listed follow-ups remain open; no completion of those scopes or of this epic is claimed.

2026-11-21 combined-review reconciliation — #3611's five acceptance criteria are complete after #4428 and full main qualification on 7e861bdb3ba0729e217f2980063e18f3dd0172df. The five core implementation children are closed. Eight direct sub-issues remain open: #4351, #4352, #4370, #4432, #4433, #4434, #4436 and #4442. Related #4440 and the #4436 cancelFuture test note also remain open. Preserve child milestones; this epic stays open because its remaining scopes and full definition of done are not complete.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    epicA tracking issue. The work lives in its sub-issues; this one is never coded directly.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    securityAuth, isolation, egress, secrets, or anything in the threat model.
    on Nov 5, 2026
  2. added
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    on Nov 5, 2026
  3. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    2026-11-05: shared prerequisite #3599 delivered in PR #3618, squash 19eb38f9096c2c9b1d344326593d7c076d13aa12, with passing exact-candidate confirmation and verified main ancestry. The plan and ADR are design contracts; neither epic runtime is complete. #3600 and #3607 have their sole delivered blocker reconciled and are the next independent implementation slices. Git qualification #3612 also delivered, with the metadata-authority ruling recorded separately on #3613. Combined-commit gpt-6-astra reviews remain after each completed epic.

  4. 7 remaining items

  5. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    2026-11-20: #3609 readiness review at main cb4236234 verified all four epic source anchors. Folded current GovernancePolicySchema (132) and createPolicyProposals (101) line numbers into the body; route and Settings anchors still match. No scope, readiness or runtime outcome changes.

  6. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-20. #3607 and #3608 are complete. #3609 is next, with #3610 and #3611 waiting for its live enforcement. The complete Settings and combined verdict proof remains open.

  7. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    2026-11-21: #3609's exact-origin/explicit-tunnel source trust and independent recipient enforcement are delivered through #4270, admission recovery #4405 and socket-isolation fix #4409. Final squash a09942a is fully qualified by automatic main run 44903045249; all selected categories and native/provider-history evidence passed, with only the expected unselected main repetition jobs skipped. The red-main coordinator cleared its record, and #3609 is closed at 0.45.0. Removed #3609 as the final active blocker of #3610 and #3611; both retain agent-ready with their existing scheduling. Their UI/review implementations are still open. Repository transport/rule enforcement remains its separate #3613/#3615 scope; no epic completion is claimed.

  8. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    Progress — 2026-11-21

    P1 — Delivered: #3607, #3608, #3609 and now #3610. The Settings UI landed in #4425 and its compatibility/layout repair in #4441. #3610 is closed at milestone 0.45.0 after main run 44929789192 passed in full on 50fc64314c1f21cfb04c49e69d7d284e5b981a29. Layout (2) passed 839 tests, and all 17 executed job checkouts match the squash. Only the two expected push repeatability jobs were skipped.

    P2 — Next implementation/qualification: #3611's optional future-rule plus selected-trigger verdict flow. Git acquisition/provenance remains the separate #3598 epic; this delivery does not activate unqualified repository enforcement.

    P3 — Still open: existing milestone-0.45.0 follow-ups #4351/#4352/#4370, and unscheduled review follow-ups #4432–#4434, #4436 and #4442. #4439 separately tracks the cancelled-run coordinator gap. The closing comment on #3610 reconciles all seven acceptance criteria and explicitly preserves the accepted edge deferrals.

    The active breakdown is updated; child release assignments are unchanged. #3597 remains open.

  9. schlessera commented on Nov 21, 2026

    @schlessera
    OwnerAuthor

    Progress — 2026-11-21

    The combined rule-plus-verdict slice #3611 is delivered by #4428, squash 7e861bdb3ba0729e217f2980063e18f3dd0172df, milestone 0.45.0. Candidate 44932523390 and automatic main run 44934429808 passed. All 17 executed job checkout identities and 13 resource parent/tree receipts match that squash; the two push determinism skips are expected. #3611's body now reconciles every acceptance criterion.

    All five core slices #3607–#3611 are closed. This epic remains open: direct sub-issues #4351, #4352, #4370, #4432, #4433, #4434, #4436 and #4442 are still OPEN. Related #4440 is OPEN without a milestone; it is not a direct sub-issue. The isolated cancelFuture test gap is recorded in a comment on #4436, not a separate issue. Qualified Git provenance remains in sibling epic #3598; no completion of that separate scope is claimed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.epicA tracking issue. The work lives in its sub-issues; this one is never coded directly.priority: p1Scheduled into the current or next milestone.securityAuth, isolation, egress, secrets, or anything in the threat model.type: featA new capability or a change in user-visible behaviour.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions