Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add .sentrux/rules.toml with architectural quality gates#34062

Merged
pelikhan merged 3 commits into
mainfrom
copilot/deep-report-create-rules-toml
May 22, 2026
Merged

feat: add .sentrux/rules.toml with architectural quality gates#34062
pelikhan merged 3 commits into
mainfrom
copilot/deep-report-create-rules-toml

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

The Daily Sentrux Report has been emitting "⚠️ No rules defined" on every run, making it purely informational with no regression detection. Quality has silently slid 5315→5222 and coupling jumped 0.04→0.195 over ~10 days.

Changes

  • .sentrux/rules.toml — adds four architectural constraint rules:
[[rule]]
name = "quality_floor"
metric = "quality"
min = 5200

[[rule]]
name = "coupling_ceiling"
metric = "coupling"
max = 0.20

[[rule]]
name = "no_new_cycles"
metric = "cycles"
max = 2

[[rule]]
name = "god_files_ceiling"
metric = "god_files"
max = 1

The daily-sentrux-report workflow already runs sentrux check . and parses rule violations when .sentrux/rules.toml is present — no workflow changes needed. Floors are set conservatively at current observed values to avoid immediate failures while still catching future regression.

Copilot AI changed the title [WIP] Create .sentrux/rules.toml with quality, coupling, and cycles floors feat: add .sentrux/rules.toml with architectural quality gates May 22, 2026
Copilot AI requested a review from pelikhan May 22, 2026 16:17
@pelikhan pelikhan marked this pull request as ready for review May 22, 2026 16:18
Copilot AI review requested due to automatic review settings May 22, 2026 16:18
@pelikhan pelikhan merged commit c7ed75a into main May 22, 2026
@pelikhan pelikhan deleted the copilot/deep-report-create-rules-toml branch May 22, 2026 16:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Sentrux ruleset so the existing Daily Sentrux Report workflow can enforce architectural quality gates (instead of reporting “No rules defined”), and includes workflow lock/pin updates that affect CI/release behavior.

Changes:

  • Add .sentrux/rules.toml defining four Sentrux metric constraints (quality floor, coupling ceiling, cycles max, god-files max).
  • Update release.lock.yml to use a different pinned revision of docker/setup-buildx-action.
  • Update developer-docs-consolidator.lock.yml (notably the schedule cron) and refresh associated lock metadata; add docker/setup-buildx-action@v4 to actions lock data.
Show a summary per file
File Description
.sentrux/rules.toml Introduces Sentrux architectural rules to enable enforcement in sentrux check ..
.github/workflows/release.lock.yml Updates the pinned docker/setup-buildx-action revision used by the release workflow.
.github/workflows/developer-docs-consolidator.lock.yml Updates lock metadata and changes the workflow schedule cron (daily → weekly).
.github/aw/actions-lock.json Adds a new pinned entry for docker/setup-buildx-action@v4 to support workflow locking.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 4/4 changed files
  • Comments generated: 3

Comment on lines 67 to +71
name: "Developer Documentation Consolidator"
on:
schedule:
- cron: "19 13 * * *"
# Friendly format: daily (scattered)
- cron: "19 13 * * 6"
# Friendly format: weekly (scattered)
Comment on lines 1374 to 1376
- name: Setup Docker Buildx (pre-validation)
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 (source v4)
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Build Docker image (validation only)
Comment on lines +151 to +155
"docker/setup-buildx-action@v4": {
"repo": "docker/setup-buildx-action",
"version": "v4",
"sha": "d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5"
},
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.

[deep-report] Create .sentrux/rules.toml with quality, coupling, and cycles floors

3 participants