Skip to content

5.0 phases 4 to 7: epics, branches, sprint planning and building a story - #458

Open
crenshawdev wants to merge 128 commits into
release/5.0from
cadence/phase-1-two-paths
Open

crenshawdev wants to merge 128 commits into
release/5.0from
cadence/phase-1-two-paths

Conversation

@crenshawdev

Copy link
Copy Markdown
Owner

Phases 4 through 7 of 5.0, on release/5.0. Phase 4 starts an epic: /cad-agile adds one from a Seldon design or from its own questions, the first run on a project asks every setup question once, up front, and /cad-next takes the next step. Phase 5 is the branches: main holds what users have, each release builds on its own branch, each sprint on a branch off it, and urgent fixes go through main. Phase 6 is sprint planning: Cadence shows the ready stories from the top of the backlog with their sizes, marks the set it suggests and why, and you pick the sprint. Phase 7 builds the stories: each /cad-next during a sprint builds its next stories on the sprint's branch, each planned just before it's built and done only when its acceptance lines pass.

Phases 4, 5 and 6 pass every UAT item. Phase 7 isn't finished: 10 of its 15 UAT items pass and the other 5 wait on this PR's CI, so this shouldn't merge until /cad-verify 7 closes. The last commit checks a record's keys directly instead of sorting them and turns the builds-on walk into a do-while, the same Sonar catches that failed #429's gate. Locally at 8b22541 the 562 agile tests pass. The full suite, coverage, the typecheck and plugin validate run in this PR's CI.

Known rough edge: 3a379e0 adds stress-test and debug logs at the repo root (mod.log, latest, memtest_vulkan.log, prime.txt, mprime.pid, a, b). Drop that commit before this merges if they shouldn't ship.

.github/tests-pin names cadence-tests f82e4a5f, which is already on its main. Merge this with a merge commit, since the next phase builds on it.

…IDs and spine decisions, and old records read them as empty
…s as items in build order and refuses a design already added
…next epic, so intake never overwrites an existing epic.json
… as a branch name on write and on read, and null means unanswered
…n in asking order, and check no longer refuses a project git has no name and email for
… anything is written, then writes the answers, the git identity to this repository only
… or from the user's own answers, commits it by path and names /cad-next
… writes the answers and git init before the switch commit, then adds an epic, and no longer says adding one isn't built
… or its own questions, asks the setup once, and refuses a design already added
…ames the epic in its message only after an ok:true
…log and the setup files git lists, so an earlier run cut short is committed with the next
…e backlog that took its items is committed with it
…t was refused, so no epic is added on top of it
…from its own workflow, and names the steps that aren't built yet
…steps not built yet, and refuses while setup is unanswered
…ts REPL

Every agent lists REPL since 4.5.2, but no contract said how to use it, so a
planner in Code Mode kept its direct Bash and Read calls and added a REPL and
Poll round trip per script on top. The rule sits in cad-shared-rules, so all
35 agent files pick it up; without REPL the contracts' one-message batching
stands as it was.
….release_branch_name alone, and trunk or auto_branch off no longer exempt it
…git.release_branch_name alone, and the title-derived name is gone
…nch is made, and a sprint file written before reads with it empty
…l a build fills it, and a story file written before reads with it empty
…geLayers call, as self-verify's merge-warnings check reads it
…e branch's commit and records the name in sprint.json
…nt runs, and refinement's commit lands on it
…s own counts as unanswered wherever the name is read
…ds as its last commit, reports and ends after one wave
…r's built test is an ancestor of HEAD with only records past it, and a dirty tracked tree blocks the check
…the main session or the planner agent, and the story's size decides nothing
…heck is true, and a fix to the plan lands through the one writer and the size call
…resolve, and the diff review is per story whatever review.triggers.diff.when holds
…locking risk review, and every commit made for a story passes the risk step before its next check
… landed before a stop, and run only when the close answered ok:true

Review of 4532785..d0cd2ad, findings 1 and 2.
…story ID>, checks its base before the branch, reads its lease from the main tree and writes nothing under .planning/agile/
…e when the parallel settings allow it, and a refused launch builds the wave one at a time in the main tree
…branch one at a time with its range recorded, and a conflict stops and asks
…and diff reviews and its check in the main tree over its own range
…nd diff review, a stopped merge resumes with its range, and a refused merge is a stop
…hecks a story in review only after every range its record holds passes the risk gate and its diff review
… round with its recorded plan and is not planned again
…art, a merge with no range records its pair, and an open range draws the ask before anything is done for its story
…with no commit is not a merged story, and a stale passing result is a stopped build
…the review next, and the tests pin follows it
…ear-point.mjs, and pin cadence-tests at the tests merge 1bbce23c

The phase's tests merged main's safe-point tests (clear-point.test.mjs, the seam-calls counts, arg-contract at 357 flags and 24 rows), and those need cadence-core/bin/clear-point.mjs, which release/5.0 carries from 4.6.0 (d993364). weight-budgets.json is re-derived from cadence-core/bin/weight.mjs on the merged tree.
…a do-while, so Sonar's gate has nothing to catch
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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