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.
Get a feature flag by key.
Goal
Retrieve flag configuration.
Context
Called to inspect flag details.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const GetFlagContract = defineQuery({
meta: {
key: 'flag.get',
version: '1.0.0',
stability: 'stable',
owners: ['platform.feature-flags'],
tags: ['feature-flags', 'get'],
description: 'Get a feature flag by key.',
goal: 'Retrieve flag configuration.',
context: 'Called to inspect flag details.',
},
io: {
input: GetFlagInput,
output: FeatureFlagModel,
errors: {
FLAG_NOT_FOUND: {
description: 'Flag does not exist',
http: 404,
gqlCode: 'FLAG_NOT_FOUND',
when: 'Flag key is invalid',
},
},
},
policy: {
auth: 'user',
},
});