Repository navigation
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdandevents/INIT-2026-0017.jsonl.Lifecycle
initiative_createdreviewfeature_state_changeddrafting → validating, triggervalidation_requestedspec_validatedpass: true, 50 files, 0 errorsfeature_state_changedvalidating → planning, triggervalidation_passedFinal state
planning. The next actor is the PM agent'sfeature-decompositionskill.Ordinal
Computed from the specs repo's references rather than this branch.
origin/maincarries only
INIT-2026-0011andINIT-2026-0016plus the orchestrator's ownFEAT-2026-*dev features, while the product initiatives 0001–0007 and0010–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
Draft202012Validatorand areferencing.Registrybuilt from the in-tree$ids, becausescripts/validate-frontmatter.pyandvalidate-event.pynolonger exist on main. The legacy
RefResolverpath is not consulted byunevaluatedProperties, so it tries to fetch thehttps://specfuse.dev/...$idover 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_validatedpayload; no duplicate statetransitions; every event line round-trips.
Two things flagged rather than resolved
next_stephas two claimed writers. The frontmatter schema requiresnext_steponce state isplanning, and the same schema names/initiative-statusas its single writer. Both cannot hold: this skill ownsthe 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 twosees it, rather than silently patched.
validator_versionrecords the jar's sha256 prefix, not just its label.The pinned jar and the generator repo share
0.13.1-SNAPSHOT, so neither--versionnor the file date distinguishes a stale jar from a current one. Alabel-only audit trail would be misleading.
Related
Specs PR: RestoManagerApp/restomanager-specs#450 — the
billingdomain thisinitiative drafts.
🤖 Generated with Claude Code