@tyroneross/build-loop 0.36.0 → 0.43.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/.agents/plugins/marketplace.json +2 -2
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor/rules/build-loop-surface.mdc +12 -11
- package/.cursor/rules/skill-index.mdc +33 -0
- package/AGENTS.md +213 -34
- package/README.md +99 -31
- package/agents/advisor.md +4 -4
- package/agents/alignment-checker.md +2 -2
- package/agents/architecture-scout.md +4 -4
- package/agents/build-orchestrator.md +38 -36
- package/agents/database-assessor.md +11 -5
- package/agents/design-contract-specialist.md +8 -8
- package/agents/fact-checker.md +13 -3
- package/agents/fix-critique.md +2 -2
- package/agents/independent-auditor.md +60 -7
- package/agents/leak-scanner.md +82 -0
- package/agents/overfitting-reviewer.md +2 -2
- package/agents/plan-critic.md +1 -1
- package/agents/promotion-reviewer.md +5 -5
- package/agents/retrospective-synthesizer.md +138 -35
- package/agents/scope-auditor.md +82 -11
- package/agents/security-reviewer.md +56 -2
- package/agents/self-improvement-architect.md +17 -3
- package/agents/transcript-pattern-miner.md +5 -5
- package/agents/ui-validator.md +1 -1
- package/bin/build-loop-debugger.js +143 -0
- package/bin/build-loop-install.js +1 -4
- package/bin/build-loop-load-probe.js +345 -0
- package/codex-skills/build-loop/SKILL.md +28 -6
- package/commands/feedback.md +37 -0
- package/dist/src/interactive-verifier.d.ts +1 -14
- package/dist/src/interactive-verifier.d.ts.map +1 -1
- package/dist/src/interactive-verifier.js +6 -113
- package/dist/src/interactive-verifier.js.map +1 -1
- package/dist/src/quality.d.ts +5 -0
- package/dist/src/quality.d.ts.map +1 -0
- package/dist/src/quality.js +81 -0
- package/dist/src/quality.js.map +1 -0
- package/dist/src/storage.d.ts.map +1 -1
- package/dist/src/storage.js +37 -3
- package/dist/src/storage.js.map +1 -1
- package/docs/agent-surface-policy.md +35 -31
- package/docs/memory-setup.md +19 -0
- package/hooks/git/pre-push +65 -4
- package/hooks/hooks.json +95 -38
- package/hooks/pre-commit +20 -1
- package/hooks/pre-edit-rally-point.sh +10 -3
- package/hooks/session-start-codex-hook-trust.sh +30 -0
- package/hooks/session-start-git-hooks.sh +3 -1
- package/hooks/session-start-rally-point.sh +52 -4
- package/hooks/session-start-worktree-gc.sh +47 -94
- package/hooks/stop-transcript-sweep.sh +173 -0
- package/hooks/test_closeout.sh +14 -2
- package/package.json +8 -7
- package/scripts/README.md +1 -1
- package/scripts/_paths.py +65 -0
- package/scripts/groundwork_exchange.py +1012 -0
- package/scripts/install_memory.py +33 -1
- package/scripts/lessons_index/ingest.py +13 -2
- package/scripts/lessons_index/query.py +36 -13
- package/scripts/memory_context/__init__.py +108 -14
- package/scripts/memory_graph/__init__.py +5 -1
- package/scripts/project_resolver.py +42 -36
- package/scripts/sync_plugin_cache.py +37 -2
- package/skills/agent-rally-point/SKILL.md +46 -0
- package/skills/api-registry-bridge/SKILL.md +1 -1
- package/skills/architecture/dead/SKILL.md +1 -1
- package/skills/architecture/impact/SKILL.md +1 -1
- package/skills/architecture/review/SKILL.md +1 -1
- package/skills/architecture/rules/SKILL.md +3 -3
- package/skills/architecture/scan/SKILL.md +1 -1
- package/skills/architecture/trace/SKILL.md +1 -1
- package/skills/attribution-standard/SKILL.md +6 -6
- package/skills/auto-decision-capture/SKILL.md +31 -2
- package/skills/auto-finding-capture/SKILL.md +28 -1
- package/skills/build-loop/SKILL.md +131 -23
- package/skills/build-loop/fallbacks.md +16 -21
- package/skills/build-loop/phases/ui-validation.md +2 -2
- package/skills/build-loop/references/advisor-dispatch-ladder.md +1 -1
- package/skills/build-loop/references/apple-native-planning.md +1 -1
- package/skills/build-loop/references/autonomous-and-per-commit-modes.md +11 -5
- package/skills/build-loop/references/autonomy-dashboard.md +115 -0
- package/skills/build-loop/references/capability-routing.md +24 -2
- package/skills/build-loop/references/coordination.md +24 -6
- package/skills/build-loop/references/experiment-results-template.md +15 -3
- package/skills/build-loop/references/leadership.md +1 -1
- package/skills/build-loop/references/memory.md +14 -3
- package/skills/build-loop/references/modular-systems-pack.md +8 -0
- package/skills/build-loop/references/output-style.md +86 -0
- package/skills/build-loop/references/phase-1-assess.md +102 -2
- package/skills/build-loop/references/phase-2-plan.md +9 -1
- package/skills/build-loop/references/phase-3-execute.md +5 -2
- package/skills/build-loop/references/phase-4-review.md +85 -8
- package/skills/build-loop/references/phase-5-iterate.md +76 -8
- package/skills/build-loop/references/phase-6-learn.md +10 -17
- package/skills/build-loop/references/privileged-request-broker.md +254 -0
- package/skills/build-loop/references/resource-aware-execution.md +183 -0
- package/skills/build-loop/references/self-recursive-dev.md +2 -2
- package/skills/build-loop/references/status-output-format.md +207 -0
- package/skills/build-loop/references/verify-dispatch.md +56 -2
- package/skills/building-with-deepagents/SKILL.md +1 -1
- package/skills/claim-scope/SKILL.md +185 -0
- package/skills/color-engine/SKILL.md +103 -0
- package/skills/color-engine/_core.py +464 -0
- package/skills/color-engine/color_engine.py +175 -0
- package/skills/cost-rca/SKILL.md +61 -0
- package/skills/data-plane-worktrees/SKILL.md +139 -0
- package/skills/data-plane-worktrees/agents/openai.yaml +4 -0
- package/skills/database-practice/SKILL.md +200 -0
- package/skills/database-practice/references/diagnostic-queries.sql +126 -0
- package/skills/database-practice/references/vector-and-graph-tuning.md +208 -0
- package/skills/database-practice/scripts/db_table_map.py +1244 -0
- package/skills/database-practice/scripts/test_db_table_map.py +514 -0
- package/skills/debug-loop/SKILL.md +36 -6
- package/skills/debugging-memory/SKILL.md +32 -430
- package/skills/debugging-memory/references/pattern-extraction.md +4 -4
- package/skills/debugging-memory/references/search.md +32 -120
- package/skills/debugging-memory/references/store.md +32 -126
- package/skills/debugging-memory/references/subagent-integration.md +1 -1
- package/skills/decision-queue/SKILL.md +251 -0
- package/skills/decision-queue/assets/template.html +1242 -0
- package/skills/decision-queue/references/example-large-queue-batching.md +164 -0
- package/skills/decision-queue/scripts/regen_template_constants.py +160 -0
- package/skills/defenseclaw-bridge/SKILL.md +2 -2
- package/skills/defenseclaw-bridge/references/dc-config-mapping.md +2 -9
- package/skills/drain-proposals/SKILL.md +53 -0
- package/skills/focused-loop-builder/SKILL.md +31 -0
- package/skills/focused-loop-builder/references/spec-format.md +27 -0
- package/skills/handoff/SKILL.md +169 -8
- package/skills/ibr-bridge/SKILL.md +4 -1
- package/skills/knowledge/SKILL.md +26 -14
- package/skills/knowledge/references/review-mode.md +2 -3
- package/skills/knowledge/templates/madr-minimal.md +1 -1
- package/skills/mcp-builder/SKILL.md +1 -1
- package/skills/model-bakeoff/SKILL.md +48 -10
- package/skills/model-tiering/SKILL.md +92 -31
- package/skills/native-ax-driver/SKILL.md +38 -5
- package/skills/native-ax-driver/scripts/native_driver.py +278 -22
- package/skills/native-ax-driver/scripts/test_native_driver.py +227 -0
- package/skills/optimize/SKILL.md +1 -1
- package/skills/plugin-builder/SKILL.md +48 -1
- package/skills/plugin-builder/references/build-loop-phase-guidance.md +3 -4
- package/skills/plugin-builder/references/distribution.md +13 -2
- package/skills/plugin-builder/references/plugin-hygiene-lessons.md +2 -2
- package/skills/plugin-tests/SKILL.md +2 -2
- package/skills/recursive-retrospective/SKILL.md +1 -1
- package/skills/repo-closeout/SKILL.md +17 -0
- package/skills/repo-closeout/agents/openai.yaml +4 -0
- package/skills/repo-maintenance/SKILL.md +179 -0
- package/skills/repo-maintenance/agents/openai.yaml +4 -0
- package/skills/repo-maintenance/references/pre-public-hygiene.md +134 -0
- package/skills/repo-maintenance/references/repository-taxonomy.md +161 -0
- package/skills/repo-maintenance/references/safety-protocol.md +106 -0
- package/skills/repo-maintenance/references/stack-profiles.md +138 -0
- package/skills/repo-maintenance/scripts/audit_repo_maintenance.py +1198 -0
- package/skills/repo-maintenance/scripts/test_audit_repo_maintenance.py +506 -0
- package/skills/repository-intelligence/SKILL.md +189 -0
- package/skills/repository-intelligence/agents/openai.yaml +4 -0
- package/skills/repository-intelligence/references/assessment-rubric.md +88 -0
- package/skills/repository-intelligence/scripts/repository_inventory.py +347 -0
- package/skills/research/SKILL.md +12 -2
- package/skills/root-cause-analysis/SKILL.md +1 -1
- package/skills/runtime-parity-verification/SKILL.md +36 -1
- package/skills/security-methodology/SKILL.md +23 -10
- package/skills/security-methodology/references/agentic-handoff-templates.md +220 -0
- package/skills/security-methodology/references/cross-source-matrix.md +1 -1
- package/skills/security-methodology/references/owasp-agentic-top-10.md +1 -1
- package/skills/security-scan/SKILL.md +55 -15
- package/skills/self-improve/SKILL.md +70 -50
- package/skills/silent-assumptions/SKILL.md +341 -0
- package/skills/silent-assumptions/references/elicitation-detectors.md +342 -0
- package/skills/spec-writing/SKILL.md +128 -24
- package/skills/spec-writing/scripts/check_checklist.py +114 -15
- package/skills/ui-design/SKILL.md +6 -4
- package/skills/ui-design/references/color-engine.md +132 -0
- package/skills/ui-design/references/design-preferences-from-owned-apps.md +8 -8
- package/skills/ui-design/references/ui-guidance-sources.md +1 -1
- package/skills/ui-design/references/universal-design-principles.alt.md +2 -2
- package/plugin-artifacts/codex/.codex-plugin/plugin.json +0 -41
- package/plugin-artifacts/codex/AGENTS.md +0 -560
- package/plugin-artifacts/codex/BUILD-ARTIFACT.md +0 -5
- package/plugin-artifacts/codex/LICENSE +0 -202
- package/plugin-artifacts/codex/README.md +0 -313
- package/plugin-artifacts/codex/assets/build-loop-plugin-icon.png +0 -0
- package/plugin-artifacts/codex/docs/agent-surface-policy.md +0 -63
- package/plugin-artifacts/codex/references/advisor-dispatch-ladder.md +0 -62
- package/plugin-artifacts/codex/references/agent-role-taxonomy.md +0 -135
- package/plugin-artifacts/codex/references/autonomous-and-per-commit-modes.md +0 -161
- package/plugin-artifacts/codex/references/autonomy-config.md +0 -231
- package/plugin-artifacts/codex/references/backlog-system.md +0 -285
- package/plugin-artifacts/codex/references/capability-routing.md +0 -231
- package/plugin-artifacts/codex/references/codex-subagents.md +0 -106
- package/plugin-artifacts/codex/references/coordination-file-template.md +0 -181
- package/plugin-artifacts/codex/references/coordination-rules.md +0 -552
- package/plugin-artifacts/codex/references/dogfood-reload-checkpoint.md +0 -112
- package/plugin-artifacts/codex/references/halt-and-ask-protocol.md +0 -102
- package/plugin-artifacts/codex/references/implementer-envelope-schema.md +0 -302
- package/plugin-artifacts/codex/references/intent-capability-pack.md +0 -257
- package/plugin-artifacts/codex/references/intent-exploration-prompts.md +0 -96
- package/plugin-artifacts/codex/references/leadership.md +0 -72
- package/plugin-artifacts/codex/references/memory-systems.md +0 -261
- package/plugin-artifacts/codex/references/memory.md +0 -313
- package/plugin-artifacts/codex/references/model-tier-mapping.md +0 -296
- package/plugin-artifacts/codex/references/modular-systems-pack.md +0 -96
- package/plugin-artifacts/codex/references/phase-1-assess.md +0 -249
- package/plugin-artifacts/codex/references/phase-2-plan.md +0 -86
- package/plugin-artifacts/codex/references/phase-3-execute.md +0 -49
- package/plugin-artifacts/codex/references/phase-4-review.md +0 -341
- package/plugin-artifacts/codex/references/phase-5-iterate.md +0 -72
- package/plugin-artifacts/codex/references/phase-6-learn.md +0 -58
- package/plugin-artifacts/codex/references/recent-design-structures.md +0 -274
- package/plugin-artifacts/codex/references/research-trigger-policy.md +0 -140
- package/plugin-artifacts/codex/references/runtime-smoke-triggers.md +0 -42
- package/plugin-artifacts/codex/references/self-review.md +0 -234
- package/plugin-artifacts/codex/references/single-writer-commit-protocol.md +0 -90
- package/plugin-artifacts/codex/references/task-capture-policy.md +0 -68
- package/plugin-artifacts/codex/references/ui-io-contract.md +0 -116
- package/plugin-artifacts/codex/references/ui-spotcheck-protocol.md +0 -65
- package/plugin-artifacts/codex/references/verify-dispatch.md +0 -85
- package/plugin-artifacts/codex/skills/build-loop/SKILL.md +0 -381
- package/plugin-artifacts/codex/skills/build-loop/detect-plugins.mjs +0 -82
- package/plugin-artifacts/codex/skills/build-loop/eval-guide.md +0 -65
- package/plugin-artifacts/codex/skills/build-loop/fallbacks.md +0 -549
- package/plugin-artifacts/codex/skills/build-loop/phases/fact-check.md +0 -42
- package/plugin-artifacts/codex/skills/build-loop/phases/ui-validation.md +0 -267
- package/plugin-artifacts/codex/skills/build-loop/references/advisor-dispatch-ladder.md +0 -62
- package/plugin-artifacts/codex/skills/build-loop/references/apple-native-planning.md +0 -439
- package/plugin-artifacts/codex/skills/build-loop/references/autonomous-and-per-commit-modes.md +0 -161
- package/plugin-artifacts/codex/skills/build-loop/references/capability-routing.md +0 -231
- package/plugin-artifacts/codex/skills/build-loop/references/codex-subagents.md +0 -106
- package/plugin-artifacts/codex/skills/build-loop/references/coordination.md +0 -161
- package/plugin-artifacts/codex/skills/build-loop/references/correction-aware-capture.md +0 -177
- package/plugin-artifacts/codex/skills/build-loop/references/experiment-results-template.md +0 -101
- package/plugin-artifacts/codex/skills/build-loop/references/independent-auditor.md +0 -72
- package/plugin-artifacts/codex/skills/build-loop/references/intent-capability-pack.md +0 -257
- package/plugin-artifacts/codex/skills/build-loop/references/intent-exploration-prompts.md +0 -96
- package/plugin-artifacts/codex/skills/build-loop/references/leadership.md +0 -72
- package/plugin-artifacts/codex/skills/build-loop/references/memory.md +0 -313
- package/plugin-artifacts/codex/skills/build-loop/references/modular-systems-pack.md +0 -96
- package/plugin-artifacts/codex/skills/build-loop/references/output-style.md +0 -222
- package/plugin-artifacts/codex/skills/build-loop/references/pay-it-forward-arch.md +0 -98
- package/plugin-artifacts/codex/skills/build-loop/references/phase-1-assess.md +0 -249
- package/plugin-artifacts/codex/skills/build-loop/references/phase-2-plan.md +0 -86
- package/plugin-artifacts/codex/skills/build-loop/references/phase-3-execute.md +0 -49
- package/plugin-artifacts/codex/skills/build-loop/references/phase-4-review.md +0 -341
- package/plugin-artifacts/codex/skills/build-loop/references/phase-5-iterate.md +0 -72
- package/plugin-artifacts/codex/skills/build-loop/references/phase-6-learn.md +0 -58
- package/plugin-artifacts/codex/skills/build-loop/references/recent-design-structures.md +0 -274
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/ASSESSMENT.md +0 -85
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/STANDALONE_TEST_RUN.md +0 -149
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/01-simple-bugfix.md +0 -32
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/02-ui-build-with-iteration.md +0 -48
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/03-multi-failure-escalation.md +0 -60
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/04-ui-build-ibr-absent.md +0 -51
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/05-refactor-navgator-absent.md +0 -71
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/06-recurring-bug-debugger-absent.md +0 -52
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/trace-comparison.md +0 -202
- package/plugin-artifacts/codex/skills/build-loop/references/self-recursive-dev.md +0 -77
- package/plugin-artifacts/codex/skills/build-loop/references/self-review.md +0 -234
- package/plugin-artifacts/codex/skills/build-loop/references/ui-io-contract.md +0 -116
- package/plugin-artifacts/codex/skills/build-loop/references/verify-dispatch.md +0 -85
- package/plugin-artifacts/codex/skills/build-loop/scanners/audit-design-rules.mjs +0 -476
- package/plugin-artifacts/codex/skills/build-loop/scanners/require-visual-evidence.mjs +0 -239
- package/plugin-artifacts/codex/skills/build-loop/templates/backlog-item.md +0 -35
- package/plugin-artifacts/codex/skills/build-loop/templates/codex-worker-prompt.md +0 -100
- package/plugin-artifacts/codex/skills/build-loop/templates/ui-subagent-prompt.md +0 -179
- package/plugin-artifacts/codex/skills/build-loop/templates/ux-fix-plan.md +0 -40
- package/scripts/build_codex_plugin_artifact.py +0 -321
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Repository Maintenance Safety Protocol
|
|
2
|
+
|
|
3
|
+
Use this protocol for source consolidation, artifact cleanup, structural changes, and closeout.
|
|
4
|
+
|
|
5
|
+
## 1. Establish authority and ownership
|
|
6
|
+
|
|
7
|
+
- Read repository instructions before commands.
|
|
8
|
+
- Separate authorization for local integration, generated-artifact cleanup, sibling retirement, push, remote deletion, deployment, force-push, and recovery-tag deletion.
|
|
9
|
+
- Inspect live peer claims and files in flight. Continue read-only analysis when ownership overlaps.
|
|
10
|
+
|
|
11
|
+
## 2. Inventory live truth
|
|
12
|
+
|
|
13
|
+
Capture:
|
|
14
|
+
|
|
15
|
+
- canonical repo root, local `main`, upstream, and ahead/behind counts;
|
|
16
|
+
- all linked worktrees, branches, detached heads, locks, dirt, and prune markers;
|
|
17
|
+
- stashes including base, untracked parent, message, and changed paths;
|
|
18
|
+
- open merge, rebase, cherry-pick, revert, or bisect state;
|
|
19
|
+
- generated/build roots, sizes, ages, ignore status, and active process references;
|
|
20
|
+
- sibling repositories and the exact in-tree prefixes or consumers they overlap;
|
|
21
|
+
- canonical build, test, bundling, and parity gates.
|
|
22
|
+
|
|
23
|
+
Review code and trees directly. Notes, branch names, and old source-of-truth documents can be stale.
|
|
24
|
+
|
|
25
|
+
## 3. Decide repository boundaries
|
|
26
|
+
|
|
27
|
+
Use product coupling as the primary criterion:
|
|
28
|
+
|
|
29
|
+
| Signal | Prefer one repo | Prefer separate repos |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| Shipping | only bundled with parent | independently released |
|
|
32
|
+
| Consumers | one parent product | multiple independent consumers |
|
|
33
|
+
| Verification | same required gate | independent gates and compatibility matrix |
|
|
34
|
+
| Change cadence | normally changes together | independently versioned |
|
|
35
|
+
| Ownership | same owner/security boundary | distinct owners or security/availability boundary |
|
|
36
|
+
|
|
37
|
+
For a consolidation, prove history and content separately:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
git merge-base --is-ancestor <source-head> main
|
|
41
|
+
git log --format=fuller --merges --all
|
|
42
|
+
git ls-tree -r main -- path/to/in-tree/source
|
|
43
|
+
git range-diff <candidate-range-a> <candidate-range-b>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
An imported source head plus a newer in-tree implementation means the sibling is historical. Do not merge it back over the evolved canonical tree. Audit its branches, stashes, and dirt for unique work first.
|
|
47
|
+
|
|
48
|
+
## 4. Protect recoverability
|
|
49
|
+
|
|
50
|
+
Create annotated tags under `archive/pre-closeout-YYYY-MM-DD/` for:
|
|
51
|
+
|
|
52
|
+
- pre-integration `main`;
|
|
53
|
+
- every branch head considered for deletion;
|
|
54
|
+
- every stash commit considered for removal;
|
|
55
|
+
- any superseded source head that will lose an active checkout.
|
|
56
|
+
|
|
57
|
+
After tagging a stash, inspect its parents. A stash with untracked files normally has a third parent. Reflogs are not retention policy.
|
|
58
|
+
|
|
59
|
+
## 5. Classify build and generated roots
|
|
60
|
+
|
|
61
|
+
Treat isolated build roots as intentional concurrency infrastructure until proven otherwise. A cleanup candidate must be:
|
|
62
|
+
|
|
63
|
+
- reproducible from tracked source and declared dependencies;
|
|
64
|
+
- ignored by Git;
|
|
65
|
+
- unused by an active process or current worktree;
|
|
66
|
+
- outside protected coordinator/final-build and canonical cache paths;
|
|
67
|
+
- older than the repository's retention threshold.
|
|
68
|
+
|
|
69
|
+
Do not delete Xcode, IDE, package-manager, or shared caches outside the repository unless explicitly included in scope. After pruning in-repo DerivedData, refresh any `buildServer.json`, compilation database, index, or generated path pointer that names the removed root.
|
|
70
|
+
|
|
71
|
+
## 6. Integrate and evolve safely
|
|
72
|
+
|
|
73
|
+
- Prefer a clean reconciliation worktree and fast-forward integration.
|
|
74
|
+
- Enumerate consumers before changing a repository boundary, protocol, package path, or generated artifact.
|
|
75
|
+
- Keep unrelated dirty material out of product commits.
|
|
76
|
+
- Run targeted verification after each risky change.
|
|
77
|
+
- Run canonical verification on the final integration tip and again on exact final `main` after the last mutation.
|
|
78
|
+
- Verify bundled or vendored outputs against canonical source after regeneration.
|
|
79
|
+
|
|
80
|
+
## 7. Clean in dependency order
|
|
81
|
+
|
|
82
|
+
1. verified clean auxiliary worktrees;
|
|
83
|
+
2. branches contained by final `main`;
|
|
84
|
+
3. patch-equivalent branches with recovery refs and recorded proof;
|
|
85
|
+
4. archived stashes;
|
|
86
|
+
5. stale worktree metadata;
|
|
87
|
+
6. authorized ignored artifact roots;
|
|
88
|
+
7. obsolete sibling checkout only after unique-state audit.
|
|
89
|
+
|
|
90
|
+
Avoid `git branch -D` until normal deletion fails and equivalence proof exists. Never use `git reset --hard` to clean user-owned state.
|
|
91
|
+
|
|
92
|
+
## 8. Verify final truth
|
|
93
|
+
|
|
94
|
+
Re-run the maintenance audit and report distinct states:
|
|
95
|
+
|
|
96
|
+
- canonical source: identified/not identified;
|
|
97
|
+
- structural consolidation: complete/not needed/blocked;
|
|
98
|
+
- committed: yes/no;
|
|
99
|
+
- integrated into local `main`: yes/no;
|
|
100
|
+
- canonical `main` clean: yes/no;
|
|
101
|
+
- worktrees/branches/stashes closed: yes/no;
|
|
102
|
+
- generated-artifact policy satisfied: yes/no;
|
|
103
|
+
- pushed: yes/no;
|
|
104
|
+
- deployed or runtime-tested: yes/no/not applicable.
|
|
105
|
+
|
|
106
|
+
Keep recovery tags until a separate retention review explicitly removes them.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Application and Build-System Profiles
|
|
2
|
+
|
|
3
|
+
Use this reference when a maintenance task depends on application type, language, framework, build system, generated directories, release shape, or expected physical layout. A stack profile is an evidence packet for maintenance decisions, not a template that every repository must copy.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
1. Stack-profile schema
|
|
8
|
+
2. Application profile families
|
|
9
|
+
3. Build-system layers
|
|
10
|
+
4. Physical-layout guidance
|
|
11
|
+
5. Classification workflow
|
|
12
|
+
6. Maintenance implications
|
|
13
|
+
|
|
14
|
+
## 1. Stack-profile schema
|
|
15
|
+
|
|
16
|
+
Record the profile as multi-value data. Mixed products are normal.
|
|
17
|
+
|
|
18
|
+
```yaml
|
|
19
|
+
application_profiles: []
|
|
20
|
+
languages: []
|
|
21
|
+
frameworks: []
|
|
22
|
+
build_system_layers: []
|
|
23
|
+
package_managers: []
|
|
24
|
+
repository_composition: []
|
|
25
|
+
runtime_deployables: []
|
|
26
|
+
canonical_source_roots: []
|
|
27
|
+
generated_or_cache_roots: []
|
|
28
|
+
canonical_build_commands: []
|
|
29
|
+
targeted_test_commands: []
|
|
30
|
+
artifact_or_bundle_parity_gates: []
|
|
31
|
+
release_units: []
|
|
32
|
+
ownership_or_security_boundaries: []
|
|
33
|
+
split_triggers: []
|
|
34
|
+
consolidation_triggers: []
|
|
35
|
+
evidence: []
|
|
36
|
+
confidence: high | medium | low
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The audit script emits signals for some fields. Confirm them from manifests, source, CI, release configuration, and repository instructions before making structural changes.
|
|
40
|
+
The JSON report also records manifest scan counts and truncation. Treat a truncated content scan as partial evidence and inspect the relevant workspace with its native tooling before deciding.
|
|
41
|
+
|
|
42
|
+
## 2. Application profile families
|
|
43
|
+
|
|
44
|
+
Application profiles describe the product or component shape. A repository may match several rows.
|
|
45
|
+
|
|
46
|
+
| Profile family | Common evidence | Typical structure pressure | Maintenance focus |
|
|
47
|
+
| --- | --- | --- | --- |
|
|
48
|
+
| Apple native app | Swift/Objective-C, Xcode project or XcodeGen, SwiftPM packages | app targets, extensions, local packages, platform-specific UI and services | generated project parity, signing, Xcode/SwiftPM build truth, DerivedData retention |
|
|
49
|
+
| Android native app | Kotlin/Java, Gradle settings, Android manifests | app plus feature/core modules and build-logic | module granularity, Gradle graph, variants, build-cache behavior |
|
|
50
|
+
| Web framework app | Next.js, Nuxt, SvelteKit, Remix, similar framework manifest/dependencies | route conventions plus feature/domain code | framework-reserved paths, server/client boundaries, generated output cleanup |
|
|
51
|
+
| Web SPA | Vite/Webpack/Rspack plus React/Vue/Svelte/Angular | UI features, state/data clients, assets | bundle/test commands, build output, shared UI boundaries |
|
|
52
|
+
| Backend API or service | server framework, routes/handlers, migrations, Docker/Procfile/deploy config | domain/application/adapters or deployable-first | API/schema compatibility, migrations, runtime config, independent deployability |
|
|
53
|
+
| Full-stack product | web/mobile clients plus server/API/packages | product monorepo or coordinated polyrepo | end-to-end contracts, shared types, atomic changes, deployment fan-out |
|
|
54
|
+
| Desktop cross-platform app | Electron, Tauri, Flutter, .NET MAUI, Qt | native shell plus web/shared core | dual build systems, packaging, platform-specific outputs |
|
|
55
|
+
| CLI, library, or SDK | binary/library targets, package metadata, public API | command/core/adapters or package-module | compatibility, release/versioning, install smoke tests, external consumers |
|
|
56
|
+
| Daemon, worker, or agent runtime | long-lived process entrypoints, IPC/protocols, queues, schedulers | runtime core plus transports/adapters | lifecycle, protocol compatibility, recovery, observability, bundled binary parity |
|
|
57
|
+
| Plugin or extension | plugin manifests, skills/agents/hooks, browser/IDE manifests | component-type directories around a manifest | host compatibility, discovery, packaging, permission boundaries |
|
|
58
|
+
| Data or ML system | notebooks, training/eval scripts, model/data configs, pipelines | data, features, training, serving, evals | data/model provenance, large artifact exclusion, reproducibility, serving contract |
|
|
59
|
+
| Infrastructure repo | Terraform, Pulumi, Helm, Kubernetes, deployment modules | environment or reusable module grouping | state boundaries, plan validation, credentials, promotion between environments |
|
|
60
|
+
| Documentation/content product | site generator or docs build config, content collections | content/type/version organization | links, generated site output, publishing gate |
|
|
61
|
+
| Mixed native product | native UI plus daemon/CLI/shared protocol | multi-language workspace or product monorepo | source-of-truth boundaries, bundle generation, cross-language contract tests |
|
|
62
|
+
|
|
63
|
+
Treat more specific archetypes—watch apps, app extensions, white-label apps, offline-first apps, multi-tenant SaaS, model-serving systems—as refinements of these profile families. Add the refinement only when it changes boundaries, build gates, generated state, ownership, or release behavior.
|
|
64
|
+
|
|
65
|
+
## 3. Build-system layers
|
|
66
|
+
|
|
67
|
+
A repository can use several build systems at once. Classify each by role instead of choosing one winner.
|
|
68
|
+
|
|
69
|
+
| Role | Examples | Maintenance implication |
|
|
70
|
+
| --- | --- | --- |
|
|
71
|
+
| Project generator | XcodeGen, CMake generators, code generators | Generated files need a canonical writer and parity check. |
|
|
72
|
+
| Language package/build | Cargo, SwiftPM, Gradle, Maven, Go, Python build backends, MSBuild | Manifests and lockfiles define package and dependency boundaries. |
|
|
73
|
+
| Framework compiler/bundler | Next.js, Vite, Webpack, Turbopack, esbuild | Framework outputs are generated caches/artifacts, not source. |
|
|
74
|
+
| Workspace coordinator | Cargo workspace, pnpm/yarn/npm workspaces, Turborepo, Nx, Gradle multi-project | Coordinates units inside a checkout; does not determine Git portfolio strategy. |
|
|
75
|
+
| Task orchestration | Make, shell scripts, Task, Just, Bazel targets | Identify the canonical entry command and subordinate tools it invokes. |
|
|
76
|
+
| Container/package | Docker/BuildKit, Xcode archive, app/package builders | Produces deployable or distributable artifacts; record reproducibility and signing. |
|
|
77
|
+
| Infrastructure | Terraform, Pulumi, Helm, CloudFormation | State and environment boundaries may require stricter repository or access separation. |
|
|
78
|
+
| Release automation | GitHub Actions, Fastlane, semantic-release, custom scripts | Release units and credentials reveal real operational coupling. |
|
|
79
|
+
|
|
80
|
+
Do not call every manifest a build system. A package manager, workspace coordinator, project generator, compiler, bundler, and release pipeline may all participate in one canonical build.
|
|
81
|
+
|
|
82
|
+
## 4. Physical-layout guidance
|
|
83
|
+
|
|
84
|
+
Derive physical layout from the application profiles and build systems. Preserve framework-reserved directories and established conventions unless changing them solves a measured problem.
|
|
85
|
+
|
|
86
|
+
Useful top-level roles include:
|
|
87
|
+
|
|
88
|
+
- `apps/` or named client roots for independently runnable applications;
|
|
89
|
+
- `services/`, `workers/`, or `daemon/` for operated runtimes;
|
|
90
|
+
- `packages/`, `crates/`, `modules/`, or `libs/` for enforceable reusable units;
|
|
91
|
+
- `infrastructure/` or `deploy/` for deployment definitions;
|
|
92
|
+
- `tools/` or `scripts/` for repository automation;
|
|
93
|
+
- `docs/` for current documentation with lifecycle rules;
|
|
94
|
+
- stack-native roots such as `Sources/`, `src/`, route directories, Xcode projects, or Gradle modules.
|
|
95
|
+
|
|
96
|
+
Names are evidence, not proof. `packages/` does not establish real modularity if all code bypasses package interfaces. `services/` does not prove independent deployability. `build-*` directories do not prove source duplication.
|
|
97
|
+
|
|
98
|
+
Keep source-owned, generated, vendored, cached, and runtime-state paths visibly distinct. Generated or cache roots should be ignored when appropriate, reproducible, attributable to a writer, and covered by retention rules.
|
|
99
|
+
|
|
100
|
+
## 5. Classification workflow
|
|
101
|
+
|
|
102
|
+
1. Run the maintenance audit against the canonical base ref.
|
|
103
|
+
2. Read manifests, lockfiles, project generators, CI, release configuration, and repository instructions.
|
|
104
|
+
3. Identify product components and runtime entrypoints in code.
|
|
105
|
+
4. Record application and build-system signals with evidence.
|
|
106
|
+
5. Classify the independent repository axes from `repository-taxonomy.md`.
|
|
107
|
+
6. Distinguish current structure from target structure.
|
|
108
|
+
7. Test the proposed change against representative feature changes and canonical verification.
|
|
109
|
+
|
|
110
|
+
Use confidence conservatively:
|
|
111
|
+
|
|
112
|
+
- `high`: manifests, source entrypoints, build commands, and release configuration agree;
|
|
113
|
+
- `medium`: several code/manifests agree but release or ownership evidence is missing;
|
|
114
|
+
- `low`: based mainly on directory names, dependencies, notes, or unverified conventions.
|
|
115
|
+
|
|
116
|
+
If signals conflict, report a mixed profile rather than forcing one classification.
|
|
117
|
+
|
|
118
|
+
## 6. Maintenance implications
|
|
119
|
+
|
|
120
|
+
Use the profile to drive—not replace—judgment:
|
|
121
|
+
|
|
122
|
+
- choose stack-correct build and test commands;
|
|
123
|
+
- protect active and canonical caches while pruning stale isolated build roots;
|
|
124
|
+
- preserve framework-reserved layouts;
|
|
125
|
+
- trace cross-language and generated contracts;
|
|
126
|
+
- identify which modules can enforce visibility and which are only folders;
|
|
127
|
+
- separate agent/tool configuration overlays from shipped architecture;
|
|
128
|
+
- decide whether a sibling repository is an independent product or historical source;
|
|
129
|
+
- set split/merge triggers based on consumers, releases, owners, security, and measured change coupling.
|
|
130
|
+
|
|
131
|
+
For mixed native products, explicitly map: native app source, daemon/service source, shared protocol, generated/bundled artifact, writer command, parity test, and final integration build. This prevents a bundled runtime from silently becoming a second canonical source.
|
|
132
|
+
|
|
133
|
+
## Source basis
|
|
134
|
+
|
|
135
|
+
- Cargo workspace behavior and shared outputs: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
|
|
136
|
+
- Android module benefits and granularity pitfalls: https://developer.android.com/topic/modularization
|
|
137
|
+
- Apple local-package organization guidance: https://developer.apple.com/documentation/xcode/organizing-your-code-with-local-packages
|
|
138
|
+
- Claude Code project subagents as repository tooling overlay: https://code.claude.com/docs/en/sub-agents
|