Skip to main content

Module authoring

Module authoring 

Source
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§

AdmittedMembership
A canonical membership plus the native owner’s admission/revocation state. Constructing ProjectMembership itself is not admission.
AuthenticatedPrincipal
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.
AuthoringLimits
Caller-selected bounds checked before scanning or allocating evidence.
AuthoringPermit
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.
AuthoringRequest
ContributionRecord
Canonical contribution plus exact editable source binding. No valuation, payment, permission, agreement adoption or human acceptance is implied.
DocumentRevision
Exact source state. This is not an artifact store stamp or an authority grant.
HostAuthorityView
Borrow the current native state, never a saved or request-supplied snapshot. The owner must hold its lock/transaction until mutation and evidence commit.
HumanAuthorityEvidence
A projection of verified owner state, never an authentication input. A Human capacity tag alone does not populate the human principal field.
IdentifierAssociationEvidence
Saved evidence of the exact association used; reopening it grants nothing.
QualifiedIdentifier
Current host-verified identifier association. All scope/issuer/source fields qualify the association; an equal string alone does not authenticate anyone.
ReviewGrant
Explicit review authority. Steward/contributor roles never imply review.
ReviewRecord
An actual identified reviewer’s decision about this exact source state. SoftwareAgent review cannot be presented as a human acceptance gate.

Enums§

AuthoringAction
AuthoringError
HumanAuthorityStatus
PrincipalKind
Actor capacity is separate from project role, authorship and paid status.
ReviewDecision
WorkStatus
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.