II.
LibraryProcess JSON
Structured · livelib-process:shared--deterministic-quality-gate
Composable deterministic quality gate component that enforces hard shell-based json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "lib-process:shared--deterministic-quality-gate",
"_kind": "LibraryProcess",
"_file": "generated-library/processes.yaml",
"_cluster": "generated-library",
"attributes": {
"displayName": "Composable deterministic quality gate component that enforces hard shell-based",
"description": "Composable deterministic quality gate component that enforces hard shell-based\npass/fail verification. Unlike soft agent-prompt-based checks, this module runs shell commands\nwith `expectedExitCode: 0`, producing binary deterministic outcomes that cannot be negotiated\nor reinterpreted by an agent.",
"libraryPath": "library/processes/shared/deterministic-quality-gate.js",
"example": "```js\nimport {\n deterministicGateTask,\n createDeterministicGate,\n executeDeterministicGate,\n createCompilationGate,\n createTestSuiteGate,\n} from './deterministic-quality-gate.js';\n// Standalone task usage:\nconst result = await ctx.task(deterministicGateTask, {\n commands: [\n { label: 'TypeScript', command: 'npx tsc --noEmit' },\n { label: 'ESLint', command: 'npx eslint src/' },\n ],\n failFast: true,\n});\n// Factory usage:\nconst { gateTask, reportTask } = createDeterministicGate({\n name: 'pre-merge',\n description: 'Pre-merge quality checks',\n commands: [\n { label: 'types', command: 'npx tsc --noEmit' },\n { label: 'lint', command: 'npx eslint src/' },\n { label: 'test', command: 'npx vitest run' },\n ],\n});\nconst gateResult = await ctx.task(gateTask, {});\nconst report = await ctx.task(reportTask, { gateOutput: gateResult });\n// Convenience usage:\nconst outcome = await executeDeterministicGate(ctx, {\n name: 'ci-gate',\n commands: [\n { label: 'compile', command: 'npx tsc --noEmit' },\n { label: 'test', command: 'npx vitest run --reporter=verbose' },\n ],\n});\nif (!outcome.passed) {\n console.log(`${outcome.failedCount}/${outcome.totalCount} checks failed:`, outcome.summary);\n}\n// Preset factory usage:\nconst tsGate = createCompilationGate({ tool: 'tsc', projectDir: 'packages/sdk' });\nconst testGate = createTestSuiteGate({ runner: 'vitest', projectDir: 'packages/sdk' });\n```",
"usesAgents": [
"pre-commit",
"gate-failure-analyzer"
]
},
"outgoingEdges": [
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "skill-area:code-review-practice",
"kind": "lib_requires_skill_area",
"attributes": {
"weight": 1
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "skill-area:e2e-testing",
"kind": "lib_requires_skill_area",
"attributes": {
"weight": 0.7
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "topic:test-driven-development",
"kind": "lib_covers_topic",
"attributes": {
"weight": 1
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "topic:code-review-best-practices",
"kind": "lib_covers_topic",
"attributes": {
"weight": 0.7
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "domain:software-engineering",
"kind": "lib_applies_to_domain",
"attributes": {
"weight": 1
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "role:backend-engineer",
"kind": "lib_involves_role",
"attributes": {
"weight": 1
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "role:tech-lead",
"kind": "lib_involves_role",
"attributes": {
"weight": 0.7
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "role:qa-engineer",
"kind": "lib_involves_role",
"attributes": {
"weight": 0.5
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "workflow:code-review",
"kind": "lib_implements_workflow",
"attributes": {
"weight": 1
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "workflow:feature-development",
"kind": "lib_implements_workflow",
"attributes": {
"weight": 0.7
}
},
{
"from": "lib-process:shared--deterministic-quality-gate",
"to": "workflow:release-management",
"kind": "lib_implements_workflow",
"attributes": {
"weight": 0.5
}
}
],
"incomingEdges": []
}