Workflow versions, exports and reviewed publishing
Immutable snapshots, revision conflicts, four export formats and opt-in technical profiles.

Originals, proposals and revision checks
- Original and proposal drafts are independent. Publishing inserts a new snapshot with a workflow-wide version number; it does not overwrite an earlier version.
- Comparison uses stable step IDs to identify additions, removals, edits and order changes. Metadata changes are shown field by field.
- Each save carries the expected draft revision. A stale editor receives HTTP 409 instead of replacing a newer draft. The database locks the parent workflow while saving or publishing.
Stale draft response
HTTP 409
{
"error": "This draft changed elsewhere. Reload before saving again."
}Four exports from the selected snapshot
SKILL.md, AGENTS.md, JSON, YAML.
The preview and download use the selected published version. JSON includes schemaVersion, version, kind, publishedAt and the document fields. YAML uses the JSON-compatible YAML 1.2 representation; the Markdown formats contain the procedure and validation instructions.
Exports exclude account IDs, routing tokens and email history. Private exports include context and notes: inspect the preview before sharing them.

Public copies with consent and revision-bound approval
- The owner prepares an editable copy of a published snapshot. Context and notes are cleared; step IDs are regenerated for the public copy.
- Submission requires publication consent and an anonymization acknowledgement. Common contact details, credential patterns and private paths are blocked automatically; the reviewer still checks every field.
- A verified reviewer can approve or request changes. Self-approval is rejected. Approval applies to the exact pending revision.
- Resubmitting a copy removes its public visibility until another approval. Withdrawal also removes the procedure from public profile evidence on the next read.
Public data boundary
Anonymous reads use dedicated public views. The library exposes only these top-level fields:
id · content · evidence · published_atSource workflow IDs, owner IDs, source version IDs, review notes and email routing stay private. Row-level security limits authenticated reads of private records to their owner; mutations go through server-authorized RPCs.
Profiles with selected procedures and evidence
A technical profile has its own public name, handle, headline, biography and skills. Sharing requires separate consent. Only approved public procedures owned by that account can be selected.
Each linked procedure includes decisions, validation and improvements described by its author. The profile does not expose the private request or email channel.
/workspace- Saved technical, company or recruiter experience. This preference grants no additional permissions.
/me?new=1&company=1- Company context selected in the request form.
/talent·/people/[handle]- Search shared profiles and inspect their selected public procedures.

Account cleanup, filters and navigation
- Deleting an owner account no longer fails on the version author foreign key. Its constraint is checked after the workflow and version cascades finish; surviving versions retain author reference checks.
- Library search and category controls now align at the same height. The search icon and clear button stay inside the input.
- Library and Technical profiles use the same Back to Modex link as the other catalog pages.
- The shared document viewer, export controls and this update support English and Spanish.
Database changes and verification
20261109000100_workflow_documents.sqlSnapshots, separate drafts, owner RLS and revision-checked writes.20261109000200_community.sqlConsented public copies, review state, public views and profile selections.20261109000300_defer_version_author.sqlDeferred author foreign key for cascading account deletion.
Verified with automated tests and separate owner/reviewer browser sessions against Supabase.
Current limits
- Workflow execution and outcome evaluation are not implemented. Application tests do not measure the quality of a submitted procedure.
- Client-specific configuration packages and shared team access remain outside this release.