Repository navigation
chore(release): prepare v1.7.0 - #380
Merged
Merged
Conversation
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.
The Release workflow opened this pull request for v1.7.0.
It merges the pull request when validate passes.
Run: https://github.com/daniel-kindl/dkstack/actions/runs/45656405171
Changed
workflow/review-and-merge.md"After the merge": the author removes each worktree that it or its subagents made for the pull request, with the same checks (docs(workflow): author removes its worktrees #369). Before, only the agent that merged cleaned up, so the author's worktrees stayed.coding/quality.mdowns two rules that were only smells inreview-standards(docs(coding): own literal value and complexity rules #365). "Literal values": give a literal with a meaning a named constant, with a short list of values that need no name. "Complexity": a cyclomatic complexity limit of 10 by default in the linter, run in CI as an error. The two smell rows link the sections.writing/comments.mdhas a section for a comment as a signal (feat(skills): adapt the no-comments skill idea #199). A comment that explains a workaround shows a cause to fix. A comment that guards a constraint becomes a type, a check, a test or a lint rule, and then the comment goes. The section lists the comments that stay.review-standardshas a matching smell row.coding/security.mdsays that push protection of the code host meets the secret scan rule.setup-quality-gatesandsetup-repo-protectiontell a consumer which option applies (ci: add a secret scan gate or clarify the rule #335).Added
coding/types.md(docs(coding): add the type safety rule #362). Do not turn off the type check withany,dynamic,Anyor@ts-ignore. Use the safe top type and check the value at the boundary. Write explicit types for public signatures and local variables. The page names the exceptions where a language cannot name a type, and the strict settings for TypeScript, JavaScript, C# and Python.review-standardshas a smell row andsetup-quality-gateslinks the page.CONTRIBUTING.mdrecords the dkstack exception: the scripts are plain JavaScript, and a test fails onvar.skills/improve-agents(feat(skills): adapt the retro skill idea #198). The owner starts it after a session, a pull request or an issue. It finds changes to the agents' environment in six categories and grades each finding with theverify-claimlevels. A finding with no event is a hypothesis. The report goes to the owner. A finding about dkstack becomes a draft issue, not an edit. The idea comes from theretroskill by Matt Pocock.coding/absent-values.md(docs(coding): add the absent values rule #368). A value that can be absent says so in its type. The null check of the language is on. No special value stands for "no value". Input is converted once at the boundary. An absent value does not report a failure, and an empty collection means "no items".scripts/check-consumer.mjschecks a consumer: theAGENTS.mdpointer,CLAUDE.md,.editorconfig,.gitattributes, the lockfile, the CI audit steps and Dependabot. It also checks each copied dkstack script againstscripts/dkstack-hashes.jsonfor its tag, with no network.setup-quality-gatesstep 4 copies both (feat(scripts): add check-consumer #305).scripts/check-links.mjshas an option--dkstack-root <dir>(feat(scripts): let consumers check dkstack links #332). Without it, a run in a consumerchecks only the local links and skips each dkstack URL. With it, the run checks each dkstack file and
anchor against a clone of the dkstack branch. The run in dkstack does not change.
setup-quality-gatescopies the script and documents both forms.
coding/immutability.md(docs(coding): add the immutability rule #364). Declare a variable so that it cannot be reassigned, do not change an argument, and make value objects immutable. A change in place needs a measurement and stays inside one function or type.scripts/check-diagrams.mjs(feat(scripts): add check-diagrams #316). It checks the format rules ofmake-diagram. Amermaidblock with no paragraph directly above it fails. A tracked
.pngor.svgfile indocs/fails. A diagram with more than 12 nodes gives a warning only.
npm run checkandvalidaterun it. The file has no dependencies, so a consumer can copy it.
coding/feature-flags.md(docs(coding): add the feature flags rule #377). Each temporary flag has an owner and a linked issue that removes it. Tests cover each state that can reach production. A flag has a safe default, is not nested, and is not configuration or a permission.setup-quality-gatescopiescheck-title,check-dashesandcheck-writingto a consumer, withmarkdown-files.mjsandpr-event.mjsthat they import (feat(skills): copy more checks to consumers #304). Step 4 gives the title steps ofvalidateas the CI example. A test pins the list and runs each script alone.coding/time.md(docs(coding): add the time and dates rule #366). Store an instant in UTC as RFC 3339 text. Store a future civil time with its IANA time zone ID. Domain code gets a clock, a duration uses a monotonic clock, and calendar arithmetic uses the platform library.scripts/check-maps.mjs --diff(feat(scripts): add a diff mode to check-maps #317). A change todocs/maps/fails when it also changes afile outside
docs/maps/,docs/adr/andCONTEXT.md, or when it deletes a map. Thevalidateworkflow runs it.tips/index.md(docs(tips): add the first tips #367): check the exit code of each step, check for a breaking change before you push, and find worktrees and branches that are left. AGENTS.md "Sections", the README and the triage section map listtips/index.md.test/names (test: require a test for each page #314). The 41 pagesthat had no test get one in
test/section-pages.test.mjs..gitignoreignores.claude/worktrees/, sogit add -Adoes not add an agent worktree (chore: ignore agent worktrees #363). A test checks that.claude/settings.jsonis not ignored.learning/progress.md(test: check the example progress block #315). It parses the blockwith no dependency and checks the keys,
schema_version, the levels, theassistancevalues,the dates and the empty
evidenceof anunknownlevel.scripts/check-todos.mjs(feat(scripts): require an issue on each TODO #313). It fails when aTODOinscripts/ortest/has no#NNNissue reference.npm run checkandvalidaterun it.check-dasheschecks the.mjs,.ymland.yamlfiles, in addition to Markdown (feat(scripts): check dashes in script comments #312). An emdash or an en dash in a script or in a workflow fails.
check-contextchecksCONTEXT-MAP.mdand each context file that it lists (feat(scripts): check multi-context glossaries #342). The glossaryrules and
domain-glossarydescribe a project with two or more contexts.skills/model-domain(feat(skills): add model-domain #341). The skill finds the bounded contexts first, then the aggregates,value objects and events, and writes a Domain model block in the issue.
triage,clarify-intent,plan-workandskills/index.mdlink it.setup-repo-protectioncovers an owner who uses one code host account with the agents (docs(skills): cover a single-account owner #334).It gives the safe settings and a sample exception for
AGENTS.md. The step says that theindependent review still applies.
architecture/domain-modeling.md(docs: add the domain modeling rule page #340). The page has rules for bounded contexts, thecontext map, aggregates, value objects and domain events, and says when not to model.
check-titlegives a warning when the first word of the description ends in-ed,-ingor-s(feat(scripts): warn on a non-imperative title #311). The exit code does not change. Some imperative verbs, for examplepass,focusand
embed, give no warning.scripts/check-pr-body.mjsand avalidatestep (feat(scripts): add check-pr-body #301). The step checks the PR body for anissue link, an Evidence section, one Observability line and a valid Visual verification line.
check-adrschecks the ADR file names and amendments (feat(scripts): check ADR names and amendments #307). A new ADR is namedNNNN-short-title.md, and no two ADRs share a number. A change to an Accepted ADR only adds lines under a### Amendment YYYY-MM-DDheading. A new--diff <file>option gives the diff without git.scripts/check-suppressions.mjs(feat(scripts): add check-suppressions #306). It reads the added lines of the diff against themerge base. It fails on a blanket suppression and on a suppression with a rule ID but no
reason. A
NoWarnin one project file needs rule IDs and a reason. It gives a warning, not afailure, for a lowered number after a known coverage gate key or a raised
max-warningsnumber. It skips Markdown and plain text (
.txt) files (feat(scripts): add check-review #309).npm run checkandvalidaterun it.
scripts/audit-settings.mjsandnpm run audit:settings(feat(scripts): audit the repository settings #302). It reads the settings of arepository with
gh apiand compares them withsetup-repo-protection. It changes nothing.The owner runs it.
validatedoes not run it.check-workflowschecks more CI workflow rules (feat(scripts): extend check-workflows #303). Each job setstimeout-minutes. Arelease or deploy job needs an
environment:, and its workflow starts only byworkflow_dispatch, setsconcurrencyand checks that the ref ismain. The allowed secretsare in
.github/check-workflows.json, not in the code. dkstack keeps the release app exception.The check now fails closed. Jobs must be at 2 spaces under
jobs:, and job keys at 4 spaces.Triggers must be on the
on:line or at 2 spaces under it. Another form fails, also when theworkflow does not release.
Consumer action: before you copy the new
check-workflows.mjs, write each job at 2 spaces underjobs:with its keys at 4 spaces, and each trigger on theon:line or at 2 spaces under it.--diffmode inscripts/check-changelog.mjs. A change that adds a page or a skill must also change## [Unreleased]. The validate workflow runs it (feat(scripts): add a diff mode to check-changelog #310).scripts/audit-issues.mjsandnpm run audit:issues(feat(scripts): audit issues and labels #308). The tool reads the open issues and the labels of a repository withgh. It lists an issue with no type label, more than one, or one that dkstack does not name. It lists an issue with no Goal or Acceptance criteria heading. It lists a relation in text that the tracker does not have. It lists a missing type or priority label. It writes nothing.scripts/check-breaking.mjs(feat(scripts): add check-breaking #300). On a pull request, it lists each removed page, removedskill and removed anchor that a skill or
AGENTS.mdlinks. If it finds one, the title musthave
!and## [Unreleased]must have a new "Consumer action:" line. An anchor that thepage keeps as a heading, or as an HTML id or name attribute, is not removed.
scripts/check-review.mjs(feat(scripts): add check-review #309). A reviewer runs it on the review file before posting. Itchecks the verdict, the head SHA, the
file:lineof each finding and open findings. The mergerule names
gh pr merge --squash --match-head-commit <sha>.Changed
check-writingnow exits 1 when it finds a long sentence, a long step or a semicolon (feat(scripts): make check-writing fail #299).Before, it only warned.
Fixed
scripts/check-pr-body.mjsreads links and inline code (fix(scripts): read links and code in check-pr-body #330). A closing reference in inlinecode or in the label of a link does not count. A link counts only when its destination is an
issue URL, for example
Closes [#19](https://github.com/o/r/issues/19). A removed link or codespan does not join the text on each side of it into a new reference.
scripts/markdown-files.mjslists the files that Git sees (fix(scripts): skip ignored files in md checks #333). In a Git work tree, itlists the tracked files and the untracked files that
.gitignoredoes not ignore. Socheck-dashes,check-writingandcheck-linksread the same files locally and in CI.Outside a Git work tree, or in a folder that
.gitignoreignores, it reads the folder asbefore.