Skip to content

docs(determinism): codify Router Pattern as DE-005/DE-006 intent-level orchestration - #768

Merged
jflowers merged 4 commits into
unbound-force:mainfrom
jflowers:opsx/router-pattern-codification
Oct 19, 2026
Merged

jflowers merged 4 commits into
unbound-force:mainfrom
jflowers:opsx/router-pattern-codification

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

The determinism policy now codifies the Router Pattern, extending
governance from step-level extraction to sequence-level collapse.

  • DE-005 [MUST]: a fixed sequence of tool calls with no judgment
    between steps — each next call and its arguments fully determined by
    the previous call's structured result — is itself mechanical
    instruction and MUST be collapsed into a single intent-level tool
    whose code performs the chaining; the agent expresses the intent and
    passes judgment products (composed text, human gate decisions) as
    parameters.
  • DE-006 [SHOULD]: intent-level tools keep judgment at their
    boundary — routing decisions (verdict mapping, severity sorting,
    exit-variant selection, batch scheduling, failure-stop) execute
    inside the tool as constants or pure functions.

Delivered:

Closes #758

How to Test

From the repo root on branch opsx/router-pattern-codification:

grep -n 'version:' .opencode/uf/packs/determinism.md
# frontmatter reads 1.1.0

grep -n 'DE-005\|DE-006' .opencode/uf/packs/determinism.md
# new terminal "## Intent-Level Orchestration" section; severity
# mapping reads (DE-001, DE-003, DE-005) / (DE-002, DE-004, DE-006)

git diff upstream/main -- .opencode/uf/packs/determinism.md
# only the version line and severity-mapping sentence modified;
# DE-001..DE-004 rule text byte-unchanged (append-only)

grep -n 'Chains Without Judgment Collapse Too' .opencode/skills/determinism-first/SKILL.md
# mirrored chain-collapse guidance (MUST/SHOULD markers preserved)

openspec validate router-pattern-codification --type change --strict
# valid

make check
# exit 0

Review councils: spec review APPROVE WITH ADVISORIES (2 iterations),
code review APPROVE WITH ADVISORIES (1 iteration).

How to Demo

Open .opencode/uf/packs/determinism.md at the new
## Intent-Level Orchestration section — DE-005/DE-006 sit after
## Efficiency Evidence, and the severity-mapping sentence now cites
them. Then open .opencode/skills/determinism-first/SKILL.md at
"Chains Without Judgment Collapse Too" for the mirrored guidance.
Governance content only — no runtime behavior change.

Key Files Changed

  • .opencode/uf/packs/determinism.md (34) — DE-005/DE-006 section, v1.1.0
  • .opencode/skills/determinism-first/SKILL.md (39) — chain-collapse guidance
  • CHANGELOG.md (30) — DE-005/DE-006 entry
  • openspec/changes/router-pattern-codification/ (717) — proposal, design, spec delta, tasks, metrics, .openspec.yaml
  • .uf/dewey/learnings/ (60) — six workflow learnings

15 files changed, 874 insertions(+), 6 deletions(-)

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

…-force#758)

Add the router-pattern-codification OpenSpec change artifacts so the
intent-level orchestration pattern stops regressing in new command
templates and reviewers can cite it without stretching DE-001.

- openspec/changes/router-pattern-codification/: proposal, design,
  determinism-policy spec delta, tasks, metrics, .openspec.yaml
- determinism-first skill: align chain-collapse wording with RFC 2119
  (MUST collapse judgment-free chains; judgment SHOULD stay at the
  boundary)
- Dewey learnings from the workflow (review-dispatch, openspec,
  swarm, uf-unleash, documentation-pipeline)

Assisted-by: glm-5
Generated with AI assistance (glm-5)
@jflowers
jflowers requested a review from a team as a code owner October 19, 2026 22:01
@jflowers jflowers changed the title Codify Router Pattern as DE-005/DE-006 intent-level orchestration docs(determinism): codify Router Pattern as DE-005/DE-006 intent-level orchestration Oct 19, 2026
@jflowers
jflowers merged commit 7557cfa into unbound-force:main Oct 19, 2026
17 of 18 checks passed
@jflowers
jflowers deleted the opsx/router-pattern-codification branch November 15, 2026 21:37
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.

Codify intent-level orchestration (Router Pattern) as determinism rules DE-005/DE-006

1 participant