Skip to content

feat(specs): mint INIT-2026-0017 billing/subscriptions and hand off to planning - #108

Open
Bontyyy wants to merge 3 commits into
mainfrom
specs/init-2026-0017-intake
Open

Bontyyy wants to merge 3 commits into
mainfrom
specs/init-2026-0017-intake

Conversation

@Bontyyy

@Bontyyy Bontyyy commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Mints INIT-2026-0017 (pricing plans + billing/subscriptions, Stripe), fills its
registry body after spec drafting, and hands it off to PM planning. Three
commits, one per lifecycle step, so the history reads as the state machine ran.

Touches only features/INIT-2026-0017.md and events/INIT-2026-0017.jsonl.

Lifecycle

Event Payload
initiative_created title, involved_repos, autonomy_default review
feature_state_changed drafting → validating, trigger validation_requested
spec_validated pass: true, 50 files, 0 errors
feature_state_changed validating → planning, trigger validation_passed

Final state planning. The next actor is the PM agent's
feature-decomposition skill.

Ordinal

Computed from the specs repo's references rather than this branch. origin/main
carries only INIT-2026-0011 and INIT-2026-0016 plus the orchestrator's own
FEAT-2026-* dev features, while the product initiatives 0001–0007 and
0010–0016 are recorded in the specs repo. 0008/0009 stay reserved for the
pending kiosk renumber. Next free = 0017.

Validation

Frontmatter, event envelopes and per-type payloads all validated with
Draft202012Validator and a referencing.Registry built from the in-tree
$ids, because scripts/validate-frontmatter.py and validate-event.py no
longer exist on main. The legacy RefResolver path is not consulted by
unevaluatedProperties, so it tries to fetch the https://specfuse.dev/...
$id over the network and dies on a 404 — the registry avoids that.

Verified after writing: correlation ID consistent across filename, frontmatter,
both envelopes and the spec_validated payload; no duplicate state
transitions; every event line round-trips.

Two things flagged rather than resolved

next_step has two claimed writers. The frontmatter schema requires
next_step once state is planning, and the same schema names
/initiative-status as its single writer. Both cannot hold: this skill owns
the transition, so it has to write the field or leave the file invalid. It is
written here (owner: pm-agent) and called out so whoever reconciles the two
sees it, rather than silently patched.

validator_version records the jar's sha256 prefix, not just its label.
The pinned jar and the generator repo share 0.13.1-SNAPSHOT, so neither
--version nor the file date distinguishes a stale jar from a current one. A
label-only audit trail would be misleading.

Related

Specs PR: RestoManagerApp/restomanager-specs#450 — the billing domain this
initiative drafts.

🤖 Generated with Claude Code

Bontyyy and others added 3 commits September 27, 2026 13:24
…ons (Stripe)

Graduates backlog item IDEA-031 (state `ready`) from the specs repo. State
`drafting`, autonomy_default `review`, feature_graph empty — decomposition is
the PM's concern after planning.

involved_repos includes restomanager-specs, which the dossier's Mint plan
(written 2026-07-01) omits: the initiative creates a new billing/subscription
domain, so drafting starts in the specs repo. Confirmed with the PM at mint
time along with the autonomy default.

Ordinal computed from the specs repo's references, not this branch: origin/main
carries only INIT-2026-0011 and INIT-2026-0016, while product initiatives
0001-0007 and 0010-0016 are recorded in the specs repo. 0008/0009 stay reserved
for the pending kiosk renumber (IDEA-041). Next free = 0017.

Frontmatter, event envelope and initiative_created payload each validated
against shared/schemas via Draft202012Validator with a referencing.Registry
built from the in-tree $ids. Correlation ID verified consistent across filename,
frontmatter, envelope and payload; event log has exactly one line.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Description, Scope, Out of scope and Related specs filled from the drafting
session. Frontmatter untouched — state stays `drafting`; the transition to
`validating` belongs to spec-validation.

Two corrections against the scoping draft, both made because the specs had to
be honest rather than convenient:

- Eight domain events, not six. Every write operation must declare what it
  publishes, and the checkout and portal endpoints had no state transition to
  name. Rather than invent a trigger predicate, the subscription row now
  records when checkout and the portal were last opened — which is also the
  first thing support correlates against when a subscription changes
  unexpectedly.
- `CompanySubscription.PastDue` renamed to `.PaymentFailed`. `PastDue` is the
  name of a state, not of something that happened; the generator's past-tense
  check was right.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Validation ran clean, so the initiative moves drafting → validating → planning.

Two events emitted, both schema-validated before append:
- feature_state_changed(drafting → validating, validation_requested), emitted
  before the validator ran so the log records the intent even if the run had
  failed.
- spec_validated(pass: true), 50 files, 0 errors.
- feature_state_changed(validating → planning, validation_passed).

All nine layers of ./scripts/validate-specs.sh pass: OpenAPI structure,
generator compat, Spectral, Redocly, AsyncAPI structure and Spectral, Arazzo
structure and Spectral, and generator DDD + async cross-spec + source-tree.

validator_version records the jar's sha256 prefix alongside its label. The
label alone is not identifying: the pinned jar and the generator repo share
0.13.1-SNAPSHOT, so neither --version nor the file date distinguishes a stale
jar from a current one.

next_step is written here because the frontmatter schema requires it for
`planning` and the transition is this skill's to make. The schema names
/initiative-status as its single writer, so this is a deliberate overlap
rather than an oversight — flagged for whoever reconciles the two.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant