Skip to content

docs(governance): codify determinism-first policy across the governance stack - #723

Merged
jflowers merged 16 commits into
unbound-force:mainfrom
jflowers:opsx/determinism-codification
Oct 14, 2026
Merged

jflowers merged 16 commits into
unbound-force:mainfrom
jflowers:opsx/determinism-codification

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

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).

  • Constitution amendment: Principle VI "Deterministic Execution" added
    to .specify/memory/constitution.md (version 1.3.1 → 1.4.0)
  • New convention pack: .opencode/uf/packs/determinism.md
    (rules DE-001–DE-004), auto-discovered by every Divisor review-agent prompt
  • New session skill: .opencode/skills/determinism-first/SKILL.md
    (classify-before-writing guidance)
  • AGENTS.md: new "Determinism gate" Behavioral Rule (CRITICAL severity)
    and exhaustive Convention Packs listing
  • README.md: Constitution section reconciled to six principles;
    Hero Alignment principle count reconciled
  • Test-file updates: scaffold knownNonEmbeddedFiles exclusion map and
    pack-validator governance skip list
  • CHANGELOG.md entry and Dewey learnings/compiled articles from the
    change's review and retrospective

Docs-gate compliance: documentation issues filed before merge — #720 (this
repo) and unbound-force/website#305.

How to Test

  1. make lint — markdown lint covers the new governance files and test edits
  2. make test — drift tests pick up the new pack/skill via the exclusion
    map; pack-validation gate skips the governance pack
  3. make plugin-test — review-dispatch prompt assembly auto-discovers the
    new pack (golden fixtures)
  4. openspec validate determinism-codification --type change --strict —
    validates cleanly
  5. make check runs 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-council dispatch 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 skill
  • AGENTS.md — determinism gate rule + exhaustive pack listing
  • README.md, CHANGELOG.md — principle reconciliation, change record
  • internal/scaffold/scaffold_test.go, internal/schemas/packvalidator_test.go
  • .uf/dewey/learnings/, .uf/dewey/compiled/ — workflow knowledge artifacts

This PR was generated by /uf.finale (AI-assisted).

@jflowers
jflowers requested a review from a team as a code owner October 14, 2026 15:49
@jflowers jflowers self-assigned this Oct 14, 2026

@jflowers jflowers left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 only docs/ 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).

Comment thread AGENTS.md
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@jflowers
jflowers merged commit 2051e4f into unbound-force:main Oct 14, 2026
16 checks passed
@jflowers
jflowers deleted the opsx/determinism-codification branch November 15, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant