agentloopkit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +240 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +1144 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/schema/agentloop.config.schema.json +142 -0
- package/dist/templates/agents/claude-code.md +18 -0
- package/dist/templates/agents/codex.md +27 -0
- package/dist/templates/agents/cursor.md +17 -0
- package/dist/templates/agents/gemini-cli.md +19 -0
- package/dist/templates/agents/generic.md +27 -0
- package/dist/templates/agents/github-copilot-cli.md +18 -0
- package/dist/templates/agents/opencode.md +18 -0
- package/dist/templates/gates/dependency-gate.md +24 -0
- package/dist/templates/gates/docs-gate.md +24 -0
- package/dist/templates/gates/implementation-gate.md +28 -0
- package/dist/templates/gates/regression-gate.md +25 -0
- package/dist/templates/gates/review-gate.md +24 -0
- package/dist/templates/gates/security-gate.md +26 -0
- package/dist/templates/gates/test-gate.md +24 -0
- package/dist/templates/handoffs/decision-log.md +13 -0
- package/dist/templates/handoffs/pr-summary.md +36 -0
- package/dist/templates/handoffs/release-notes.md +15 -0
- package/dist/templates/handoffs/reviewer-brief.md +13 -0
- package/dist/templates/handoffs/rollback-plan.md +11 -0
- package/dist/templates/handoffs/verification-report.md +13 -0
- package/dist/templates/harness/autonomous-work-rules.md +22 -0
- package/dist/templates/harness/commands.md +16 -0
- package/dist/templates/harness/definition-of-done.md +16 -0
- package/dist/templates/harness/release-checklist.md +11 -0
- package/dist/templates/harness/repo-map.md +16 -0
- package/dist/templates/harness/review-checklist.md +9 -0
- package/dist/templates/harness/working-agreement.md +11 -0
- package/dist/templates/loops/bugfix.md +36 -0
- package/dist/templates/loops/dependency-upgrade.md +34 -0
- package/dist/templates/loops/docs.md +35 -0
- package/dist/templates/loops/feature.md +38 -0
- package/dist/templates/loops/migration.md +35 -0
- package/dist/templates/loops/refactor.md +35 -0
- package/dist/templates/loops/release.md +35 -0
- package/dist/templates/loops/security-review.md +35 -0
- package/dist/templates/loops/test-generation.md +34 -0
- package/dist/templates/policies/database-change-policy.md +11 -0
- package/dist/templates/policies/dependency-change-policy.md +11 -0
- package/dist/templates/policies/git-policy.md +11 -0
- package/dist/templates/policies/no-destructive-actions.md +17 -0
- package/dist/templates/policies/public-api-change-policy.md +11 -0
- package/dist/templates/policies/secrets-policy.md +11 -0
- package/dist/templates/policies/security-policy.md +11 -0
- package/dist/templates/policies/ui-change-policy.md +11 -0
- package/dist/templates/root/AGENTLOOP.md +39 -0
- package/dist/templates/root/AGENTS.md +24 -0
- package/dist/templates/root/agentloop-directory-readme.md +36 -0
- package/dist/templates/root/agentloop.config.json +37 -0
- package/dist/templates/tasks/README.md +9 -0
- package/package.json +71 -0
- package/schema/agentloop.config.schema.json +142 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Test Gate
|
|
2
|
+
|
|
3
|
+
Purpose: ensure behavior changes have evidence.
|
|
4
|
+
|
|
5
|
+
Checklist:
|
|
6
|
+
|
|
7
|
+
- New behavior has tests when practical.
|
|
8
|
+
- Bug fixes include a regression test when practical.
|
|
9
|
+
- Existing tests still pass.
|
|
10
|
+
- Manual checks are documented when automation is unavailable.
|
|
11
|
+
|
|
12
|
+
Pass criteria:
|
|
13
|
+
|
|
14
|
+
- Verification matches the risk of the change.
|
|
15
|
+
|
|
16
|
+
Fail criteria:
|
|
17
|
+
|
|
18
|
+
- The agent claims success without running checks or explaining why not.
|
|
19
|
+
|
|
20
|
+
Escalation triggers:
|
|
21
|
+
|
|
22
|
+
- Flaky tests
|
|
23
|
+
- Missing test command
|
|
24
|
+
- High-risk behavior without coverage
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# PR Summary
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
- What changed:
|
|
6
|
+
- Why:
|
|
7
|
+
|
|
8
|
+
## Task Context
|
|
9
|
+
|
|
10
|
+
- Task contract:
|
|
11
|
+
- Acceptance criteria:
|
|
12
|
+
|
|
13
|
+
## Changed Files
|
|
14
|
+
|
|
15
|
+
-
|
|
16
|
+
|
|
17
|
+
## Verification
|
|
18
|
+
|
|
19
|
+
- Commands run:
|
|
20
|
+
- Results:
|
|
21
|
+
- Not run:
|
|
22
|
+
|
|
23
|
+
## Risks
|
|
24
|
+
|
|
25
|
+
-
|
|
26
|
+
|
|
27
|
+
## Rollback
|
|
28
|
+
|
|
29
|
+
-
|
|
30
|
+
|
|
31
|
+
## Reviewer Checklist
|
|
32
|
+
|
|
33
|
+
- [ ] Behavior matches the task contract.
|
|
34
|
+
- [ ] Verification evidence is adequate.
|
|
35
|
+
- [ ] Protected files were reviewed.
|
|
36
|
+
- [ ] Rollback path is clear.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Autonomous Work Rules
|
|
2
|
+
|
|
3
|
+
Agents may proceed without asking when:
|
|
4
|
+
|
|
5
|
+
- The task contract is clear.
|
|
6
|
+
- The change avoids protected areas.
|
|
7
|
+
- The implementation is small and reversible.
|
|
8
|
+
- Verification commands are known.
|
|
9
|
+
|
|
10
|
+
Agents must pause or ask when:
|
|
11
|
+
|
|
12
|
+
- Requirements conflict.
|
|
13
|
+
- The change touches migrations, secrets, auth, billing, deployment, or public APIs.
|
|
14
|
+
- A dependency must be added or upgraded.
|
|
15
|
+
- A destructive command seems necessary.
|
|
16
|
+
- Verification fails for reasons unrelated to the task.
|
|
17
|
+
|
|
18
|
+
Before stopping:
|
|
19
|
+
|
|
20
|
+
- Run verification or explain why it was not run.
|
|
21
|
+
- Review git diff.
|
|
22
|
+
- Generate a handoff summary.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Commands
|
|
2
|
+
|
|
3
|
+
Detected during AgentLoopKit init:
|
|
4
|
+
|
|
5
|
+
- Test: {{ testCommand }}
|
|
6
|
+
- Lint: {{ lintCommand }}
|
|
7
|
+
- Typecheck: {{ typecheckCommand }}
|
|
8
|
+
- Build: {{ buildCommand }}
|
|
9
|
+
- Format: {{ formatCommand }}
|
|
10
|
+
|
|
11
|
+
Rules:
|
|
12
|
+
|
|
13
|
+
- Run targeted checks while developing.
|
|
14
|
+
- Run configured verification before claiming completion.
|
|
15
|
+
- If a command fails, report the failure and fix it when reasonable.
|
|
16
|
+
- If a command is not configured, say so in the handoff.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Definition Of Done
|
|
2
|
+
|
|
3
|
+
Work is done when:
|
|
4
|
+
|
|
5
|
+
- Acceptance criteria are met.
|
|
6
|
+
- Relevant tests pass or missing tests are explained.
|
|
7
|
+
- Typecheck, lint, and build pass when configured.
|
|
8
|
+
- The diff has been reviewed.
|
|
9
|
+
- Risks and rollback notes are documented.
|
|
10
|
+
- Handoff summary is ready for a reviewer.
|
|
11
|
+
|
|
12
|
+
Work is not done when:
|
|
13
|
+
|
|
14
|
+
- Verification was skipped without explanation.
|
|
15
|
+
- Protected files changed without review.
|
|
16
|
+
- The diff includes unrelated churn.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Release Checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Working tree reviewed.
|
|
4
|
+
- [ ] Changelog updated.
|
|
5
|
+
- [ ] Version selected.
|
|
6
|
+
- [ ] Typecheck passed.
|
|
7
|
+
- [ ] Tests passed.
|
|
8
|
+
- [ ] Build passed.
|
|
9
|
+
- [ ] Package contents reviewed.
|
|
10
|
+
- [ ] Publish command prepared.
|
|
11
|
+
- [ ] Rollback plan documented.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Repo Map
|
|
2
|
+
|
|
3
|
+
Project name: {{ projectName }}
|
|
4
|
+
Project type: {{ projectType }}
|
|
5
|
+
Package manager: {{ packageManager }}
|
|
6
|
+
|
|
7
|
+
Key files:
|
|
8
|
+
|
|
9
|
+
- AGENTS.md: agent instructions
|
|
10
|
+
- AGENTLOOP.md: methodology and repo loop
|
|
11
|
+
- agentloop.config.json: commands and safety settings
|
|
12
|
+
- .agentloop/tasks/: task contracts
|
|
13
|
+
- .agentloop/reports/: verification reports
|
|
14
|
+
- .agentloop/handoffs/: reviewer summaries
|
|
15
|
+
|
|
16
|
+
Before changing code, inspect the files directly related to the task. Do not infer behavior from filenames alone.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Review Checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Task contract is clear.
|
|
4
|
+
- [ ] Changed files match the scope.
|
|
5
|
+
- [ ] No unrelated refactors are included.
|
|
6
|
+
- [ ] Tests or documented verification cover the change.
|
|
7
|
+
- [ ] Docs were updated when behavior changed.
|
|
8
|
+
- [ ] Protected areas were reviewed.
|
|
9
|
+
- [ ] Rollback notes are clear.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Working Agreement
|
|
2
|
+
|
|
3
|
+
Agents working in this repo should:
|
|
4
|
+
|
|
5
|
+
- Start from the task contract.
|
|
6
|
+
- Keep changes small and reviewable.
|
|
7
|
+
- Prefer existing project patterns.
|
|
8
|
+
- Avoid unrelated refactors.
|
|
9
|
+
- Preserve user changes.
|
|
10
|
+
- Update docs when commands, public behavior, or workflows change.
|
|
11
|
+
- Record architecture decisions in DECISIONS.md.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Bugfix Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when correcting broken behavior.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Reproduction steps or failing case
|
|
8
|
+
- Expected behavior
|
|
9
|
+
- Actual behavior
|
|
10
|
+
- Scope constraints
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Reproduce or explain why reproduction is unavailable.
|
|
15
|
+
2. Add a failing test when practical.
|
|
16
|
+
3. Make the smallest fix that passes.
|
|
17
|
+
4. Verify the original failure no longer occurs.
|
|
18
|
+
5. Check nearby regressions.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- The failure is fixed.
|
|
23
|
+
- The fix is covered by automated or documented manual verification.
|
|
24
|
+
- The change avoids broad rewrites.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run the targeted test first.
|
|
29
|
+
- Run configured verification commands.
|
|
30
|
+
|
|
31
|
+
Handoff output:
|
|
32
|
+
|
|
33
|
+
- Root cause summary
|
|
34
|
+
- Files changed
|
|
35
|
+
- Tests run
|
|
36
|
+
- Residual risk
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Dependency Upgrade Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when adding or upgrading dependencies.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Package name
|
|
8
|
+
- Reason for change
|
|
9
|
+
- Version target
|
|
10
|
+
- Lockfile policy
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Explain why the dependency change is needed.
|
|
15
|
+
2. Inspect changelog or release notes when available.
|
|
16
|
+
3. Update package and lockfile.
|
|
17
|
+
4. Run focused and full verification.
|
|
18
|
+
5. Document compatibility risks.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- Dependency change is justified.
|
|
23
|
+
- Lockfile change is intentional.
|
|
24
|
+
- No unrelated package churn is included.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run install, tests, typecheck, and build.
|
|
29
|
+
|
|
30
|
+
Handoff output:
|
|
31
|
+
|
|
32
|
+
- Package changed
|
|
33
|
+
- Risk notes
|
|
34
|
+
- Rollback command
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Docs Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when changing documentation.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Reader
|
|
8
|
+
- Goal
|
|
9
|
+
- Existing docs to update
|
|
10
|
+
- Source of truth
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Verify the documented behavior from code or commands.
|
|
15
|
+
2. Write direct instructions.
|
|
16
|
+
3. Remove stale or duplicate text.
|
|
17
|
+
4. Check links and commands.
|
|
18
|
+
5. Handoff with changed docs and assumptions.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- The reader can complete the task.
|
|
23
|
+
- Commands and paths are accurate.
|
|
24
|
+
- Limitations are stated plainly.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run documented commands when practical.
|
|
29
|
+
- Check Markdown links when tooling exists.
|
|
30
|
+
|
|
31
|
+
Handoff output:
|
|
32
|
+
|
|
33
|
+
- Docs changed
|
|
34
|
+
- Commands verified
|
|
35
|
+
- Claims not verified
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Feature Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when adding user-visible behavior.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Problem statement
|
|
8
|
+
- Desired outcome
|
|
9
|
+
- Acceptance criteria
|
|
10
|
+
- Files or areas likely to change
|
|
11
|
+
- Files or areas not to touch
|
|
12
|
+
|
|
13
|
+
Process:
|
|
14
|
+
|
|
15
|
+
1. Specify the feature contract.
|
|
16
|
+
2. Constrain public API, data, auth, and dependency changes.
|
|
17
|
+
3. Plan a narrow implementation path.
|
|
18
|
+
4. Implement the smallest useful feature.
|
|
19
|
+
5. Verify with tests, typecheck, lint, and build when configured.
|
|
20
|
+
6. Review the diff against the contract.
|
|
21
|
+
7. Handoff with risks and rollback notes.
|
|
22
|
+
|
|
23
|
+
Acceptance criteria:
|
|
24
|
+
|
|
25
|
+
- User behavior is clear.
|
|
26
|
+
- Edge cases are handled or documented.
|
|
27
|
+
- No unrelated refactors are included.
|
|
28
|
+
|
|
29
|
+
Verification:
|
|
30
|
+
|
|
31
|
+
- Run configured test, lint, typecheck, and build commands.
|
|
32
|
+
- Add or update tests when behavior changes.
|
|
33
|
+
|
|
34
|
+
Handoff output:
|
|
35
|
+
|
|
36
|
+
- PR summary
|
|
37
|
+
- Verification report
|
|
38
|
+
- Reviewer checklist
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Migration Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when changing schemas, data migrations, or irreversible state.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Migration goal
|
|
8
|
+
- Data affected
|
|
9
|
+
- Rollback strategy
|
|
10
|
+
- Human approval status
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Stop for human review before irreversible changes.
|
|
15
|
+
2. Define forward and rollback path.
|
|
16
|
+
3. Add tests or dry-run commands where possible.
|
|
17
|
+
4. Keep migration files focused.
|
|
18
|
+
5. Verify application compatibility.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- Data risk is clear.
|
|
23
|
+
- Rollback plan is explicit.
|
|
24
|
+
- Deployment order is documented.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run migration dry-run if available.
|
|
29
|
+
- Run tests and build.
|
|
30
|
+
|
|
31
|
+
Handoff output:
|
|
32
|
+
|
|
33
|
+
- Migration notes
|
|
34
|
+
- Rollback plan
|
|
35
|
+
- Human review checklist
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Refactor Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when improving structure without changing behavior.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Current pain point
|
|
8
|
+
- Behavior that must stay unchanged
|
|
9
|
+
- Files in scope
|
|
10
|
+
- Files out of scope
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Identify behavior-preserving boundaries.
|
|
15
|
+
2. Add characterization tests if coverage is thin.
|
|
16
|
+
3. Refactor in small steps.
|
|
17
|
+
4. Run verification after each risky step.
|
|
18
|
+
5. Review the diff for accidental behavior changes.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- Public behavior stays the same.
|
|
23
|
+
- Code becomes easier to read, test, or maintain.
|
|
24
|
+
- No unrelated formatting churn is included.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run existing tests.
|
|
29
|
+
- Add focused tests if the refactor touches shared behavior.
|
|
30
|
+
|
|
31
|
+
Handoff output:
|
|
32
|
+
|
|
33
|
+
- Refactor intent
|
|
34
|
+
- Safety evidence
|
|
35
|
+
- Rollback notes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Release Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when preparing a release.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Version target
|
|
8
|
+
- Changelog entries
|
|
9
|
+
- Package checks
|
|
10
|
+
- Publish owner
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Confirm working tree and branch.
|
|
15
|
+
2. Run typecheck, tests, build, and pack.
|
|
16
|
+
3. Update changelog and release notes.
|
|
17
|
+
4. Review package contents.
|
|
18
|
+
5. Handoff publish commands and risks.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- Package builds and packs.
|
|
23
|
+
- Changelog matches shipped changes.
|
|
24
|
+
- Release notes are reviewer-ready.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run configured checks.
|
|
29
|
+
- Run package dry-run or pack command.
|
|
30
|
+
|
|
31
|
+
Handoff output:
|
|
32
|
+
|
|
33
|
+
- Release checklist
|
|
34
|
+
- Verification report
|
|
35
|
+
- Publish notes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Security Review Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when reviewing code for security risk.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Assets at risk
|
|
8
|
+
- Trust boundaries
|
|
9
|
+
- Auth, secrets, and data flows
|
|
10
|
+
- Known threat model
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Identify sensitive files and inputs.
|
|
15
|
+
2. Check secret handling without reading secret values.
|
|
16
|
+
3. Review auth, permissions, command execution, and dependency changes.
|
|
17
|
+
4. Document findings with severity and evidence.
|
|
18
|
+
5. Recommend narrow fixes.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- Findings cite files and behavior.
|
|
23
|
+
- False positives are marked.
|
|
24
|
+
- Fixes avoid broad rewrites.
|
|
25
|
+
|
|
26
|
+
Verification:
|
|
27
|
+
|
|
28
|
+
- Run tests.
|
|
29
|
+
- Run audit tooling when configured.
|
|
30
|
+
|
|
31
|
+
Handoff output:
|
|
32
|
+
|
|
33
|
+
- Findings
|
|
34
|
+
- Risk rating
|
|
35
|
+
- Recommended fixes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Test Generation Loop
|
|
2
|
+
|
|
3
|
+
Use this loop when adding or improving tests.
|
|
4
|
+
|
|
5
|
+
Required inputs:
|
|
6
|
+
|
|
7
|
+
- Behavior to protect
|
|
8
|
+
- Current coverage gap
|
|
9
|
+
- Target files
|
|
10
|
+
- Verification command
|
|
11
|
+
|
|
12
|
+
Process:
|
|
13
|
+
|
|
14
|
+
1. Read the behavior and existing tests.
|
|
15
|
+
2. Add focused tests that exercise real code.
|
|
16
|
+
3. Avoid tests that only confirm mocks.
|
|
17
|
+
4. Run the targeted test.
|
|
18
|
+
5. Run the wider test command when available.
|
|
19
|
+
|
|
20
|
+
Acceptance criteria:
|
|
21
|
+
|
|
22
|
+
- Tests fail for the wrong behavior and pass for the right behavior.
|
|
23
|
+
- Tests are readable and maintainable.
|
|
24
|
+
|
|
25
|
+
Verification:
|
|
26
|
+
|
|
27
|
+
- Run the new test file.
|
|
28
|
+
- Run the configured test command.
|
|
29
|
+
|
|
30
|
+
Handoff output:
|
|
31
|
+
|
|
32
|
+
- Test coverage added
|
|
33
|
+
- Behaviors protected
|
|
34
|
+
- Gaps left open
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Database Change Policy
|
|
2
|
+
|
|
3
|
+
Treat schema and data changes as high-risk.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Ask for human review before irreversible migrations.
|
|
8
|
+
- Document forward and rollback steps.
|
|
9
|
+
- Do not edit production data from an agent session.
|
|
10
|
+
- Keep migration files focused.
|
|
11
|
+
- Run migration tests or dry-runs when available.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Dependency Change Policy
|
|
2
|
+
|
|
3
|
+
Dependency changes must be intentional.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Explain why the dependency is needed.
|
|
8
|
+
- Prefer small, maintained packages with clear licenses.
|
|
9
|
+
- Avoid packages with install scripts unless reviewed.
|
|
10
|
+
- Update lockfiles intentionally.
|
|
11
|
+
- Run tests, typecheck, and build after the change.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Git Policy
|
|
2
|
+
|
|
3
|
+
Agents must preserve user work.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Inspect status before broad edits.
|
|
8
|
+
- Do not revert unrelated changes.
|
|
9
|
+
- Do not rewrite history without explicit approval.
|
|
10
|
+
- Keep diffs focused.
|
|
11
|
+
- Summarize changed files before handoff.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# No Destructive Actions Policy
|
|
2
|
+
|
|
3
|
+
Agents must not delete files, reset branches, discard changes, rewrite history, or remove dependencies unless the user asks for that specific action.
|
|
4
|
+
|
|
5
|
+
Allowed without extra approval:
|
|
6
|
+
|
|
7
|
+
- Reading files
|
|
8
|
+
- Creating task contracts, reports, and summaries
|
|
9
|
+
- Editing files required by the task contract
|
|
10
|
+
|
|
11
|
+
Requires explicit approval:
|
|
12
|
+
|
|
13
|
+
- `git reset`
|
|
14
|
+
- `git checkout --`
|
|
15
|
+
- `rm -rf`
|
|
16
|
+
- Dropping migrations or data
|
|
17
|
+
- Replacing existing instructions wholesale
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Public API Change Policy
|
|
2
|
+
|
|
3
|
+
Public API changes require clear intent.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Preserve public APIs unless the task contract requires a change.
|
|
8
|
+
- Document breaking changes.
|
|
9
|
+
- Update README and docs for command or API changes.
|
|
10
|
+
- Add tests for new public behavior.
|
|
11
|
+
- Include migration notes when users must change their code.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Secrets Policy
|
|
2
|
+
|
|
3
|
+
Agents must never expose secrets.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Do not read `.env` file contents.
|
|
8
|
+
- If env files are detected, report paths only.
|
|
9
|
+
- Do not print tokens, keys, cookies, or credentials.
|
|
10
|
+
- Do not add secrets to generated reports.
|
|
11
|
+
- Use placeholder names in docs.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
Agents must treat security-sensitive code with caution.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Do not read, print, or store secret values.
|
|
8
|
+
- Do not add hidden network calls.
|
|
9
|
+
- Do not add telemetry.
|
|
10
|
+
- Review command execution paths for injection risk.
|
|
11
|
+
- Check auth and permission changes with a human when behavior changes.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# UI Change Policy
|
|
2
|
+
|
|
3
|
+
UI changes should serve the workflow.
|
|
4
|
+
|
|
5
|
+
Rules:
|
|
6
|
+
|
|
7
|
+
- Match existing design conventions.
|
|
8
|
+
- Check responsive states.
|
|
9
|
+
- Avoid copy that explains obvious controls.
|
|
10
|
+
- Do not introduce unrelated redesigns.
|
|
11
|
+
- Verify that text fits its container.
|