riskrails 0.0.0-stage → 3.0.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 +20 -0
- package/.claude-plugin/marketplace.json +21 -0
- package/.claude-plugin/plugin.json +21 -0
- package/.codex-plugin/plugin.json +37 -0
- package/LICENSE +21 -0
- package/README.md +868 -2
- package/agents/Explore.md.tmpl +21 -0
- package/agents/ai-discovery.md.tmpl +65 -0
- package/agents/ai-reviewer.md.tmpl +144 -0
- package/agents/architect.md.tmpl +22 -0
- package/agents/log-reader.md.tmpl +23 -0
- package/agents/superseded/reviewer.md +16 -0
- package/ai/agents/context.md +59 -0
- package/ai/agents/discovery.md +56 -0
- package/ai/agents/implementer.md +67 -0
- package/ai/agents/manager.md +5 -0
- package/ai/agents/planner.md +71 -0
- package/ai/agents/release.md +43 -0
- package/ai/agents/reviewer.md +106 -0
- package/ai/agents/risk.md +46 -0
- package/ai/agents/security.md +53 -0
- package/ai/agents/tester.md +30 -0
- package/ai/policies/context-management.md +85 -0
- package/ai/policies/database.md +42 -0
- package/ai/policies/git.md +35 -0
- package/ai/policies/model-routing.md +112 -0
- package/ai/policies/production.md +42 -0
- package/ai/policies/release.md +48 -0
- package/ai/policies/review-economy.md +209 -0
- package/ai/policies/tooling.md +105 -0
- package/ai/templates/architecture-decision.md +29 -0
- package/ai/templates/impact-report.md +35 -0
- package/ai/templates/implementation-plan.md +54 -0
- package/ai/templates/release-report.md +52 -0
- package/ai/templates/review-report.md +30 -0
- package/ai/templates/task-context.md +18 -0
- package/ai/using-riskrails.md +60 -0
- package/ai/workflows/bugfix.md +4 -0
- package/ai/workflows/feature.md +4 -0
- package/ai/workflows/hotfix.md +4 -0
- package/ai/workflows/investigation.md +4 -0
- package/ai/workflows/refactoring.md +4 -0
- package/ai/workflows.md +81 -0
- package/bin/claude-1m +37 -0
- package/bin/riskrails.js +1358 -0
- package/codex/hooks.json +103 -0
- package/hooks/AGENTS.md +6 -0
- package/hooks/CLAUDE.md +6 -0
- package/hooks/ai-git-guard-defaults.json +28 -0
- package/hooks/ai-guard.py +92 -0
- package/hooks/ai-path-guard-defaults.json +48 -0
- package/hooks/cap-large-read.py +113 -0
- package/hooks/codex-hooks.json +103 -0
- package/hooks/context-guard.py +612 -0
- package/hooks/guard/__init__.py +1 -0
- package/hooks/guard/common.py +633 -0
- package/hooks/guard/ere.py +592 -0
- package/hooks/guard/git.py +245 -0
- package/hooks/guard/paths.py +1374 -0
- package/hooks/guard/scope.py +387 -0
- package/hooks/hooks.json +122 -0
- package/hooks/lib/ai-hook-common.sh +285 -0
- package/hooks/project-scaffold.py +292 -0
- package/hooks/project-scaffold.sh +14 -0
- package/hooks/runtime-gate.py +1167 -0
- package/instructions/routing.md +137 -0
- package/instructions/runtimes.json +48 -0
- package/instructions/stub.md +93 -0
- package/package.json +13 -4
- package/profiles/balanced-max.json +14 -0
- package/profiles/codex-balanced-max.json +97 -0
- package/profiles/codex-plus.json +96 -0
- package/profiles/codex-pro.json +96 -0
- package/profiles/max.json +77 -0
- package/profiles/max20.json +23 -0
- package/profiles/pro.json +74 -0
- package/scripts/ai-path +104 -0
- package/scripts/merge-codex-config.py +227 -0
- package/scripts/render-codex-agents.py +185 -0
- package/scripts/resolve-profile.py +128 -0
- package/settings.common.json +89 -0
- package/settings.gate.json +64 -0
- package/skills/AGENTS.md +6 -0
- package/skills/CLAUDE.md +6 -0
- package/skills/ai-audit/SKILL.md +9 -0
- package/skills/ai-audit/templates/ai-sdlc-adoption-plan.md +87 -0
- package/skills/ai-audit/templates/play-scoring-rubric.md +122 -0
- package/skills/ai-init/SKILL.md +9 -0
- package/skills/ai-init/scaffold-ai.sh +10 -0
- package/skills/ai-init/templates/.ai/AGENTS.md +67 -0
- package/skills/ai-init/templates/.ai/VERSION +1 -0
- package/skills/ai-init/templates/.ai/policies/coding.md +32 -0
- package/skills/ai-init/templates/.ai/policies/path-guard.json +5 -0
- package/skills/ai-init/templates/.ai/policies/risk-tiers.json +628 -0
- package/skills/ai-init/templates/.ai/policies/risk-tiers.md +180 -0
- package/skills/ai-init/templates/.ai/policies/safety.md +64 -0
- package/skills/ai-init/templates/.ai/policies/security.md +69 -0
- package/skills/ai-init/templates/.ai/policies/testing.md +118 -0
- package/skills/ai-init/templates/.ai/policies/weight.json +48 -0
- package/skills/ai-init/templates/.ai/policies/weight.md +32 -0
- package/skills/ai-init/templates/.ai/project/architecture.md +40 -0
- package/skills/ai-init/templates/.ai/project/business-rules.md +21 -0
- package/skills/ai-init/templates/.ai/project/dependencies.md +27 -0
- package/skills/ai-init/templates/.ai/project/glossary.md +8 -0
- package/skills/ai-init/templates/.ai/project/initial-assessment.md +8 -0
- package/skills/ai-init/templates/.ai/project/integrations.md +20 -0
- package/skills/ai-init/templates/.ai/project/known-risks.md +16 -0
- package/skills/ai-init/templates/.ai/project/legacy.md +28 -0
- package/skills/ai-init/templates/.ai/project/modules.md +18 -0
- package/skills/ai-init/templates/.ai/project/overview.md +27 -0
- package/skills/ai-init/templates/.ai/reports/.gitkeep +0 -0
- package/skills/ai-init/templates/.ai/rules/README.md +24 -0
- package/skills/ai-init/templates/.ai/state/README.md +64 -0
- package/skills/ai-init/templates/AGENTS.block.md +13 -0
- package/skills/ai-init/templates/AGENTS.minimal.md +23 -0
- package/skills/ai-init/templates/CLAUDE.block.md +13 -0
- package/skills/ai-init/templates/CLAUDE.minimal.md +23 -0
- package/skills/ai-init/templates/GEMINI.block.md +13 -0
- package/skills/ai-init/templates/GEMINI.minimal.md +23 -0
- package/skills/ai-init/templates/gitignore.snippet +5 -0
- package/skills/ai-init/templates/junie-guidelines.block.md +13 -0
- package/skills/ai-init/templates/junie-guidelines.minimal.md +23 -0
- package/skills/ai-status/SKILL.md +9 -0
- package/skills/ai-task/SKILL.md +9 -0
- package/skills/ai-task/sensors.py +424 -0
- package/skills/ai-task/state.py +4310 -0
- package/skills/ai-task/weight.py +300 -0
- package/skills/project-init/SKILL.md +9 -0
- package/skills/project-init/templates/AGENTS.md +27 -0
- package/skills/project-init/templates/CLAUDE.md +27 -0
- package/skills/project-init/templates/GEMINI.md +27 -0
- package/skills/project-init/templates/adr.md +29 -0
- package/skills/project-init/templates/constitution.md +15 -0
- package/skills/project-init/templates/gitignore.snippet +4 -0
- package/skills/project-init/templates/intent.md +35 -0
- package/skills/project-init/templates/junie-guidelines.md +27 -0
- package/skills/project-init/templates/memory-README.md +21 -0
- package/skills/project-init/templates/plan.md +25 -0
- package/skills/project-init/templates/project-config.toml +18 -0
- package/skills/project-init/templates/project-settings.json +5 -0
- package/skills/project-init/templates/sdlc-README.md +24 -0
- package/skills/project-init/templates/spec.md +30 -0
- package/skills/project-update/SKILL.md +9 -0
- package/skills/project-update/adopt-map.json +91 -0
- package/skills/project-update/adopt.py +2211 -0
- package/skills/project-update/history/blobs/01c32f8ff038787e49070b8b0eb160eb4b4704a020b050678292051fc73a4fc6 +106 -0
- package/skills/project-update/history/blobs/06e9d52c1720fca412803e3b07c4b228ff113e303f4c7ab94665319d832bbfb7 +1 -0
- package/skills/project-update/history/blobs/099f3debfe1ce808502661de4a31c3a349f149f5fe7246691d41a4966179a63c +5 -0
- package/skills/project-update/history/blobs/0b0a7e354e1d1c86351700d5fb63d16426536875f5fecb759d15e326b7f30289 +180 -0
- package/skills/project-update/history/blobs/0bb70da941a7fc0ae2a0dbfcf06441a40f0653b3b9c573328ad9fb6d66f2e133 +27 -0
- package/skills/project-update/history/blobs/0cb92e5048badfab2cb78ff030c824f8cccaf45b83b8587bcb20ab795e8d36ae +89 -0
- package/skills/project-update/history/blobs/0e221e9337f050ffe0e834be12c1a5b46d82dec446b57ebcfbaa0ec8996bd54c +372 -0
- package/skills/project-update/history/blobs/0ec82daa4a17bcd5bf9d4df20ce90fd09312d3d439f7064baf7c8dd77a6c44fc +27 -0
- package/skills/project-update/history/blobs/0f00cbb216a20c7f67749ffb88835bcaaa29cc1a4c15d468edb3c6039bd291d3 +53 -0
- package/skills/project-update/history/blobs/0fab5540c131185e2ccdc10baad52783d7d4ff164843cae7f1b7f310c7d102ec +73 -0
- package/skills/project-update/history/blobs/10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 +1 -0
- package/skills/project-update/history/blobs/1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 +1 -0
- package/skills/project-update/history/blobs/12288b1b5573ee6e9e18eccdc6f5ae6cef9bee7576f79fde175ad1ac53dae134 +145 -0
- package/skills/project-update/history/blobs/17f88e362fa19b7f2741ea1393164dc75b9c300b8727322f91fe205a985e088f +5 -0
- package/skills/project-update/history/blobs/17fa7392d1466e286d5aa83a19e364835c1977750ae1f186aec59e2046d688ea +106 -0
- package/skills/project-update/history/blobs/1987654b78c747f378109dbde1d51c4f31fd0eabc878ff16b3bcfaeaf99c8ff4 +28 -0
- package/skills/project-update/history/blobs/19b1a6390e96136619d23bc2ef9afed8f15e62107de7c1052bc5ea23e5bb5692 +64 -0
- package/skills/project-update/history/blobs/1a8995e5f7e51b5be74fca82551e5d9e4d970c546d9fd6eecb6809a7f6af8821 +69 -0
- package/skills/project-update/history/blobs/1ad77786ae3fed570aafe7612eac1d94ef1f52c3106fd64733951592dea759ff +62 -0
- package/skills/project-update/history/blobs/1b554eff73a270086f8cf8cba73f7d9ce162c6b6b9c288b822db36841b8a9228 +16 -0
- package/skills/project-update/history/blobs/1c2c3e5bbb132a152163ebeb678d57f0f7162a56ea92b84acc43cd2dedd4a935 +20 -0
- package/skills/project-update/history/blobs/1fdc406be22d9ea39f41e738c6bbd36a31ef4adc84ece06cfceebddaa86c9798 +75 -0
- package/skills/project-update/history/blobs/21319ce04158178b1d66ee8514e32c43bb1b4cd9cee11a456a9a863a5998c6ce +53 -0
- package/skills/project-update/history/blobs/28a0455a7b17204171c49891c39043040c8608f4e6f04caf09de3fe8aea68553 +27 -0
- package/skills/project-update/history/blobs/30b6dcbdcfbb8e9223af11edacc387b1102868261bbe7051c2d85ad1a18384e5 +27 -0
- package/skills/project-update/history/blobs/31bb922076c8dadb4a84bb6a03d331dafc7157893aaf2f92b13792270fbece9b +56 -0
- package/skills/project-update/history/blobs/3775eed295a794dda73b14f88af70bc2c99b5590f81da53f165423e4337dceed +13 -0
- package/skills/project-update/history/blobs/3a492555cac3198136e239539466fb768cf672d5a972f5afd7d57c038d3cfed6 +104 -0
- package/skills/project-update/history/blobs/3dd55bf5f9d9471c68af3353166da11593a11e639f7557397ce46787291fa629 +32 -0
- package/skills/project-update/history/blobs/3f40640377c8501ecb50dc044fc7951a9b96caac5335e92e0d54d0c1764de8f2 +30 -0
- package/skills/project-update/history/blobs/40ac73f706ba7d2578627f420076cdb9fa6aa146e16d0da6c6a5c63f65c2b03c +66 -0
- package/skills/project-update/history/blobs/4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 +1 -0
- package/skills/project-update/history/blobs/465bd61887bae3c68b751ea02af09d00f570086617ff8e1362acf6ed0868396b +39 -0
- package/skills/project-update/history/blobs/4d1f9073276936834747199393159f1badc0277b5bb394f78f408d52c36c4e35 +13 -0
- package/skills/project-update/history/blobs/4e67b352e2d7a29a83c4fa9f80a0d3ed9272da0f976a084c344b55e349f741b2 +75 -0
- package/skills/project-update/history/blobs/504ac6f9c5efb8ecb404bb62fbb08c819e8cff0c6b522efeeeb383cb30d2778e +18 -0
- package/skills/project-update/history/blobs/514c8c4bc97f23fe2739954bad34024922464f54b3a057f00ac54d631a4d875d +26 -0
- package/skills/project-update/history/blobs/53376d1fca268d8fdb59a5a0d0e0a4fe2d3bc2a7689a79c00a227f41bd5a2165 +27 -0
- package/skills/project-update/history/blobs/53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3 +1 -0
- package/skills/project-update/history/blobs/54eefe3d8cd6cd1ed56764e7bd412a4c919a28fc64b56b69dcafeecd7a921678 +67 -0
- package/skills/project-update/history/blobs/5551499579a0bceb74a79731d30213b1ddf9168b92f6d3dd0aecad91d8aff464 +23 -0
- package/skills/project-update/history/blobs/5c0619c1ee059477c9d92cf70b72da5d238d9176fc27ab0d38104ecba795624c +3 -0
- package/skills/project-update/history/blobs/5cbaaabe2c8d0e24582877aab05eeaaf4d53cb5e9515e81cd18368d13d2fe79e +40 -0
- package/skills/project-update/history/blobs/5ccacb666c22a8b6401563bf69ab0ed6bd1df7c93aeb46eacff7d2ff8653cd40 +27 -0
- package/skills/project-update/history/blobs/5e38d93c4f82300cc5d331f4ce3022d2872db15d108ae23bf33e2169a19b42f2 +15 -0
- package/skills/project-update/history/blobs/616a6da3c59073926c5ece428efa251fbe539d25a53bcf50be67522f44848368 +628 -0
- package/skills/project-update/history/blobs/61d0e67d59802a695f546e0a77e11a4daf1fafe77f50bead5f94bc7f08fb8457 +30 -0
- package/skills/project-update/history/blobs/62010250361ebe8644722d60397ce01e9b8abbfd497ede2c9f79b2ae4bce465d +374 -0
- package/skills/project-update/history/blobs/63c6dd07369cd71fad62a22f0ce352792cac0ed5c2998f8e7a4f4d0a64db7803 +102 -0
- package/skills/project-update/history/blobs/65acd4be95c695d0cc20cb5f4faffe0f44e0873b385c124140b223c41328cb56 +13 -0
- package/skills/project-update/history/blobs/664937c4293d82108a19302d4a55d15e3e1686091e5f3e40fd5510dca2d10af5 +27 -0
- package/skills/project-update/history/blobs/6a89cada6dc06bf5e0622a89fe7a8a6745e73c0e01505b7efe462f97d81c0956 +32 -0
- package/skills/project-update/history/blobs/6af1b12f814384e517e8f09131b0524930ac1c849350db765d8a77c7a59905b9 +8 -0
- package/skills/project-update/history/blobs/6b30b86994c130697aea047256ef20ef724f6fea42a4490dc220919e57453659 +354 -0
- package/skills/project-update/history/blobs/6c7b1b9b733f3ec7d8e038e62f484419c5e888cd094f64c1f1471b9cd9bb3fe8 +571 -0
- package/skills/project-update/history/blobs/6f098b31327fe52bfe1418b9f53af40e8734f027c7f1e21b02c1db1fabacdf15 +68 -0
- package/skills/project-update/history/blobs/70850fc7be7307455233177c1fd85e7f1d94c36430a0efc8e7f205b350505226 +31 -0
- package/skills/project-update/history/blobs/732b736e9877263621a0d616d8c466dd3a77eda5092db4e1def0dfb09c573e2a +51 -0
- package/skills/project-update/history/blobs/74549e7a525fdbce4a697fdabfab9b648730118b236123028820b5358002b404 +177 -0
- package/skills/project-update/history/blobs/7578025c0ce0a64dd37fe4c999541db5681199763df8b373ed0bfba11e2f581e +17 -0
- package/skills/project-update/history/blobs/77bd4e864d23176abc6bb8af8fba77775d88a0b135f5c985574d796a396d431d +76 -0
- package/skills/project-update/history/blobs/7cc03a94f8421069d92b6d89503beaa045d8162c303abfd996b2c019c9daad57 +27 -0
- package/skills/project-update/history/blobs/7de1555df0c2700329e815b93b32c571c3ea54dc967b89e81ab73b9972b72d1d +1 -0
- package/skills/project-update/history/blobs/7eee4ea9f6e778ff691c263621e717c021505b86386034cc64f8ebbfc9d8fe65 +13 -0
- package/skills/project-update/history/blobs/7f3859c34035fe32abf937eebdd7240ac72ab32d254286cff7d939cf0cf6eaef +48 -0
- package/skills/project-update/history/blobs/80cf708a42ad6d7851f4063e0d9127b850f274dcb6633c9a9773d01173d437f8 +628 -0
- package/skills/project-update/history/blobs/815d78ce95d18454cf0842335f81755bf3aceb87ee9d2197e121d3ff734cd2b5 +13 -0
- package/skills/project-update/history/blobs/84c3815fd46498443568285c8d839257ecb91b6f0639690cbdc38ba382fc349d +569 -0
- package/skills/project-update/history/blobs/89e7198e1dd42778a6a9af6c7381216aecf561a366426bd914bc57f099ddd390 +10 -0
- package/skills/project-update/history/blobs/8a839b7c0f1ec1cc6217d5275b0cd13860a888eb23eef1a0792a4e78f2bd9faf +35 -0
- package/skills/project-update/history/blobs/8ad13d2ca4504cfd8e4ab7fe3a49129b228d9979461f0f758a71daeec78b6ae1 +118 -0
- package/skills/project-update/history/blobs/8c97cfd63ee3dfba7aa61d9104e87fdbb086d3bf46cf648d349636912836c6d9 +18 -0
- package/skills/project-update/history/blobs/8fc1a5443a2b52a7a5945e2b972579202bd5e3f8c881a22cc1c97b52b7b2da6b +4 -0
- package/skills/project-update/history/blobs/9272fe1cc7ffa1805756c8b80bd14e8de69d03899b94fb0f49db6aa0bcb53b90 +33 -0
- package/skills/project-update/history/blobs/930ccfac4ba1306341e32279278410b451246a52223c42e0597b5ee83706ff00 +48 -0
- package/skills/project-update/history/blobs/933629cd5c872a11837046b13051a9b02bbc1033e3ba74f41966af2ed4edee5d +23 -0
- package/skills/project-update/history/blobs/962fd396da83337c3fadcc642d45e98429b18e79bb81f58915baaf2b9bffd3c5 +27 -0
- package/skills/project-update/history/blobs/965a03be82000866cb5275acda18ebb2172c9a50f0011df2fa475f74a1124c35 +3 -0
- package/skills/project-update/history/blobs/990a23740f15f50ec90f37bcabd1b1a8eedf102922a949343fdaf41a9fee07fe +27 -0
- package/skills/project-update/history/blobs/a00db51859bb7943174017a34b4a100f98e53d6c3b32f73d8f87d6072016a709 +5 -0
- package/skills/project-update/history/blobs/a1167f89faf809477a967aeefe514f443be57502f0afc832039a28ac5575216a +64 -0
- package/skills/project-update/history/blobs/a13cb0db5372c3ce3e71470165c17a2db76e7a2415717ba27fccd1b0593c61c4 +66 -0
- package/skills/project-update/history/blobs/a1558cb6add0a4d6264757c29ef7172c74626fe0034973983a3a39459cf9a1cb +106 -0
- package/skills/project-update/history/blobs/a1ed0b4f3b73b1a29adfdf0d4d495553ba48707aa5a676496ebc28f993a57dcb +24 -0
- package/skills/project-update/history/blobs/a349aaad234825ea429df33cafb7928579c0cb5b1801f0a237e103aa8d159642 +29 -0
- package/skills/project-update/history/blobs/a5ef05d1ec2323ffd61ae60f98f3dacd212cae507b798d7421c3a9f418806506 +49 -0
- package/skills/project-update/history/blobs/a883fab03be6557be0a4205f6e025ee5571098b0931f3bb60f28a9028bb87353 +25 -0
- package/skills/project-update/history/blobs/a8cf15b33301a76e1d899064d5cb95914cc49412ab223f00394b702c4a4508f1 +24 -0
- package/skills/project-update/history/blobs/aa67a169b0bba217aa0aa88a65346920c84c42447c36ba5f7ea65f422c1fe5d8 +1 -0
- package/skills/project-update/history/blobs/ab0ce5062b41aaff12b0525d56b42de6b9dee9ce9e1de2938f72675435013c6a +18 -0
- package/skills/project-update/history/blobs/ab13c708e91c1de2adbc9ccdb1caec5c320197708bcaaa6d5cfd30c18a7dac34 +21 -0
- package/skills/project-update/history/blobs/ad4c4f81855725f7fe6e0e3d8f557df0de5fc063465d428546f69c54020c69d9 +64 -0
- package/skills/project-update/history/blobs/ae49c96abe45e56e88ae5e28e046212f7114d6413785cbe998f692d2914792be +24 -0
- package/skills/project-update/history/blobs/ae9a22907ba9acbb7e80fac1ba4e3d1ff09e5f1df5c4456afb9099d7090fcaa6 +64 -0
- package/skills/project-update/history/blobs/b486fe10685d437b73c8fa2a3141621e29c36d70ec88b2a36e4573133504507b +30 -0
- package/skills/project-update/history/blobs/b7b697fc987617449ba10634f12f70326281cc182f8b7f20f9e047a75f3f182b +17 -0
- package/skills/project-update/history/blobs/b80e6b2b93a4b8a5a0f8eabc2a745247ad53df3235bb84c63fdd3f10ccc1ae99 +21 -0
- package/skills/project-update/history/blobs/b81eabd9248527e9abe1b6df7cf75ac772236b049008190d2a235e2eb22a931f +23 -0
- package/skills/project-update/history/blobs/b9da99bf05f0f08663469288f694f153fb6f2d806cdedf2cdb10cee3d3722295 +18 -0
- package/skills/project-update/history/blobs/ba9bb685dc2bb6de0ed5a8d601ef7ecedb517bb737565f75f6d4fff4ab4cd79c +24 -0
- package/skills/project-update/history/blobs/be29b8681b3de26b0120209971aaf0fab05c77baf8a4d65198929ef611f4fc55 +23 -0
- package/skills/project-update/history/blobs/be8c1556e8b0de1ce0f0fb0ca39f9f3b56ced57116b65a2812421c77cfff7585 +103 -0
- package/skills/project-update/history/blobs/c076d603cffc731823d2acf096bcc17cca1d99eee24b0aa313776d7d01571b4f +13 -0
- package/skills/project-update/history/blobs/c735911eb1a744f78213a9f7577b425c1605843f6d05fed798d7f41b47fa1e0c +13 -0
- package/skills/project-update/history/blobs/c9152d6dc2a5ddaadd870611675a24f89b442e2831a9207a14f2d438788553b0 +27 -0
- package/skills/project-update/history/blobs/c9ddacab2a6943af94c927799ba314877c1f19d40949e927c2d3825689005288 +13 -0
- package/skills/project-update/history/blobs/ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356 +1 -0
- package/skills/project-update/history/blobs/cb2178079b6eda906eee8f3510b72d5c03ae5fe2195f5ee3c859756dd42f9b32 +84 -0
- package/skills/project-update/history/blobs/cb8b8328efd818835822dc60537e3ecdb648d4ca04e21a7c47c88bf1198a5474 +63 -0
- package/skills/project-update/history/blobs/cc808d5b940109f1703abfb3ca0334a3fcfd34267feefb2323627d0decc8b89a +52 -0
- package/skills/project-update/history/blobs/cdc2432f3581ad9dbf5bc215de1e0cb0b49a44e1303b4222a4df4c72d0e96cc3 +27 -0
- package/skills/project-update/history/blobs/d7b96902bf9d2078df1e09901327b02f565b174777af34a2b24be660cad81d01 +33 -0
- package/skills/project-update/history/blobs/d8011741c086a124cf69b2988e0452ee2eb4ccccc6a6696b02069ddf7db35bd1 +330 -0
- package/skills/project-update/history/blobs/d9abea96dbe584fd77c27d5ed0523eb20d048f2d146e4909d16b2a7948db38c5 +8 -0
- package/skills/project-update/history/blobs/da848b831443484c831fa630666c004e07c1c9669dd247e8e4066979c8599080 +13 -0
- package/skills/project-update/history/blobs/da90fc7cceda6ced501d32924126593b9bf90c59fc067abab9abbc68d43be8b2 +97 -0
- package/skills/project-update/history/blobs/dd174b27e5b3a2414d0605484f4e92423e2553931263f05ef15677b4aa389bab +72 -0
- package/skills/project-update/history/blobs/ddc088b8a289151c50bf073797c245c254939217970e6d58b75c3d7193b12466 +27 -0
- package/skills/project-update/history/blobs/de0685f9bc2ac22c1b0178d6a1fc8d07fa23451f29d0c36571cbf85c69716fc2 +13 -0
- package/skills/project-update/history/blobs/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +0 -0
- package/skills/project-update/history/blobs/e584f106c4e65b1bdce69b78d05713347717bdc2228998982313e3eb15b52943 +76 -0
- package/skills/project-update/history/blobs/e639e99d3f59015dc21472de081ca7766231135399ac3a6f439e841e458251f4 +32 -0
- package/skills/project-update/history/blobs/e66a657a3977884b69435b51f77782e48f37f57c865b6c9ba294e8796b37c378 +101 -0
- package/skills/project-update/history/blobs/e7c01b6590c4e308cd2681beaa3b2242cd1e10a5ba851d9f756f4d49d301d144 +22 -0
- package/skills/project-update/history/blobs/e7cc8b00983d6022206aa576187a2d4dccc656aaea41b26dc32123b4b064e965 +349 -0
- package/skills/project-update/history/blobs/e8df28f07cb784d768bcafbced70fd15771afa61dbec7dc4c1c3f858f9002fec +13 -0
- package/skills/project-update/history/blobs/ebbc147c88c417b18ddc4d0530d87e4aa26b0659e085339f45015cf0be2b61a5 +579 -0
- package/skills/project-update/history/blobs/ee7c8321fff228d967c5d200c316967195d93a26196383f57f474e837b1b3d33 +13 -0
- package/skills/project-update/history/blobs/f00317bd27dc8184222e4b8ffe97f27e72d442d36a2bd67552f57f802590dd79 +25 -0
- package/skills/project-update/history/blobs/f0b5c2c2211c8d67ed15e75e656c7862d086e9245420892a7de62cd9ec582a06 +1 -0
- package/skills/project-update/history/blobs/f12f2ac77324b23aa9ef2c5096a2c08788570b32b0c0322671b0889e7a80d8bd +18 -0
- package/skills/project-update/history/blobs/f5594606990239af05aa73ba00efc8292c3ecfe0be408c9acd343abcbc9d2155 +156 -0
- package/skills/project-update/history/blobs/fce1ab62e4626119169fb2324a06526805227076359c844690f6374ae28e6804 +51 -0
- package/skills/project-update/history/blobs/fe513647c66e8883b326ea884a7e9cb045ce54c49b03d2e75a0b73c4756c423e +67 -0
- package/skills/project-update/history/blobs/fff19a00920c2d001d1614d0d7375c89e1e8c062d6de1f01501c24773acef973 +148 -0
- package/skills/project-update/history/index.json +410 -0
- package/skills/project-update/migrations/0001_schema_version.py +13 -0
- package/skills/project-update/migrations/0002_task_journal.py +123 -0
- package/skills/project-update/migrations/0003_context_diet.py +65 -0
- package/skills/project-update/migrations/0004_deterministic_gates.py +57 -0
- package/skills/project-update/migrations/0005_runtimes_and_plans.py +35 -0
- package/skills/project-update/migrations/0006_shared_files.py +154 -0
- package/skills/project-update/migrations/0007_weight_model.py +188 -0
- package/skills/project-update/migrations/0008_renames.py +43 -0
- package/skills/project-update/migrations/README.md +60 -0
- package/skills/project-update/migrations/__init__.py +181 -0
- package/skills/project-update/render_instructions.py +615 -0
- package/skills/project-update/update.py +1676 -0
- package/skills/rr-build/SKILL.md +185 -0
- package/skills/rr-plan/SKILL.md +100 -0
- package/skills/rr-review/SKILL.md +99 -0
- package/skills/rr-setup/SKILL.md +244 -0
- package/skills/rr-setup/scaffold_ai.py +303 -0
- package/skills/rr-setup/setup.py +541 -0
- package/skills/rr-ship/SKILL.md +110 -0
- package/skills/rr-spec/SKILL.md +108 -0
- package/skills/rr-status/SKILL.md +73 -0
- package/skills/rr-status/status.py +171 -0
- package/skills/sdlc-intent/SKILL.md +9 -0
- package/skills/sdlc-plan/SKILL.md +9 -0
- package/skills/sdlc-spec/SKILL.md +9 -0
- package/skills/usage-report/SKILL.md +10 -0
- package/skills/usage-report/prices.json +41 -0
- package/skills/usage-report/usage-report.py +893 -0
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "SOURCE OF TRUTH for risk classification. /ai-task reads this file to decide which stages are mandatory, which model tier plans and reviews the change, whether a human must approve before anything leaves the branch, and — through pipeline_profile — which stages the main session does inline and which go to a subagent. risk-tiers.md is a human-readable mirror of this file; when they disagree, this file wins. Adjust the triggers to the project after /ai-init — the defaults are generic.",
|
|
3
|
+
"version": 3,
|
|
4
|
+
"pipeline_profile": "solo",
|
|
5
|
+
"pipeline_profiles": {
|
|
6
|
+
"_comment": "WHO runs a stage, not WHETHER it runs: stages_required is fixed per tier, the profile decides which of them are delegated to a subagent and which the main session does inline in a few lines. 'solo' is for one developer who knows the codebase and has two modes. DIRECT (T0–T2): no pipeline ceremony — the session names the files, edits, runs each step's own scoped tests, then the verification command once at the end and the e2e suite once after it, fixing every failure as one batch; the only subagents are cheap readers (Explore, log-reader) and, at T2, one review on the BALANCED model. SDLC (T3–T5): the full pipeline with delegated plan, plan review, adversarial review, security review and release report, on the STRONG and EXPERT tiers. 'team' is the fully delegated pipeline. Switch by editing pipeline_profile.",
|
|
7
|
+
"solo": {
|
|
8
|
+
"delegated_stages": {
|
|
9
|
+
"T0": [],
|
|
10
|
+
"T1": [],
|
|
11
|
+
"T2": [
|
|
12
|
+
"adversarial_review"
|
|
13
|
+
],
|
|
14
|
+
"T3": [
|
|
15
|
+
"adversarial_review"
|
|
16
|
+
],
|
|
17
|
+
"T4": [
|
|
18
|
+
"plan",
|
|
19
|
+
"plan_review",
|
|
20
|
+
"adversarial_review",
|
|
21
|
+
"security_review",
|
|
22
|
+
"release_report"
|
|
23
|
+
],
|
|
24
|
+
"T5": [
|
|
25
|
+
"discovery",
|
|
26
|
+
"impact_analysis",
|
|
27
|
+
"plan",
|
|
28
|
+
"plan_review",
|
|
29
|
+
"adversarial_review",
|
|
30
|
+
"security_review",
|
|
31
|
+
"release_report"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"delegate_anyway_when": [
|
|
35
|
+
"the developer says the area is unfamiliar, or the request names no entry point and grep does not find one within a few calls (Explore on FAST, then ai-discovery if Explore returned nothing usable)",
|
|
36
|
+
"the inline context summary has an UNKNOWN the plan depends on (ai-discovery, one agent)",
|
|
37
|
+
"the risk tier is T3 or above and not obvious from the trigger table (ai-risk on STRONG)",
|
|
38
|
+
"the verification command prints more than ~40 lines (log-reader on FAST), or the test setup is unfamiliar (ai-tester on FAST)",
|
|
39
|
+
"at T3, the change crosses a module the developer does not own, or plan mode leaves a (blocking) question open (ai-planner on STRONG, one call)"
|
|
40
|
+
],
|
|
41
|
+
"review_model": {
|
|
42
|
+
"T2": "BALANCED",
|
|
43
|
+
"T3": "STRONG",
|
|
44
|
+
"T4": "STRONG",
|
|
45
|
+
"T5": "STRONG"
|
|
46
|
+
},
|
|
47
|
+
"release_report": "T0–T2: the commit message body; T3: the same short form, also appended to task.md; T4 and T5: ai-release",
|
|
48
|
+
"plan": {
|
|
49
|
+
"T0": "none",
|
|
50
|
+
"T1": "none",
|
|
51
|
+
"T2": "three to five lines in the conversation, registered through `state.py quick`; plan mode only when the change spans several modules",
|
|
52
|
+
"T3": "the session, in plan mode: numbered steps with their files, the characterization tests first, a one-line rollback; the human accepting plan mode is the plan approval, then `state.py quick --tier T3`",
|
|
53
|
+
"T4": "ai-planner on STRONG, in plan mode",
|
|
54
|
+
"T5": "ai-expert"
|
|
55
|
+
},
|
|
56
|
+
"test": "three scopes. During a step: only the tests the plan named for that step (`step_test_command` scoped to its files), fixed inside the step before `state.py step-done` — never the full suite, never e2e. After the LAST step: `verify_command` once, to the end, no fail-fast flag, output through tail -40 or log-reader; every failure is collected and classified first, every NEW REGRESSION is fixed in ONE `state.py remediate` step and the command runs once more, at most two rounds. At the END of the task, after the full suite is green: `e2e_command` once, never per step, skipped at T0/T1 and when no e2e-covered flow can be reached (say which).",
|
|
57
|
+
"e2e": "once per task, at the end, after verify_command is green and before the adversarial review. T0/T1: none. T2+: required when the change can reach a flow the e2e suite covers, otherwise one line saying why it cannot. T4/T5: always, and its result goes in the release report. Record it with `state.py set e2e_status <passing|failing|not_applicable|not_run>`.",
|
|
58
|
+
"triage": "T0/T1: no state file. T2 and T3: `state.py quick` records discovery, context, impact, risk and the one-step plan in a single call (at T3 after the human approved the plan). T4+: the stages run and are recorded one at a time.",
|
|
59
|
+
"artifacts": {
|
|
60
|
+
"T0": "none — the commit message",
|
|
61
|
+
"T1": "none — the commit message",
|
|
62
|
+
"T2": "none — the state archive and the commit message",
|
|
63
|
+
"T3": "task.md with the plan, the review verdict and the release short form",
|
|
64
|
+
"T4": "the full set",
|
|
65
|
+
"T5": "the full set"
|
|
66
|
+
},
|
|
67
|
+
"mode": {
|
|
68
|
+
"T0": "direct",
|
|
69
|
+
"T1": "direct",
|
|
70
|
+
"T2": "direct",
|
|
71
|
+
"T3": "direct",
|
|
72
|
+
"T4": "sdlc",
|
|
73
|
+
"T5": "sdlc"
|
|
74
|
+
},
|
|
75
|
+
"direct": {
|
|
76
|
+
"state": "T0/T1: none — the commit message is the record. T2/T3: one `state.py quick` call (init + triage + one-step plan) so the scope guard is armed; `state.py close` at the end (T3: after the human approved the result)",
|
|
77
|
+
"plan": "T0/T1: say which files, in one line. T2: three to five lines in the conversation — steps and files — never a file. T3: the same list written in plan mode, with characterization tests first and a rollback line; the human approves it before any edit",
|
|
78
|
+
"artifacts": "none below T3; T3: task.md",
|
|
79
|
+
"agents": "Explore and log-reader on FAST for reading; ai-implementer on BALANCED for a mechanical pattern-copy step; ai-reviewer on BALANCED once at T2 and on STRONG once at T3 — no ai-planner, no plan-review agent, no ai-release",
|
|
80
|
+
"review": "T0/T1: none. T2: one ai-reviewer on the BALANCED model over the diff, after the tests pass. T3: one ai-reviewer on STRONG after review-gate, plus ai-security only when auth, authorization or personal data is touched. Findings fixed as one batch in a `state.py remediate` step; one scoped re-review only when a BLOCKER was fixed",
|
|
81
|
+
"release": "the commit message body: what changed, verification command and result, rollback"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"team": {
|
|
85
|
+
"delegated_stages": {
|
|
86
|
+
"T0": [
|
|
87
|
+
"discovery"
|
|
88
|
+
],
|
|
89
|
+
"T1": [
|
|
90
|
+
"discovery",
|
|
91
|
+
"test"
|
|
92
|
+
],
|
|
93
|
+
"T2": [
|
|
94
|
+
"discovery",
|
|
95
|
+
"context",
|
|
96
|
+
"impact_analysis",
|
|
97
|
+
"risk_classification",
|
|
98
|
+
"plan",
|
|
99
|
+
"test",
|
|
100
|
+
"adversarial_review",
|
|
101
|
+
"release_report"
|
|
102
|
+
],
|
|
103
|
+
"T3": [
|
|
104
|
+
"discovery",
|
|
105
|
+
"context",
|
|
106
|
+
"impact_analysis",
|
|
107
|
+
"risk_classification",
|
|
108
|
+
"plan",
|
|
109
|
+
"test",
|
|
110
|
+
"adversarial_review",
|
|
111
|
+
"release_report"
|
|
112
|
+
],
|
|
113
|
+
"T4": [
|
|
114
|
+
"discovery",
|
|
115
|
+
"context",
|
|
116
|
+
"impact_analysis",
|
|
117
|
+
"risk_classification",
|
|
118
|
+
"plan",
|
|
119
|
+
"plan_review",
|
|
120
|
+
"test",
|
|
121
|
+
"adversarial_review",
|
|
122
|
+
"security_review",
|
|
123
|
+
"release_report"
|
|
124
|
+
],
|
|
125
|
+
"T5": [
|
|
126
|
+
"discovery",
|
|
127
|
+
"context",
|
|
128
|
+
"impact_analysis",
|
|
129
|
+
"risk_classification",
|
|
130
|
+
"plan",
|
|
131
|
+
"plan_review",
|
|
132
|
+
"test",
|
|
133
|
+
"adversarial_review",
|
|
134
|
+
"security_review",
|
|
135
|
+
"release_report"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"review_model": {
|
|
139
|
+
"T2": "STRONG",
|
|
140
|
+
"T3": "STRONG",
|
|
141
|
+
"T4": "STRONG",
|
|
142
|
+
"T5": "STRONG"
|
|
143
|
+
},
|
|
144
|
+
"test": "step-scoped tests inside each step (`step_test_command`, the tests the plan named for that step); ai-tester once after the last step on `verify_command`, to the end with no fail-fast flag; every failure is fixed as one batch in a `state.py remediate` step, then one more run",
|
|
145
|
+
"e2e": "ai-tester once at the end of the task on `e2e_command`, after verify_command is green; never inside a step"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"tiers": {
|
|
149
|
+
"T0": {
|
|
150
|
+
"label": "documentation only",
|
|
151
|
+
"examples": [
|
|
152
|
+
"comments",
|
|
153
|
+
"README and docs",
|
|
154
|
+
"translation strings with no logic"
|
|
155
|
+
],
|
|
156
|
+
"model_tier": "FAST",
|
|
157
|
+
"stages_required": [
|
|
158
|
+
"discovery",
|
|
159
|
+
"context",
|
|
160
|
+
"implementation"
|
|
161
|
+
],
|
|
162
|
+
"plan_review": false,
|
|
163
|
+
"human_plan_approval": false,
|
|
164
|
+
"adversarial_review": false,
|
|
165
|
+
"security_review": false,
|
|
166
|
+
"release_report": "light",
|
|
167
|
+
"human_approval": false,
|
|
168
|
+
"plan": "none — say which files you will touch, then edit"
|
|
169
|
+
},
|
|
170
|
+
"T1": {
|
|
171
|
+
"label": "isolated low-risk change",
|
|
172
|
+
"examples": [
|
|
173
|
+
"formatting",
|
|
174
|
+
"an isolated admin template",
|
|
175
|
+
"a label or a small presentation tweak"
|
|
176
|
+
],
|
|
177
|
+
"model_tier": "FAST",
|
|
178
|
+
"stages_required": [
|
|
179
|
+
"discovery",
|
|
180
|
+
"context",
|
|
181
|
+
"implementation",
|
|
182
|
+
"test"
|
|
183
|
+
],
|
|
184
|
+
"plan_review": false,
|
|
185
|
+
"human_plan_approval": false,
|
|
186
|
+
"adversarial_review": false,
|
|
187
|
+
"security_review": false,
|
|
188
|
+
"release_report": "light",
|
|
189
|
+
"human_approval": false,
|
|
190
|
+
"plan": "none — say which files you will touch, then edit"
|
|
191
|
+
},
|
|
192
|
+
"T2": {
|
|
193
|
+
"label": "normal feature",
|
|
194
|
+
"examples": [
|
|
195
|
+
"an isolated business feature",
|
|
196
|
+
"a new service with limited blast radius",
|
|
197
|
+
"a non-critical API extension"
|
|
198
|
+
],
|
|
199
|
+
"model_tier": "BALANCED",
|
|
200
|
+
"stages_required": [
|
|
201
|
+
"discovery",
|
|
202
|
+
"context",
|
|
203
|
+
"impact_analysis",
|
|
204
|
+
"risk_classification",
|
|
205
|
+
"plan",
|
|
206
|
+
"implementation",
|
|
207
|
+
"test",
|
|
208
|
+
"adversarial_review"
|
|
209
|
+
],
|
|
210
|
+
"plan_review": false,
|
|
211
|
+
"human_plan_approval": false,
|
|
212
|
+
"adversarial_review": true,
|
|
213
|
+
"security_review": false,
|
|
214
|
+
"release_report": "full",
|
|
215
|
+
"human_approval": false,
|
|
216
|
+
"plan": "a short numbered list of steps with their files, inline"
|
|
217
|
+
},
|
|
218
|
+
"T3": {
|
|
219
|
+
"label": "shared domain behaviour",
|
|
220
|
+
"examples": [
|
|
221
|
+
"shared services",
|
|
222
|
+
"order processing",
|
|
223
|
+
"state machines and workflows",
|
|
224
|
+
"asynchronous processing",
|
|
225
|
+
"an important integration"
|
|
226
|
+
],
|
|
227
|
+
"model_tier": "STRONG",
|
|
228
|
+
"stages_required": [
|
|
229
|
+
"discovery",
|
|
230
|
+
"context",
|
|
231
|
+
"impact_analysis",
|
|
232
|
+
"risk_classification",
|
|
233
|
+
"plan",
|
|
234
|
+
"implementation",
|
|
235
|
+
"test",
|
|
236
|
+
"adversarial_review",
|
|
237
|
+
"release_report"
|
|
238
|
+
],
|
|
239
|
+
"plan_review": false,
|
|
240
|
+
"human_plan_approval": true,
|
|
241
|
+
"adversarial_review": true,
|
|
242
|
+
"security_review": "when the change touches authentication, authorization or personal data",
|
|
243
|
+
"release_report": "light",
|
|
244
|
+
"human_approval": true,
|
|
245
|
+
"characterization_tests": "required before changing legacy behaviour",
|
|
246
|
+
"plan": "plan mode in the session; the human approves the plan before implementation"
|
|
247
|
+
},
|
|
248
|
+
"T4": {
|
|
249
|
+
"label": "critical business or system behaviour",
|
|
250
|
+
"examples": [
|
|
251
|
+
"payments",
|
|
252
|
+
"accounting",
|
|
253
|
+
"taxation",
|
|
254
|
+
"fiscal devices and reporting",
|
|
255
|
+
"authentication",
|
|
256
|
+
"authorization",
|
|
257
|
+
"order state transitions",
|
|
258
|
+
"customer data",
|
|
259
|
+
"external financial systems"
|
|
260
|
+
],
|
|
261
|
+
"model_tier": "STRONG",
|
|
262
|
+
"stages_required": [
|
|
263
|
+
"discovery",
|
|
264
|
+
"context",
|
|
265
|
+
"impact_analysis",
|
|
266
|
+
"risk_classification",
|
|
267
|
+
"plan",
|
|
268
|
+
"plan_review",
|
|
269
|
+
"implementation",
|
|
270
|
+
"test",
|
|
271
|
+
"adversarial_review",
|
|
272
|
+
"security_review",
|
|
273
|
+
"release_report",
|
|
274
|
+
"human_approval"
|
|
275
|
+
],
|
|
276
|
+
"plan_review": true,
|
|
277
|
+
"human_plan_approval": true,
|
|
278
|
+
"adversarial_review": true,
|
|
279
|
+
"security_review": true,
|
|
280
|
+
"release_report": "full",
|
|
281
|
+
"human_approval": true,
|
|
282
|
+
"characterization_tests": "required",
|
|
283
|
+
"extra_requirements": [
|
|
284
|
+
"rollback section is mandatory",
|
|
285
|
+
"monitoring section is mandatory",
|
|
286
|
+
"idempotency and retry behaviour must be stated explicitly"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"T5": {
|
|
290
|
+
"label": "system level, irreversible, production architecture",
|
|
291
|
+
"examples": [
|
|
292
|
+
"database migration strategy",
|
|
293
|
+
"infrastructure architecture",
|
|
294
|
+
"Kubernetes topology",
|
|
295
|
+
"production deployment mechanics",
|
|
296
|
+
"data migration",
|
|
297
|
+
"destructive schema changes",
|
|
298
|
+
"distributed transactions",
|
|
299
|
+
"cross-system migration"
|
|
300
|
+
],
|
|
301
|
+
"model_tier": "EXPERT",
|
|
302
|
+
"stages_required": [
|
|
303
|
+
"discovery",
|
|
304
|
+
"context",
|
|
305
|
+
"impact_analysis",
|
|
306
|
+
"risk_classification",
|
|
307
|
+
"plan",
|
|
308
|
+
"plan_review",
|
|
309
|
+
"implementation",
|
|
310
|
+
"test",
|
|
311
|
+
"adversarial_review",
|
|
312
|
+
"security_review",
|
|
313
|
+
"release_report",
|
|
314
|
+
"human_approval"
|
|
315
|
+
],
|
|
316
|
+
"plan_review": true,
|
|
317
|
+
"human_plan_approval": true,
|
|
318
|
+
"adversarial_review": true,
|
|
319
|
+
"security_review": true,
|
|
320
|
+
"release_report": "full",
|
|
321
|
+
"human_approval": true,
|
|
322
|
+
"characterization_tests": "required",
|
|
323
|
+
"extra_requirements": [
|
|
324
|
+
"migration analysis: locks, table size, duration, deployment ordering, old-version compatibility",
|
|
325
|
+
"a rehearsed rollback plan, not a described one",
|
|
326
|
+
"destructive operations need explicit, separate human approval naming the operation"
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"model_tiers": {
|
|
331
|
+
"LOCAL": {
|
|
332
|
+
"agent": null,
|
|
333
|
+
"note": "No local model runs inside Claude Code or Codex. The work this tier would do — indexing, listing, counting, summarising git history — is done by deterministic tools (rg, git, jq, the framework CLI) and by ai-indexer on the cheapest model."
|
|
334
|
+
},
|
|
335
|
+
"FAST": {
|
|
336
|
+
"agent": "ai-indexer, Explore, log-reader, ai-tester",
|
|
337
|
+
"effort": "low",
|
|
338
|
+
"note": "readers and runners: they collect, run and report; anything they cannot settle is escalated one tier, never retried on the same one"
|
|
339
|
+
},
|
|
340
|
+
"BALANCED": {
|
|
341
|
+
"agent": "ai-discovery, ai-context, ai-risk, ai-planner, ai-release, ai-implementer; ai-reviewer at T2",
|
|
342
|
+
"effort": "low for compression and mechanical edits, medium for judgement",
|
|
343
|
+
"note": "the default tier for agents; the main session runs the installed profile's model and does the implementation itself"
|
|
344
|
+
},
|
|
345
|
+
"STRONG": {
|
|
346
|
+
"agent": "ai-reviewer, ai-security; ai-planner and ai-risk on STRONG (under Codex the ai-planner-strong and ai-risk-strong agents, because a Codex agent file outranks a spawn-time model)",
|
|
347
|
+
"effort": "high"
|
|
348
|
+
},
|
|
349
|
+
"EXPERT": {
|
|
350
|
+
"agent": "ai-expert; architect for design outside a task",
|
|
351
|
+
"effort": "set at install time"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"diff_budget": {
|
|
355
|
+
"_comment": "A per-tier ceiling on what one step and one task may actually change, measured by skills/ai-task/sensors.py between two tree objects and enforced by state.py step-done. lines = added + deleted after `exclude` and `unbudgeted_scopes`. Conservative on purpose: these sit near the band where review still finds defects (a few hundred lines), T4/T5 are tighter because those reviews read every line and a re-score never lowers a tier, T3 is wider because shared-domain work legitimately reaches its callers. Over the budget is not a refusal to do the work: it asks for the step to be split (state.py step-split). Adjust them to the project, the way the triggers are adjusted, and calibrate from /usage-report.",
|
|
356
|
+
"per_step": {
|
|
357
|
+
"T0": {
|
|
358
|
+
"max_lines": 300,
|
|
359
|
+
"max_files": 15
|
|
360
|
+
},
|
|
361
|
+
"T1": {
|
|
362
|
+
"max_lines": 120,
|
|
363
|
+
"max_files": 5
|
|
364
|
+
},
|
|
365
|
+
"T2": {
|
|
366
|
+
"max_lines": 200,
|
|
367
|
+
"max_files": 8
|
|
368
|
+
},
|
|
369
|
+
"T3": {
|
|
370
|
+
"max_lines": 250,
|
|
371
|
+
"max_files": 10
|
|
372
|
+
},
|
|
373
|
+
"T4": {
|
|
374
|
+
"max_lines": 150,
|
|
375
|
+
"max_files": 6
|
|
376
|
+
},
|
|
377
|
+
"T5": {
|
|
378
|
+
"max_lines": 150,
|
|
379
|
+
"max_files": 6
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"per_task": {
|
|
383
|
+
"T0": {
|
|
384
|
+
"max_lines": 600,
|
|
385
|
+
"max_files": 30
|
|
386
|
+
},
|
|
387
|
+
"T1": {
|
|
388
|
+
"max_lines": 300,
|
|
389
|
+
"max_files": 10
|
|
390
|
+
},
|
|
391
|
+
"T2": {
|
|
392
|
+
"max_lines": 400,
|
|
393
|
+
"max_files": 15
|
|
394
|
+
},
|
|
395
|
+
"T3": {
|
|
396
|
+
"max_lines": 800,
|
|
397
|
+
"max_files": 30
|
|
398
|
+
},
|
|
399
|
+
"T4": {
|
|
400
|
+
"max_lines": 400,
|
|
401
|
+
"max_files": 15
|
|
402
|
+
},
|
|
403
|
+
"T5": {
|
|
404
|
+
"max_lines": 400,
|
|
405
|
+
"max_files": 15
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"exclude": [
|
|
409
|
+
"**/*.lock",
|
|
410
|
+
"package-lock.json",
|
|
411
|
+
"composer.lock",
|
|
412
|
+
"**/__snapshots__/**",
|
|
413
|
+
"**/*.snap",
|
|
414
|
+
"**/*.min.*",
|
|
415
|
+
"**/*.map",
|
|
416
|
+
"**/generated/**",
|
|
417
|
+
"**/*.generated.*",
|
|
418
|
+
".ai/state/**",
|
|
419
|
+
".ai/reports/**"
|
|
420
|
+
],
|
|
421
|
+
"unbudgeted_scopes": [
|
|
422
|
+
"docs"
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
"path_scopes": [
|
|
426
|
+
{
|
|
427
|
+
"scope": "pipeline",
|
|
428
|
+
"min_tier": "T3",
|
|
429
|
+
"paths": [
|
|
430
|
+
".ai/policies/**",
|
|
431
|
+
".ai/workflows/**",
|
|
432
|
+
".claude/**",
|
|
433
|
+
".codex/**",
|
|
434
|
+
"CLAUDE.md",
|
|
435
|
+
"AGENTS.md"
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"scope": "tests",
|
|
440
|
+
"min_tier": "T1",
|
|
441
|
+
"paths": [
|
|
442
|
+
"tests/**",
|
|
443
|
+
"spec/**",
|
|
444
|
+
"**/*Test.php",
|
|
445
|
+
"**/*.test.*",
|
|
446
|
+
"**/*.spec.*",
|
|
447
|
+
"**/test_*.py"
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"scope": "docs",
|
|
452
|
+
"min_tier": "T0",
|
|
453
|
+
"paths": [
|
|
454
|
+
"docs/**",
|
|
455
|
+
"**/*.md",
|
|
456
|
+
"**/*.rst",
|
|
457
|
+
"**/*.txt"
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"scope": "migrations",
|
|
462
|
+
"min_tier": "T5",
|
|
463
|
+
"paths": [
|
|
464
|
+
"**/migrations/**",
|
|
465
|
+
"**/Migrations/**",
|
|
466
|
+
"db/migrate/**"
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"scope": "infra",
|
|
471
|
+
"min_tier": "T5",
|
|
472
|
+
"paths": [
|
|
473
|
+
"Dockerfile*",
|
|
474
|
+
"docker-compose*",
|
|
475
|
+
"k8s/**",
|
|
476
|
+
"helm/**",
|
|
477
|
+
"terraform/**",
|
|
478
|
+
".github/workflows/**"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"scope": "auth",
|
|
483
|
+
"min_tier": "T4",
|
|
484
|
+
"paths": [
|
|
485
|
+
"**/Security/**",
|
|
486
|
+
"**/Auth/**",
|
|
487
|
+
"**/auth/**"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"scope": "payments",
|
|
492
|
+
"min_tier": "T4",
|
|
493
|
+
"paths": [
|
|
494
|
+
"**/Payment/**",
|
|
495
|
+
"**/Billing/**",
|
|
496
|
+
"**/Tax/**",
|
|
497
|
+
"**/Invoice/**"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"scope": "config",
|
|
502
|
+
"min_tier": "T3",
|
|
503
|
+
"paths": [
|
|
504
|
+
"config/**",
|
|
505
|
+
".env*"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"scope": "dependencies",
|
|
510
|
+
"min_tier": "T3",
|
|
511
|
+
"paths": [
|
|
512
|
+
"composer.json",
|
|
513
|
+
"package.json",
|
|
514
|
+
"pyproject.toml",
|
|
515
|
+
"requirements*.txt",
|
|
516
|
+
"go.mod"
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"_path_scopes_comment": "Ordered, first match wins per file — that is why `pipeline` stands above `docs` (an instruction file is pipeline, not documentation) and `tests` above `payments` (a test for the payment code is a test). A file matching nothing is scope `source` and demands no tier. min_tier is the lowest tier a change touching that scope may have: state.py step-done re-scores the task from the real diff and raises the tier when it must. It never lowers one.",
|
|
521
|
+
"sensors": {
|
|
522
|
+
"_comment": "The deterministic checks that run before any model review. A red sensor costs one review at the tier's model — today's price. A green one must therefore be impossible to fake: every ambiguity resolves to red, `unavailable` or `stale`, never to green. A missing lint_command is NOT green; only a human writing `lint_command: none` in testing.md makes it not_applicable. At or below skip_review_at_or_below, all green replaces the model review (risk-tiers.md, 'When the sensors replace the review').",
|
|
523
|
+
"skip_review_at_or_below": "T2",
|
|
524
|
+
"required_for_skip": [
|
|
525
|
+
"tests",
|
|
526
|
+
"lint",
|
|
527
|
+
"typecheck",
|
|
528
|
+
"diff",
|
|
529
|
+
"rescore",
|
|
530
|
+
"traceability",
|
|
531
|
+
"duplicates",
|
|
532
|
+
"bite"
|
|
533
|
+
],
|
|
534
|
+
"tests": {
|
|
535
|
+
"timeout_seconds": 1800,
|
|
536
|
+
"env_retries": 1,
|
|
537
|
+
"max_suite_runs": 5,
|
|
538
|
+
"log_max_bytes": 2097152
|
|
539
|
+
},
|
|
540
|
+
"lint": {
|
|
541
|
+
"timeout_seconds": 600
|
|
542
|
+
},
|
|
543
|
+
"typecheck": {
|
|
544
|
+
"timeout_seconds": 600
|
|
545
|
+
},
|
|
546
|
+
"bite": {
|
|
547
|
+
"timeout_seconds": 600,
|
|
548
|
+
"required_from": "T2"
|
|
549
|
+
},
|
|
550
|
+
"duplicates": {
|
|
551
|
+
"min_lines": 8,
|
|
552
|
+
"ignore_scopes": [
|
|
553
|
+
"tests",
|
|
554
|
+
"docs"
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"remediation_rounds": 2,
|
|
559
|
+
"escalation_triggers": [
|
|
560
|
+
"the STRONG tier could not resolve an ambiguity and said so",
|
|
561
|
+
"two constraints in the architecture contradict each other",
|
|
562
|
+
"the task is classified T5",
|
|
563
|
+
"several viable high-risk designs remain and the choice is not reversible",
|
|
564
|
+
"the cost of being wrong is very high (money, data loss, legal or fiscal exposure)"
|
|
565
|
+
],
|
|
566
|
+
"escalation_rule": "Start at the tier the table gives. Escalate one step, for one task, when a trigger fires — never escalate the whole pipeline, and never start at EXPERT because it exists. Never retry a failed reasoning task on a cheaper tier; downgrading is for mechanical work only.",
|
|
567
|
+
"downgrade_rule": "A tier may be lowered only by a human, in writing, in the task record. An agent may propose a lower tier with evidence; it may not apply one.",
|
|
568
|
+
"remediation_rule": "Failures are fixed in batches, never one at a time. A step's own scoped tests are the exception: they fail and are fixed inside that step. After the verification run, the e2e run (and after a review) collect every finding, classify each, open ONE `state.py remediate` step whose scope is the union of the finished steps plus the failing tests, fix them all, then run the verification command once more. A remediation never re-triages or re-plans the task; at most two rounds before the human decides."
|
|
569
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Project-scoped Codex configuration for {{PROJECT}}.
|
|
2
|
+
#
|
|
3
|
+
# This layer is loaded only when the project is trusted. Put here what belongs to
|
|
4
|
+
# the repository rather than to the machine: per-project agent limits, project
|
|
5
|
+
# MCP servers, project hooks. Host-wide routing stays in ~/.codex/config.toml.
|
|
6
|
+
#
|
|
7
|
+
# Example — cap the agent fan-out for a small repository:
|
|
8
|
+
#
|
|
9
|
+
# [agents]
|
|
10
|
+
# max_concurrent_threads_per_session = 4
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Intent: {{TITLE}}
|
|
2
|
+
|
|
3
|
+
<!-- Stage 1 of the SDLC flow. Say WHAT and WHY. Leave HOW to the spec. -->
|
|
4
|
+
|
|
5
|
+
## Problem
|
|
6
|
+
|
|
7
|
+
<!-- What hurts today, for whom, and how you know (ticket, metric, complaint). -->
|
|
8
|
+
|
|
9
|
+
## Proposed outcome
|
|
10
|
+
|
|
11
|
+
<!-- What is true once this is done. Observable, testable statements. -->
|
|
12
|
+
|
|
13
|
+
## Affected users & systems
|
|
14
|
+
|
|
15
|
+
<!-- Roles, services, integrations, data stores that this touches. -->
|
|
16
|
+
|
|
17
|
+
## Constraints
|
|
18
|
+
|
|
19
|
+
<!-- Deadlines, compliance, compatibility, budget, "must not break X". -->
|
|
20
|
+
|
|
21
|
+
## Out of scope
|
|
22
|
+
|
|
23
|
+
<!-- Things deliberately not covered, so the spec does not drift. -->
|
|
24
|
+
|
|
25
|
+
## Decisions taken
|
|
26
|
+
|
|
27
|
+
<!-- Rendered, not retyped: `state.py questions --topic <slug> --format md`.
|
|
28
|
+
The answered brainstorm questions from docs/sdlc/intent/<slug>.questions.md,
|
|
29
|
+
with the option that was chosen. This is what stops the spec stage from
|
|
30
|
+
reopening a question that was already settled. -->
|
|
31
|
+
|
|
32
|
+
## Open questions
|
|
33
|
+
|
|
34
|
+
<!-- Things you could not answer yet. The spec stage must close or carry each one.
|
|
35
|
+
A question that blocks the spec is marked **(blocking)**. -->
|