-
Notifications
You must be signed in to change notification settings - Fork 1
feat(docs): Added Conditions System Specification #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nathanbogale
wants to merge
9
commits into
main
Choose a base branch
from
feat/conditions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ment type: - Added a new `conditions` metadata field to parameter documents and user-submitted documents, specifying required terms and conditions. - Created a new Conditions document type to define terms users must accept before submitting documents, including validation rules and business logic for acceptance. - Updated the `signed_doc.json` specification to include the new Conditions document type and its associated metadata. - Enhanced documentation to clarify the role of conditions in the document submission process and validation requirements.
- Updated the documentation to include the new Conditions document type, detailing its purpose and validation requirements. - Enhanced the types.md file to list the Conditions document type, ensuring clarity in the available document types.
stevenj
requested changes
Dec 8, 2025
specs/signed_doc.json
Outdated
| "description": "Media Type/s allowed in the Payload", | ||
| "format": "Media Type", | ||
| "required": "yes", | ||
| "value": "text/markdown" |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have markdown and html content types already defined. Should be one of those.
- Add conditions.cue definition file - Enhanced conditions metadata field documentation - Add Contest Parameters to System Parameters list - Support both Markdown and HTML content types with charset - Update validation process to clarify upward traversal - Add schema-level vs validation-level requirement distinction
…fs.cue - Add Contest Parameters to System Parameters docs array - Update comment to reflect that Contest Parameters are included - Aligns CUE definition with signed_doc.json specification - Fixes inconsistency where JSON included Contest Parameters but CUE excluded it
…alidation - Replace ambiguous conditional description with explicit three-path specification - Clearly describe traversal for Contest parented by Brand, Campaign, or Category - Fixes potential implementation misinterpretation where conditional logic was embedded in linear description - Updates validation descriptions in metadata.md, metadata.cue, and signed_doc.json
- Add explicit instruction to examine Contest Parameters document's parameters field - Add note explaining Contest can anchor to Brand, Campaign, or Category - Clarify that validation must examine actual document, not assume fixed hierarchy - Updates metadata.md, metadata.cue, and signed_doc.json for consistency - Prevents implementation misinterpretation of flexible anchoring
…ocuments - Override collaborators description in Conditions to clarify they cannot update - Update Conditions document update rule documentation to state only author can update - Add drafts requirement: conditions must be included on every submission including drafts - Add collaborators exclusion: only document signer must accept conditions, not collaborators - Update JSON, CUE, and markdown documentation for consistency - Aligns with plan requirements for explicit acceptance, drafts, and individual signer responsibility
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
do not merge yet
PR is not ready to be merged yet
documentation
Pull requests that update a documentation
draft
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a new Conditions System for decentralized, auditable tracking of user acceptance of terms and conditions across the Catalyst platform. The implementation adds:
New Document Type: Conditions
Conditions(UUID:b664afc2-6472-4028-b90f-875bf6eefab8)draft: trueper requirements - development should NOT begin until formally releasedNew Metadata Field:
conditionsA new metadata field that serves two distinct purposes:
On Parameter Documents (Brand/Campaign/Category/Contest Parameters):
On User-Submitted Documents (Proposals, Comments, etc.):
Validation Logic
conditionsarray must exactly match the union of all required conditionsFurther Documentation: https://docs.google.com/document/d/1ZxCbAhtlADP9oDmQUiJ5wuM2dcP3NjOcRV-32yEQMAo/edit?usp=sharing
Related Issue: 342
Please confirm the following checks