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.
Update task status.
Goal
Track progress.
Context
Task management.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
import {
CreateTaskInputModel,
TaskModel,
UpdateTaskStatusInputModel,
} from './task.schema';
export const UpdateTaskStatusContract = defineCommand({
meta: {
key: 'team.task.updateStatus',
version: '1.0.0',
stability: 'stable',
owners: ['@examples.team-hub'],
tags: ['team-hub', 'task', 'status'],
description: 'Update task status.',
goal: 'Track progress.',
context: 'Task management.',
},
io: {
input: UpdateTaskStatusInputModel,
output: TaskModel,
},
policy: { auth: 'user' },
acceptance: {
scenarios: [
{
key: 'update-status-happy-path',
given: ['Task exists'],
when: ['User updates status'],
then: ['Status is updated'],
},
],
examples: [
{
key: 'markup-done',
input: { taskId: 'task-456', status: 'done' },
output: { id: 'task-456', status: 'done' },
},
],
},
});