Skip to content

feat(constraints): loop-constraints file + enforcement skill (#71)#86

Merged
cobusgreyling merged 3 commits into
mainfrom
merge/pr-71-loop-constraints
Jun 29, 2026
Merged

feat(constraints): loop-constraints file + enforcement skill (#71)#86
cobusgreyling merged 3 commits into
mainfrom
merge/pr-71-loop-constraints

Conversation

@cobusgreyling

Copy link
Copy Markdown
Owner

Rebased community PR #71 onto latest main (post-#85).

Adds

  • loop-constraints.md template + loop-constraints enforcement skill
  • Tool examples (Grok, Claude Code, Codex)
  • loop-audit scoring (+4 file, +2 skill)
  • loop-init auto-scaffolds constraints on init
  • Cross-links in docs/safety.md

Verification

  • Rebased cleanly onto fbe8743
  • npm run validate:registry
  • npm run check:loop-init
  • npm run test:tools
  • bash scripts/ci-validate-gates.sh

Thanks @neerajdad123-bytecloses #71

- New templates/loop-constraints.md: single source of truth for all loop guardrails (denylist paths, push/merge rules, human gates, budget caps)
- New templates/SKILL.md.loop-constraints: skill that reads constraints file at start of every run and enforces every rule
- loop-audit: scores constraints file (+4 pts) and skill (+2 pts); detects both in auditProject; new finding for missing constraints
- loop-init: scaffoldConstraints() generates loop-constraints.md + loop-constraints skill in target project
- docs/safety.md: cross-reference to new constraints file

Closes: the gap where constraints were only soft prompts scattered across safety.md, LOOP.md, and skill files. Now a single structured file + runtime enforcement skill.

Tests: loop-audit 11/11, loop-cost 7/7, loop-init 6/6
@github-actions

Copy link
Copy Markdown
Contributor

Loop Readiness Audit

Score: 100/100 (L3)

Strong loop readiness — good candidate for L3 with explicit gates.

Top suggestions

  • Create loop-constraints.md with denylist paths, push/merge rules, and human gates (see templates/loop-constraints.md)

Posted by audit.yml · loop-audit docs

@cobusgreyling cobusgreyling merged commit 4865302 into main Jun 29, 2026
2 checks passed
@cobusgreyling cobusgreyling deleted the merge/pr-71-loop-constraints branch June 29, 2026 15:05
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.

2 participants