Browse the docs

Labs · Experimental: @putnami/sdd. No compatibility or parity promise, and never default-on. What each status means

The validation jobs

@putnami/sdd contributes two job commands. They are ordinary manifest-declared jobs: the planner has no special case for them, they cache like any other task, and they report through the standard job exit-code contract.

Command Activation Steps Cached
validate project-scoped, on putnami.features.json, features/*.json or specs/*.json specs-validate yes: on its documents
validate-workspace workspace-once architecture-validate, specs-ratchet-validate, decisions-validate, recipes-validate, codeowners-sync, docs-links-validate, breaking-marker-validate, agent-attribution-validate, feature-coverage-validate, feature-coverage-ratchet-validate, verdict-policy-validate, features-validate yes: architecture, ratchet and verdict policies on their documents, verdict policies also on the listing of the candidate cut; decisions, recipes, CODEOWNERS, docs links, feature coverage and features on the Git candidate cut. The agent attribution is keyed on the squash message and putnami.workspace.json. The breaking marker and the feature-coverage ratchet are never cached

Two commands rather than one, because one command carries one activation and these two have different subjects. A project's specs are a per-project question; the architecture graph is a property of the whole workspace and answering it 82 times would be 82 identical answers. A project's features are a per-project question too, but their read set is the whole workspace, so one features-validate task answers it for every project and states its findings as evidence fragments the CLI judges per selected project (ADR 0006).

That split is scheduling reality, not a user-facing concept — nobody thinks "validate my work, per activation model". So validate declares "alsoRuns": ["validate-workspace"] in the manifest: requesting validate also plans validate-workspace, with its own workspace-once activation, even when no project's features or specs are touched (a change to only putnami.architecture.json still gets its verdict). Requesting both names explicitly stays one plan of each, and validate-workspace remains directly requestable.

One word therefore covers every step of both commands in the canonical gate:

putnami lint,test,build,validate --impacted --enforce-coverage

What each step checks

  • features-validate — runs once, as a step of validate-workspace, and evaluates every project validate activates on as that project's own task did. Each evaluation discovers putnami.features.json at the workspace root and exact project roots, loads the separate evidence artifacts and Capability Manifests, coalesces identical dependency copies by semantic owner, and reports sorted diagnostics, which the step states as finding fragments (see Findings are evidence fragments). Missing, stale, contradicted, and unclassified evidence are assessment warnings; malformed documents, conflicting copies, and broken or ambiguous contribution references are errors, which fail a run that selects the project owning the file they name. A feature may list the command paths that carry it under surface. The step resolves each name against the putnami.extension.json at the same project root as the declaring manifest: a command key that is not internal, the path of a command-group subcommand, or a verb name. It reads only those members, so a field a newer extension protocol adds does not fail it. A name that file does not serve is the error features.unresolved_surface. A project root without an extension manifest is not resolved, and no other extension, lock or installed state is read. putnami features validate resolves the same way; features inspect and features list report the surface as declared, and features snapshot does not resolve it.
  • specs-validate — runs the spec protocol's own parser and repository validator. It fails on an invalid document, an unresolvable or duplicated feature reference, an unsafe decision path, or two specs for one feature. It warns, without changing the exit code, on the authoring gaps: specs.missing_spec, specs.missing_support_entry, specs.missing_feature_link, specs.unresolved_decision. It also derives and emits the spec-criteria projection (reserved artifact ID putnami-spec-criteria, spec-criteria.json): the bounded, deterministic (feature, requirement) → criterion and expected checks join core's spec-verification gate consumes. The projection is computed from durable manifests and spec documents alone — the same inputs the cache key already names — so a cache hit restores it byte-identically, and a hit that lost it would silently disarm the gate.
  • architecture-validate — validates the ARC/DARC declarations and compares exact cross-domain project dependencies against declared bindings, using the resolved dependency edges the job context carries. It also reads each mapped project's committed capability manifest and joins the framework implementations recorded there to the declarations — see Framework evidence below.

Automatic architecture admission resolves only the committed workspace options.sdd.verification.architecture policy:

Mode Automatic evaluation Admission
enforce runs coherent blocking findings fail the task
report runs the same typed findings are retained and emitted as warnings, but do not change an otherwise successful exit
off skipped succeeds with mode, provenance, and automaticEvaluation: false; no evaluation fields are invented

Policy decoding, malformed declarations, and incomplete provider/workspace views fail in every mode. report is advisory only for findings from a structurally coherent evaluation. This repository commits enforce to preserve its existing admission gate; the shared absent-policy default remains report.

In every mode that runs, a committed architecture.baseline.json or architecture.waivers.json draws one architecture.finding_ids_not_promised warning that names the file. Both files list finding IDs, which the architecture protocol does not promise (ADR 0003): an upgrade can rename an ID and turn its entry stale. The warning never changes the verdict.

  • specs-ratchet-validate — the rollout ratchet of the executable-spec gate. It derives the current enforced floor — every project whose effective options.sdd.verification.specs is enforce, with the feature#requirement identities its criteria make executable — and compares it against the specs.baseline.json each enforced project commits in its own directory, with the protocol's shrink-only rule. A recorded project that regressed to report/off, or lost recorded requirement coverage, fails with features.ratchet_regression; the reviewed policy change is an edit to the project's committed baseline in the same diff, written with putnami specs baseline --update. Once any baseline is committed, a file that differs from the bytes --update writes fails with sdd.stale_specs_baseline, naming the file: a grown floor, an enforced project without its file, or a file in another layout. A change that makes a requirement executable commits its baseline edit, so --update on main changes nothing. A workspace that commits no baseline is initial adoption: it passes with one features.ratchet_growth warning. A project's file lists only its covered requirements (protocolVersion: 2); its directory names the project. A workspace-wide document in a project directory, or a project recorded twice, fails closed. The older workspace-root file (protocolVersion: 1, naming every project) is still read, so a regression it records fails; it draws a features.misplaced_baseline warning and fails as stale until putnami specs baseline --update moves each entry into its project.

  • decisions-validate — the decision gate. It reads every committed decision registry: the workspace-root one and the one in each project directory. A registry is a decisions/ directory with one <id>.json file per decision, or one decisions.json; a scope that holds both fails. It proves every entry that carries a json-value check against the files the check's own globs name inside the registry's directory, and fails with features.decision_violated naming the decision — id, statement, settled date and registry — so the reader can tell a bug from a deliberate reversal:

    decision D-001 "serverless workloads scale to zero when idle" is violated by sites/putnami.dev/infra/requirements.json: scaling.minInstances = 1
    Settled 2026-09-03 by fdumay. To change it, change the decision in decisions/D-001.json, not the code.

    One diagnostic per violating file, anchored on that file. An entry marked "reviewOnly": true is carried, counted, injected into the generated agent guidance by putnami context generate, and never changes an exit code. An absent registry is adoption, never a failure. An unusable one — duplicate ids, within a registry or across two, a missing field, a settled date that is not YYYY-MM-DD, an unknown kind/rule/whenMissing, a check with no glob, or an adr that does not resolve to a file in this worktree — fails closed with features.invalid_decision_registry rather than enforcing the entries that happened to parse. There is no verification-mode knob: architecture has one because a workspace adopts a graph gradually, while a decision a repository wrote down and dated is either held or re-decided.

  • recipes-validate — the recipe gate. It reads every committed <lang>/samples/recipes.json (typescript, go, python). A recipe whose sample is not a directory in this worktree fails with sdd.recipe_sample_missing, naming the sample. A second recipe for one intention, an unknown member, or an empty or multi-line field fails with sdd.invalid_recipe_index. A recipe may list files, paths relative to its sample that the rendered index shows inline, and references, the paths of the AI.md files it rests on: a file that is not a file of the sample or is longer than 60 lines fails with sdd.recipe_file_invalid, and a reference that is not a clean AI.md path fails with sdd.invalid_recipe_index; one whose AI.md the worktree does not hold, and whose node_modules/<package>/AI.md no workspace project publishes, fails with sdd.recipe_reference_missing. An absent index is adoption. A sample directory exists when it holds a tracked or unignored file, and the step is cached on the input git:** (see Caching).

  • codeowners-sync — the CODEOWNERS step. It writes .github/CODEOWNERS from options.sdd.owners: putnami.workspace.json gives the catch-all, and a scope or project putnami.json gives a rule for its directory, placed after the rules above it. When the workspace commits a specs.baseline.json, the spec-governance files close the file with the workspace owners. It rewrites the committed file only when it differs, and CI reports a stale or missing one through the rule that fails a run whose gate changed the tree. An invalid owner, owners in a root putnami.json, or an options.sdd that is not an object (sdd.invalid_owners), a directory declaration without a catch-all (sdd.codeowners_no_default), or a putnami.json the step cannot read (sdd.codeowners_read_failed) fails without writing. A workspace that declares no owners and has no such file is left alone. It is cached on the input git:**, which also holds the file it rewrites: the CLI never replays a run that rewrote CODEOWNERS.

  • docs-links-validate — the documentation link gate. Each language extension's lint checks the README.md files and doc/ trees inside its project, which is the feedback you get while working on it. This step checks every README.md file and doc/ tree of the workspace, once per run whatever the selection. It covers what no lint task does: the documents no project owns, the projects without a language extension, and a link from one project into another that a change to the other breaks. A link broken inside a selected project is reported by both. It walks the workspace once, with one git process, in about 4 s on this repository. Inside a project it reads what that project's lint reads, and it skips a project that sets docs-links: false under its lint options or under one of its own extensions' options. A directory inside a project that is not itself a project, such as a nested Go module, belongs to that project. It applies the same rule, from the extension SDK's docslinks package, and fails with one docs-links diagnostic per broken link, located at the link. A link may name any file of the workspace, so it reads the Git candidate cut and is cached on the input git:**: a link to a file Git ignores is broken, as it is in a clone.

    A workspace can name its documents instead. Each entry of options.evidence.documents in putnami.workspace.json whose type is docs selects files by patterns, in the file-pattern grammar with ! exclusions, and the step then checks exactly the files of the candidate cut those patterns select. The docs-links lint option no longer removes a project: the patterns are the whole selection. A workspace that names its documents usually turns the per-project lint-docs tasks off with "lint": { "docs-links": false } in the same file, since this step already checks every document once. Entries of the other document types (spec, decision, architecture) are left to the checks of those documents, and a list without a docs entry keeps the default documents. An entry with an unknown type, a member other than type, format and patterns, no include pattern, or patterns that select no file fails the step, naming the entry. The block lives in putnami.workspace.json, which the step's git:** input keys.

    "options": {
      "evidence": {
        "documents": [
          { "type": "docs", "patterns": ["**/README.md", "**/doc/**/*.md", "!**/node_modules/**", "!**/.*/**/*"] }
        ]
      },
      "lint": { "docs-links": false }
    }
  • breaking-marker-validate — the breaking-marker step. A pull request merges by squash: the commits of its branch are dropped, and only the squash commit reaches the base branch. putnami version reads the breaking marker from that commit, so a ! or a BREAKING CHANGE: footer that only a branch commit carries is lost. The step reads the proposed squash message from the PUTNAMI_PROPOSAL_MESSAGE environment variable, which the runner sets on a pull request: the title, a blank line, and the body when the repository squashes with it. It splits the message as Git splits a commit message, reads the commits from the run's impacted baseline to HEAD, and reads every message with the conventional-commit reader the version bump uses.

    Situation Result
    PUTNAMI_PROPOSAL_MESSAGE unset or blank Passes, with the note "no proposal message to compare"
    Message set, the run resolved no impacted baseline Fails: without a baseline there is no range to compare. This covers a run without --impacted and an --impacted run that found no base and fell back to every project
    Message set, the repository is a shallow clone Fails, naming the shallow clone: the range could stop at the clone depth
    Message set, the baseline names no commit, or Git fails Fails with exit 1, an error rather than a finding
    No commit of the range declares a break Passes, whatever the title says
    A commit declares a break, and the title carries ! or the body a BREAKING CHANGE: footer Passes
    A commit declares a break, and the message declares none Fails with one sdd.breaking_marker_dropped diagnostic per such commit
    A commit declares a break, and the title is not a conventional commit Fails: such a title declares nothing, whatever its body says

    A failure names each commit that declares a break, by its 12-character ID and its subject:

    breaking marker: the squash commit "feat(cli): rework the selection" drops the breaking change that 1 commit declares since origin/main:
      3f2a9c1d0b7e feat(cli)!: drop the --all flag
    Add "!" before the colon of the title, or a "BREAKING CHANGE:" footer to the body when the squash commit keeps the body. If the change breaks nothing, reword the commit.

    A footer in the body counts only because the runner writes the body into the variable when the repository squashes with it: the step cannot read that setting. A footer with no blank line above it is part of the subject and declares nothing. A merge of the base into the branch brings no commit of the base into the range. The step reads every commit of the range, so two cases fail although the squash commit breaks nothing: a branch stacked on a parent that has since been squash-merged still holds the parent's commits, and a breaking commit reverted later on the branch still declares its break. Rebase the branch onto the base and drop those commits. The step does not run when --impacted selects no project, because the run then plans no job. It is never cached (see below). The decision is ADR 0001.

  • agent-attribution-validate — the agent-attribution step. The squash commit is the only commit of a pull request that reaches the base branch, and a coding agent, or the service that hosts it, can sign its message. Once the commit is on the base branch, only a history rewrite removes the signature. A workspace that forbids such a signature sets options.sdd.agentAttribution to "forbid" in putnami.workspace.json. The step then reads the proposed squash message from PUTNAMI_PROPOSAL_MESSAGE, the variable the breaking-marker step reads, and checks it line by line for three forms:

    Form Example of what fails What passes
    generated-footer "Generated by" or "Generated with", then the name of an agent, whatever the markup around it "generated by clientgen"
    co-author-trailer a Co-Authored-By: trailer whose name or address is an agent's a human co-author
    session-link a link to an agent's session, or a <agent>-session: trailer a path such as .claude/ or .agents/

    The forms and the agent names live in the attribution package of the extension SDK, which change finalize of @putnami/contributor also reads. The names match as whole words regardless of case.

    Situation Result
    options.sdd.agentAttribution unset or "allow" Passes, with a note that says how to opt in
    Any other value of the option Fails with one sdd.invalid_agent_attribution diagnostic: a typo does not turn the gate off
    "forbid", PUTNAMI_PROPOSAL_MESSAGE unset or blank Passes, with the note "no proposal message to read"
    "forbid", no line names an agent Passes
    "forbid", a line names an agent Fails with one sdd.agent_attribution diagnostic per such line

    A failure names each line by its number in the message and its form:

    agent attribution: the squash commit "fix(cli): stop the leak" names an agent on 1 line(s):
      line 6 (generated-footer): _Generated by [<agent>](<url>)_
    Remove each line from the title or the body: the workspace sets options.sdd.agentAttribution to "forbid". A path such as .claude/ and a human co-author stay allowed.

    The step reads only the message: the commits of the branch never reach the base branch. It runs when the runner runs validate, so an edit of the title or the body is checked at the next run. A message edited in the merge dialog is never checked. It is cached under a key that holds the message and the workspace option (see below). The decision is ADR 0002.

  • feature-coverage-validate — the feature-coverage gate. Every project answers one question: which outcome does its code serve? A project answers with a feature in its own putnami.features.json, a spec under its own specs/, or a reviewed featureAuthority in its putnami.json. The featureAuthority block sets exactly one of four answers:

    Answer Covers the project when
    "owner": "<feature id>" The id names an authored feature
    "none": "<reason>" Always: the project serves no outcome, such as a fixture or a repository tool
    "dependents": true A project that depends on it, directly or not, declares a feature or hosts a spec at its own root. Use it for a library: the specs of its dependents state its behavior
    "provider": "<project id>" The id names a workspace member that passes on its own answer; a debt entry is no answer. The Go and TypeScript client generators write it for a generated client

    Once the workspace adopts the gate in putnami.workspace.json, the step judges every member of the workspace, with or without a putnami.json:

    "options": {
      "sdd": {
        "featureCoverage": { "debt": ["/cloud/runtime/go"] }
      }
    }
    Situation Result
    options.sdd.featureCoverage unset Passes, with a note that counts the projects that give no answer
    A project gives no answer and debt does not list it Fails with one sdd.uncovered_project diagnostic at the project's putnami.json#featureAuthority
    A featureAuthority.owner names no authored feature Covers nothing: sdd.uncovered_project, naming the owner
    A featureAuthority.dependents has no dependent with a feature or a spec Covers nothing: sdd.uncovered_project
    A featureAuthority.provider names no member, or a member that does not pass on its own answer Covers nothing: sdd.uncovered_project, naming the provider
    A debt entry whose project answers Fails with sdd.stale_coverage_debt: remove the entry
    A debt entry that names no project Fails with sdd.unknown_coverage_debt
    Another member, no debt, an entry that is not a project id, or a duplicate entry Fails with sdd.invalid_feature_coverage, and judges no project

    The list only shrinks: a paid debt fails until its entry is removed, and feature-coverage-ratchet-validate refuses a new entry. This step reads no history. A manifest or a spec covers its project when it is a tracked or unignored file, and the step is cached on the input git:** (see Caching). The decision is ADR 0003.

  • feature-coverage-ratchet-validate — the shrink-only rule of the debt list. It reads options.sdd.featureCoverage.debt in putnami.workspace.json at the merge base of the run's impacted baseline and HEAD: the list the change started from. The merge base, not the baseline commit, is the comparison point, so a branch behind its base keeps an entry the base removed since without a failure.

    Situation Result
    options.sdd.featureCoverage unset Passes, with a note
    The run selected its projects without --impacted, or its baseline did not resolve without --impacted-strict Passes, with a note: nothing names a baseline
    The merge base declares no options.sdd.featureCoverage, or no putnami.workspace.json Passes, with a note: this change adopts the gate
    An entry the list at the merge base does not hold Fails with one sdd.grown_coverage_debt diagnostic per entry, at its index in the current list
    An entry removed, or the list unchanged Passes
    A shallow clone Fails: its history can stop before the merge base
    A list at the merge base the step cannot read Fails with sdd.coverage_debt_baseline_unavailable

    A gate that compares a pull request with its base branch runs putnami validate --impacted --impacted-strict --baseline origin/<base> on a full history; Contributor CI's squash commit checks run validate-workspace with the same flags. The hosted Putnami CI runner runs --impacted alone, which resolves the trunk or the nearest epic branch. A run without --impacted enforces nothing here. The step is never cached (see below).

  • verdict-policy-validate — the verdict policy gate. A putnami.verdict-policy.json file states what a gap and a declaration change cost in a verdict (ADR 0008 of the ci protocol). The step reads every such file of the workspace with the ci protocol's strict parser, and checks the directory each one sits in.

    Situation Result
    No policy file Passes
    A valid file at the workspace root, in a project directory or in a scope directory Passes
    An unknown kind, value, key or maturity, a map by maturity without modeled, or a map on a key that concerns no feature Fails with the ci protocol's code, such as ci.verdict_policy_kind, at the file and the member
    unknown-impact or unknown-declarations outside the root file Fails with ci.verdict_policy_root_only: these keys concern the whole change
    A file in any other directory Fails with sdd.verdict_policy_location at the file
    A file the step cannot read, such as a symbolic link Fails with sdd.verdict_policy_unreadable at the file

    A scope directory is a directory above a project whose putnami.json is a scope manifest. A misplaced file is still parsed, so one run reports both its place and its content. The step is cached (see Caching).

Selection narrows what a run owns, never what it reads: durable manifests and canonical spec documents are read at every root under any selection, because "one spec per feature" is a workspace-wide guarantee that a subset cannot prove. See 03-commands.md.

What the gate collects, and from where

The projection above says what a run is expected to prove. Core's post-session gate says what it observed, and it reads from two places.

The session. Every test job planned in the run contributes the putnami-feature-verification report it declared. An observation counts for a feature only when the project that reported it is in the evidence scope of the project that owns the feature: see When a proof is outside the scope.

An attester's cache entry, only when the session left something unresolved. A spectest.Proves call lives where the code it protects lives, which is routinely not the project that owns the spec. Three shapes occur:

Shape Example in this repository
a library the owner depends on a workload's requirement proven by its core library
a direct dependent that implements the owner's contract architecture/executable-contracts (owned by protocols/architecture) proven by @putnami/sdd; go/api-contracts (owned by go/framework/api) proven by openapi, proto, grpc
a project whose featureAuthority.owner names a feature the owner declares the CLI's install and smoke script tests (@putnami/install-scripts), which prove cli/first-use-path and three other CLI features

A narrowed run (--impacted, --projects) plans none of these test~test jobs, so the requirement used to read check-not-observed on a run that had regressed nothing.

So a group the in-session join could not close is retried against the captured report inside each unplanned attester's own test~test cache entry, read in place at the key the current inputs derive. Nothing is materialized into .putnami/out, and provenance containment is not relaxed — a restored observation must still name a regular file of the project that published the entry. The recovered reference is recorded with its content digest and marked restored, so an audit can tell evidence a run produced from evidence a run recovered.

The invariant closes on the cache key, not on trust: an attester that changed is already selected by --impacted and runs, and one that did not change keeps its key, so the entry it published is the entry for exactly these inputs.

Candidates are the spec-owning project's transitive dependency closure, its direct dependents, and the projects whose feature authority is one of its features, and the lookup is lazy: a fully verified run performs no extra planning, no extra keying, and never touches the store. A project leaves the set only when the run planned the job that writes its report. A test~generate planned as a prerequisite does not count.

The two radii differ because the two directions attest for different reasons. A dependency can attest because the owner's tests execute it, so depth there is unbounded. A direct dependent can attest because it produces the artifact the contract describes — and that relationship lives exactly one hop up. Beyond one hop a consumer exercises the contract only through the layer between, which is already a candidate, so transitive dependents stay out of scope. The direct set is bounded by fan-in: 31 projects for the widest spec owner in this workspace of 147. See ADR 0026 for the measurements.

A feature-authority project can attest because its own manifest declares that its user-facing feature is one the owner declares. It is a test-only project split out of the owner so that only the files its tests read key it, so it shares no dependency edge with the owner on purpose. A declaration that names another feature admits nothing. See ADR 0095.

When nothing could be consulted

A check can still be unresolved because no observation source existed at all: no planned test for any candidate, and no cache entry (an empty local store, a cold remote, or --no-cache).

That is not a regression, and it does not sanction the run. The requirement resolves to unobserved — a state the shared GroupBlocks rule does not block on — and the run prints a warning naming the projects whose tests would have attested the check and why they were not consulted.

Silence is an answer. A dependency whose cache entry exists and records the report output empty ran for these inputs and observed nothing, so it counts as consulted; so does a project with no task that declares the report. Only a candidate that could not be reached is unconsulted: the test task that writes its report has no cache entry or is not cacheable, the remote cache did not answer, or the run used --no-cache. The other steps of the test command are never asked.

The warning states each cause in prose. The session's spec-verification.json record states the same causes in each group's unconsulted list: one entry per candidate project, with a reason from a closed set.

reason The candidate's report task Running the same change again helps
remote-unreachable its remote cache lookup failed yes
remote-timeout the remote cache did not answer in time yes
no-entry the caches answered and hold no entry for these inputs no
no-cache the run reads no cache: --no-cache, or no cache store no
not-cacheable is not cacheable no
plan-failed its test plan or cache keys could not be derived no

The list is absent when the session's own observations closed the group, when every candidate answered, and in a record an older CLI wrote.

The exemption cannot launder a real defect. It applies only when every one of a requirement's checks is either satisfied or missing with reason check-not-observed. A check reported skipped, failed, stale, duplicated, or in a shape the criterion cannot read rests on an observation that did arrive and keeps blocking under enforce. Equally, once every candidate was consulted — every warm run, and every run that is not narrowed — the unconsulted set is empty and a still-missing check blocks exactly as it did before.

Under --no-cache with a narrowed selection no stored byte may be served, so every unresolved check falls to this path and warns. That is the accepted outcome; the reasoning is in ADR 0026.

An exhausted scope blocks, and says so. When every project that could attest a check was already in the run and none reported it, the requirement stays missing and the group stays blocked — the check has no test, which is exactly what the gate exists to catch. The group still carries a features.unobserved_requirement warning, this one stating that the evidence scope was exhausted and that the fix is a spectest.Proves call rather than a wider selection, so a bare check-not-observed never reaches a reader on its own.

When a proof is outside the scope

The evidence scope of a spec-owning project is the project itself plus the candidates above: its transitive dependency closure, its direct dependents and the projects whose feature authority is one of its features. A spectest.Proves call in any other project could resolve the requirement only on a run that happened to select both projects, so a narrowed run that selected only the owner would fail on a change that regressed nothing.

So the gate rejects such a proof whenever it reads it. The observation grants no support, and the owner's group carries a features.invalid_observation error that names the check, the reporting project, the proof file, the owner and the three fixes:

check "issue-check" of requirement "issue" of feature "billing/invoicing" is
proven by /ledger in ledger/ledger_test.go, which is outside the evidence scope
of /billing, the project that owns the feature: the spec gate reads that proof
only on a run that selects both projects, so it grants no support. Move the
spectest.Proves call into /billing, a project it depends on or a direct
dependent; add a dependency edge between /billing and /ledger; or declare
featureAuthority.owner "billing/invoicing" in the putnami.json of /ledger

The error blocks the group under enforce, even when an unconsulted candidate would turn the missing requirement into unobserved, and the project's failure repeats it, as it repeats every error finding of a blocked group. Under report the run prints it as a warning. A run that selects the owner alone cannot read the stray proof; its requirement then resolves as any other check no candidate reported.

When two reports carry the same check

A check has one proof. When the reports of two tasks carry the same check of a requirement, the gate prefers neither: the check resolves unclassified with reason duplicate-observation, the requirement stays missing in the record, and the group blocks under enforce. Each project alone passes, so the failure shows only when both reports are read: both projects are in the run, or the group has an unresolved requirement and the gate reads the other project's cache entry.

The group carries a features.duplicate_observation warning that names the feature, the requirement, the check and the reporting projects:

check "issue-check" of requirement "issue" of feature "billing/invoicing" is
reported 2 times, by /billing, /ledger: a check has one proof, so keep one
spectest.Proves call for it and remove the others

Under enforce the failure repeats that finding and counts the requirement as duplicated, apart from the missing ones, whose proof nobody wrote:

spec verification: 1 of 34 textual requirement(s) unresolved under enforce
(unmapped 0, unexecutable 0, missing 0, duplicated 1, stale 0, contradicted 0):
check "issue-check" of requirement "issue" of feature "billing/invoicing" is
reported 2 times, by /billing, /ledger: ...

A requirement with a check that is neither satisfied nor duplicated stays counted as missing. The failure spells out five findings at most, duplicated checks and error findings together; putnami specs verify --output=json lists every finding in the diagnostics of its group. Under report the run prints the finding as a warning and does not fail. To fix it, keep the proof in the project that owns the behavior and remove the other call, or give each implementation a check of its own.

Caching, and the steps that are not cached

A task may be cacheable only when its declared inputs cover what it reads.

specs-validate — cached, with a workspace-wide identity port

"inputs": {
  "manifest": { "from": "project",   "files": ["putnami.features.json", "features/*.json"] },
  "specs":    { "from": "project",   "files": ["specs/*.json"] },
  "identity": { "from": "workspace", "files": ["**/putnami.features.json", "**/features/*.json", "**/specs/*.json", "**/putnami.json", "putnami.workspace.json", "!**/.gen/**"] },
  "externalSpecs": { "from": "workspace", "files": ["git:**/*.md", "git:**/*.feature"] },
  "support-catalog": { "from": "workspace", "files": ["putnami.support.json"] }
}

The task reports on one project but resolves against the workspace's authored identities, so the key follows the read set, not the ownership. A key that stopped at the project boundary would let a sibling's manifest change this verdict silently. Verified by measurement: touching a spec in another project produces a miss.

External specs key the spec tasks

A manifest entry can name an external spec. A task input cannot depend on a manifest value, so specs-validate and specs-ratchet-validate declare git:**/*.md and git:**/*.feature, the only extensions a reader reads. Both also read external files through the Git candidate cut, so an ignored file is absent. Any Markdown or Gherkin edit therefore reruns these tasks, in every workspace.

specs-validate also keys on **/putnami.json and putnami.workspace.json, because options.sdd.specFormats and the verification mode decide its verdict. It keys on the workspace support catalog, putnami.support.json, because its completeness assessment reports a publishable project with no catalog entry: editing the catalog moves the key of every project's specs-validate. See ADR 0006 of protocols/features.

architecture-validate — cached, and it never reads git

"inputs": {
  "policy": {
    "from": "workspace",
    "files": ["putnami.workspace.json"]
  },
  "declarations": {
    "from": "workspace",
    "files": ["**/putnami.architecture.json", "**/architecture.baseline.json", "**/architecture.waivers.json"]
  },
  "evidence": {
    "from": "workspace",
    "files": ["**/schema/capabilities.json"]
  }
}

The policy port is load-bearing: changing enforce, report, or off changes the task verdict even when declarations and graph evidence are unchanged, so putnami.workspace.json must change the cache key.

The job evaluates the current worktree and does not compare against the frozen adoption baseline. The comparison would resolve a commit — which ref origin/HEAD names, where the branch forked — and none of that is in the key, so a restored verdict would rest on state the key does not name. Dropping it makes the job strictly stricter: nothing is excused as known debt. Shrink-only ratcheting stays with the interactive putnami architecture validate --baseline <ref>.

Interactive architecture validate, snapshot, and inspect remain explicit requests and are unchanged when automatic evaluation is off.

TestWorktreeValidationReadsNoGitHistory pins it.

The evidence port is what keeps the framework-evidence half honest under the same rule. A capability manifest is a committed file at an exact project-relative path, so it can be named as a pattern; asking a build to run instead would put unkeyed state behind a restored verdict.

Framework evidence

A domainAccess row in a committed capability manifest says a running component was configured with one declared import (go.putnami.dev/app/darc). The job joins those rows to the declarations and reports two findings, deliberately asymmetric:

Finding When
architecture.evidence_without_declaration A record no declaration matches — an unknown import, or the same import declared with another mode. Always fails: a record proves a component exists, so the code is enforcing a contract nobody reviewed.
architecture.declared_without_evidence An active declaration nothing implements, inside a domain that already implements something else.

The second is scoped on purpose. A domain whose workloads use no framework primitive emits no evidence, and demanding an implementation from it would report every honest declaration in the repository as a violation. Once a domain implements one import, partial adoption inside it is exactly what this catches. A planned import is never expected to be implemented — it is a target.

Neither finding can create a permission: evidence is derived fact, like an observed edge, and only a reviewed declaration authorizes anything (ADR 0001).

The coverage report says exactly what happened. coverage.domainAccess moves from not-detected to framework-evidence, and a transport category moves with it only when a record declares that carrier. It is never called "observed": nothing watched a request, a query, or a delivered event — a producer recorded what a component was configured with.

specs-ratchet-validate — cached, worktree-only on both sides

"inputs": {
  "floor": {
    "from": "workspace",
    "files": ["**/putnami.features.json", "**/features/*.json", "**/specs/*.json", "**/putnami.json", "putnami.workspace.json", "**/specs.baseline.json", "!**/.gen/**"]
  },
  "externalSpecs": { "from": "workspace", "files": ["git:**/*.md", "git:**/*.feature"] }
}

Both sides of the ratchet comparison are committed files the input patterns name — the manifests, specs, and options the floor derives from, and the committed baseline it compares against — and the job reads no git history, for the same reason architecture-validate reads none. The reviewed policy change the rule demands is an edit to a specs.baseline.json, which changes an input and re-keys the task.

features-validate — cached on the Git candidate cut

"inputs": {
  "workspaceCandidateFiles": { "from": "runtime" },
  "repository": { "from": "workspace", "files": ["git:**"] },
  "manifest": { "from": "project", "files": ["putnami.features.json", "features/*.json"] }
}

The task is workspace-once, so its project is rooted at the workspace root. The project port names the root's own manifest only so that the project side of the key is not empty: the CLI keys an empty project side on every file under the project root, ignored build output included. The key on the whole cut is an interim: the collector of ADR 0006 of protocols/evidence keys each check on the files it reads.

The extension manifest that resolves a surface is a file of the cut, so git:** already holds it. A putnami.extension.json that git ignores is outside the cut: the step treats its project as having no extension manifest, while putnami features validate reads it from disk.

Its verdict depends on evidence source bindings, which is what the source-binding-unavailable and source-binding-mismatch stale reasons compare, so it reads every file a binding hashes, as well as the feature manifests, evidence fragments and capability manifests at every root. The task reads them from the workspace's candidate cut and nothing else, and git:** holds that cut:

  • A binding records each bound file's bytes or link text and its executable bit. The git: key holds the bit too, read where the binding reads it: from the file's mode, or on Windows, which stores none, from the mode the index records (ADR 0063 of the CLI). A chmod +x of a bound file moves the key.
  • A binding records a submodule's checked-out commit and refuses an unmerged path. The git: key holds neither and produces no key for either, so the task then runs uncached instead of replaying a verdict about another commit.
  • An ignored evidence fragment, an ignored artifact and ignored build output are neither read nor keyed, and staging changes nothing.
  • Package-root evidence matches a project by name and version. Every project is read at the tree base version 0.0.0, the version the CLI gives a task the cache can serve (ADR 0060 of the CLI) and every build stamp records, so no Git tag and no missing commit changes a verdict the key cannot see.
  • Nothing the task writes names a commit or a baseline ref, so a replayed entry is true of the run that replays it.

Two runs on one tree therefore share one entry, whatever the commit, the ref or the checkout. Outside a Git work tree the task reads the disk, and the git: input has no key, so it runs every time.

The specs step of validate does not depend on this one. A step's key holds the key of every step it depends on, so an edge to a task keyed on the whole cut would move every project's specs-validate key on any edit anywhere in the repository. specs-validate reads the feature manifests itself and reports one that fails to parse.

Findings are evidence fragments

The task validates each project validate activates on: a project whose root holds putnami.features.json, a features/*.json or a specs/*.json document in the candidate cut, and whose resolved extensions or dependencies name this extension. It evaluates each one as a selection of that one project, as the project's own task did. The evaluations run in parallel, on the CPUs the scheduler grants the job, and share one reader of the cut that answers each read once and one strict parse of each authored document; the answers merge in project order, so the bytes do not depend on how many run at once.

Across runs, the task keeps a memo in sdd-features/evaluations.memo under the job's cacheRoot, the per-workspace scratch directory the CLI grants every job. Each entry holds one project's evaluation and every read it made, a file, a directory listing or a source binding, with the SHA-256 of the answer. A run reuses an entry when the memo was written by the same executable for the same workspace view and every read answers as it did, and evaluates the project otherwise. Every evaluation reads every authored manifest and the evidence at every root, so editing one moves every entry, while a source edit moves only the entries whose source binding holds the file, and a file no evaluation reads moves none. The memo never changes what the task writes: a memo that is absent, over 64 MiB, damaged, or written by another executable or for another view is ignored, and the task writes the bytes of a fresh evaluation. A run replaces the memo whole through a rename, and leaves it as it is when it reused every entry (ADR 0006).

It states every diagnostic of every evaluation as a finding fragment of source format putnami-sdd in putnami-evidence.jsonl, a required file of its command output that it writes on every run, empty when nothing is found. The rule is the diagnostic code; the severity and the message are the diagnostic's own. The subject path is the workspace-relative file the diagnostic names, and the member after # is the symbol. Equal fragments are one. A diagnostic that names no file is placed at the file it is about: the featureAuthority warning at the project's putnami.json, any other at the putnami.features.json of the project whose evaluation reported it. A finding that concerns several files is stated at each: a feature id declared twice at every declaration, and a contribution that does not resolve at every capability manifest that declares it and at every evidence record that references it. A string longer than 4096 bytes, the bound of protocols/evidence, is cut at a character boundary.

The task publishes no diagnostic and succeeds whatever the findings say. It fails when it cannot read its inputs: the candidate cut, or a finding of an evaluation about the workspace view, the reader or the revision, which no project's file holds. It also fails, and states the cap, when the findings would exceed the 50000 fragments one file holds, since a file cut short would hide findings. It declares selection: none: the CLI hands it no selection and keys it on no selected project, so it writes the same file under every selection and one cache entry serves --all, --impacted and --projects. After the session, the CLI fails the run once per selected project with an error finding in its files, as <project>:evidence~verdict, counts a finding in a file no project owns under every selection, prints on stderr one line per counted project and rule with the count of its warnings, and records each warning in the session (ADR 0134 of the CLI).

A finding counts for the project that owns the file it names. Some checks of one project's evaluation name another project's file: a manifest of any project that does not parse, and a record followed across a project boundary. A run narrowed to the first project does not fail on those; a run that selects the owner does. A duplicate feature id and an unresolved contribution are stated at every file they concern, so a run that selects any project involved fails on them (ADR 0006).

putnami features validate, the interactive command, still reads the disk, the version Git resolved, and the HEAD commit it reports.

The steps cached on the Git candidate cut

"inputs": {
  "repository": { "from": "project", "files": ["git:**"] }
}

decisions-validate, recipes-validate, codeowners-sync, docs-links-validate and feature-coverage-validate read files no narrow pattern names: the globs a repository authors in its decisions, the sample directories an index names, every putnami.json above a project, any file a link names, and the feature manifest and specs of every project. Each reads the repository's candidate cut and nothing else: the tracked files and the untracked files no ignore rule excludes, as git ls-files --cached --others --exclude-standard lists them. The input git:** holds exactly that cut: each candidate's path, bytes and executable bit, and a symbolic link's target text.

  • Editing, adding, deleting or renaming a candidate moves the key, so a deleted link target or an emptied sample directory is never served a stale green verdict.
  • An ignored file is neither read nor keyed, and staging changes nothing. A directory that holds no candidate does not exist for these steps, as it does not exist in a clone.
  • The port is project-scoped because a workspace-once task's project is rooted at the workspace root. A workspace port alone would leave the project side of the key empty, and the CLI keys an empty project side on every file under the root, ignored build output included.
  • The key of a task cached on the cut also holds the workspace membership, with each project's configuration. feature-coverage-validate reads each featureAuthority from that configuration, so declaring one moves its key.
  • Outside a Git work tree the steps read the disk, and the git: input has no key, so they run every time.

codeowners-sync rewrites .github/CODEOWNERS, which the cut holds. The CLI replays a source writer only when rehashing its project-side key after the run finds the bytes unchanged, so a run that rewrote the file is never replayed: the next run is keyed on the new bytes, and its clean result is the one a later run replays.

The decisions-validate walk stays bounded and deterministic: workspace-relative paths in sorted order, never inside node_modules, vendor, or any dot directory (.git, .gen, .putnami), and never through a symlink — a generated or linked copy of a matched file would make the same registry answer differently before and after a build.

breaking-marker-validate — never cached

"inputs": {
  "PUTNAMI_PROPOSAL_MESSAGE": { "from": "env" }
},
"cache": { "enabled": false }

The verdict reads an environment variable and the commits of the range, and the candidate cut holds neither. A key would need those commits, and a key describes the tree, never the commit (ADR 0059 of the CLI). So the task runs every time, and costs one git log of the range. The env port names the variable the step reads, and keys nothing.

agent-attribution-validate — keyed by the message and the option

"inputs": {
  "PUTNAMI_PROPOSAL_MESSAGE": { "from": "env" },
  "workspaceConfig": { "from": "workspace", "files": ["putnami.workspace.json"] }
},
"cache": { "enabled": true, "noOutput": true }

The verdict reads two things: the message in an environment variable, and the policy in options.sdd.agentAttribution. Both are in the key. An env port is hashed into the key with the value the run reads, so a changed message runs the step again and an unchanged one is served from the cache. The workspaceConfig port holds the option: a changed option runs the step again. The key holds the whole of putnami.workspace.json, not only the sdd options layer, so an edit of any other member of the file runs the step again too. The step reads no other file and no history, so the key needs nothing more. The decision is ADR 0002.

feature-coverage-ratchet-validate — never cached

"cache": { "enabled": false }

The verdict reads the debt list at a commit the run's baseline names, and the candidate cut holds neither the baseline nor the history. So the task runs every time, and costs a few Git reads and one blob read. It declares no port: the current list arrives on the job context. feature-coverage-validate keeps its key on the candidate cut and reads no history.

verdict-policy-validate — cached on the policy and layout files

"inputs": {
  "candidateFiles": { "from": "runtime" },
  "policies": { "from": "workspace", "files": ["putnami.verdict-policy.json", "**/putnami.verdict-policy.json", "!**/.gen/**"] },
  "layout":   { "from": "workspace", "files": ["putnami.workspace.json", "**/putnami.json", "!**/.gen/**"] }
}

The step reads the policy files, and the putnami.json of a directory that holds one, to tell a scope from a plain directory. Each pattern of the policies port spells out the file name, never a glob such as **/*.json. The layout port holds the files that place the root, the scopes and the projects, so moving a project or turning a directory into a scope moves the key.

Inside a Git work tree the step lists the policy files from the candidate cut, so an ignored policy file is neither read nor judged. The cut comes from the job context: the step declares candidateFiles, the CLI reads the workspace's cut before the first task and again after a write of the run, and the key folds its listing, so a change to the index alone, such as a mode change or staging an untracked file, also moves the key. The step starts no Git; without the member, from an older CLI, it lists the cut with Git. The listing never enters .gen, which the ports exclude, nor .git, .putnami, dist, node_modules, out or vendor, which the key's file walk skips, so the key holds every file the step reads. Both file ports are workspace ports. The project side of the key is therefore empty, and the CLI keys an empty project side on every file under the root, so most edits re-run the step. It reads a few small files.

Exit codes

The steps use the standard job contract. A seeded invalid spec produces task exit 2 and session exit 1. contracts check's own exit-2 drift cycle is not part of these jobs — see 03-commands.md for why contracts stayed interactive.

Reading the wire

Everything a step knows about the workspace arrives on the job-context document. The extension has no loader and may not exec putnami. If a step needs a fact the context does not carry, the fix is an additive member in protocols/job — not a private read.

One fact is still missing on the job wire, documented in internal/wsview's package doc and in ADR 0013:

Missing Consequence today
Loader warning codes The view raises workspace.provider_view_unavailable itself when a workspace-scoped job receives no membership, so architecture-validate refuses instead of reporting a subset as the whole.

It fails closed. That is the condition for leaving it open.

Inspecting what a job received

putnami sdd-selfcheck

sdd-selfcheck is an internal command. It reports the extension identity, the job-context protocol version, and the resolved selection block — the member every SDD verdict depends on, because a validator told it ran over three projects cannot otherwise tell a deliberate --projects narrowing from a whole-workspace run of a three-project tree.