Repository navigation
docs(governance): codify determinism-first policy across the governance stack - #723
Conversation
jflowers
left a comment
There was a problem hiding this comment.
thanks for the thorough layering here; the council came back with advisories rather than blockers.
four of five runs returned assessments; the adversary run hit a retryable provider error and did not vote. the verdict is APPROVE WITH ADVISORIES.
two advisories do not map to diff lines:
- the constitution-check agent (
.opencode/agents/constitution-check.md) still enumerates four org principles at lines 43, 95, and 99; after this change the constitution has six. the scaffold twin shares the text, so the fix belongs on a chore branch. wondering if #720's body should enumerate those lines so the drift is tracked; the PR's own learning prescribes extending #720, but its current scope names onlydocs/files. - the token-reduction to Principle VI arc (#659, #716, this PR) might make a good blog piece; it sits below the strict blog-issue thresholds, so informational only.
This review was generated by /uf.review-pr (AI-assisted).
| than paraphrased or improvised. Agents MUST NOT add | ||
| mechanical procedural prose (parsing, existence checks, git | ||
| choreography, output template rendering, enumeration loops) | ||
| to commands, agents, or skills where an executable tool is |
There was a problem hiding this comment.
wondering whether the "where an executable tool is feasible" qualifier here is intentional. Principle VI, DE-001, and the determinism-first skill all state an unqualified MUST. could an agent following this layer decide no tool is feasible, add mechanical prose, and then get flagged CRITICAL by a reviewer citing DE-001? one line would align the four layers, or design decision 1 could document the per-layer force.
| complete. | ||
|
|
||
| - [x] 2.1 Run `make lint` and `make test` (CI parity: lint covers | ||
| the new markdown governance files and the scaffold_test.go edit; |
There was a problem hiding this comment.
task 2.1's rationale says lint covers the new markdown governance files. make lint runs go vet plus golangci-lint, which is Go-only. markdown linting happens through MegaLinter in ci_checks.yml, which did pass at head. would it be worth correcting the rationale, or noting the CI-only coverage explicitly?
| - [x] 1.10 [P] File the `unbound-force/website` documentation | ||
| issue for the constitution page update (Principle VI) per | ||
| the org constitution's Cross-Repo Documentation rule; it | ||
| MUST exist before the implementing PR merges (Principle V |
There was a problem hiding this comment.
tasks 1.1 and 1.9 both edit .specify/memory/constitution.md, yet both carry [P]. the header rule says not to parallelize tasks that modify the same file. is the collision worth annotating for the archival record, since the group preamble says all tasks touch different files?
| (domain-specific sections per the `content.md`/`ci.md` | ||
| precedent), and auto-discovered by review prompt assembly. | ||
|
|
||
| #### Scenario: Pack included in review prompts |
There was a problem hiding this comment.
these MUST-level scenarios read as automated contracts, but could any test fail if determinism.md were renamed or deleted? the plugin tests run against scratch fixtures, and the canonical-sources test only pins registration. wondering if a small Go test walking the real tree, or an explicit acceptance of compositional verification, would close the gap.
|
|
||
| ## 2. Verification | ||
|
|
||
| Sequential; every gate must pass before the change is marked |
There was a problem hiding this comment.
task 1.10 cites unbound-force/website#305 for the cross-repo docs gate. could you confirm that issue exists and covers the constitution page update before merge?
Summary
Codifies the determinism-first principle — deterministic logic belongs in
executable plugin tools with tests; judgment belongs in instruction prose —
across the governance stack, via OpenSpec change
determinism-codification(all 11 authoring tasks and all 5 verification gates complete).
to
.specify/memory/constitution.md(version 1.3.1 → 1.4.0).opencode/uf/packs/determinism.md(rules DE-001–DE-004), auto-discovered by every Divisor review-agent prompt
.opencode/skills/determinism-first/SKILL.md(classify-before-writing guidance)
and exhaustive Convention Packs listing
Hero Alignment principle count reconciled
knownNonEmbeddedFilesexclusion map andpack-validator governance skip list
change's review and retrospective
Docs-gate compliance: documentation issues filed before merge — #720 (this
repo) and unbound-force/website#305.
How to Test
make lint— markdown lint covers the new governance files and test editsmake test— drift tests pick up the new pack/skill via the exclusionmap; pack-validation gate skips the governance pack
make plugin-test— review-dispatch prompt assembly auto-discovers thenew pack (golden fixtures)
openspec validate determinism-codification --type change --strict—validates cleanly
make checkruns the full suite (lint + coverage gate + plugin tests)All verification tasks (2.1–2.5) passed locally during implementation.
How to Demo
Governance codification — no runtime demo. Confirm the determinism-first
skill appears in opencode session skill listings and the determinism pack
appears in
/uf.review-councildispatch prompts.Key Files Changed
35 files, +1034 / −19:
openspec/changes/determinism-codification/— proposal, design, tasks, spec delta.specify/memory/constitution.md— Principle VI, version 1.4.0.opencode/uf/packs/determinism.md— new governance pack.opencode/skills/determinism-first/SKILL.md— new skillAGENTS.md— determinism gate rule + exhaustive pack listingREADME.md,CHANGELOG.md— principle reconciliation, change recordinternal/scaffold/scaffold_test.go,internal/schemas/packvalidator_test.go.uf/dewey/learnings/,.uf/dewey/compiled/— workflow knowledge artifactsThis PR was generated by /uf.finale (AI-assisted).