@agentsfleet/orly 0.5.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/.githooks/pre-commit +42 -0
- package/.githooks/pre-push +67 -0
- package/AGENTS.md +348 -0
- package/LICENSE +21 -0
- package/README.md +249 -0
- package/SOUL.md +90 -0
- package/audits/agents-md.md +497 -0
- package/audits/agents-md.sh +353 -0
- package/audits/cross-tier-rates.sh +105 -0
- package/audits/data.sh +185 -0
- package/audits/deinit-pairs.sh +224 -0
- package/audits/design-tokens.sh +143 -0
- package/audits/doc-read.sh +183 -0
- package/audits/error-codes.sh +221 -0
- package/audits/fixtures/clean.diff +15 -0
- package/audits/fixtures/dirty.diff +16 -0
- package/audits/lifecycle-anchors.sh +22 -0
- package/audits/logging.sh +217 -0
- package/audits/msid-ui.sh +144 -0
- package/audits/parity-dispatch.sh +51 -0
- package/audits/rule-ledger-lib.sh +264 -0
- package/audits/rule-ledger.sh +225 -0
- package/audits/rule-paths.sh +108 -0
- package/audits/spec-template.sh +258 -0
- package/audits/sql-mod.sh +102 -0
- package/audits/ufs.sh +303 -0
- package/bin/orly +26 -0
- package/core/operating-model.md +256 -0
- package/dispatch/edit_rules.md +69 -0
- package/dispatch/lib.sh +213 -0
- package/dispatch/lifecycle.md +187 -0
- package/dispatch/name_architecture.md +93 -0
- package/dispatch/verify.md +111 -0
- package/dispatch/write_any.md +740 -0
- package/dispatch/write_any.sh +49 -0
- package/dispatch/write_auth.md +36 -0
- package/dispatch/write_changelog.md +64 -0
- package/dispatch/write_documentation.md +45 -0
- package/dispatch/write_go.md +24 -0
- package/dispatch/write_http.md +45 -0
- package/dispatch/write_mdx.md +7 -0
- package/dispatch/write_python.md +8 -0
- package/dispatch/write_rust.md +38 -0
- package/dispatch/write_shell.md +8 -0
- package/dispatch/write_spec.md +105 -0
- package/dispatch/write_sql.md +112 -0
- package/dispatch/write_sql.sh +36 -0
- package/dispatch/write_ts_adhere_bun.md +493 -0
- package/dispatch/write_ts_adhere_bun.sh +37 -0
- package/dispatch/write_zig.md +852 -0
- package/dispatch/write_zig.sh +40 -0
- package/docs/CHANGELOG_VOICE.md +18 -0
- package/docs/DISPATCH_ARCHITECTURE.md +664 -0
- package/docs/DISPATCH_REVIEW_DISPOSITION.md +65 -0
- package/docs/DOCUMENTATION_RULES.md +209 -0
- package/docs/EXECUTE_DOC_READS.md +29 -0
- package/docs/HARNESS_VERIFY_OUTPUT.md +40 -0
- package/docs/LIFECYCLE_PATTERNS.md +316 -0
- package/docs/LOGGING_STANDARD.md +397 -0
- package/docs/ORLY_ARCHITECTURE.md +129 -0
- package/docs/REST_API_DESIGN_GUIDELINES.md +783 -0
- package/docs/RULE_ENFORCEMENT.md +41 -0
- package/docs/SCHEMA_CONVENTIONS.md +93 -0
- package/docs/TEMPLATE.md +411 -0
- package/docs/VERIFY_TIERS.md +57 -0
- package/docs/greptile-learnings/README.md +51 -0
- package/docs/greptile-learnings/RULES.md +1045 -0
- package/fixtures/registry-invalid.json +1 -0
- package/fixtures/registry-valid.json +18 -0
- package/fixtures/unclosed-pack-block.md +8 -0
- package/package.json +63 -0
- package/packs/language/go/rules.md +24 -0
- package/packs/language/mdx/rules.md +7 -0
- package/packs/language/python/rules.md +8 -0
- package/packs/language/rust/rules.md +38 -0
- package/packs/language/shell/rules.md +8 -0
- package/registry.json +405 -0
- package/schemas/evidence.schema.json +43 -0
- package/schemas/profile.schema.json +12 -0
- package/schemas/registry.schema.json +12 -0
- package/skills/orly-babysit-prs/SKILL.md +326 -0
- package/skills/orly-spec-new/SKILL.md +157 -0
- package/skills/orly-write-integration-test/SKILL.md +470 -0
- package/skills/orly-write-unit-test/SKILL.md +520 -0
- package/src/cli.test.ts +70 -0
- package/src/cli.ts +287 -0
- package/src/config.test.ts +226 -0
- package/src/config.ts +288 -0
- package/src/criteria.test.ts +137 -0
- package/src/criteria.ts +166 -0
- package/src/criteria_spec.ts +127 -0
- package/src/criteria_support.ts +53 -0
- package/src/gates.test.ts +183 -0
- package/src/gates.ts +169 -0
- package/src/gates_spec.test.ts +98 -0
- package/src/gates_test_support.ts +194 -0
- package/src/git_env.ts +20 -0
- package/src/install.test.ts +514 -0
- package/src/install.ts +447 -0
- package/src/install_nested.test.ts +32 -0
- package/src/model.test.ts +31 -0
- package/src/model.ts +245 -0
- package/src/references.test.ts +47 -0
- package/src/references.ts +147 -0
- package/src/render.test.ts +60 -0
- package/src/render.ts +94 -0
- package/src/surfaces.test.ts +43 -0
- package/src/surfaces.ts +89 -0
- package/src/validation.test.ts +11 -0
- package/src/validation.ts +87 -0
- package/src/verify.test.ts +13 -0
- package/src/verify.ts +59 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Greptile Learnings
|
|
2
|
+
|
|
3
|
+
Generic principles learned from greptile reviews, PR feedback, and production incidents.
|
|
4
|
+
|
|
5
|
+
## File
|
|
6
|
+
|
|
7
|
+
`RULES.md` — short, generic rules. Each rule covers a class of bugs, not a single instance.
|
|
8
|
+
|
|
9
|
+
## When agents read RULES.md
|
|
10
|
+
|
|
11
|
+
1. **EXECUTE phase start** — before writing any code
|
|
12
|
+
2. **`/review` skill** — before reviewing a diff
|
|
13
|
+
3. **Greptile fix workflow** — after fixing findings, check if a rule needs adding
|
|
14
|
+
|
|
15
|
+
## Adding a rule
|
|
16
|
+
|
|
17
|
+
**Before adding:** Check if an existing rule already covers the finding. Most findings
|
|
18
|
+
are instances of universal principles (unused code, missing parser, double-free, etc.).
|
|
19
|
+
If a generic rule exists, just append the incident reference to it. Only create a new
|
|
20
|
+
rule when the principle is genuinely novel.
|
|
21
|
+
|
|
22
|
+
Rules are generic principles, not per-incident entries:
|
|
23
|
+
|
|
24
|
+
```markdown
|
|
25
|
+
## N. Short principle name
|
|
26
|
+
|
|
27
|
+
One-paragraph rule in plain English. No code blocks unless the pattern
|
|
28
|
+
is truly non-obvious. Keep it under 5 lines.
|
|
29
|
+
|
|
30
|
+
> Incident references: MNN_NNN short description.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Post-PR greptile workflow
|
|
34
|
+
|
|
35
|
+
1. Fetch greptile review comments.
|
|
36
|
+
2. Fix each finding (P0/P1 required; P2 at discretion).
|
|
37
|
+
3. Run `make lint && make test`.
|
|
38
|
+
4. For each finding: check if an existing rule in `RULES.md` covers it.
|
|
39
|
+
- **Yes** → append the incident reference (`> MNN_NNN: description`). Done.
|
|
40
|
+
- **No** → write a new generic rule that covers the class of bug, not just this instance.
|
|
41
|
+
5. Reply to each greptile thread with fix commit.
|
|
42
|
+
6. Commit fix + rule together, push.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Fetch review IDs
|
|
46
|
+
gh api repos/OWNER/REPO/pulls/N/reviews --jq '.[] | select(.user.login | test("greptile")) | .id'
|
|
47
|
+
# Fetch comments
|
|
48
|
+
gh api repos/OWNER/REPO/pulls/N/reviews/{ID}/comments --jq '.[] | {id, path, body: .body[:200]}'
|
|
49
|
+
# Reply to thread
|
|
50
|
+
gh api repos/OWNER/REPO/pulls/N/comments/{ID}/replies -f body="Fixed in <sha>: <what changed>"
|
|
51
|
+
```
|