dsh-lean-router 1.0.9 → 2.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/NOTICE.md +2 -4
- package/README.en.md +47 -43
- package/README.md +45 -41
- package/cordis.patch.yml +4 -26
- package/docs/agents/domain.md +1 -1
- package/docs/architecture.en.md +51 -86
- package/docs/architecture.md +46 -77
- package/docs/changelog.en.md +32 -1
- package/docs/changelog.md +32 -1
- package/docs/configuration.en.md +25 -56
- package/docs/configuration.md +14 -45
- package/docs/install.en.md +2 -2
- package/docs/install.md +2 -2
- package/docs/quickstart.en.md +29 -34
- package/docs/quickstart.md +11 -16
- package/docs/release-checklist.en.md +3 -4
- package/docs/release-checklist.md +5 -6
- package/docs//350/267/257/347/224/261-/350/256/276/350/256/241/350/257/264/346/230/216.md +2 -2
- package/lib/index.js +9 -61
- package/lib/router.js +15 -148
- package/package.json +4 -15
- package/presets/base/frag-lean.patch.yml +1 -5
- package/presets/base/frag-preset.patch.yml +1 -3
- package/presets/base/frag-router.patch.yml +1 -12
- package/presets/base/frag-toolface.patch.yml +0 -2
- package/presets/base/lean-router.patch.yml +1 -4
- package/scripts/doctor.mjs +15 -10
- package/test/integration-preset.test.mjs +4 -3
- package/test/plugin-entry.test.mjs +15 -50
- package/test/router.test.mjs +7 -47
- package/assets/gating.weights.json +0 -13
- package/assets/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/assets/skills/ask-matt/SKILL.md +0 -80
- package/assets/skills/ask-matt/agents/openai.yaml +0 -5
- package/assets/skills/chief-of-staff/SKILL.md +0 -76
- package/assets/skills/chief-of-staff/agents/openai.yaml +0 -5
- package/assets/skills/code-review/SKILL.md +0 -91
- package/assets/skills/code-review/agents/openai.yaml +0 -5
- package/assets/skills/codebase-design/DEEPENING.md +0 -37
- package/assets/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/assets/skills/codebase-design/SKILL.md +0 -116
- package/assets/skills/codebase-design/agents/openai.yaml +0 -5
- package/assets/skills/diagnosing-bugs/SKILL.md +0 -140
- package/assets/skills/diagnosing-bugs/agents/openai.yaml +0 -5
- package/assets/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/assets/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/assets/skills/domain-modeling/GLOSSARY-FORMAT.md +0 -60
- package/assets/skills/domain-modeling/SKILL.md +0 -76
- package/assets/skills/domain-modeling/agents/openai.yaml +0 -5
- package/assets/skills/grilling/SKILL.md +0 -52
- package/assets/skills/grilling/agents/openai.yaml +0 -5
- package/assets/skills/handoff/SKILL.md +0 -17
- package/assets/skills/handoff/agents/openai.yaml +0 -5
- package/assets/skills/implement/SKILL.md +0 -55
- package/assets/skills/implement/agents/openai.yaml +0 -5
- package/assets/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/assets/skills/improve-codebase-architecture/SKILL.md +0 -72
- package/assets/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/assets/skills/loop-me/SKILL.md +0 -33
- package/assets/skills/loop-me/agents/openai.yaml +0 -5
- package/assets/skills/pr/CREDITS.md +0 -3
- package/assets/skills/pr/SKILL.md +0 -172
- package/assets/skills/pr/agents/openai.yaml +0 -5
- package/assets/skills/prototype/LOGIC.md +0 -67
- package/assets/skills/prototype/SKILL.md +0 -28
- package/assets/skills/prototype/UI.md +0 -112
- package/assets/skills/prototype/agents/openai.yaml +0 -5
- package/assets/skills/research/SKILL.md +0 -14
- package/assets/skills/research/agents/openai.yaml +0 -5
- package/assets/skills/retro/SKILL.md +0 -45
- package/assets/skills/retro/agents/openai.yaml +0 -5
- package/assets/skills/setup-matt-pocock-skills/SKILL.md +0 -121
- package/assets/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/assets/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/assets/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -50
- package/assets/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/assets/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/assets/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/assets/skills/setup-ts-deep-modules/SKILL.md +0 -103
- package/assets/skills/setup-ts-deep-modules/agents/openai.yaml +0 -5
- package/assets/skills/setup-ts-deep-modules/dependency-cruiser.config.cjs +0 -95
- package/assets/skills/software-factory/EXAMPLE-TASKS.md +0 -80
- package/assets/skills/software-factory/GIT-HOSTS.md +0 -84
- package/assets/skills/software-factory/OBSERVABILITY-PLATFORMS.md +0 -75
- package/assets/skills/software-factory/RUNNERS.md +0 -94
- package/assets/skills/software-factory/SKILL.md +0 -99
- package/assets/skills/software-factory/TICKET-TRACKERS.md +0 -85
- package/assets/skills/tdd/SKILL.md +0 -40
- package/assets/skills/tdd/agents/openai.yaml +0 -5
- package/assets/skills/tdd/mocking.md +0 -59
- package/assets/skills/tdd/tests.md +0 -77
- package/assets/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/assets/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/assets/skills/teach/MISSION-FORMAT.md +0 -31
- package/assets/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/assets/skills/teach/SKILL.md +0 -141
- package/assets/skills/teach/agents/openai.yaml +0 -5
- package/assets/skills/to-questionnaire/SKILL.md +0 -55
- package/assets/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/assets/skills/to-spec/SKILL.md +0 -76
- package/assets/skills/to-spec/agents/openai.yaml +0 -5
- package/assets/skills/to-tickets/SKILL.md +0 -106
- package/assets/skills/to-tickets/agents/openai.yaml +0 -5
- package/assets/skills/triage/AGENT-BRIEF.md +0 -207
- package/assets/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/assets/skills/triage/SKILL.md +0 -113
- package/assets/skills/triage/agents/openai.yaml +0 -5
- package/assets/skills/wait-what/SKILL.md +0 -8
- package/assets/skills/wait-what/agents/openai.yaml +0 -5
- package/assets/skills/wayfinder/SKILL.md +0 -129
- package/assets/skills/wayfinder/agents/openai.yaml +0 -5
- package/assets/skills/wizard/SKILL.md +0 -46
- package/assets/skills/wizard/agents/openai.yaml +0 -5
- package/assets/skills/wizard/template.sh +0 -223
- package/assets/skills/writing-beats/SKILL.md +0 -44
- package/assets/skills/writing-beats/agents/openai.yaml +0 -5
- package/assets/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/assets/skills/writing-for-agents/SKILL.md +0 -83
- package/assets/skills/writing-for-agents/agents/openai.yaml +0 -5
- package/assets/skills/writing-fragments/SKILL.md +0 -80
- package/assets/skills/writing-fragments/agents/openai.yaml +0 -5
- package/assets/skills/writing-shape/SKILL.md +0 -59
- package/assets/skills/writing-shape/agents/openai.yaml +0 -5
- package/assets/skills.matrix.json +0 -311
- package/docs/HANDOFF-2026-11-22.md +0 -155
- package/docs/matrix.en.md +0 -57
- package/docs/matrix.md +0 -57
- package/docs//346/212/200/350/203/275/351/227/250/346/216/247-/350/256/276/350/256/241/350/257/264/346/230/216.md +0 -134
- package/docs//351/235/242/346/235/277-/350/256/276/350/256/241/350/257/264/346/230/216.md +0 -205
- package/lib/audit-commands.js +0 -289
- package/lib/audit-sink.js +0 -137
- package/lib/client.js +0 -276
- package/lib/gate-runner.js +0 -179
- package/lib/skill-provider.js +0 -167
- package/lib/skillgate.js +0 -396
- package/lib/skills-panel.js +0 -322
- package/scripts/check-drift.mjs +0 -24
- package/skills.manifest.json +0 -287
- package/test/audit-commands.test.mjs +0 -325
- package/test/audit-sink.test.mjs +0 -150
- package/test/client-plugin.test.mjs +0 -123
- package/test/gate-run.test.mjs +0 -173
- package/test/manifest.test.mjs +0 -25
- package/test/provider.test.mjs +0 -21
- package/test/skillgate-provider.test.mjs +0 -122
- package/test/skillgate.test.mjs +0 -217
- package/test/skills-panel.test.mjs +0 -114
- package/ui/go.json +0 -19
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Issue tracker: GitHub
|
|
2
|
-
|
|
3
|
-
Issues and specs for this repo live as GitHub issues. Use the `gh` CLI for all operations.
|
|
4
|
-
|
|
5
|
-
## Conventions
|
|
6
|
-
|
|
7
|
-
- **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.
|
|
8
|
-
- **Read an issue**: `gh issue view <number> --json number,title,body,labels,comments`.
|
|
9
|
-
- **List issues**: `gh issue list --state open --json number,title,body,labels,comments --jq '[.[] | {number, title, body, labels: [.labels[].name], comments: [.comments[].body]}]'` with appropriate `--label` and `--state` filters.
|
|
10
|
-
- **Make an issue a sub-issue of a parent**: `gh issue create --parent <parent> ...`, or `gh issue edit <parent> --add-sub-issue <child>` afterwards (`gh` 2.94+). Older `gh`: `gh api --method POST repos/<owner>/<repo>/issues/<parent>/sub_issues -F sub_issue_id=<child-db-id>` (database id, as in **Blocking** below). Without sub-issues, put `Part of #<parent>` at the top of the child body.
|
|
11
|
-
- **Blocking**: GitHub's **native issue dependencies**, the canonical, UI-visible representation. Add an edge with `gh issue create --blocked-by <n>,<n> ...` or `gh issue edit <child> --add-blocked-by <blocker>` (`gh` 2.94+). Older `gh`: `gh api --method POST repos/<owner>/<repo>/issues/<child>/dependencies/blocked_by -F issue_id=<blocker-db-id>`, where `<blocker-db-id>` is the blocker's numeric **database id** (`gh api repos/<owner>/<repo>/issues/<n> --jq .id`, _not_ the `#number` or `node_id`). Where dependencies aren't available, fall back to a `Blocked by: #<n>, #<n>` line at the top of the child body. A ticket is unblocked when every blocker is closed.
|
|
12
|
-
- **Count open blockers**: `gh api repos/<owner>/<repo>/issues/<n> --jq .issue_dependencies_summary.blocked_by` (open blockers only; 0 means startable). `gh issue view <n> --json blockedBy` also lists closed blockers, so filter it: `--jq '[.blockedBy.nodes[] | select(.state == "OPEN")] | length'`.
|
|
13
|
-
- **Comment on an issue**: `gh issue comment <number> --body "..."`
|
|
14
|
-
- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
|
|
15
|
-
- **Close**: post the explanation with `gh issue comment <number> --body "..."`, then `gh issue close <number>`. On an already-closed issue, `gh issue close --comment` drops the comment and still exits 0.
|
|
16
|
-
|
|
17
|
-
Infer the repo from `git remote -v`; `gh` does this automatically when run inside a clone.
|
|
18
|
-
|
|
19
|
-
File issues only into the user's own repo. Never file into `mattpocock/skills` (the repo these skills come from) unless the user owns it. In a fork, `gh` can default to the upstream parent, so before the first `gh issue create` of a session, check the target with `gh repo view --json nameWithOwner` and confirm it with the user if it is not their repo.
|
|
20
|
-
|
|
21
|
-
## Pull requests as a triage surface
|
|
22
|
-
|
|
23
|
-
**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_
|
|
24
|
-
|
|
25
|
-
When set to `yes`, PRs run through the same labels and states as issues, using the `gh pr` equivalents:
|
|
26
|
-
|
|
27
|
-
- **Read a PR**: `gh pr view <number>`, then `gh pr view <number> --comments` (off a TTY, `--comments` prints only the comments, not the body), and `gh pr diff <number>` for the diff.
|
|
28
|
-
- **List external PRs for triage**: `gh api --paginate 'repos/{owner}/{repo}/pulls?state=open' --jq '.[] | select(.author_association | IN("OWNER","MEMBER","COLLABORATOR") | not) | {number, title, author: .user.login, author_association, labels: [.labels[].name]}'`.
|
|
29
|
-
- **Comment / label / close**: `gh pr comment`, `gh pr edit --add-label`/`--remove-label`, `gh pr close`.
|
|
30
|
-
|
|
31
|
-
GitHub shares one number space across issues and PRs, so a bare `#42` may be either: resolve with `gh pr view 42` and fall back to `gh issue view 42`.
|
|
32
|
-
|
|
33
|
-
## When a skill says "publish to the issue tracker"
|
|
34
|
-
|
|
35
|
-
Create a GitHub issue.
|
|
36
|
-
|
|
37
|
-
## When a skill says "fetch the relevant ticket"
|
|
38
|
-
|
|
39
|
-
Read it as in **Read an issue** above.
|
|
40
|
-
|
|
41
|
-
## Wayfinding operations
|
|
42
|
-
|
|
43
|
-
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
|
|
44
|
-
|
|
45
|
-
- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `gh issue create --label wayfinder:map`.
|
|
46
|
-
- **Child ticket**: an issue linked to the map as a GitHub sub-issue (see **Make an issue a sub-issue of a parent**). Where sub-issues aren't enabled, add the child to a task list in the map body and put `Part of #<map>` at the top of the child body. Labels: `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
|
|
47
|
-
- **Blocking**: see **Blocking** under Conventions.
|
|
48
|
-
- **Frontier query**: list the map's open children (`gh issue list --state open`, scoped to the map's sub-issues / task list), drop any with an open blocker (see **Count open blockers**, or an open issue in the `Blocked by` line) or an assignee; first in map order wins.
|
|
49
|
-
- **Claim**: `gh issue edit <n> --add-assignee @me`, the session's first write.
|
|
50
|
-
- **Resolve**: `gh issue comment <n> --body "<answer>"`, then `gh issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Issue tracker: GitLab
|
|
2
|
-
|
|
3
|
-
Issues and specs for this repo live as GitLab issues. Use the [`glab`](https://gitlab.com/gitlab-org/cli) CLI for all operations.
|
|
4
|
-
|
|
5
|
-
## Conventions
|
|
6
|
-
|
|
7
|
-
- **Create an issue**: `glab issue create --title "..." --description "..."`. Use a heredoc for multi-line descriptions. Pass `--description -` to open an editor.
|
|
8
|
-
- **Read an issue**: `glab issue view <number> --comments`. Use `-F json` for machine-readable output.
|
|
9
|
-
- **List issues**: `glab issue list -O json` with appropriate `--label` filters.
|
|
10
|
-
- **Comment on an issue**: `glab issue note <number> --message "..."`. GitLab calls comments "notes".
|
|
11
|
-
- **Apply / remove labels**: `glab issue update <number> --label "..."` / `--unlabel "..."`. Multiple labels can be comma-separated or by repeating the flag.
|
|
12
|
-
- **Close**: `glab issue close <number>`. `glab issue close` does not accept a closing comment, so post the explanation first with `glab issue note <number> --message "..."`, then close.
|
|
13
|
-
- **Merge requests**: GitLab calls PRs "merge requests". Use `glab mr create`, `glab mr view`, `glab mr note`, etc., the same shape as `gh pr ...` with `mr` in place of `pr` and `note`/`--message` in place of `comment`/`--body`.
|
|
14
|
-
|
|
15
|
-
Infer the repo from `git remote -v`; `glab` does this automatically when run inside a clone.
|
|
16
|
-
|
|
17
|
-
## Merge requests as a triage surface
|
|
18
|
-
|
|
19
|
-
**MRs as a request surface: no.** _(Set to `yes` if this repo treats external merge requests as feature requests; `/triage` reads this flag.)_
|
|
20
|
-
|
|
21
|
-
When set to `yes`, MRs run through the same labels and states as issues, using the `glab mr` equivalents:
|
|
22
|
-
|
|
23
|
-
- **Read an MR**: `glab mr view <number> --comments` and `glab mr diff <number>` for the diff.
|
|
24
|
-
- **List external MRs for triage**: `glab mr list -O json`, then keep only MRs whose author is not a project member/owner (a contributor's MR, not a maintainer's in-flight work).
|
|
25
|
-
- **Comment / label / close**: `glab mr note`, `glab mr update --label`/`--unlabel`, `glab mr close`.
|
|
26
|
-
|
|
27
|
-
Unlike GitHub, GitLab numbers issues and MRs separately, so `#42` is unambiguous once you know which surface the maintainer means.
|
|
28
|
-
|
|
29
|
-
## When a skill says "publish to the issue tracker"
|
|
30
|
-
|
|
31
|
-
Create a GitLab issue.
|
|
32
|
-
|
|
33
|
-
## When a skill says "fetch the relevant ticket"
|
|
34
|
-
|
|
35
|
-
Run `glab issue view <number> --comments`.
|
|
36
|
-
|
|
37
|
-
## Wayfinding operations
|
|
38
|
-
|
|
39
|
-
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
|
|
40
|
-
|
|
41
|
-
- **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `glab issue create --label wayfinder:map`. (On GitLab tiers with native epics, an epic may hold the map instead; a labelled issue works everywhere.)
|
|
42
|
-
- **Child ticket**: an issue carrying `Part of #<map>` at the top of its description, linked to the map (`glab issue create --linked-issues <map> --link-type relates_to`), and labels `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
|
|
43
|
-
- **Blocking**: GitLab's **native blocking link**, the canonical, UI-visible representation. Add it with the `/blocked_by #<n>` quick action, posted as a note (`glab issue note <child> --message "/blocked_by #<blocker>"`). Native blocking links are a Premium/Ultimate feature; on the free tier (or where unavailable) fall back to a `Blocked by: #<n>, #<n>` line at the top of the description. A ticket is unblocked when every blocker is closed.
|
|
44
|
-
- **Frontier query**: list the map's children with `glab api projects/:id/issues/<map>/links`, keeping open issues that carry a `wayfinder:<type>` label; drop any with an open blocker: a native `blocked_by` link to an open issue (`glab api projects/:id/issues/<child-iid>/links`), or an open issue in the `Blocked by` line, or an assignee; first in map order wins.
|
|
45
|
-
- **Claim**: `glab issue update <n> --assignee @me`, the session's first write.
|
|
46
|
-
- **Resolve**: `glab issue note <n> --message "<answer>"`, then `glab issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Issue tracker: Local Markdown
|
|
2
|
-
|
|
3
|
-
Issues and specs for this repo live as markdown files in `.scratch/`.
|
|
4
|
-
|
|
5
|
-
## Conventions
|
|
6
|
-
|
|
7
|
-
- One feature per directory: `.scratch/<feature-slug>/`
|
|
8
|
-
- The spec is `.scratch/<feature-slug>/spec.md`
|
|
9
|
-
- Implementation issues are one file per ticket at `.scratch/<feature-slug>/issues/<NN>-<slug>.md`, numbered from `01`, never a single combined tickets file
|
|
10
|
-
- Triage state is recorded as a `Status:` line near the top of each issue file (see `triage-labels.md` for the role strings)
|
|
11
|
-
- Comments and conversation history append to the bottom of the file under a `## Comments` heading
|
|
12
|
-
|
|
13
|
-
## When a skill says "publish to the issue tracker"
|
|
14
|
-
|
|
15
|
-
Create a new file under `.scratch/<feature-slug>/` (creating the directory if needed).
|
|
16
|
-
|
|
17
|
-
## When a skill says "fetch the relevant ticket"
|
|
18
|
-
|
|
19
|
-
Read the file at the referenced path. The user will normally pass the path or the issue number directly.
|
|
20
|
-
|
|
21
|
-
## Wayfinding operations
|
|
22
|
-
|
|
23
|
-
Used by `/wayfinder`. The **map** is a file with one **child** file per ticket.
|
|
24
|
-
|
|
25
|
-
- **Map**: `.scratch/<effort>/map.md` (the Notes / Decisions-so-far / Fog body).
|
|
26
|
-
- **Child ticket**: `.scratch/<effort>/issues/NN-<slug>.md`, numbered from `01`, with the question in the body. A `Type:` line records the ticket type (`research`/`prototype`/`grilling`/`task`); a `Status:` line records `claimed`/`resolved`.
|
|
27
|
-
- **Blocking**: a `Blocked by: NN, NN` line near the top. A ticket is unblocked when every file it lists is `resolved`.
|
|
28
|
-
- **Frontier**: scan `.scratch/<effort>/issues/` for files that are open, unblocked, and unclaimed; first by number wins.
|
|
29
|
-
- **Claim**: set `Status: claimed` and save before any work.
|
|
30
|
-
- **Resolve**: append the answer under an `## Answer` heading, set `Status: resolved`, then append a context pointer (gist + link) to the map's Decisions-so-far in `map.md`.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Triage Labels
|
|
2
|
-
|
|
3
|
-
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
|
|
4
|
-
|
|
5
|
-
| Label in mattpocock/skills | Label in our tracker | Meaning |
|
|
6
|
-
| -------------------------- | -------------------- | ---------------------------------------- |
|
|
7
|
-
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
|
|
8
|
-
| `needs-info` | `needs-info` | Waiting on reporter for more information |
|
|
9
|
-
| `ready-for-agent` | `ready-for-agent` | Fully specified, ready for an AFK agent |
|
|
10
|
-
| `ready-for-human` | `ready-for-human` | Requires human implementation |
|
|
11
|
-
| `wontfix` | `wontfix` | Will not be actioned |
|
|
12
|
-
|
|
13
|
-
When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table.
|
|
14
|
-
|
|
15
|
-
Edit the "Label in our tracker" column to match whatever vocabulary you actually use.
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: setup-ts-deep-modules
|
|
3
|
-
description: Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in subfolders and reachable only through its entry-point files. User-invoked.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Setup TS Deep Modules
|
|
9
|
-
|
|
10
|
-
Make every package in this repo a **deep module**: a lot of behaviour behind a small interface. A package's public surface is its **entry points** (the files at the package root), and everything in its subfolders is hidden. This skill installs [dependency-cruiser](https://github.com/sverweij/dependency-cruiser) and the rules that make the entry points the only way in, then proves the rules bite.
|
|
11
|
-
|
|
12
|
-
For the vocabulary (deep module, interface, seam, depth), read `../codebase-design/SKILL.md` and use its language throughout.
|
|
13
|
-
|
|
14
|
-
## The shape this enforces
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
src/packages/
|
|
18
|
-
<name>/
|
|
19
|
-
index.ts ← an entry point (public). Import this from outside.
|
|
20
|
-
client.ts ← another entry point. Packages may expose SEVERAL.
|
|
21
|
-
lib/ ← implementation: hidden from outside, free to import each other.
|
|
22
|
-
tests/ ← co-located tests + fixtures (a subfolder, so private).
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
The public surface is the package's **root files**, not one designated `index.ts`. By convention implementation lives in `lib/` and tests in `tests/`, giving every package the same two-folder shape. The rule itself is general, though: *anything* in *any* subfolder is private, so you never extend the config to add a folder.
|
|
26
|
-
|
|
27
|
-
Four rules, all `error`:
|
|
28
|
-
|
|
29
|
-
1. **Entry-point boundary**: code outside a package (app code or another package) may import only that package's entry points (its root files), never anything in its subfolders.
|
|
30
|
-
2. **Intra-package freedom**: a package's own files import each other freely.
|
|
31
|
-
3. **Tests through the entry points**: files under `<pkg>/tests/` may import any package's entry points and their own `tests/` fixtures, but never any package's subfolder internals (not even their own). Integration tests across packages are fine; deep imports are not.
|
|
32
|
-
4. **No cycles**: no dependency cycles.
|
|
33
|
-
|
|
34
|
-
**Entry points, not a barrel.** Because the public surface is *every* root file, a package can expose several small entry points (`index.ts`, `client.ts`, `server.ts`) instead of funnelling everything through one giant `index.ts`. Barrel files that re-export a whole subtree are discouraged; keep entry points small and hide implementation in subfolders.
|
|
35
|
-
|
|
36
|
-
Layering (which packages may depend on which) is a *different* concern and is left as a commented stub in the config for this repo to fill in.
|
|
37
|
-
|
|
38
|
-
## Steps
|
|
39
|
-
|
|
40
|
-
### 1. Detect the environment
|
|
41
|
-
|
|
42
|
-
- **Package manager**: `pnpm-lock.yaml` → pnpm, `yarn.lock` → yarn, `bun.lockb` → bun, else npm. Use it for every command below (`pnpm`/`yarn`/`npm run`/`bunx`).
|
|
43
|
-
- **Packages root**: if `src/` exists use `src/packages`, else `packages`. Confirm the choice with the user if the repo already has a different obvious convention.
|
|
44
|
-
- **Existing config**: check for a `.dependency-cruiser.*` file. If one exists, do **not** overwrite it: merge the four rules and the options in, and tell the user what you added.
|
|
45
|
-
|
|
46
|
-
**Done when:** package manager, packages root, and existing-config status are all known.
|
|
47
|
-
|
|
48
|
-
### 2. Install dependency-cruiser
|
|
49
|
-
|
|
50
|
-
Install `dependency-cruiser` as a devDependency with the detected package manager.
|
|
51
|
-
|
|
52
|
-
**Done when:** `dependency-cruiser` is in `devDependencies`.
|
|
53
|
-
|
|
54
|
-
### 3. Write the config
|
|
55
|
-
|
|
56
|
-
Copy [`dependency-cruiser.config.cjs`](./dependency-cruiser.config.cjs) to the repo root as `.dependency-cruiser.cjs`. Set `PACKAGES_ROOT` to the root detected in step 1. The rules are path-depth based and extension-agnostic, so nothing else needs adapting.
|
|
57
|
-
|
|
58
|
-
**Done when:** `.dependency-cruiser.cjs` exists with the correct `PACKAGES_ROOT`, and the four forbidden rules are present.
|
|
59
|
-
|
|
60
|
-
### 4. Wire it into the checks
|
|
61
|
-
|
|
62
|
-
- Add a `lint:boundaries` script: `depcruise <packages-root>` (or `depcruise src`).
|
|
63
|
-
- Fold it into the repo's umbrella check command, the one that already runs typecheck (e.g. a `check` / `ci` / `validate` script). Do **not** touch `tsconfig` or add path aliases.
|
|
64
|
-
- If there is no umbrella script, add `lint:boundaries` and tell the user to include it in CI.
|
|
65
|
-
|
|
66
|
-
**Done when:** `lint:boundaries` exists and runs as part of the same command as typecheck.
|
|
67
|
-
|
|
68
|
-
### 5. Scaffold the example package
|
|
69
|
-
|
|
70
|
-
Create a committed `<packages-root>/example/` as a copy-me template:
|
|
71
|
-
|
|
72
|
-
- `index.ts` is an entry point. Export one function that delegates to an internal file (so the package is visibly *deep*, not a pass-through).
|
|
73
|
-
- `lib/impl.ts`: an internal file in a **subfolder**, imported by `index.ts`, not reachable from outside.
|
|
74
|
-
- `tests/example.test.ts` imports **only** `../index` (an entry point) and asserts against the public function.
|
|
75
|
-
|
|
76
|
-
Tell the user this is a starter template to copy or delete.
|
|
77
|
-
|
|
78
|
-
**Done when:** the example package exists, exposes its behaviour through a root entry point, and hides `impl` in a subfolder.
|
|
79
|
-
|
|
80
|
-
### 6. Prove the rules bite
|
|
81
|
-
|
|
82
|
-
This is the completion criterion for the whole skill: a config that doesn't fail on a violation is worthless.
|
|
83
|
-
|
|
84
|
-
1. Run `lint:boundaries`. It must **pass** on the clean example.
|
|
85
|
-
2. Temporarily add a deep import to `tests/example.test.ts` (e.g. `import { thing } from "../lib/impl"`). Run `lint:boundaries` again; it must **fail** with `tests-through-entrypoints`.
|
|
86
|
-
3. Revert the deep import. Run once more, and it must **pass**.
|
|
87
|
-
|
|
88
|
-
**Done when:** you have observed a pass, then a fail on the deep import, then a pass again. If step 2 does not fail, the rules are not wired correctly, so fix before finishing.
|
|
89
|
-
|
|
90
|
-
### 7. Document the convention
|
|
91
|
-
|
|
92
|
-
Write a `README.md` **in the packages folder** (`<packages-root>/README.md`, next to the packages it governs) covering: the `src/packages/<name>/` layout (entry points at the root, `lib/` for implementation, `tests/` for tests), "import only through a package's entry points (its root files)", and how to run `lint:boundaries`. **Discourage barrel files** explicitly: expose several small entry points instead of re-exporting a whole subtree through one index. Keep it to the copy-me snippet plus the four rules in one paragraph each.
|
|
93
|
-
|
|
94
|
-
Then add a **context pointer** to it from the repo's agent-instructions file (`CLAUDE.md` if present, else `AGENTS.md`, creating `AGENTS.md` if neither exists). One line is enough, e.g. `Packages are deep modules: see [src/packages/README.md](./src/packages/README.md) before adding or importing one.` This is what makes an agent discover the boundary rule instead of tripping over it.
|
|
95
|
-
|
|
96
|
-
**Done when:** `<packages-root>/README.md` exists and discourages barrels, and the repo's `CLAUDE.md`/`AGENTS.md` links to it.
|
|
97
|
-
|
|
98
|
-
## Notes
|
|
99
|
-
|
|
100
|
-
- The config's `$1` back-references (dependency-cruiser's group matching) are what let a package reach its own internals while outsiders can't. Don't flatten them into separate per-package rules.
|
|
101
|
-
- Public vs private is decided by **depth**: a package's root files are entry points; anything in a subfolder is private. The conventional subfolders are `lib/` (implementation) and `tests/`, but the rule doesn't hardcode them: any subfolder is private, so a new folder never needs a config change. Adding an entry point is just adding a root file (no barrel).
|
|
102
|
-
- Packages are **flat**: one tier of immediate children under the root. A package's internals may nest as deep as you like; a package may not contain another package.
|
|
103
|
-
- Use `.cjs` (not `.js`) so the config's `module.exports` works even in `"type": "module"` repos.
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
// Deep-module enforcement for dependency-cruiser.
|
|
3
|
-
//
|
|
4
|
-
// Each package under the packages root is a DEEP MODULE: a lot of behaviour
|
|
5
|
-
// behind a small interface. A package's PUBLIC SURFACE is its ENTRY POINTS:
|
|
6
|
-
// the files at the package root. Implementation lives in SUBFOLDERS and is
|
|
7
|
-
// private (by convention `lib/` for implementation and `tests/` for tests,
|
|
8
|
-
// though any subfolder is private). A package may expose several small entry
|
|
9
|
-
// points (index.ts, client.ts, server.ts, …); prefer that over one giant
|
|
10
|
-
// barrel index.
|
|
11
|
-
//
|
|
12
|
-
// The only thing you should ever need to edit here is PACKAGES_ROOT.
|
|
13
|
-
|
|
14
|
-
/** Where packages live. One immediate child dir per package (flat, no nesting). */
|
|
15
|
-
const PACKAGES_ROOT = "src/packages";
|
|
16
|
-
|
|
17
|
-
// --- derived patterns (no need to edit) -------------------------------------
|
|
18
|
-
const R = PACKAGES_ROOT;
|
|
19
|
-
/**
|
|
20
|
-
* A package's private internals: anything nested inside a package subfolder.
|
|
21
|
-
* The package's root files are its entry points and are NOT matched here:
|
|
22
|
-
* they stay importable from outside.
|
|
23
|
-
*/
|
|
24
|
-
const PACKAGE_INTERNALS = `^${R}/[^/]+/[^/]+/`;
|
|
25
|
-
|
|
26
|
-
/** @type {import('dependency-cruiser').IConfiguration} */
|
|
27
|
-
module.exports = {
|
|
28
|
-
forbidden: [
|
|
29
|
-
{
|
|
30
|
-
name: "entrypoint-boundary-from-app",
|
|
31
|
-
comment:
|
|
32
|
-
"App/root code may import a package's entry points (its root files), but nothing inside its subfolders.",
|
|
33
|
-
severity: "error",
|
|
34
|
-
from: { pathNot: `^${R}/` }, // importer is NOT inside any package
|
|
35
|
-
to: { path: PACKAGE_INTERNALS },
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: "entrypoint-boundary-across-packages",
|
|
39
|
-
comment:
|
|
40
|
-
"A package's own files import each other freely, but may reach OTHER packages only through their entry points, never their internals.",
|
|
41
|
-
severity: "error",
|
|
42
|
-
// importer is inside a package ($1), but is not a test file
|
|
43
|
-
from: { path: `^${R}/([^/]+)/`, pathNot: `^${R}/[^/]+/tests/` },
|
|
44
|
-
to: {
|
|
45
|
-
path: PACKAGE_INTERNALS,
|
|
46
|
-
pathNot: `^${R}/$1/`, // same package → intra-package freedom
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "tests-through-entrypoints",
|
|
51
|
-
comment:
|
|
52
|
-
"A package's tests exercise it through its entry points like everyone else: they may import any package's entry points and their own tests/ fixtures, but never any package's internals, not even their own.",
|
|
53
|
-
severity: "error",
|
|
54
|
-
from: { path: `^${R}/([^/]+)/tests/` }, // a test file, in package $1
|
|
55
|
-
to: {
|
|
56
|
-
path: PACKAGE_INTERNALS,
|
|
57
|
-
pathNot: `^${R}/$1/tests/`, // own tests/ fixtures → allowed
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: "tests-folder-is-private",
|
|
62
|
-
comment:
|
|
63
|
-
"A package's tests/ folder is reachable only from tests: nothing else may import fixtures.",
|
|
64
|
-
severity: "error",
|
|
65
|
-
from: { pathNot: `^${R}/[^/]+/tests/` }, // importer is not itself a test
|
|
66
|
-
to: { path: `^${R}/[^/]+/tests/` },
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: "no-circular",
|
|
70
|
-
comment: "No dependency cycles. Scope to `^${R}/` if you want to allow cycles outside packages.",
|
|
71
|
-
severity: "error",
|
|
72
|
-
from: {},
|
|
73
|
-
to: { circular: true },
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
// --- Layering (optional, off by default) ----------------------------------
|
|
77
|
-
// Interface-hiding controls HOW you import (through the entry points).
|
|
78
|
-
// Layering controls WHICH packages may depend on which. Add your own rules
|
|
79
|
-
// here, e.g.:
|
|
80
|
-
//
|
|
81
|
-
// {
|
|
82
|
-
// name: "ui-may-not-depend-on-billing",
|
|
83
|
-
// severity: "error",
|
|
84
|
-
// from: { path: `^${R}/ui/` },
|
|
85
|
-
// to: { path: `^${R}/billing/` },
|
|
86
|
-
// },
|
|
87
|
-
],
|
|
88
|
-
options: {
|
|
89
|
-
doNotFollow: { path: "node_modules" },
|
|
90
|
-
tsConfig: { fileName: "tsconfig.json" },
|
|
91
|
-
enhancedResolveOptions: {
|
|
92
|
-
extensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# Example tasks
|
|
2
|
-
|
|
3
|
-
Tasks grouped by the problem they solve. Each names the trigger that starts its runs, what a run does, and what it triggers next. Most factories start as one of these and grow by chaining the next.
|
|
4
|
-
|
|
5
|
-
## Untriaged tickets pile up
|
|
6
|
-
|
|
7
|
-
**Explore task**
|
|
8
|
-
- Trigger: a ticket is created, or a human labels it.
|
|
9
|
-
- Does: checks the ticket's claims against the codebase, reproducing them where it can, sorts it into a category (easy call, needs a human, not a bug), and leaves its findings on the ticket for the implementer. It never pushes.
|
|
10
|
-
- Triggers: an implementer run for easy calls. Anything else ends with the ticket labelled as waiting for a human.
|
|
11
|
-
|
|
12
|
-
## Ready tickets wait for someone to build them
|
|
13
|
-
|
|
14
|
-
**Implementer task**
|
|
15
|
-
- Trigger: a ticket is labelled ready, by a human or an explore run.
|
|
16
|
-
- Does: builds the ticket until the automated checks pass, and opens a draft PR.
|
|
17
|
-
- Triggers: an automated review run.
|
|
18
|
-
|
|
19
|
-
## PRs wait for review
|
|
20
|
-
|
|
21
|
-
**Automated review task**
|
|
22
|
-
- Trigger: a PR opens with no automated review yet, or a human labels it.
|
|
23
|
-
- Does: reviews the diff against the codebase's standards and the ticket it came from.
|
|
24
|
-
- Triggers: a rework run on a fail. On a pass it ends, and the PR waits for human review before a human merges it.
|
|
25
|
-
|
|
26
|
-
## Failed automated reviews sit unfixed
|
|
27
|
-
|
|
28
|
-
**Rework task**
|
|
29
|
-
- Trigger: an automated review run fails a PR.
|
|
30
|
-
- Does: fixes only what the automated review named, and pushes.
|
|
31
|
-
- Triggers: an automated review run. After a set number of fails, it ends with the PR labelled as waiting for a human.
|
|
32
|
-
|
|
33
|
-
## Specs are too big for one run
|
|
34
|
-
|
|
35
|
-
**Decompose task**
|
|
36
|
-
- Trigger: a spec ticket is labelled.
|
|
37
|
-
- Does: splits the spec into tickets, each recording which tickets it depends on.
|
|
38
|
-
- Triggers: an implementer run.
|
|
39
|
-
|
|
40
|
-
The implementer run here picks the next ticket whose dependencies are all closed, and triggers itself again until no ticket is left.
|
|
41
|
-
|
|
42
|
-
## Migrating to a stricter automated check
|
|
43
|
-
|
|
44
|
-
A new lint rule (or a stricter type setting) is switched on, but only some files pass it. The rule enforces on the passing files, and the failing ones sit on an exception list.
|
|
45
|
-
|
|
46
|
-
**Ratchet task**
|
|
47
|
-
- Trigger: a daily clock.
|
|
48
|
-
- Does: takes one file off the exception list, fixes it until the stricter check passes, and opens a PR.
|
|
49
|
-
- Triggers: an automated review run. Once the exception list is empty, the ratchet run has nothing to take and the migration is done.
|
|
50
|
-
|
|
51
|
-
One small PR a day keeps human review cheap, and the check only ever gets stricter.
|
|
52
|
-
|
|
53
|
-
## Users report bugs nobody reads
|
|
54
|
-
|
|
55
|
-
A feedback button in the app is a ticket source: it files each report as a ticket with the explore label already on it. The explore run does the rest.
|
|
56
|
-
|
|
57
|
-
## Production problems are found late
|
|
58
|
-
|
|
59
|
-
A monitor (slow queries, error rates) is a ticket source. It files a ticket per problem, and comments on the open ticket instead when it sees the same problem again. After a fix merges, it reopens the ticket if the problem persists.
|
|
60
|
-
|
|
61
|
-
## The factory's own runs fail
|
|
62
|
-
|
|
63
|
-
**Fix task**
|
|
64
|
-
- Trigger: the orchestrator reports a failed run.
|
|
65
|
-
- Does: files the failing log as a ticket, and attempts a fix as a PR when the failure is fixable.
|
|
66
|
-
- Triggers: an automated review run. A failure in a fix run's own work triggers nothing, so fixes never chain. Because the fix changes the factory itself, it always gets human review.
|
|
67
|
-
|
|
68
|
-
## The codebase drifts
|
|
69
|
-
|
|
70
|
-
**Architecture task**
|
|
71
|
-
- Trigger: a nightly clock.
|
|
72
|
-
- Does: scans recent changes for refactoring candidates and files them as one ticket.
|
|
73
|
-
- Triggers: nothing. A human picks a candidate and labels it, which starts the usual chain.
|
|
74
|
-
|
|
75
|
-
## The same mistakes keep coming back
|
|
76
|
-
|
|
77
|
-
**Retro task**
|
|
78
|
-
- Trigger: a PR merges, throttled to one merged PR in ten.
|
|
79
|
-
- Does: reads the PR, its ticket, its automated reviews and its run logs, and proposes changes to the factory's own instructions as a PR.
|
|
80
|
-
- Triggers: an automated review run.
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Git hosts
|
|
2
|
-
|
|
3
|
-
> Surveyed 2026-10, and not guaranteed to be up to date. Use it to get oriented, then research the current options yourself: products, prices, limits and betas change fast.
|
|
4
|
-
|
|
5
|
-
## The types
|
|
6
|
-
|
|
7
|
-
### All-in-one platforms
|
|
8
|
-
|
|
9
|
-
The git host bundled with a ticket tracker, a CI system that serves as orchestrator, and hosted runners, all sharing one event stream and one permission model. One product fills git host, ticket tracker, orchestrator and runner, and its CI run pages often cover the observability platform too. Every PR, review, label and check event is both a webhook and a native trigger, so this type has the richest trigger catalogue.
|
|
10
|
-
|
|
11
|
-
**Pick it when** the factory starts small, the code already lives there, or the user wants one bill and one login. This is the "All on GitHub" design in [SKILL.md](SKILL.md). The vendors also ship their own agents, which either compete with the user's runs or slot in as one of them.
|
|
12
|
-
|
|
13
|
-
- [GitHub](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api): the default; Issues, Actions, Apps and the largest integration ecosystem.
|
|
14
|
-
- [GitLab](https://about.gitlab.com/pricing/): issues, merge requests, CI/CD and runners in one product, SaaS or self-managed.
|
|
15
|
-
|
|
16
|
-
### Suite git hosts
|
|
17
|
-
|
|
18
|
-
A git host sold as one module of a wider suite, where the ticket tracker is a sibling product (Jira, Azure Boards) joined by links and webhooks. Tracker events arrive on a second stream, so the orchestrator joins two event sources.
|
|
19
|
-
|
|
20
|
-
**Pick it when** the organisation already runs the suite and its humans live in Jira or Azure Boards. The factory inherits that tracker as its human interface.
|
|
21
|
-
|
|
22
|
-
- [Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/): Atlassian's git host, paired with Jira and Bitbucket Pipelines.
|
|
23
|
-
- [Azure DevOps (Azure Repos)](https://learn.microsoft.com/en-us/azure/devops/integrate/concepts/rate-limits): Repos, Boards, Pipelines and Entra identities in one organisation, so it fills all four slots.
|
|
24
|
-
- [AWS CodeCommit](https://aws.amazon.com/blogs/devops/aws-codecommit-returns-to-general-availability/): a bare git host with IAM identities; pair it with an external tracker and CI.
|
|
25
|
-
|
|
26
|
-
### Self-hosted git hosts
|
|
27
|
-
|
|
28
|
-
A git host the user runs on their own infrastructure, often beside the orchestrator and runners on the same network. The operator sets the rate limits, so the ceiling is the hardware. The user owns upgrades, backups and uptime for every slot it fills.
|
|
29
|
-
|
|
30
|
-
**Pick it when** code must stay on-premises or air-gapped, the user wants zero per-seat cost, or a SaaS API budget throttles a busy factory. Forgejo and Gitea suit small teams and bundle issues plus GitHub-Actions-compatible CI; GitLab self-managed and GitHub Enterprise Server suit organisations and keep their Apps and service accounts.
|
|
31
|
-
|
|
32
|
-
- [Forgejo](https://forgejo.org/2026-10-release-v17-0/): community-governed, lightweight, with Forgejo Actions.
|
|
33
|
-
- [Gitea](https://about.gitea.com/): lightweight with Gitea Actions; also sold managed.
|
|
34
|
-
- [GitLab self-managed](https://about.gitlab.com/install/) and [GitHub Enterprise Server](https://docs.github.com/en/enterprise-server@latest): the full platforms on the user's own infrastructure.
|
|
35
|
-
|
|
36
|
-
### Review-first and decentralised git hosts
|
|
37
|
-
|
|
38
|
-
Git hosts whose review model departs from the branch-and-PR shape: per-commit patchsets with voted labels, or repositories federated across user-run nodes. Most factory tooling assumes PRs, so expect to build more of the glue. In Gerrit, an automated check run votes `Verified` from a bot account and a human votes `Code-Review`.
|
|
39
|
-
|
|
40
|
-
**Pick it when** the user's team already reviews this way, or values federation over ecosystem.
|
|
41
|
-
|
|
42
|
-
- [Gerrit](https://www.gerritcodereview.com/): patchset review with label votes; the Android and Chromium model.
|
|
43
|
-
- [Tangled](https://blog.tangled.org/ci/): git hosting on the AT Protocol with stacked PRs and its own CI runner.
|
|
44
|
-
|
|
45
|
-
### Agent-native git hosts
|
|
46
|
-
|
|
47
|
-
New git hosts built around agents as the main authors: high commit throughput, server-side reads in place of clones, and per-agent attribution. The whole type is early (as of 2026-10), so gates and rate limits may be unpublished: ask the vendor.
|
|
48
|
-
|
|
49
|
-
**Pick it when** the factory runs many concurrent runs against one large repository and clone time or API limits dominate. Pilot one on a mirror of a single repository, keeping GitHub as the fallback.
|
|
50
|
-
|
|
51
|
-
- [Cursor Origin](https://cursor.com/origin): from the Graphite team, with GitHub sync and signed PR, review and push webhooks.
|
|
52
|
-
- [GitLab next-gen SCM](https://about.gitlab.com/blog/gitlab-next-gen-scm/): rebuilt GitLab backend with clone-free agent APIs.
|
|
53
|
-
|
|
54
|
-
### Git storage for runs
|
|
55
|
-
|
|
56
|
-
Headless, API-first git repositories created by the thousand: branches, commits and diffs, with no PRs, reviews or gates. They fill half the slot, with short-lived per-repository tokens minted per run.
|
|
57
|
-
|
|
58
|
-
**Pick it when** runs need cheap per-run scratch repositories or forks (a fork per ticket, an agent's working state) and the PR still lands on a full git host from the types above.
|
|
59
|
-
|
|
60
|
-
- [Cloudflare Artifacts](https://www.cloudflare.com/product/artifacts/): git-compatible storage on Workers; fork a baseline per task.
|
|
61
|
-
- [Pierre code.storage](https://code.storage/docs): white-label git API with ephemeral branches.
|
|
62
|
-
|
|
63
|
-
## Researching further
|
|
64
|
-
|
|
65
|
-
Check each candidate against these questions:
|
|
66
|
-
|
|
67
|
-
1. **Triggers**: which events (PR opened, push, review submitted, label added, check finished) reach the orchestrator as webhooks, and are deliveries signed?
|
|
68
|
-
2. **Identity**: can a run act as a dedicated bot or app identity? That keeps runs attributable, lets an automated review run approve a PR another identity authored, and decides whether a run's own pushes trigger the next run.
|
|
69
|
-
3. **Gates**: are required checks, required approvals and branch protection available on the user's plan and repository visibility, and can a bot sit on a bypass list?
|
|
70
|
-
4. **Rate limits**: what API budget does every run on every runner share, per what unit (installation, token, user, workspace), and how does it scale?
|
|
71
|
-
5. **Slots filled**: which of ticket tracker, orchestrator, runner and observability platform does the same product cover?
|
|
72
|
-
|
|
73
|
-
Find the answers in primary sources: the REST API and webhook reference, the rate-limit page, the pricing and plan comparison page, the access-token or app docs, and the changelog or release notes.
|
|
74
|
-
|
|
75
|
-
The fastest to go stale: beta and preview status (the whole agent-native and git-storage types), rate-limit numbers, which plan unlocks gates, and availability after acquisitions, shutdowns and reopenings. As of 2026-10, for example, AWS CodeCommit had reopened to new customers and Bitbucket Data Center was sold only as a hybrid licence with Cloud.
|
|
76
|
-
|
|
77
|
-
## Durable gotchas
|
|
78
|
-
|
|
79
|
-
Verify each still holds before the design relies on it.
|
|
80
|
-
|
|
81
|
-
- **GitHub `GITHUB_TOKEN` ends chains.** Events caused by the built-in Actions token start no new workflow runs (except `workflow_dispatch` and `repository_dispatch`), so a run pushing with it silently stops the next run. Give runs a GitHub App identity from day one.
|
|
82
|
-
- **Gates often sit behind a paid plan.** As of 2026-10, GitHub rulesets on private repositories need Pro, Team or Enterprise, GitLab approval rules need Premium, and enforced Bitbucket merge checks need Premium.
|
|
83
|
-
- **Rate limits are per identity, and the bot's type changes them.** As of 2026-10, a GitHub App installation gets 5,000 requests/hour against 1,000 for `GITHUB_TOKEN`; Bitbucket user tokens stay at the base rate while access tokens scale; Azure DevOps raises a bot's budget with its access level.
|
|
84
|
-
- **Suite trackers mean two event streams.** The orchestrator joins git host and ticket tracker events itself.
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Observability platforms
|
|
2
|
-
|
|
3
|
-
> Surveyed 2026-10, and not guaranteed to be up to date. Use it to get oriented, then research the current options yourself: products, prices, limits and betas change fast.
|
|
4
|
-
|
|
5
|
-
Orientation for filling the observability platform slot, or deciding on a deliberate none. The types split by **what the human needs to see inside a run**: its log, its agent trace (each model call and tool call as a span), or that trace joined to the rest of the user's system. Self-hosted vs SaaS cuts across the last three types. When a run should act on what the platform sees, make the platform a ticket source: a monitor files the ticket, and a run reads it.
|
|
6
|
-
|
|
7
|
-
## How runners hook in
|
|
8
|
-
|
|
9
|
-
Every type receives data through one of five hooks. Name the hook alongside the product when filling the slot.
|
|
10
|
-
|
|
11
|
-
- **Harness OTel**: the agent harness exports OpenTelemetry itself. Claude Code and the Claude Agent SDK take `CLAUDE_CODE_ENABLE_TELEMETRY=1` plus `OTEL_*` variables, with prompts and tool output opt-in; Codex CLI takes an `[otel]` block in `config.toml`. ([Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/observability), [Claude Code](https://code.claude.com/docs/en/monitoring-usage), [Codex config](https://developers.openai.com/codex/config-advanced))
|
|
12
|
-
- **Platform push**: the model platform sends traces for you, as Claude Managed Agents do to an OTLP destination set in the Claude Console. ([Claude docs](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api))
|
|
13
|
-
- **SDK wrapper**: one call in the runner's code, such as LangSmith's `configure_claude_agent_sdk()`.
|
|
14
|
-
- **Hook plugin**: a Claude Code hook reads the session transcript at each Stop and ships it, as in Langfuse's Claude Code plugin.
|
|
15
|
-
- **Gateway**: the runner's model base URL points at a logging proxy. Zero runner code, and it sees model calls only: tool calls inside the harness stay invisible.
|
|
16
|
-
|
|
17
|
-
OpenTelemetry is the common wire: harness OTel and platform push land in any OTLP backend. The GenAI semantic conventions (`invoke_agent`, `chat`, `execute_tool` spans) are still settling, so expect span names to drift. ([OTel GenAI agent spans](https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-agent-spans))
|
|
18
|
-
|
|
19
|
-
## Type 1: None (the runner or orchestrator product shows enough)
|
|
20
|
-
|
|
21
|
-
**What it is**: the human reads each run where the runner or orchestrator already shows it: the CI run page, the sandbox dashboard, the agent's transcript saved as a run artifact. No hook to build, as self-hosted as the runner, and bundled with its cost.
|
|
22
|
-
|
|
23
|
-
**When a factory picks it**: few runs a day, one human watching, and the question is "did it fail, and what did it print?" Most factories start here, and grow out of it when they need search across runs, a token or cost rollup per run, or retention longer than the runner keeps.
|
|
24
|
-
|
|
25
|
-
**Starting points**: [GitHub Actions run logs](https://docs.github.com/en/organizations/managing-organization-settings/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization), [E2B sandbox logs and metrics](https://e2b.dev/docs), [Daytona sandbox telemetry](https://www.daytona.io/docs/en/observability/otel-collection/), [OpenAI Agents SDK traces](https://openai.github.io/openai-agents-python/tracing/). Sandbox products often forward the same data over OTLP, which is the path out to Type 2.
|
|
26
|
-
|
|
27
|
-
**Verify**: retention days per runner product; some sandboxes keep very little (Daytona: 3 days, as of 2026-10).
|
|
28
|
-
|
|
29
|
-
## Type 2: LLM and agent tracing platform
|
|
30
|
-
|
|
31
|
-
**What it is**: a backend built around the agent trace: each run as a tree of model calls and tool calls, with token cost, prompts and sessions, usually with evals and datasets on top.
|
|
32
|
-
|
|
33
|
-
**When a factory picks it**: the human asks "why did the agent do that?" across many runs; a retro run or a human compares runs; token spend needs a per-run rollup. Self-hosting an open-source one keeps transcripts in-house.
|
|
34
|
-
|
|
35
|
-
**Traits of the type**: takes harness OTel, an SDK wrapper or a hook plugin, often the platform push too. Billed by volume, and agent runs are span-heavy (one span per tool call), so budget per run rather than per request.
|
|
36
|
-
|
|
37
|
-
**Starting points**: [Langfuse](https://langfuse.com/pricing) and [Arize Phoenix](https://phoenix.arize.com) (open source, self-hostable), [LangSmith](https://www.langchain.com/pricing-langsmith), [Braintrust](https://www.braintrust.dev/pricing).
|
|
38
|
-
|
|
39
|
-
**Verify**: free-tier limits, the billing unit (trace, span, unit or GB; Braintrust moved to GB in 2026-03), which tier unlocks self-hosting, and current ownership.
|
|
40
|
-
|
|
41
|
-
## Type 3: General APM and logging backend
|
|
42
|
-
|
|
43
|
-
**What it is**: the user's existing observability stack (logs, metrics, distributed traces for every service), with an agent or LLM view added.
|
|
44
|
-
|
|
45
|
-
**When a factory picks it**: the team already pays for one; runs need joining to the app's own traces (the Agent SDK propagates `TRACEPARENT`, so a run nests inside its caller's trace); or a monitor ticket source already reads from it.
|
|
46
|
-
|
|
47
|
-
**Traits of the type**: harness OTel goes straight to the vendor's OTLP endpoint. Priced per GB, event or host, so a factory's volume is a rounding error on an existing bill and a surprise on a new one.
|
|
48
|
-
|
|
49
|
-
**Starting points**: [Datadog Agent Observability](https://www.datadoghq.com/product/llm-observability/), [Grafana Cloud](https://grafana.com/pricing/), [Honeycomb](https://www.honeycomb.io/pricing), [SigNoz](https://signoz.io/pricing/) (open source).
|
|
50
|
-
|
|
51
|
-
**Verify**: whether the agent view is GA or preview, which harnesses have a setup guide, and free-tier volumes.
|
|
52
|
-
|
|
53
|
-
## Type 4: LLM gateway with request logging
|
|
54
|
-
|
|
55
|
-
**What it is**: a proxy between the runner and the model provider that logs every request and response, with routing, keys, budgets and caching alongside.
|
|
56
|
-
|
|
57
|
-
**When a factory picks it**: the user wants per-run spend caps or one key vault for many runners, and logging comes with it; or the harness has no export of its own. It sees model calls only, so pair it with Type 2 or 3 for tool calls.
|
|
58
|
-
|
|
59
|
-
**Starting points**: [LiteLLM Proxy](https://docs.litellm.ai/docs/proxy/logging) (open source, forwards logs to Langfuse or OTel), [Portkey](https://portkey.ai/pricing).
|
|
60
|
-
|
|
61
|
-
**Verify**: per-request pricing on SaaS, and whether the product is still actively developed (Helicone went into maintenance mode after an acquisition, as of 2026-10).
|
|
62
|
-
|
|
63
|
-
## Researching further
|
|
64
|
-
|
|
65
|
-
Check each candidate against the questions that decide this slot:
|
|
66
|
-
|
|
67
|
-
1. **Does the runner or orchestrator already show enough?** Compare what the human needs (cross-run search, per-run cost, retention) with what the run page or sandbox dashboard gives. A yes here means a deliberate none.
|
|
68
|
-
2. **How does the agent harness export traces?** Find which of the five hooks the harness supports, then which the product accepts. Confirm tool calls arrive as spans, and whether prompts and tool output need an opt-in.
|
|
69
|
-
3. **Is it self-hostable?** Licence, which tier allows it, and what it runs on. Decisive when transcripts must stay in-house.
|
|
70
|
-
4. **What is the cost shape?** The billing unit, the free tier, and an estimate per run given one span per tool call, multiplied by runs per day.
|
|
71
|
-
5. **How long is retention?** Days kept on each tier, against how far back the human looks when a run goes wrong.
|
|
72
|
-
|
|
73
|
-
**Where the answers live**: the vendor's pricing page (units, tiers, retention); the vendor's integration doc for the specific harness; the harness's own monitoring docs (what it exports, which flags are beta); the OpenTelemetry GenAI semantic conventions; the product's repo for licence and release activity; the vendor's changelog or blog for ownership changes.
|
|
74
|
-
|
|
75
|
-
**What goes stale fastest**: free-tier limits and prices; beta and preview flags (Claude Code trace export, Console platform push, vendor agent views); ownership and maintenance status; billing units; retention days; GenAI span names.
|