Skip to content

docs(architecture): record that deny.toml holds no crate-layering bans - #565

Merged
hakula139 merged 2 commits into
mainfrom
docs/promote-memories
Oct 22, 2026
Merged

hakula139 merged 2 commits into
mainfrom
docs/promote-memories

Conversation

@hakula139

@hakula139 hakula139 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

The architecture doc stated the crate dependency rules but not how they are enforced, so the cargo deny wrapper bans that #451 removed came back in #454 as an optional guard before they were dropped again. Both versions banned terminal UI crates outside the frontend crate.

  • Dependency Direction: docs/design/architecture.md now says the crate manifests encode the crate direction and the terminal UI rule, review of manifest changes enforces both, and deny.toml holds no crate-layering bans.

Test plan

  • pnpm format, pnpm lint, and pnpm spellcheck pass, and the pre-commit hooks pass on the commit.
  • deny.toml on main has no [[bans.deny]] entries.
  • cargo tree -p ox-core -e normal -i ratatui and -i crossterm match no package, and ox reaches both only through ox-tui.

#451 removed the cargo-deny wrapper bans that kept terminal UI crates out
of ox-core and ox, and #454 re-added them as an optional guard before they
were dropped again. Stating where the dependency direction is enforced
keeps the next split from repeating that round trip.
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…rced ones

The bans that #451 and #454 dropped enforced "Only ox-tui depends on terminal UI
crates", so the sentence that explains their absence names that rule beside the
crate direction.
@hakula139
hakula139 merged commit 980564e into main Oct 22, 2026
9 checks passed
@hakula139
hakula139 deleted the docs/promote-memories branch October 22, 2026 17:34
hakula139 added a commit to hakulab/nixos-config that referenced this pull request Oct 23, 2026
)

## Summary

Two rules from oxide-code's project memory apply to every project, but
only that memory recorded them. This PR adds both to the shared
instructions, folded into the bullets they extend.

- **Design:** When work starts in an area, check the plans directory for
follow-ups deferred until that work, and resolve them in the same change
or note why each stays deferred. The `git-workflow` Cleanup section
already deletes completed plans, while deferred items with no trigger
kept piling up into stale claims.
- **Model selection:** After typing a prompt into a Codex pane, send
Enter as a separate keystroke and confirm the task started, because
Codex panes sometimes miss the submitting Enter. The bullet sits beside
the Workmux `--agent` rule, which also governs launching another
assistant.

### Not promoted

| Candidate | Reason |
| ------------------------------------------ |
-----------------------------------------------------------------------
|
| No crate-layering bans in `deny.toml` | An oxide-code rule, proposed
in hakulab/oxide-code#565 |
| Extensibility seams only for a named need | Design's "Build for
current needs" bullet already covers it |
| Large review-lesson and probe catalogues | Incident-specific facts
that a reviewer looks up, not standing rules |
| Terminal aesthetic and instruction approval | A user preference and an
authorization, which belong in memory |

## Test plan

- [x] `nix flake check --no-build` passes on aarch64-darwin.
- [x] The pre-commit hooks pass on the commit, including cspell and
markdownlint.
hakula139 added a commit to hakulab/nixos-config that referenced this pull request Nov 9, 2026
)

## Summary

Two rules from oxide-code's project memory apply to every project, but
only that memory recorded them. This PR adds both to the shared
instructions, folded into the bullets they extend.

- **Design:** When work starts in an area, check the plans directory for
follow-ups deferred until that work, and resolve them in the same change
or note why each stays deferred. The `git-workflow` Cleanup section
already deletes completed plans, while deferred items with no trigger
kept piling up into stale claims.
- **Model selection:** After typing a prompt into a Codex pane, send
Enter as a separate keystroke and confirm the task started, because
Codex panes sometimes miss the submitting Enter. The bullet sits beside
the Workmux `--agent` rule, which also governs launching another
assistant.

### Not promoted

| Candidate | Reason |
| ------------------------------------------ |
-----------------------------------------------------------------------
|
| No crate-layering bans in `deny.toml` | An oxide-code rule, proposed
in hakulab/oxide-code#565 |
| Extensibility seams only for a named need | Design's "Build for
current needs" bullet already covers it |
| Large review-lesson and probe catalogues | Incident-specific facts
that a reviewer looks up, not standing rules |
| Terminal aesthetic and instruction approval | A user preference and an
authorization, which belong in memory |

## Test plan

- [x] `nix flake check --no-build` passes on aarch64-darwin.
- [x] The pre-commit hooks pass on the commit, including cspell and
markdownlint.
hakula139 added a commit to hakulab/nixos-config that referenced this pull request Nov 14, 2026
)

## Summary

Two rules from oxide-code's project memory apply to every project, but
only that memory recorded them. This PR adds both to the shared
instructions, folded into the bullets they extend.

- **Design:** When work starts in an area, check the plans directory for
follow-ups deferred until that work, and resolve them in the same change
or note why each stays deferred. The `git-workflow` Cleanup section
already deletes completed plans, while deferred items with no trigger
kept piling up into stale claims.
- **Model selection:** After typing a prompt into a Codex pane, send
Enter as a separate keystroke and confirm the task started, because
Codex panes sometimes miss the submitting Enter. The bullet sits beside
the Workmux `--agent` rule, which also governs launching another
assistant.

### Not promoted

| Candidate | Reason |
| ------------------------------------------ |
-----------------------------------------------------------------------
|
| No crate-layering bans in `deny.toml` | An oxide-code rule, proposed
in hakulab/oxide-code#565 |
| Extensibility seams only for a named need | Design's "Build for
current needs" bullet already covers it |
| Large review-lesson and probe catalogues | Incident-specific facts
that a reviewer looks up, not standing rules |
| Terminal aesthetic and instruction approval | A user preference and an
authorization, which belong in memory |

## Test plan

- [x] `nix flake check --no-build` passes on aarch64-darwin.
- [x] The pre-commit hooks pass on the commit, including cspell and
markdownlint.
hakula139 added a commit to hakulab/nixos-config that referenced this pull request Nov 16, 2026
)

## Summary

Two rules from oxide-code's project memory apply to every project, but
only that memory recorded them. This PR adds both to the shared
instructions, folded into the bullets they extend.

- **Design:** When work starts in an area, check the plans directory for
follow-ups deferred until that work, and resolve them in the same change
or note why each stays deferred. The `git-workflow` Cleanup section
already deletes completed plans, while deferred items with no trigger
kept piling up into stale claims.
- **Model selection:** After typing a prompt into a Codex pane, send
Enter as a separate keystroke and confirm the task started, because
Codex panes sometimes miss the submitting Enter. The bullet sits beside
the Workmux `--agent` rule, which also governs launching another
assistant.

### Not promoted

| Candidate | Reason |
| ------------------------------------------ |
-----------------------------------------------------------------------
|
| No crate-layering bans in `deny.toml` | An oxide-code rule, proposed
in hakulab/oxide-code#565 |
| Extensibility seams only for a named need | Design's "Build for
current needs" bullet already covers it |
| Large review-lesson and probe catalogues | Incident-specific facts
that a reviewer looks up, not standing rules |
| Terminal aesthetic and instruction approval | A user preference and an
authorization, which belong in memory |

## Test plan

- [x] `nix flake check --no-build` passes on aarch64-darwin.
- [x] The pre-commit hooks pass on the commit, including cspell and
markdownlint.
hakula139 added a commit to hakulab/nixos-config that referenced this pull request Nov 16, 2026
)

## Summary

Two rules from oxide-code's project memory apply to every project, but
only that memory recorded them. This PR adds both to the shared
instructions, folded into the bullets they extend.

- **Design:** When work starts in an area, check the plans directory for
follow-ups deferred until that work, and resolve them in the same change
or note why each stays deferred. The `git-workflow` Cleanup section
already deletes completed plans, while deferred items with no trigger
kept piling up into stale claims.
- **Model selection:** After typing a prompt into a Codex pane, send
Enter as a separate keystroke and confirm the task started, because
Codex panes sometimes miss the submitting Enter. The bullet sits beside
the Workmux `--agent` rule, which also governs launching another
assistant.

### Not promoted

| Candidate | Reason |
| ------------------------------------------ |
-----------------------------------------------------------------------
|
| No crate-layering bans in `deny.toml` | An oxide-code rule, proposed
in hakulab/oxide-code#565 |
| Extensibility seams only for a named need | Design's "Build for
current needs" bullet already covers it |
| Large review-lesson and probe catalogues | Incident-specific facts
that a reviewer looks up, not standing rules |
| Terminal aesthetic and instruction approval | A user preference and an
authorization, which belong in memory |

## Test plan

- [x] `nix flake check --no-build` passes on aarch64-darwin.
- [x] The pre-commit hooks pass on the commit, including cspell and
markdownlint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant