Skip to content

effect receipts: the k8s ConfigMap receipt row and non-cloud receipt targets, deferred when #1703 closed #2074

Open

Description

@lex00

#1703 closed on 2026-08-24 with all six children shipped and this in the close comment: "Deferred per the decision log: k8s ConfigMap row, non-cloud receipt targets, #1292 no-effects assertions, receipt CLI verbs (never)." #1292 has its own issue and CLI verbs are a stated non-goal. The other two have no issue. This is it.

Today the only receipt row is aws SsmParameter (#1835, PR #1882): store, observation coverage, and the gated-migration worked example. A project whose effects run against a cluster and never touch AWS has no receipt target, so effect() steps there cannot record that they fired, and WatchOp's stale-receipt reporting (#1834) has nothing to read.

Ask

  1. A k8s ConfigMap receipt row in the k8s lexicon, same shape as the SSM row: the recognition marker in a label or annotation, the resolution split (observe-only from the generic apply path, the effect step as the sole writer, on success, last), and observation coverage so describeResources can verify the marker.
  2. A statement of what "non-cloud receipt targets" means, and either one implementation or a written reason to stop at k8s. Candidates the decision log gestured at: a file in the repo committed by the effect step, a forge repository variable. Pick one or say why neither.
  3. The COR022-024 receipt guards apply to the new row unchanged; a lint fixture proves the leaf rule and the plain-store rule fire on a ConfigMap receipt the same way they fire on SSM.
  4. The effect-receipts concept page (docs/src/content/docs/concepts/effect-receipts.mdx) lists the rows that exist.

Constitutional lines from #1703 hold: receipts stay observe-only to generic apply, and no record store is introduced.

Follow-up to #1703. Related: #1292, #1834, #1835.

🤖 Claude Code — https://claude.ai/code/session_015HFrNGLJa12qojpfwbDwyD

Activity

  1. added
    enhancement
    area:lifecycle
    area:k8s
    on Sep 4, 2026
  2. lex00 commented on Sep 7, 2026

    @lex00
    ContributorAuthor

    Item 1 is done: the k8s ConfigMap receipt row, with the store, both observation legs, the prune exclusion, the COR022/COR023 fixtures and the docs line.

    Item 2, non-cloud receipt targets, is left open deliberately. Here is what doing item 1 turned up, so a decision can be made without re-deriving it.

    What "non-cloud" would have to mean

    Both rows that exist now share one property that nothing about them is cloud-specific: the target is a live, addressable key-value store the deployed system already has, reachable at plan time and at run time by the same address. SSM is one, a ConfigMap is one. That property, not "cloud", is what a receipt target is. So the real question is whether a target that lacks it can still be a receipt target, and the two candidates the decision log gestured at fail it in different ways.

    Candidate A: a file in the repo, committed by the effect step

    Cost: the receipt stops living in the live system. lifecycle plan would read the effect's memory from the working tree rather than from the estate, which inverts the epic's own invariant that a mutation reads staleness only from live. Two environments deploying the same commit would share one receipt, so <env> would stop being part of the identity, or the file would have to carry a per-env map, which is a state file. And a write means a commit and a push from inside a run, so a failed push after a successful effect leaves no receipt at all, which turns at-least-once into at-least-once-per-clone. The at-least-once ordering survives; the "memory lives in the live system" line does not.

    Roughly 300 lines plus a git-write seam nothing else in the repo has.

    Candidate B: a forge repository or environment variable

    Cost: much smaller, and it does keep the memory outside chant, in a system the estate already runs on. A repo variable is a real key-value store with an API, the forge lexicons already hold credentials for it, and the address derives from the ownership fields the same way. What it does not have is namespacing per environment unless the forge's environment-scoped variables are used, which differ per forge (GitHub environments, GitLab environment-scoped CI variables, Forgejo has neither in the same form). So it is not one row, it is three, and only two of them can spell <env> at all.

    Roughly 200 lines per forge, plus a decision about what happens on the forge that cannot express the env segment.

    Candidate C: the one item 1 makes cheap, and nobody has asked for

    A k3s or k3d cluster is not a cloud, and it now has a receipt target for free: the k8s row works against any cluster the lexicon can bind. A local Op lane already reads and writes receipts through it. If "non-cloud" meant "an estate with no cloud account", that case is closed by item 1 without a new row.

    The question for the maintainer

    Is "non-cloud receipt target" a request for a target outside the deployed system (candidate A), or a request for one more live store that is not a cloud provider (candidate B, and arguably C)? They are different asks with different costs, and only the first one puts pressure on the epic's invariants.

    If it is the first, the answer should probably be a written refusal on the record rather than an implementation: a receipt whose memory is in the repo is a state file with a different name, and the epic already declined a record store by construction.

    If it is the second, candidate B is a normal per-lexicon row and can be scoped like #1835 was, one forge at a time, with the env-segment question answered before the first line is written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:k8sarea:lifecycleenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions