Repository navigation
New-feature tickets: task tags, earlier attempts, reuse, registrations, staging content, checklist, open questions - #340
Merged
Conversation
…, registrations, staging content, checklist and open questions
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.
Summary
New-feature tickets now get the same care a careful engineer gives them, for every team, and the rules are enforced in code wherever that's possible. In a real run, a feature re-planned because its new files didn't exist yet. Other runs repeated work from earlier attempts, wrote helpers that already existed, missed a registration that a sibling had, left staging content out of date for the end-to-end tests, and raised product questions only in chat. This PR adds eight rules. The planner is told about them, the plan's own check sends a plan back once when it misses one, and a gate checks them before the pull request opens.
Changes
Rule 1: new files are expected (
worker/passes/feature/plan_files.rs,validate_plan)- [ ] path: [create|modify|delete|replace] .... A tag before the path is also read.modify,deleteandreplacepaths have to exist. Acreatepath must not already exist; if it does, the plan has to sayreplace.plan_coverageparser in Plan check before the PR; fix rounds get their own budget, push once, and never fail an open PR; generated files are regenerated #331. A[create]description still counts as new there, and(optional)/optional:still count as optional.Rule 2: earlier attempts (
feature/prior.rs)## Differences from earlier attemptsand name each attempt. Where an attempt and the ticket differ, the ticket wins.fresh_base). Before the PR, a branch that changes files only unrelated commits touched, and that no task names, gets a fix round. If the files are still there after it, the PR is blocked.Rules 3 and 4: reuse, and mirror the closest sibling (
feature/reuse.rs)## Reuse(paths, or what it searched) and, when it creates files,## Closest siblingwith a path. If either is missing, the plan is sent back once.Rule 5: registration completeness (
feature/registration.rs)Rule 6: content-dependent tests (
feature/content.rs,common::staging_cms,gateway/routes/staging_cms.rs)initialValue), and new block types that a changed spec names.production,prod,prd,live,masterormain, if it is the production dataset the team named, or if the repo's.env*prod*files name it.## Staging contentsection that says what was changed on staging, or that nothing was.Rule 7: verification checklist (
feature/checklist.rs)test_package)--repeat-each=5against the team's test address## Verification checklist.feature::ready_holdis wired intomark_pr_readyand the CI ready path, and re-reads the PR head each time.Rule 8: open product questions (
feature/questions.rs)## Open product questionsin design.md, or in a coder note line that starts withOpen product question:. The PR lists them as undecided, and current behaviour is kept. Blocking questions still useCLARIFICATION_NEEDED.Hooks (kept small, away from #331's hunks)
passes/mod.rs:validate_planfeature::gatecall beforepr::run, for single-repo runs only; multi-repo passesNoneplan.rs:feature::plan_gapsadded to the existing one-time send-backpr.rs:Proof.feature, the description sections, registration for the ready checkticket_history.rs: apriorfield, andread_pris nowpub(crate)github.rs:list_branchesandcommit_filesreposcapabilityVerification
cargo fmt --check --all: cleancargo clippy --workspace --all-targets -- -D warnings: cleancargo test --workspace(withCARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0 CARGO_INCREMENTAL=0): common 1200 passed, gateway 582 passed, worker 768 passed, 0 failed. 34 tests are new inpasses::feature, 5 incommon::staging_cms, and 1 inroutes::staging_cms. The permissions table test covers the new handlers.fix/plan-coverage-and-round-budgets): the only conflict isgateway/src/routes/api.rs, which Plan check before the PR; fix rounds get their own budget, push once, and never fail an open PR; generated files are regenerated #331 already has with main. This PR doesn't touch that file.ui/role-editor,feat/review-fix-discipline,feat/test-failure-is-a-bugandfix/usage-accounting: no conflicts.feat/new-feature-discipline.