Expand description
Port rules: behavior the port must keep exactly, learned from the user’s corrections.
They live in <repo>/rust/RULES.md, one - rule bullet each, next to the port’s decisions
and map, and every agent prompt rust-anything writes includes them, so a correction made once
reaches every later unit and every agent.
Structs§
Constants§
Functions§
- add
- Appends each rule that is not in the file yet, creating the file when needed. With no rules to add it only reads.
- load
- The rules in the repository’s rules file, in order; none when it does not exist.
- repo_of
- The repository a path stands for: a crate folder made by
bridgestands for its original’s repository, any other folder for itself. - section
- The
## Project rulessection of an agent prompt; empty when the repository has none.