Repository navigation
fix(cli): put requirements and business rules on the default path - #715
Merged
Merged
Conversation
…it, verify and forms - assess.md capability sheet: business rules (transition.action, operation.command/query, permission points) generate in the TypeScript service layer; D1 refuses declared commands - always-on guidance and authoring skill: requirements as step 0, business-rules line, behaviour claims point at transitions and operations - requirementTests(): vitest/jest/bun detected from package.json or set with framework - meta verify repeats meta gen's requirements-without-tests advisory - formFile(): the create resolver omits required @formExclude fields - meta init scaffolds a starter requirement ledger
…ementTests() unwired Firstmate decision (b): keep ADR-0034 Amendment 2's generators: []. Adds the changelog fragment, the cli.md init row, and tests for the scaffolded ledger.
…in capability sheet
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.
What Changed
assess.md) now states that TypeScriptservicelayers generatetransition.actionlifecycles,operation.command/operation.queryand their permission points, and that on D1 a declared command is refused. The always-on template andmetaobjects-authoringskill gain a requirements step 0 and a business-rules rule, with the detail moved to a newreferences/business-rules.md. Requirements stay opt-in.meta initandmeta verify:initscaffolds an emptymetaobjects/meta.requirements.jsonledger into a new metadata directory only, with pointers to adding the first requirement and wiringrequirementTests()in the config comment and next steps. No starter requirement node is added, so requirement checks stay silent until a project declares one, andgenerators: []is unchanged.verifyrepeatsgen's "requirements and norequirementTests()" warning in text and--jsonhelp, and no longer prints "nothing advisory to answer" while it stands.requirementTests()detects vitest or jest frompackage.json(or takes aframeworkoption), and output is unchanged when neither is declared. Jest stubs throw instead of callingexpect.unreachable. Docs state the stub folder and that the runner's include pattern must cover it.formFile()'s create resolver omits required@formExcludeand credential fields that the form never renders, except on entities with refined (cross-field) validators, which keep the old schema.Validation
Risk Assessment
✅ Low: The change matches the amended intent. F3 is an empty ledger with no starter node and no exemption. F4 keeps bun output unchanged and the two generator copies byte-identical. F5(a) repeats gen's advisory and suppresses 'nothing advisory'. F8 omits only required, never-rendered fields from plain create schemas. The earlier recorded decisions are reflected in the docs, and the regenerated agent-context trees are consistent.
Testing
Prior run listed three checks but recorded no live=true evidence for any of them, so they are not counted as live results. The payload was a diagnostic call to isolate a schema error. The corrected payload adds one untested scenario with a reason and no pass or fail claims.
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
scripts/ci-local.sh --affected --strict-toolchainsbun meta.ts init in scratch repometa gen jest/vitest/default stub checksmeta verify advisory and empty-ledger checks✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Decisions and live evidence
F3 choice.
meta initscaffolds an empty requirements ledger with no nodes, and keepsgenerators: [](ADR-0034 Amendment 2: init wires no generator). The config comment namesrequirementTests()and its import line. An earlier version scaffolded one level-1plannednode, but that node switched on per-entity coverage, the tests advisory and the undecided-gap count for every new project. Whether to warn projects whose entities lack requirements is still an open policy question (F5b), so it was replaced with an empty ledger, and no starter-node exemption is needed in any port.Test step: approved with operator authorization. The pipeline's test agent ran the scenario 0/1 live, so I ran it on branch head
a7168e44f, using the source CLI in a scratch project that declares vitest:meta initexits 0. It writesmetaobjects/meta.requirements.json={"metadata.root": {}}, andgenerators: []stays withrequirementTests()in a comment.meta verifyexits 0 and prints no requirement advisory.App> L4PlaceOrder,meta verifyprints the F5(a) advisory to wirerequirementTests().requirementTests()wired,meta genwritessrc/generated/requirements/App.PlaceOrder.object.entity.test.ts. It imports fromvitest(F4) and istest.skipwhile the requirement is planned.Out of scope, waiting on a policy call: F5b, a
meta verifyadvisory when a project has no requirements, and F7, the fit assessment covering requirements.no-mistakes: this took 2 runs. The first was cancelled after its review rounds so the run intent could state F3 as built. The second passed review and lint, with the test exception above. CI is local (
ci_mode: local).