Skip to content

docs: drop ADR citations from the domain model and fix acceptEdits - #2191

Merged
rdimitrov merged 1 commit into
mainfrom
docs/modelith-drop-adr-refs
Oct 8, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
docs/modelith-drop-adr-refs

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

Closes the last known follow-up from the docs cleanup (#2157, #2169, #2190): docs/architecture/mecatl.modelith.yaml still cited ADR 0022, 0030, and 0038.

Fixing that turned up a stale claim behind the ADR 0022 citation, and showed that the follow-up's premise ("needs a private modelith revision") was out of date.

Changes

  • ADR citations removed. All six are gone. "ADR 0030 Layer 3" is now "the plan model slot".
  • acceptEdits described correctly. The model said acceptEdits was "declared-but-not-yet-implemented" and "auto-allows nothing". In code, permpolicy.Evaluate adds acceptEditsRules (Edit and Write allows at ScopeCLI) in accept-edits mode. They loosen only the built-in ask floor; configured asks and denies still win, and Shell is unaffected. The PermissionMode definition, the invariant (renamed acceptedits-loosens-only-the-edit-floor), and the scenario now match the code and permissions and posture.
  • task docs:model uses the version CI runs. It pinned modelith source at 73429dd, while the CI gate's action downloads the v0.4.0 release binary. The two render blank lines differently, so the local task could not reproduce the committed .md. It now uses @v0.4.0. The private-module note is gone: stacklok/modelith is public.

With this, the repo-wide ADR grep has no hits outside the CHANGELOGs, the guard script, .claude/agents, and docs/drafts/.

Test plan

  • task docs:model: renders with no further diff; lint gives 0 errors and the same 13 warnings as main
  • modelith render --check at v0.4.0 (what CI's check-rendered runs) passes
  • task docs: 0 broken links, anchors, orphans, or unreachable pages

🤖 Generated with Claude Code

- Remove the ADR 0022/0030/0038 citations from mecatl.modelith.yaml.
- The model described acceptEdits as declared but not implemented. It
  auto-allows Edit and Write where only the built-in floor would ask
  (permpolicy acceptEditsRules); configured asks and denies still win and
  Shell is unaffected. Rewrite the PermissionMode definition, invariant, and
  scenario to match.
- Pin task docs:model to modelith v0.4.0, the release the CI gate's action
  runs, and drop the stale private-module note: modelith is public.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit 49339c8 into main Oct 8, 2026
39 checks passed
@rdimitrov
rdimitrov deleted the docs/modelith-drop-adr-refs branch October 8, 2026 12:03
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 13, 2026
2 tasks
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