symfonic.capabilities.memory.procedure_publish¶
procedure_publish ¶
Publish org skills to the platform corpus, reviewed and scrubbed.
The write side of cross-org learning. A skill travels
approved -> proposed -> published and every transition is explicit:
- propose: the org's approved+active skill is scrubbed (PII redacted to stable tokens; unresolvable rows refuse the proposal outright) and a proposal node is written in the SOURCE tenant. Nothing crosses yet.
- review: an org owner (or platform admin) approves or refuses. Approve copies the scrubbed snapshot to the platform tenant with provenance (source org/node, reviewer, scrub report); refuse records the reason. Decided proposals cannot be re-decided.
- revoke: the source org (or a platform admin) deactivates the platform copy. Recall filters active rows, so revocation takes effect on the next read; the row stays for audit.
All transitions run under the same review lock as skill review, so a
concurrent skill edit cannot interleave with a publish decision. Statuses
(pending-platform-review, publication-approved/refused) are
deliberately outside the skill lifecycle vocabulary: procedure_lifecycle
resolves anything but approved as inactive, so proposals and refused
rows can never be recalled as skills.
ProceduralPublishService ¶
Review-gated publication of org skills to the platform corpus.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
graph
|
Any
|
graph backend (reads/writes procedural nodes). |
required |
scrubber
|
Any
|
redaction engine with |
None
|
Source code in src/symfonic/capabilities/memory/procedure_publish.py
list_proposals
async
¶
Pending proposals in one tenant (the review queue).
Source code in src/symfonic/capabilities/memory/procedure_publish.py
list_published
async
¶
Active platform skills (what cross-org recall can see).
Source code in src/symfonic/capabilities/memory/procedure_publish.py
propose_publication
async
¶
Scrub an approved skill and record a platform proposal for it.
Source code in src/symfonic/capabilities/memory/procedure_publish.py
review_publication
async
¶
review_publication(scope: Any, proposal_id: str, *, decision: str, reviewer: str, reason: str = '') -> dict[str, Any]
Approve (publish the scrubbed copy) or refuse a proposal.
Only the source tenant's owners may decide; the transport layer enforces that from the verified principal before calling here.
Source code in src/symfonic/capabilities/memory/procedure_publish.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | |
revoke_publication
async
¶
Deactivate a platform copy. Only the publishing org (or a platform admin calling with its tenant header) may revoke, checked against the copy's own provenance -- never against a caller claim.