Skip to content

feat(autonomy): Autonomy Surface Profile + Claude settings reconcile - #77

Open
cryptoxdog wants to merge 9 commits into
mainfrom
autonomy-surface-parity
Open

feat(autonomy): Autonomy Surface Profile + Claude settings reconcile#77
cryptoxdog wants to merge 9 commits into
mainfrom
autonomy-surface-parity

Conversation

@cryptoxdog

Copy link
Copy Markdown
Collaborator

Summary

  • Add Autonomy Surface Profile (ops/autonomy/surface_profile.yaml) as doctrine SSOT for standing A4 on Claude (and peer adapters after prove).
  • Ship reconcile_claude_settings.py (template → gov .claude → merge ~/.claude → consumer triad) and PreToolUse merge_gate_wrapops/autonomy/merge_gate.py.
  • Project zz-autonomy-surface-override LLM rule; waive ask-first commit/push on adapter surfaces per ADR-0001 / Profile.
  • Harden PreToolUse to fail-open when hook scripts are missing (prevents session deadlock if wrap path is absent).

Test plan

  • python3 ops/autonomy/acceptance_dry_run.py
  • pytest -q tests/ops/autonomy tests/ops/scripts/test_reconcile_claude_settings.py
  • make claude-env / make claude-settings-check
  • Confirm missing merge_gate_wrap.py does not brick Bash (fail-open)
  • Human merge only (no auto-merge)

Made with Cursor

cryptoxdog and others added 4 commits August 7, 2026 09:12
Give adapter surfaces standing A4 velocity (commit/PR/remediate) with
ops-owned merge denial, one Profile SSOT, and durable triad install so
template≠live drift cannot silently disable Claude governance boot.

Co-authored-by: Cursor <[email protected]>
Keep make pr-check green for the Autonomy Surface Profile commit without
changing behavior.

Co-authored-by: Cursor <[email protected]>
Avoid session deadlock when merge_gate_wrap or memory_gate is absent from the governance clone.

Co-authored-by: Cursor <[email protected]>
Bare python3 lacked PyYAML so SessionStart silently skipped Autonomy Velocity
Doctrine. Extract profile blocks without PyYAML, prefer .venv python, and prove
SessionStart against a temp HOME symlink to the checkout tip.

Co-authored-by: Cursor <[email protected]>
@cryptoxdog
cryptoxdog force-pushed the autonomy-surface-parity branch from 2cde1c7 to 59f895b Compare August 7, 2026 14:15
cryptoxdog and others added 5 commits August 7, 2026 11:00
Restore append-only Makefile edits for claude-settings targets, wrap E501
lines in autonomy helpers, and seed test fixtures with profile_loader assets.

Remediation-Cycle: #77/cycle-1
Co-authored-by: Cursor <[email protected]>
CI runners lack ripgrep; refactor_sweep now walks the tree with stdlib
regex when rg is missing or fails so self_test dry-run gates stay green.

Remediation-Cycle: #77/cycle-2
Co-authored-by: Cursor <[email protected]>
Parallel CI runs create ephemeral .coverage.* files; exclude them from
git porcelain comparisons so refactor-sweep dry-run self_test stays stable.

Remediation-Cycle: #77/cycle-3
Co-authored-by: Cursor <[email protected]>
Complete Lint gate after cycle-3 dry-run coverage filter.

Remediation-Cycle: #77/cycle-3-complete
Co-authored-by: Cursor <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

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