Constraint Management
Intro
A Constraint is an explicit rule or limit the project must respect: budget
ceilings, latency SLOs, team capacity, compliance requirements, dependency
restrictions. Capturing constraints as first-class entities makes them
referenceable from decisions and visible to trade-off analysis.
Overview
Shape
---
apiVersion: processkit.projectious.work/v2
kind: Constraint
metadata:
id: CONST-p99-latency
created: 2026-04-06T00:00:00Z
spec:
name: p99-latency
description: "API p99 latency must stay under 200ms under normal load."
kind: slo # budget | slo | regulatory | capacity | dependency | policy | other
severity: hard # hard | soft | advisory
measurement: "p99 of request duration over 5-minute windows"
target: "< 200ms"
source: "Customer SLA, signed 2026-01-15"
active: true
---
Workflow
- Pick
CONST-<short-name>.
- Set
kind — budget, SLO, regulatory, capacity, dependency, policy, or other.
- Set
severity: hard (cannot be violated), soft (flagged but overridable),
advisory (informational).
- Describe the
measurement (how you know if it's met) and the target.
- Record the
source — where the constraint came from (contract, regulation,
owner decision).
Using constraints
- DecisionRecords link via
spec.related_constraints when a decision was
shaped by a constraint.
- WorkItems add
labels.constraint when the work exists because of a constraint.
- Scope-specific constraints use Bindings such as
constraint-scope.
Cost-policy Artifacts apply through Binding(type=budget-application)
to the WorkItem or Scope they govern.
Gotchas
Agent-specific failure modes — provider-neutral pause-and-self-check items:
- Constraint without a measurable threshold. "Performance must
be good" is not a Constraint; "p99 latency must be under 200ms
on the checkout endpoint" is. Without a threshold, you can't
know whether the Constraint is satisfied.
- Treating Constraints as suggestions. Constraints are
requirements. Decisions and WorkItems should explicitly reference
the relevant CONSTRAINT-ID and confirm compliance, not hand-wave.
If a Constraint is only sometimes true, it's a guideline, not a
Constraint.
- Forgetting the source / owner of the Constraint. Where did
this Constraint come from — legal, finance, oncall, the user's
preference? The source matters because lifting it requires going
back to the source. Always set
source / owner fields.
- Creating Constraints that contradict each other. Two
Constraints saying "ship as fast as possible" and "no production
changes after 5pm" can both be valid, but the conflict must be
noted explicitly so decisions can choose between them. Silent
conflicts produce inconsistent behavior.
- Hand-waving "complies with X" without referencing the
CONSTRAINT-ID. When a workitem or decision satisfies a
Constraint, link the CONSTRAINT-ID explicitly. "We follow GDPR"
with no link is unverifiable.
- Confusing Constraints with Decisions. A Constraint is a
fixed rule the project respects ("budget ≤ $50k"); a Decision is
a choice someone made ("we picked Postgres over MySQL"). If
someone could change it tomorrow without external pressure, it's
a Decision.
- Constraints without expiry or review cadence. Some
Constraints are temporary ("hiring freeze through Q3"). Set a
review date so the Constraint doesn't become permanent by
default.
Full reference
Fields
| Field |
Type |
Notes |
name |
string |
kebab-case identifier |
description |
string |
One sentence |
kind |
enum |
budget / slo / regulatory / capacity / dependency / policy / other |
severity |
enum |
hard / soft / advisory |
measurement |
string |
How the constraint is measured |
target |
string |
The threshold or boundary |
source |
string |
Where the constraint comes from |
active |
bool |
false = no longer in effect |
violations |
list |
Log-style list of known violations (optional, prefer LogEntries) |
Constraint violations
When a hard constraint is violated, write a constraint.violated LogEntry
rather than editing the Constraint file. Repeated violations may motivate a
DecisionRecord to relax the constraint or address the underlying cause.
Retiring a constraint
Set active: false and log constraint.retired. Do not delete — historical
decisions may reference the constraint as part of their rationale.
1---2name: constraint-management3description: |4 Manage Constraint entities — rules and limits the project must respect5 (budget, latency SLO, team size, compliance). Use when recording a rule,6 limit, or boundary that affects decisions — budget ceiling, latency SLO,7 regulatory requirement, team bandwidth.8metadata:9 source: https://skillmd.com/skills/projectious-work/constraint-management10 processkit:11 apiVersion: processkit.projectious.work/v212 id: SKILL-constraint-management13 version: "1.0.0"14 created: 2026-04-06T00:00:00Z15 category: processkit16 layer: 317 uses:18 - skill: event-log19 purpose: Log events to keep the audit trail accurate after every write.20 provides:21 primitives: [Constraint]22 templates: [constraint]23---2425# Constraint Management2627## Intro2829A Constraint is an explicit rule or limit the project must respect: budget30ceilings, latency SLOs, team capacity, compliance requirements, dependency31restrictions. Capturing constraints as first-class entities makes them32referenceable from decisions and visible to trade-off analysis.3334## Overview3536### Shape3738```yaml39---40apiVersion: processkit.projectious.work/v241kind: Constraint42metadata:43 id: CONST-p99-latency44 created: 2026-04-06T00:00:00Z45spec:46 name: p99-latency47 description: "API p99 latency must stay under 200ms under normal load."48 kind: slo # budget | slo | regulatory | capacity | dependency | policy | other49 severity: hard # hard | soft | advisory50 measurement: "p99 of request duration over 5-minute windows"51 target: "< 200ms"52 source: "Customer SLA, signed 2026-01-15"53 active: true54---55```5657### Workflow58591. Pick `CONST-<short-name>`.602. Set `kind` — budget, SLO, regulatory, capacity, dependency, policy, or other.613. Set `severity`: `hard` (cannot be violated), `soft` (flagged but overridable),62 `advisory` (informational).634. Describe the `measurement` (how you know if it's met) and the `target`.645. Record the `source` — where the constraint came from (contract, regulation,65 owner decision).6667### Using constraints6869- DecisionRecords link via `spec.related_constraints` when a decision was70 shaped by a constraint.71- WorkItems add `labels.constraint` when the work exists because of a constraint.72- Scope-specific constraints use Bindings such as `constraint-scope`.73 Cost-policy Artifacts apply through `Binding(type=budget-application)`74 to the WorkItem or Scope they govern.7576## Gotchas7778Agent-specific failure modes — provider-neutral pause-and-self-check items:7980- **Constraint without a measurable threshold.** "Performance must81 be good" is not a Constraint; "p99 latency must be under 200ms82 on the checkout endpoint" is. Without a threshold, you can't83 know whether the Constraint is satisfied.84- **Treating Constraints as suggestions.** Constraints are85 requirements. Decisions and WorkItems should explicitly reference86 the relevant CONSTRAINT-ID and confirm compliance, not hand-wave.87 If a Constraint is only sometimes true, it's a guideline, not a88 Constraint.89- **Forgetting the source / owner of the Constraint.** Where did90 this Constraint come from — legal, finance, oncall, the user's91 preference? The source matters because lifting it requires going92 back to the source. Always set `source` / `owner` fields.93- **Creating Constraints that contradict each other.** Two94 Constraints saying "ship as fast as possible" and "no production95 changes after 5pm" can both be valid, but the conflict must be96 noted explicitly so decisions can choose between them. Silent97 conflicts produce inconsistent behavior.98- **Hand-waving "complies with X" without referencing the99 CONSTRAINT-ID.** When a workitem or decision satisfies a100 Constraint, link the CONSTRAINT-ID explicitly. "We follow GDPR"101 with no link is unverifiable.102- **Confusing Constraints with Decisions.** A Constraint is a103 fixed rule the project respects ("budget ≤ $50k"); a Decision is104 a choice someone made ("we picked Postgres over MySQL"). If105 someone could change it tomorrow without external pressure, it's106 a Decision.107- **Constraints without expiry or review cadence.** Some108 Constraints are temporary ("hiring freeze through Q3"). Set a109 review date so the Constraint doesn't become permanent by110 default.111112## Full reference113114### Fields115116| Field | Type | Notes |117|---------------|-------------|-----------------------------------------------------------|118| `name` | string | kebab-case identifier |119| `description` | string | One sentence |120| `kind` | enum | `budget` / `slo` / `regulatory` / `capacity` / `dependency` / `policy` / `other` |121| `severity` | enum | `hard` / `soft` / `advisory` |122| `measurement` | string | How the constraint is measured |123| `target` | string | The threshold or boundary |124| `source` | string | Where the constraint comes from |125| `active` | bool | `false` = no longer in effect |126| `violations` | list | Log-style list of known violations (optional, prefer LogEntries) |127128### Constraint violations129130When a hard constraint is violated, write a `constraint.violated` LogEntry131rather than editing the Constraint file. Repeated violations may motivate a132DecisionRecord to relax the constraint or address the underlying cause.133134### Retiring a constraint135136Set `active: false` and log `constraint.retired`. Do not delete — historical137decisions may reference the constraint as part of their rationale.