Skip to content

constitution-check.md enumerates only four principles (six exist) #824

Open

Description

@jflowers

Summary

.opencode/commands/constitution-check.md (lines 43 and 95) still enumerates only four constitution principles (I–IV), while the org constitution is at v1.4.0 with six principles (V "Security by Default" added in v1.3.0, VI "Deterministic Execution" in v1.4.0).

This is a recurring drift class: the highest-risk window is the days just after an amendment — on 2026-10-23 a change (rebase-upstream-before-push, nine days post-amendment) still assessed only I–IV while citing the determinism gate as design rationale.

Fix shape

Update the command template to assess all six principles, or better, derive the principle list/count from the constitution document itself so the template cannot go stale on the next amendment.

Provenance

Identified during the 2026-10-25 knowledge-base audit (PR #820); recorded in the validated constitution compiled article ("known open gap", "stale-template trap").

Activity

  1. added
    docs
    on Oct 25, 2026
  2. added
    bug
    on Nov 2, 2026
  3. jflowers commented on Nov 2, 2026

    @jflowers
    ContributorAuthor

    Triage: VALID — bug (objective)

    The Divisor review panel confirms this issue by direct verification against the repository.

    Verified defect. .opencode/agents/constitution-check.md:43 reads "For each of the four org principles (I, II, III, IV):" and line 95 reads "[Repeat for each of the four org principles]". The stale count extends beyond the two cited lines: line 99 pins the report field to "Principles checked: [count, always 4]" and line 108 defines the ALIGNED verdict over "All four findings". Every /uf.constitution-check run therefore omits Principles V (Security by Default) and VI (Deterministic Execution) while the org constitution is at v1.4.0 with six principles — including the security principle this check no longer assesses.

    Path correction. The issue names .opencode/commands/constitution-check.md; the enumeration lives in .opencode/agents/constitution-check.md, the agent that uf.constitution-check.md delegates to. The cited line numbers and quoted text match the agent file exactly, so this correction changes the fix target, not the finding.

    Classification. The panel voted 4/4 VALID and classified this as a bug (objective): the template is the instruction set of a governance gate whose output is systematically incomplete relative to the constitution's Compliance Review mandate ("MUST verify that the proposed work aligns with all active org principles"), rather than a documentation gap.

    Recommendations.

    • Update both drift-enforced copies in one change: .opencode/agents/constitution-check.md and its byte-identical scaffold twin internal/scaffold/assets/opencode/agents/constitution-check.md (one-sided updates fail the drift-detection parity checks).
    • Prefer the derive-from-document fix shape: read the principle list/count from the constitution document at check time instead of hardcoding six — the hardcoded count is what let the template go stale through the v1.3.0 and v1.4.0 amendments, and the post-amendment window is the demonstrated failure mode.
    • Sweep the full file for count-derived references (lines 43, 95, 99, 108); patching only the two cited lines leaves the report template and verdict logic computing over a stale cardinality.

    Similar open issues (related, not duplicates). The duplicate search surfaced #720 (determinism governance docs coverage — cross-referenceable), #526 and #530 (constitution hardcoded into external-adopter templates — same drift class, different files), and #713 (openspec asset upgrade).

    Next steps. This triage proposes the bug label in addition to the current docs label. Route the fix through the standard spec workflow — agent-template changes require a spec per AGENTS.md.

    This triage was performed by the Divisor review panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions