Docs and decision records do not separate the goal of a choice from its means

Open
#38 10 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
github, markdown, shell
Domain
documentation

Research direction

Start with docs/doc-rules.md and the listed sections in CONTRIBUTING.md, .agents/skills/review-design/SKILL.md, .agents/skills/review-architecture/SKILL.md, and the issue and pull request templates. Read the proposal and evidence, then review issues #37 and #34 and the pull-request skill's cold-read check. Done means the maintainer's concept and scope decisions are resolved and the affected guidance is updated consistently; the issue is active, but those decisions make it design work.

Written by the indexing model from the issue text.

Description

type/documentation
Kind

Missing

Location
  • docs/doc-rules.md: no definition of a goal. Skills row of Where to write (line 30) and layer 4 of the AI text layers (line 57)
  • CONTRIBUTING.md Message format, the Why field (line 32)
  • .agents/skills/review-design/SKILL.md line 49: "A rule in docs/design/overview.md is always a goal."
  • .agents/skills/review-architecture/SKILL.md line 8
  • .github/ISSUE_TEMPLATE/feature_request.yml line 13, .github/pull_request_template.md sections Why and Validations
Version

17e73ed

Problem

This project keeps decision records so that a later reader can judge a decision. The reader asks: is the chosen means still right, and can a different means do the same job? To answer, the reader needs the goal: the effect that every acceptable means must give. No doc defines a goal or asks a writer to state one.

What this issue must reach:

  1. A reader of a commit, an issue, a PR, a rule or a skill step can tell its goal from its means.
  2. A reader can replace a means that does not fit, and knows what the replacement must still give.
  3. A reader can tell a means that the maintainer requires from a means that is only suggested.

What goes wrong now:

  • An agent follows a skill step literally and loses the goal of the step. Step 5.4 of trace-decision stops at "the sources do not give the reason" (#37).
  • The PR rule for Validations asks for an action, "Write the commands that you ran", not for the facts that a reviewer needs. PR bodies then repeat CI results (#34).
  • Commit Why lines state the goal at the level of the mechanism. A reader who takes that statement as the goal can miss a different means for the real goal (see Evidence).
  • Why holds different kinds of content: the old state, the goal, the new means, and why the new means works. Nothing tells them apart.
  • review-design treats each rule in docs/design/overview.md as a goal. A maintainer can require a means. The requirement does not make the means a goal.
  • review-architecture sets "make them deep" as the target. Code that is easy to change and to test is the goal. A deeper module is one means.
  • The Feature request form asks "what is missing?". A writer then gives a missing means as the problem.
Evidence
  • 9c27000 removes the Design: line. Its Why says that the line "breaks when the heading changes or the section moves". The goal is that a reader can find the decision record for a piece of code. The Design: line and a comment link are two means for this goal.
  • fcba19d allows placeholders in skill commands. Its Why says that "every command that gave a wrong result ended with empty output and no error". The goal is that an agent does not misjudge the result of a command. A command that fails on wrong input is one means: it gives the agent feedback. 48d854b is another means for the same goal: a script with tests replaces the Git commands of step 5.
  • Why content, by kind: old state or missing means (30afb57 "The Feature request form did not ask which revision"), goal (80dc651 "the reader cannot tell if it was accepted or missed"), new means (3ff09db "Use Git move detection", e5d6a9e "It now prints"), why the means works (48d854b "A script handles these cases in code, and tests check them").
  • Rejected reasons depend on conditions, but the field does not name them: 30afb57 "a new idea may not depend on a checkout", fe1355f "no case has needed a search … yet".
Proposal

Decide the concepts first. Change the texts after that.

  1. Define these in docs/doc-rules.md. CONTRIBUTING.md and the skills point to the section:
    • Goal: the effect that a replacement means must still give. Test: "If this means were impossible, what would you still want?"
    • State a goal as the effect on a reader or a user, for example "an agent does not misjudge the result of a command". Do not state a property of the means as the goal.
    • Required means: a means that the maintainer requires. Its goal is still stated.
  2. Apply the concepts to the commit Why definition, the issue and PR templates, the cold-read check of the pull-request skill, review-design line 49, review-architecture line 8, #37 and #34.
  3. Keep the field names. Consider a Goal: field only if new Why lines still mix the goal with the other content after step 2. After a rename, Git history keeps the old names, so the trace-decision skill and the docs must read two sets of names. The collector prints full commit messages and does not parse field names.

Decisions for the maintainer:

  • Which unit states a goal: each choice or procedure that someone can replace alone, or a finer or larger unit?
  • Can a contributor replace a skill step with a means that gives the same goal, or must the contributor propose the change first?
  • Must a commit body state its goal so that a reader without GitHub understands it, or is a link to the issue enough?
  • Where does the current goal of a rule or design live: next to the rule, in a design doc, or both with the commit citing it?
Dominant language
Shell
Stars
1
Forks
0
Avg merge
6h 59m
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from c-w-z/commit-decision-record

All issues in c-w-z/commit-decision-record

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.