DO NOT MERGE: Resource override audit snapshots#1163
Draft
simple-agent-manager[bot] wants to merge 5 commits into
Draft
DO NOT MERGE: Resource override audit snapshots#1163simple-agent-manager[bot] wants to merge 5 commits into
simple-agent-manager[bot] wants to merge 5 commits into
Conversation
|
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.


Summary
DO NOT MERGE TO PROD. Draft/audit-only slice for task/session/trigger resource override data contracts and audit trails.
Deferred intentionally:
External References
N/A: implementation used in-repo task context, SAM instructions, existing source, migrations, and postmortems; no external API or third-party contract changed.
Codebase Impact Analysis
Touched
packages/sharedresource/task/profile/trigger/project contracts,apps/apitask start routes/services/MCP/SAM dispatch paths, D1 schema/migrations, and TaskRunner DO workspace audit persistence. Placement logic remains unchanged and is covered byapps/api/tests/unit/durable-objects/task-runner-node-selection.test.ts.Documentation & Specs
Updated
tasks/active/2026-05-31-resource-override-audit-slice.mdwith implementation status. Public-surface changes are additive request/response/schema fields for resource requirement audit data; broader user documentation is deferred because UI exposure and reservation-aware enforcement are intentionally out of this PR.Constitution & Risk Check
Checked Principle XI for resource constants: platform defaults and validation limits are centralized in
packages/shared/src/constants/resource-defaults.tswith tests, and no new deployment-specific URLs, credentials, or hidden scheduler behavior changes were introduced. D1 migration is additive-only.Validation
Passed:
pnpm --filter @simple-agent-manager/shared test -- resource-defaults.test.tspnpm --filter @simple-agent-manager/api test -- task-start-audit.test.ts task-runner-node-selection.test.ts trigger-submit.test.ts mcp.test.ts sam-dispatch-task-mode-visibility.test.ts triggers.test.ts cron-sweep.test.ts github-trigger-handler.test.ts mcp-orchestration-tools.test.tspnpm --filter @simple-agent-manager/api test:coverage -- agent-profiles.test.tspnpm quality:migration-safetypnpm lint(passes with existing warnings)pnpm typecheckpnpm buildgit diff --checkKnown unrelated local validation failure:
pnpm testfails in@simple-agent-manager/uiDropdownMenu.test.tsxon two existing assertions around danger/disabled item attributes. Reproduced in isolation withpnpm --filter @simple-agent-manager/ui test -- DropdownMenu.test.tsx. No UI package files are changed in this PR.Specialist Review Notes
0058_resource_override_defaults.sqlis additive-only; no table recreation/drop; TaskRunner DO receives audit data and workspace creation persists snapshots.Do Not Merge
This PR must remain draft/do-not-merge until Raphael explicitly authorizes readiness or merge.