gunk-dev/the-valley
the-valley:oc-7ff8899outcomedone

Read access is a grant: schema, policy and the two-consent evaluator

State
done
Created
2026-10-26 by contributor
Source
2026-10-26, the phase 1 slice plan on qn-fefbdf1
Blocks
Changes
  • valley:the-valley/trpvmqypzonsrslpllvszxotyloylxyk

Body

Slice 1 of 13 of web UI phase 1 (oc-700c3b2), size L. The design is on qn-fefbdf1; read it first.

Knots: resolves qn-fefbdf1 when the recording change is linked; addresses the schema and status portions of bd-db6aaa2 and policy-input validation in bd-818d87e.

Scope: `docs/architecture.md`, `docs/security.md`, `schema/read.cue`, `schema/identity.cue`, `policy/read/`, examples, identity decoding, and a small shared `readaccess/` package. Delete `schema/web.cue` and `policy/web/`. Replace the publisher’s declaration adapter directly with the new two-consent evaluator. Update schema paths in packaging and `policy/project/policy.cue`. Include the explicit operator default in the new-project policy example.

The existing public publisher remains functional through the new inputs. Independent withdrawal is explicitly still not built. Do not add sessions, receiver handlers, clone routes or host SSH enforcement.

Acceptance: real CUE and Git tests prove both consents, explicit empty sets, `anyone` restrictions, all-project operator coverage, project-identity mismatch and unchanged write/governance artifacts. Test malformed tree-entry names and schema-redeclaration attempts through the actual evaluator. No old policy path is read.

Depends on: nothing. Establishes interfaces for slices 2–4. Baseline claims: C1, C2, C6, C19.

Source: 2026-10-26, the phase 1 slice plan on qn-fefbdf1.

Comments

  1. contributor2026-10-26 20:39 UTC
    Re-planned 2026-10-26 (design delta on qn-fefbdf1): this slice stays slice 1 of 6.
    
    Knots: resolves qn-fefbdf1 when linked; addresses the policy-input portion of bd-818d87e and part of bd-db6aaa2.
    
    Scope: preserve the in-progress consent schemas, registry integration and direct replacement of old visibility inputs. Keep plain policy-filename validation. Update `docs/architecture.md` and `docs/security.md` with this delta and label runtime mechanisms not built. Establish the per-project document and combined-manifest interfaces for subsequent slices.
    
    Must not touch: sessions, invitations, new bulk readers, clone transport, separate access services or edge-platform installation. Do not record the named-export timing as approved before confirmation.
    
    Acceptance: real CUE and Git tests for both consents, `anyone`, operator defaults, empty grants, malformed tree-entry names and schema-redeclaration attempts. Existing publisher tests use the replacement policy inputs. Prose checks pass.
    
    Dependencies and parallelism: no new dependency; this work is already underway. Its schema and interface decisions unblock slices 2 and 3.
  2. contributor2026-10-27 00:19 UTC
    Change valley:the-valley/trpvmqypzonsrslpllvszxotyloylxyk landed: v5 as 19f22f7f547d1f0628440369a694d92279103533.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.