Expand description
Project authoring policy over host-authenticated, current cooperative state.
This cold, bounded library is not an authentication provider or a second
membership database. The native owner supplies a borrowed view while holding
its admission/state lock through the authorized operation and record commit.
Never construct that view from Vibe/MCP arguments, a checkpoint, local roster,
Identity.current_user, or a claimed DID. Serialized records are evidence,
never reusable authority. Supported slice: directly authenticated members;
agency delegation requires a separately verified host adapter.
Modules§
- delegation
- Versioned authoring adaptation of the shared agency and task contracts. Neither serialization nor policy success verifies adoption or grants access.
- package_
review - Exact saved-package workflow. Source grants never imply package authority.
Structs§
- Admitted
Membership - A canonical membership plus the native owner’s admission/revocation state. Constructing ProjectMembership itself is not admission.
- Authenticated
Principal - Rust-only result of a native authentication provider. No Deserialize or source-facing constructor exists. Fields are filled only by trusted host code after native proof/key/session and identifier association checks.
- Authoring
Limits - Caller-selected bounds checked before scanning or allocating evidence.
- Authoring
Permit - A borrowed decision, deliberately neither Clone nor Serialize. It is usable only while the host holds current state. Reauthorize every action; do not cache permits or release the owner lock before the operation commits.
- Authoring
Request - Contribution
Record - Canonical contribution plus exact editable source binding. No valuation, payment, permission, agreement adoption or human acceptance is implied.
- Document
Revision - Exact source state. This is not an artifact store stamp or an authority grant.
- Host
Authority View - Borrow the current native state, never a saved or request-supplied snapshot. The owner must hold its lock/transaction until mutation and evidence commit.
- Human
Authority Evidence - A projection of verified owner state, never an authentication input. A Human capacity tag alone does not populate the human principal field.
- Identifier
Association Evidence - Saved evidence of the exact association used; reopening it grants nothing.
- Qualified
Identifier - Current host-verified identifier association. All scope/issuer/source fields qualify the association; an equal string alone does not authenticate anyone.
- Review
Grant - Explicit review authority. Steward/contributor roles never imply review.
- Review
Record - An actual identified reviewer’s decision about this exact source state.
SoftwareAgentreview cannot be presented as a human acceptance gate.
Enums§
- Authoring
Action - Authoring
Error - Human
Authority Status - Principal
Kind - Actor capacity is separate from project role, authorship and paid status.
- Review
Decision - Work
Status - Actual compensation is independent of role/permission. A receipt reference is retained, not verified or converted into money by this authoring slice.
Functions§
- authorize
- Fail closed against the current cooperative owner. No heap allocation. Authentication and admission evidence are verified by the native host before constructing the view, not by this pure policy or by source-supplied strings.