feat(agent): autoMaintain config block + dashboard (#774) - #841
Merged
Conversation
Builds on #773: the per-repo auto-maintain policy + a dashboard surface. - AutoMaintainPolicy { requireApprovals, mergeMethod } + normalizeAuto- MaintainPolicy (conservative defaults squash/1; requireApprovals clamped to [0,10]; invalid merge method -> squash). Pure + 100% covered. - Persisted on repository_settings as JSON (migration 0043, default '{}' -> defaults), mirroring autonomy/commandAuthorization. - Config-as-code: .gittensory.yml settings.autoMaintain (+ settings. autonomy from #773) resolved through the existing yml > DB > defaults resolver; a non-mapping block is ignored, never blanking the DB policy. - Dashboard: a new 'Auto-maintain (agent layer)' section in the maintainer settings editor (#130) — per-action autonomy selectors for all six action classes + approvals-before-auto-merge + merge method. - Maintainer PUT /settings now accepts autonomy + autoMaintain (bounded: requireApprovals 0..10; unknown autonomy action classes dropped by the DB normalizer; out-of-range approvals rejected at the boundary). NOTE: migration 0043 follows #773's 0042 — both ahead of the open #833; whichever merges into a 0042/0043 collision rebases + renumbers. The action layer that consults this (resolveAutonomy + the policy) is #778.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 5430ebd | Commit Preview URL Branch Preview URL |
Jun 17 2026, 09:31 PM |
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #841 +/- ##
=======================================
Coverage 96.58% 96.59%
=======================================
Files 99 99
Lines 14215 14229 +14
Branches 5178 5182 +4
=======================================
+ Hits 13730 13744 +14
Misses 105 105
Partials 380 380 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Closed
12 tasks
This was referenced Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Closes #774. Builds on #773 (autonomy framework) — the per-repo auto-maintain policy + a dashboard surface.
What
AutoMaintainPolicy{ requireApprovals, mergeMethod }+normalizeAutoMaintainPolicy(conservative defaults squash / 1 approval;requireApprovalsclamped to[0,10]; invalid merge method →squash). Pure + 100% covered.repository_settingsas JSON (migration 0043, default'{}'→ defaults), mirroringautonomy/commandAuthorization..gittensory.ymlsettings.autoMaintain(+settings.autonomyfrom feat(agent): autonomy-levels framework (observe→…→auto) #773) resolved through the existing yml > DB > defaults resolver; a non-mapping block is ignored, never blanking the DB policy.PUT /settingsnow acceptsautonomy+autoMaintain(bounded:requireApprovals0–10 rejected out of range; unknown autonomy action classes dropped by the DB normalizer).Scope
This is config + dashboard only — nothing acts. The action layer that consults
resolveAutonomy+ this policy is #778.Verification
typecheck clean · migration guard (0001..0043, no dup) · full suite 2014 passed, 1 skipped (pre-existing pngjs skip) · OpenAPI regenerated + drift-clean · UI lint/typecheck/build clean · the new policy module is 100% covered and every changed line is covered.
Relates #768 (Phase 0), #773 (autonomy framework), #778 (write-actions consume this).