From 7d5dca1c0999a9b4600dc75a01eee3d6844c75c9 Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com> Date: Mon, 30 Nov 2026 12:02:05 -0500 Subject: [PATCH] Squashed 'repos/constitution/' changes from 130d1a3dfd..91aa6c0ef9 91aa6c0ef9 docs(agents): remove decision-reviewer routing from agent instructions (#44) 423fcd8546 build(deps): bump @commitlint/config-conventional (#41) 294647deed Merge pull request #43 from systemfsoftware/docs/risk-and-verification 369fb31733 style(working): deno fmt 7eb286507c docs(working): define non-behavioural, make the risk tier followable without a risk check, require baseline-green characterization tests 542e282216 docs(working): verification is independent, risk is never self-classified, a PR carries its evidence (SF-WRK-7 to 9) 574e8a14bf docs: fix tests rerouted by a refactor instead of deleting them (#42) 2f431897b1 build(dependabot): add dependabot configuration (#40) git-subtree-dir: repos/constitution git-subtree-split: 91aa6c0ef98c25e86576df511837774cb14b5059 --- .github/dependabot.yml | 34 ++++++++++++++++++++++++++++++++++ CODING_STANDARDS.md | 3 ++- WORKING.md | 26 ++++++++++++++++++++++++-- deno.json | 2 +- deno.lock | 24 ++++++++++++------------ 5 files changed, 73 insertions(+), 16 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..715522c5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,34 @@ +# The org's one Dependabot configuration (public-repo standard, item 5). Only the ecosystems and the extra +# major-version ignores differ by repository. The 3-day cooldown matches pnpm's minimumReleaseAge; vendored +# subtrees under repos/ are never updated in place; @systemfsoftware/* moves with the flake input. +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: weekly + day: monday + cooldown: + default-days: 3 + exclude-paths: + - "repos/**" + labels: + - "automerge" + groups: + github-actions-minor-patch: + patterns: ["*"] + update-types: ["minor", "patch"] + + - package-ecosystem: "deno" + directory: "/" + schedule: + interval: weekly + day: monday + cooldown: + default-days: 3 + exclude-paths: + - "repos/**" + groups: + deno-minor-patch: + patterns: ["*"] + update-types: ["minor", "patch"] diff --git a/CODING_STANDARDS.md b/CODING_STANDARDS.md index adeea0da..2a4004c7 100644 --- a/CODING_STANDARDS.md +++ b/CODING_STANDARDS.md @@ -72,7 +72,8 @@ A state the compiler refuses needs no test and cannot return unnoticed. test with a defective assertion (checking steps, configuration, or file layout; copying expected values from code; unable to fail; or covering removed behaviour); never rewrite, retitle, or replace it. Fix a test whose only fault - is how it reaches the code (an internal import or real clock). Deleting a + is how it reaches the code (an internal import, a real clock, or a boundary, + entrypoint or protocol that moved while the behaviour stayed). Deleting a worthless test is welcome and does not count as lost coverage. When a valid test fails, fix the code under test, not the test. - Why: reshaping a bad test keeps its cost and false confidence; weakening a diff --git a/WORKING.md b/WORKING.md index e55b6272..552f4413 100644 --- a/WORKING.md +++ b/WORKING.md @@ -6,8 +6,7 @@ narrow these rules, never loosen them. - **SF-WRK-1** Deliver the whole task. Stop only when merged, in the merge queue, or blocked by something only the owner holds, and state which applies. -- **SF-WRK-2** Do reversible work without asking. Send any design or technical - decision you would ask the owner to Gemini, report its answer, and proceed. +- **SF-WRK-2** Do reversible work without asking. - **SF-WRK-4** Never run full test suites, end-to-end tests, or microVM runs on shared hosts; leave them to CI. - **SF-WRK-5** Before any destructive or broad action, restate the instruction's @@ -22,5 +21,28 @@ narrow these rules, never loosen them. of the task—such as an independent research path, parallel work in a fresh context, or a review blind to its author—returning a compact result to the main loop. +- **SF-WRK-7** Separate generation from verification. Done needs the concrete + proof `SF-FIN-1` names, produced by something other than the author (compiler, + deterministic tests, CI); a fresh-context reviewer's verdict adds to that + proof and never replaces it, and the author's self-approval never counts. +- **SF-WRK-8** Scale review depth to blast radius and reversibility, never by + the authoring agent's self-classification. A change is non-behavioural only + when every file it touches is documentation other than instruction files + (`AGENTS.md`, `CLAUDE.md`, this constitution, skills, review and coding + standards), or when the repository's risk check classifies it so; every other + change is behavioural. Read the risk tier from the repository's risk check, + which combines a deterministic structural floor and the owner's declared + high-risk paths with an independent calibrated classifier and fails closed; + where a repository has no risk check, every behavioural change is high-risk. + Every behavioural change receives independent review after its checks pass. + Before refactoring brownfield or untested code, commit characterization tests + that pass against the unmodified code; record non-trivial read-only + archaeology as a committed file under `docs/` in the same PR; and migrate in + complete units, removing the legacy path in the same PR. +- **SF-WRK-9** Give every behavioural PR a body that states intent and + non-goals, load-bearing decisions and rejected alternatives, raw verification + evidence (commands, and CI run IDs once CI has run), the test and grader + changes, and its rollback or live post-deploy check. Update the body whenever + the head changes what it says, and name the head SHA it describes. - **SF-FIN-1** Never claim a task is done, blocked, or broken without concrete proof, such as a passing command, compiler error, or observed system state. diff --git a/deno.json b/deno.json index 45b1a099..5c701c54 100644 --- a/deno.json +++ b/deno.json @@ -6,7 +6,7 @@ "prepare": "git config core.hooksPath .husky" }, "imports": { - "@commitlint/config-conventional": "npm:@commitlint/config-conventional@^21.2.0" + "@commitlint/config-conventional": "npm:@commitlint/config-conventional@^21.2.4" }, "fmt": { "include": [ diff --git a/deno.lock b/deno.lock index 73d7e5e0..9270fad0 100644 --- a/deno.lock +++ b/deno.lock @@ -1,31 +1,31 @@ { "version": "5", "specifiers": { - "npm:@commitlint/config-conventional@^21.2.0": "21.2.3" + "npm:@commitlint/config-conventional@^21.2.4": "21.3.0" }, "npm": { - "@commitlint/config-conventional@21.2.3": { - "integrity": "sha512-EP2n5DN2GwRWNVrLX0Jx3mpQlW5PfFi9HnD9OJ8hN/H0xFqpCFyHeGDhg+0P8/21iMMcdkcQgbNqmVklebqYsQ==", + "@commitlint/config-conventional@21.3.0": { + "integrity": "sha512-jWTouDSbhDqlJyJCN3RW0v7nxhU28MsUb5Gsrp8An6W4Xqa3GkrvjMdRbnoVX7S8oVgHy12p8Pmq2r8PCPOQ7w==", "dependencies": [ "@commitlint/types", "conventional-changelog-conventionalcommits" ] }, - "@commitlint/types@21.2.3": { - "integrity": "sha512-sGEA473TlCvhCGNoTBY9OXZVWdscIXdGt0dm8EpB+2MRfmt8LNh/X56P/T3nCtEB+eH5qGEa3odphSAoUxSfSQ==", + "@commitlint/types@21.3.0": { + "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==", "dependencies": [ "conventional-commits-parser", "picocolors" ] }, - "@conventional-changelog/template@1.4.0": { - "integrity": "sha512-aalGyl7dbB5PArRebDIX43ZvBlXrYm9uWzGJ26t+4SzJVPsOuvfILGGbw5X4yX7i50YEmJ8zvbiWnqH/AAnZqg==" + "@conventional-changelog/template@1.4.1": { + "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==" }, "@simple-libs/stream-utils@2.0.0": { "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==" }, - "argue-cli@3.2.0": { - "integrity": "sha512-VipTB0gXgGIFO2Rg9yEVN5wLt2AurJcZqDbgmYSwPwsykhLrQhs240/bfceev4w68lI8JshoOJIk9uW7tFzROw==" + "argue-cli@3.2.1": { + "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==" }, "conventional-changelog-conventionalcommits@10.4.1": { "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==", @@ -33,8 +33,8 @@ "@conventional-changelog/template" ] }, - "conventional-commits-parser@7.1.3": { - "integrity": "sha512-Q9oWm1o9uy/oEsZQIraoFMZ4RuPD+79KgwWj6mJVP356tazolCB0piRLZ5Kz9te9p027uSEcUW+Gu44Eh+X79g==", + "conventional-commits-parser@7.1.4": { + "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==", "dependencies": [ "@simple-libs/stream-utils", "argue-cli" @@ -47,7 +47,7 @@ }, "workspace": { "dependencies": [ - "npm:@commitlint/config-conventional@^21.2.0" + "npm:@commitlint/config-conventional@^21.2.4" ] } }