OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

team.ritual.logOccurrence

Log a ritual occurrence.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.team-hub
  • Tags: team-hub, ritual, log
  • File: packages/examples/team-hub/src/ritual/ritual.operations.ts
  • field.key.label
    team.ritual.logOccurrence
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    team.ritual.logOccurrence
    field.description.label

    Log a ritual occurrence.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.team-hub
  • Tags: team-hub, ritual, log
  • File: packages/examples/team-hub/src/ritual/ritual.operations.ts
  • field.tags.label
    team-hub,ritual,log
    field.owners.label
    @examples.team-hub
    field.stability.label
    stable

    Log a ritual occurrence.

    Goal

    Record ritual history.

    Context

    Ritual management.

    Source Definition

    import { defineCommand } from '@lssm-tech/lib.contracts-spec';
    import {
    	LogRitualOccurrenceInputModel,
    	RitualModel,
    	ScheduleRitualInputModel,
    } from './ritual.schema';
    
    export const LogRitualOccurrenceContract = defineCommand({
    	meta: {
    		key: 'team.ritual.logOccurrence',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['@examples.team-hub'],
    		tags: ['team-hub', 'ritual', 'log'],
    		description: 'Log a ritual occurrence.',
    		goal: 'Record ritual history.',
    		context: 'Ritual management.',
    	},
    	io: {
    		input: LogRitualOccurrenceInputModel,
    		output: RitualModel,
    	},
    	policy: { auth: 'user' },
    	acceptance: {
    		scenarios: [
    			{
    				key: 'log-occurrence-happy-path',
    				given: ['Ritual is scheduled'],
    				when: ['User logs occurrence'],
    				then: ['Occurrence is recorded'],
    			},
    		],
    		examples: [
    			{
    				key: 'log-standup',
    				input: {
    					ritualId: 'rit-123',
    					date: '2025-01-20',
    					attendees: ['user-1', 'user-2'],
    				},
    				output: { id: 'rit-123', lastOccurrence: '2025-01-20' },
    			},
    		],
    	},
    });