Repository navigation
Description
Out of scope
No transport implementation, Settings writer/UI, credential grant or activation of a rule that cannot be enforced.
Context
Part of #3597.
GovernancePolicySchema (packages/common/src/governance-policy.ts:99) currently has only hostname-level taint egress allowances. createPolicyProposals (packages/ui-server/src/brain/policy-proposal.ts:76) is the privileged writer; createApifyRoutes (packages/ui-server/src/routes/apify.ts:45) demonstrates live owner-authorized Settings policy changes.
Read the reviewed implementation design and requested gpt-6-astra review/disposition. The repository plan docs/plans/reviewable-session-safety.md and ADR docs/decisions/session-safety-reviews.md landed through #3599 at main 19eb38f9096c2c9b1d344326593d7c076d13aa12. Read them alongside the complete public design/review; their DTOs remain prospective until implemented. Source pointers below were verified at that main SHA, independently of the dirty working checkout. ROADMAP.md “What binds future work”, the provider-history decision, G6 and the protected policy-writer boundary apply.
Scope
- Add bounded empty-by-default taint trust schema and canonical identity/matching for web origins, explicit tunnel endpoints, exact GitHub repo identities and owner namespaces.
- Keep incoming-content trust and restricted-destination permission as distinct capabilities; destination permission defaults off and is unavailable on repo rules.
- Expose rule identity/revision, enforcing policy facts and disabled/unsupported provenance capabilities without adding another policy writer.
Acceptance criteria
- No origin/CONNECT conflation, substring/subdomain wildcard or GitHub path-boundary spoof is accepted; IDNA/trailing-dot/IP/default-port semantics are pinned.
- Source-only trust cannot skip a taint-network approval after an unrelated taint. Repo/owner rules never grant generic host/recipient or write authority.
- Stable exact-repo identity and current-owner namespace semantics prevent rename/transfer/recreation from silently broadening a rule; unavailable verification is explicit.
- Rules are prospective: CRUD cannot reclassify old occurrences, and trusted-at-admission audits retain rule/hash/revision after rule deletion.
- Personal accounts are never built-in defaults; rule validation, duplicate handling and bounds have adversarial tests.
Verification
Schema/parser and pure matching tests over verified/unknown provenance facts: adversarial owner/segment, identity, IDNA/port/tunnel and duplicate/bounds cases. Matchers must reject unknown authority and cannot self-verify worker claims. Mutate exact-owner/segment or source-versus-recipient matching and watch the named test fail. #3608 supplies actual owner HTTP/publication proof and #3609 supplies live admission/revocation proof; this schema slice does not depend on their unbuilt endpoints.
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.
Blocked by #3599
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.
Dependency reconciliation 2026-11-05: #3599 merged through PR #3618 and is closed. Its sole output prerequisite is delivered; blocked is removed without claiming implementation or bypassing fresh readiness/ownership checks.
Verified delivery — 2026-11-05
Delivered PR #3620, squash 4e6a2d8c840bcf2c74e20641d4603968b7b77476, verified ancestor of fetched main. Exact-candidate CI 42021780331 passed all selected categories and proof; checkout 8ead033cce27ea5fc61c82c3cc9eeca5c6422030 has base 19eb38f9096c2c9b1d344326593d7c076d13aa12, head 29738e4dcd3944b22f8046a92b346f022b7a9029, tree 93fd3a2d28a80b44078897b2ab1eb6d2fe490b74. The actual squash has that parent/tree. PR and closed #3607 retain milestone 0.45.0.
Inspected actual runtime/runtime_host and unit-shard logs at that checkout. Both provider-history files ran in hosted unit shards 2 and 3, with passing prefix assertions, and selected native proof passed. The intentionally retained-index negative control is explicitly verified by the native harness; its expected failure is not an ignored qualification failure. Earlier local unsupported-worker failures retain their original identity and are not relabeled as local passes. Automatic main CI 42024989087 has started; no main-push pass is claimed yet.
This delivers the bounded schema/pure-matcher slice only. Runtime trust remains disabled. #3608 can proceed; #3609/#3613 still require their other named outputs. No Settings writer, repository transport or historical clear is implied.
Activity
schlessera commentedon Nov 5, 2026
Unblocked: #3599 is closed, so
scripts/sync-project.tsis removing theblockedlabel.schlessera commentedon Nov 5, 2026
Claiming only #3607 for the scoped schema/pure-matching slice on
feat/3607-session-safety-schema. Claim token:schema-3607-20261105-3af04948. #3599 is delivered; no live #3607 implementation PR found. Collision inspection reports shared dependency closures with open PRs; the cited policy schema has no direct path collision. This slice will not modify the occurrence recorder or implement transport, admission, Settings publication or review. Completed work remains draft for parent qualification/merge.schlessera commentedon Nov 5, 2026
Scoped schema implementation handed to the parent in draft PR #3620, head
29738e4dcd3944b22f8046a92b346f022b7a9029, based on delivered main19eb38f9096c2c9b1d344326593d7c076d13aa12.Empty-by-default bounded strict trust data, canonical origin/tunnel/GitHub identity parsing, prospective pure matching, independent host-verification refusal, separate source/recipient capabilities, detached audit identity/hash/revisions, same-owner rename revalidation and explicit disabled runtime capabilities are implemented. CLI/package contract documentation, API reports and a minor changeset are included. No occurrence recorder, Settings publisher, live admission or repository transport is implemented or enabled.
Proof: 37 scoped tests / 321 assertions passed; final
check:pr --base origin/mainpassed, including 1254 fast invariants; strict typecheck passed with the repository-configured 6 GiB heap. Source-versus-recipient and exact-owner/prefix mutations both failed their named expected assertions and were restored. Additional malformed-revision failing-first coverage is fixed and passing.Runtime proof remains incomplete: the broader governance run was 47 pass / 16 fail with user-namespace/UID mapping and native immutable startup-view prerequisites unavailable. Both real provider-history guards failed before proving prefix stability (Pi reports the unsupported bubblewrap boundary; Claude worker startup exits 1). No guard/test was weakened. The PR records the full limitations. One current-check/review read found the latest contract check successful, two superseded contract cancellations, changeset/project sync in progress, and no reviews/comments; this is not complete candidate proof.
Next action: parent keeps the PR draft until it qualifies the missing runtime/history and complete selected hosted proof, assigns/verifies the confirmed release milestone, and owns reservation/confirmation/final review/merge.
Refs #3607intentionally leaves this issue open until that evidence exists. This worker requested no reservation, confirmation or CI watch. Releasing only claimschema-3607-20261105-3af04948; no next issue is selected.CONTRACT: feat(policy): add bounded prospective trust schema (#3607) (#…
schlessera commentedon Nov 5, 2026
Delivered PR #3620, squash
4e6a2d8c840bcf2c74e20641d4603968b7b77476, verified ancestor of fetched main. Exact-candidate CI 42021780331 passed all selected categories and proof; checkout8ead033cce27ea5fc61c82c3cc9eeca5c6422030has base19eb38f9096c2c9b1d344326593d7c076d13aa12, head29738e4dcd3944b22f8046a92b346f022b7a9029, tree93fd3a2d28a80b44078897b2ab1eb6d2fe490b74. The actual squash has that parent/tree. PR and closed #3607 retain milestone 0.45.0.Inspected actual runtime/runtime_host and unit-shard logs at that checkout. Both provider-history files ran in hosted unit shards 2 and 3, with passing prefix assertions, and selected native proof passed. The intentionally retained-index negative control is explicitly verified by the native harness; its expected failure is not an ignored qualification failure. Earlier local unsupported-worker failures retain their original identity and are not relabeled as local passes. Automatic main CI 42024989087 has started; no main-push pass is claimed yet.
This delivers the bounded schema/pure-matcher slice only. Runtime trust remains disabled. #3608 can proceed; #3609/#3613 still require their other named outputs. No Settings writer, repository transport or historical clear is implied.