Skip to content

feat(policy): enforce architecture rules from TOML - #61

Open
DivyamTalwar wants to merge 1 commit into
codex/incremental-objective-cache-20260824from
codex/architecture-policy-20260824
Open

feat(policy): enforce architecture rules from TOML#61
DivyamTalwar wants to merge 1 commit into
codex/incremental-objective-cache-20260824from
codex/architecture-policy-20260824

Conversation

@DivyamTalwar

Copy link
Copy Markdown
Owner

Summary

  • load validated architecture rules from structorium.toml
  • enforce forbidden dependencies/imports between path zones during scans
  • support bounded, documented exceptions with optional expiry dates
  • include policy configuration in incremental-cache invalidation

Verification

  • pytest -q tests/detectors/test_architecture_policy.py tests/scan/test_incremental_cache.py: 6 passed
  • ruff check on all changed Python files: passed

Stack

This PR targets #60, which targets #59. The stack is required because Structorium currently disables merge commits while this task requires merge_method=merge.

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