sysadmin and Claude Opus 4.8
bc9366c394
fix(mcp): role-exclusive capability invariants and structured fail-closed submit ( Closes #723 )
...
Defect A - invariants:
- task_capability_map.ROLE_EXCLUSIVE_TASKS is now the single shared
definition of role-exclusive tasks; the resolver's inline copy is gone
(AC1/AC5 drift surface removed).
- tests: every role-exclusive task must exist in the capability map;
formal-review tasks stay role-exclusive; canonical merger satisfies
merge_pr; canonical reconciler satisfies branch-cleanup tasks
(extends the #722 break-glass invariant suite).
Defect B - unactionable internal_error:
- AC3: gitea_resolve_task_capability records the capability purity
baseline first but stamps _preflight_resolved_role/_task only for an
ALLOWED resolve; a denied resolve clears any stale stamp
(_clear_resolved_capability_stamp) so later mutation preflights key
off the real profile role.
- AC4: _evaluate_pr_review_submission converts
_verify_role_mutation_workspace failures (role binding, stale
runtime) into result reasons with blocker_kind=workspace_role_binding
instead of letting RuntimeError escape as a generic internal_error.
- AC5: _build_runtime_task_capabilities applies the resolver's
role-exclusive filter when given the active role kind and labels each
entry role_filtered/permission_only; matching_configured_profiles
honors declared profile roles for role-exclusive tasks.
Validation: focused suites 22 passed (+48 subtests); adjacent resolver/
runtime/review suites 72 passed; full suite 2929 passed, 6 skipped,
221 subtests (single pre-existing Starlette warning, #682 ).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected] >
2026-07-17 01:00:12 -04:00
..
2026-07-02 15:31:56 -05:00
2026-06-21 17:26:18 -04:00
2026-07-13 21:48:28 -04:00
2026-07-07 17:30:50 -04:00
2026-07-10 02:54:20 -04:00
2026-07-07 09:20:50 -04:00
2026-07-07 05:38:32 -04:00
2026-07-13 13:40:38 -04:00
2026-07-08 22:07:59 -04:00
2026-07-12 22:35:14 -04:00
2026-07-13 21:48:28 -04:00
2026-07-10 18:09:19 -04:00
2026-07-05 15:16:36 -04:00
2026-07-08 22:36:10 -04:00
2026-07-16 01:21:18 -04:00
2026-07-13 21:48:28 -04:00
2026-07-08 03:17:38 -04:00
2026-07-08 03:44:58 -04:00
2026-07-07 04:25:02 -04:00
2026-07-02 06:13:26 -04:00
2026-07-05 17:18:48 -04:00
2026-07-07 16:33:31 -04:00
2026-07-06 14:39:26 -04:00
2026-07-07 17:30:35 -04:00
2026-07-05 03:33:12 -04:00
2026-07-02 02:34:16 -04:00
2026-07-08 02:19:37 -04:00
2026-07-04 18:35:45 -04:00
2026-07-03 02:19:39 -04:00
2026-07-08 22:30:21 -04:00
2026-07-10 11:30:53 -04:00
2026-07-09 15:39:54 -04:00
2026-07-12 13:15:58 -04:00
2026-07-08 04:20:24 -04:00
2026-07-05 15:16:55 -04:00
2026-07-06 01:26:33 -04:00
2026-07-07 11:26:37 -04:00
2026-07-05 03:23:40 -04:00
2026-07-07 04:27:02 -04:00
2026-07-09 12:56:12 -04:00
2026-07-07 04:26:58 -04:00
2026-07-10 01:04:37 -04:00
2026-07-07 04:35:34 -04:00
2026-07-07 02:57:45 -04:00
2026-07-10 03:18:54 -04:00
2026-07-12 13:15:58 -04:00
2026-07-12 13:15:58 -04:00
2026-07-12 23:09:20 -04:00
2026-07-13 21:48:28 -04:00
2026-07-13 17:37:13 -04:00
2026-07-15 13:55:06 -04:00
2026-07-16 15:47:52 -04:00
2026-07-17 01:00:12 -04:00
2026-07-08 03:27:37 -04:00
2026-07-07 05:41:33 -04:00
2026-07-12 13:15:58 -04:00
2026-07-09 13:07:53 -04:00
2026-07-05 21:09:34 -04:00
2026-07-07 23:40:12 -05:00
2026-07-07 16:18:42 -04:00
2026-07-10 11:30:53 -04:00
2026-07-08 02:22:54 -04:00
2026-07-07 17:30:50 -04:00
2026-07-10 16:17:31 -04:00
2026-07-08 04:20:24 -04:00
2026-07-10 11:30:53 -04:00
2026-07-07 05:22:08 -04:00
2026-07-07 04:25:02 -04:00
2026-07-08 02:17:58 -04:00
2026-07-08 04:08:07 -04:00
2026-07-09 09:25:08 -04:00
2026-07-10 13:05:27 -04:00
2026-07-07 13:11:36 -04:00
2026-07-13 21:48:28 -04:00
2026-07-06 12:37:04 -04:00
2026-07-08 01:47:34 -04:00
2026-07-09 18:44:04 -04:00
2026-07-08 13:43:39 -04:00
2026-07-16 03:23:03 -05:00
2026-07-08 22:22:34 -04:00
2026-07-09 14:20:05 -04:00
2026-07-13 21:48:28 -04:00
2026-07-05 15:16:55 -04:00
2026-07-09 08:20:21 -04:00
2026-07-09 12:56:12 -04:00
2026-07-12 22:35:14 -04:00
2026-06-21 18:08:53 -04:00
2026-07-07 04:08:27 -04:00
2026-07-09 09:25:08 -04:00
2026-07-09 10:43:42 -04:00
2026-07-13 21:48:28 -04:00
2026-07-06 12:37:30 -04:00
2026-07-09 13:17:27 -04:00
2026-07-09 09:25:08 -04:00
2026-07-07 17:19:37 -04:00
2026-07-08 04:51:10 -04:00
2026-07-09 15:49:14 -04:00
2026-07-08 22:07:59 -04:00
2026-07-08 23:33:51 -04:00
2026-07-08 02:17:58 -04:00
2026-07-07 13:06:07 -04:00
2026-07-12 13:15:58 -04:00
2026-07-08 23:04:44 -04:00
2026-07-07 04:46:48 -04:00
2026-07-05 15:16:55 -04:00
2026-07-10 13:05:27 -04:00
2026-07-07 04:57:50 -04:00
2026-07-07 09:20:50 -04:00
2026-07-09 00:09:47 -04:00
2026-07-07 09:15:13 -04:00
2026-07-12 13:15:58 -04:00
2026-07-12 21:31:00 -04:00
2026-07-09 12:36:50 -04:00
2026-07-07 05:45:51 -04:00
2026-07-07 09:25:55 -04:00
2026-07-07 09:25:55 -04:00
2026-07-02 05:37:41 -04:00
2026-07-09 13:17:27 -04:00
2026-07-07 02:53:25 -04:00
2026-07-09 15:41:07 -04:00
2026-07-13 13:40:38 -04:00
2026-07-09 19:08:28 -04:00
2026-07-08 00:37:54 -04:00
2026-07-09 09:25:08 -04:00
2026-07-07 09:14:29 -04:00
2026-07-05 20:16:04 -04:00
2026-07-13 17:37:13 -04:00
2026-07-08 11:13:43 -04:00
2026-07-08 22:22:34 -04:00
2026-07-07 09:19:33 -04:00
2026-07-07 09:23:50 -04:00
2026-07-07 05:42:08 -04:00
2026-07-07 05:12:01 -04:00
2026-07-07 05:27:24 -04:00
2026-07-08 03:33:31 -04:00
2026-07-07 05:33:12 -04:00
2026-07-07 05:39:43 -04:00
2026-07-07 05:13:30 -04:00
2026-07-07 05:08:53 -04:00
2026-07-07 17:20:01 -04:00
2026-07-07 05:31:24 -04:00
2026-07-09 17:31:14 -04:00
2026-07-07 10:24:54 -04:00
2026-07-07 09:08:38 -04:00
2026-07-07 05:44:18 -04:00
2026-07-07 13:09:58 -04:00
2026-07-07 11:22:00 -04:00
2026-07-07 05:19:22 -04:00
2026-07-07 05:28:19 -04:00
2026-07-07 05:26:37 -04:00
2026-07-06 11:42:14 -04:00
2026-07-05 21:12:33 -04:00
2026-07-09 15:41:07 -04:00
2026-07-11 19:49:16 -04:00
2026-07-07 17:44:22 -04:00
2026-07-08 02:12:26 -04:00
2026-07-09 17:19:29 -04:00
2026-07-10 13:05:27 -04:00
2026-07-06 14:52:12 -04:00
2026-07-11 20:07:40 -04:00
2026-07-11 20:07:40 -04:00
2026-07-16 14:58:43 -05:00
2026-07-08 02:22:54 -04:00
2026-07-09 15:18:48 -04:00
2026-07-08 03:14:32 -04:00
2026-07-13 13:40:38 -04:00
2026-07-07 00:28:32 -04:00
2026-07-07 00:17:26 -04:00
2026-07-17 01:00:12 -04:00
2026-07-08 11:14:06 -04:00
2026-07-08 03:46:25 -04:00
2026-07-07 00:22:28 -04:00
2026-07-07 12:53:55 -04:00
2026-07-07 15:20:47 -04:00
2026-07-09 11:59:23 -04:00
2026-07-09 11:50:40 -04:00
2026-07-07 15:34:39 -04:00
2026-07-07 15:29:56 -04:00
2026-07-09 11:59:23 -04:00
2026-07-07 14:44:27 -04:00
2026-07-07 14:53:16 -04:00
2026-07-09 11:59:23 -04:00
2026-07-09 00:04:11 -04:00
2026-07-09 11:50:40 -04:00
2026-07-07 15:26:22 -04:00
2026-07-06 01:36:10 -04:00
2026-07-06 14:44:41 -04:00
2026-07-08 22:43:46 -04:00
2026-07-11 19:49:16 -04:00
2026-07-07 05:09:44 -04:00
2026-07-08 11:15:55 -04:00
2026-07-07 17:30:35 -04:00