agentboot 0.1.0 → 0.3.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.
Files changed (78) hide show
  1. package/README.md +9 -8
  2. package/agentboot.config.json +4 -1
  3. package/package.json +2 -2
  4. package/scripts/cli.ts +465 -18
  5. package/scripts/compile.ts +724 -75
  6. package/scripts/dev-sync.ts +1 -1
  7. package/scripts/lib/config.ts +259 -1
  8. package/scripts/lib/frontmatter.ts +3 -1
  9. package/scripts/validate.ts +12 -7
  10. package/website/docusaurus.config.ts +117 -0
  11. package/website/package-lock.json +18448 -0
  12. package/website/package.json +47 -0
  13. package/website/sidebars.ts +53 -0
  14. package/website/src/css/custom.css +23 -0
  15. package/website/src/pages/index.module.css +23 -0
  16. package/website/src/pages/index.tsx +125 -0
  17. package/website/static/.nojekyll +0 -0
  18. package/website/static/CNAME +1 -0
  19. package/website/static/img/favicon.ico +0 -0
  20. package/website/static/img/logo.svg +1 -0
  21. package/.github/ISSUE_TEMPLATE/persona-request.md +0 -62
  22. package/.github/ISSUE_TEMPLATE/quality-feedback.md +0 -67
  23. package/.github/workflows/cla.yml +0 -25
  24. package/.github/workflows/validate.yml +0 -49
  25. package/.idea/agentboot.iml +0 -9
  26. package/.idea/misc.xml +0 -6
  27. package/.idea/modules.xml +0 -8
  28. package/.idea/vcs.xml +0 -6
  29. package/CLAUDE.md +0 -230
  30. package/CONTRIBUTING.md +0 -168
  31. package/PERSONAS.md +0 -156
  32. package/core/instructions/baseline.instructions.md +0 -133
  33. package/core/instructions/security.instructions.md +0 -186
  34. package/core/personas/code-reviewer/SKILL.md +0 -175
  35. package/core/personas/security-reviewer/SKILL.md +0 -233
  36. package/core/personas/test-data-expert/SKILL.md +0 -234
  37. package/core/personas/test-generator/SKILL.md +0 -262
  38. package/core/traits/audit-trail.md +0 -182
  39. package/core/traits/confidence-signaling.md +0 -172
  40. package/core/traits/critical-thinking.md +0 -129
  41. package/core/traits/schema-awareness.md +0 -132
  42. package/core/traits/source-citation.md +0 -174
  43. package/core/traits/structured-output.md +0 -199
  44. package/docs/ci-cd-automation.md +0 -548
  45. package/docs/claude-code-reference/README.md +0 -21
  46. package/docs/claude-code-reference/agentboot-coverage.md +0 -484
  47. package/docs/claude-code-reference/feature-inventory.md +0 -906
  48. package/docs/cli-commands-audit.md +0 -112
  49. package/docs/cli-design.md +0 -924
  50. package/docs/concepts.md +0 -1117
  51. package/docs/config-schema-audit.md +0 -121
  52. package/docs/configuration.md +0 -645
  53. package/docs/delivery-methods.md +0 -758
  54. package/docs/developer-onboarding.md +0 -342
  55. package/docs/extending.md +0 -448
  56. package/docs/getting-started.md +0 -298
  57. package/docs/knowledge-layer.md +0 -464
  58. package/docs/marketplace.md +0 -822
  59. package/docs/org-connection.md +0 -570
  60. package/docs/plans/architecture.md +0 -2429
  61. package/docs/plans/design.md +0 -2018
  62. package/docs/plans/prd.md +0 -1862
  63. package/docs/plans/stack-rank.md +0 -261
  64. package/docs/plans/technical-spec.md +0 -2755
  65. package/docs/privacy-and-safety.md +0 -807
  66. package/docs/prompt-optimization.md +0 -1071
  67. package/docs/test-plan.md +0 -972
  68. package/docs/third-party-ecosystem.md +0 -496
  69. package/domains/compliance-template/README.md +0 -173
  70. package/domains/compliance-template/traits/compliance-aware.md +0 -228
  71. package/examples/enterprise/agentboot.config.json +0 -184
  72. package/examples/minimal/agentboot.config.json +0 -46
  73. package/tests/REGRESSION-PLAN.md +0 -705
  74. package/tests/TEST-PLAN.md +0 -111
  75. package/tests/cli.test.ts +0 -705
  76. package/tests/pipeline.test.ts +0 -608
  77. package/tests/validate.test.ts +0 -278
  78. package/tsconfig.json +0 -62
@@ -1,228 +0,0 @@
1
- # Trait: Compliance Aware
2
-
3
- <!--
4
- TEMPLATE FILE — This trait contains placeholder content only.
5
- Copy this file into your domain layer, rename it to reflect your domain
6
- (e.g., healthcare-compliance-aware.md, pci-compliance-aware.md), and replace
7
- every section marked [YOUR CONTENT HERE] with your actual compliance requirements.
8
-
9
- Do not commit this file with placeholder content to a production deployment.
10
- Do not add real compliance rules to this file in the AgentBoot public repo.
11
- -->
12
-
13
- **ID:** `compliance-aware`
14
- **Category:** Domain compliance
15
- **Configurable:** Yes — weight is set per-persona in its SKILL.md frontmatter
16
-
17
- ---
18
-
19
- ## Overview
20
-
21
- <!--
22
- Describe what this trait does in 2-4 sentences. What compliance context does it
23
- introduce? What kinds of violations does it surface? What kinds of files or changes
24
- does it apply to?
25
-
26
- Example structure (replace with your content):
27
- "The compliance-aware trait makes a persona aware of [YOUR COMPLIANCE CONTEXT].
28
- It activates when reviewing [FILE TYPES / CHANGE TYPES]. It surfaces violations
29
- of [KEY REQUIREMENT AREAS]."
30
- -->
31
-
32
- [YOUR CONTENT HERE: Brief description of the compliance context and what this trait does.]
33
-
34
- Personas that include this trait should declare a weight in their frontmatter:
35
-
36
- ```yaml
37
- traits:
38
- compliance-aware: HIGH # or MEDIUM or LOW
39
- ```
40
-
41
- If the weight is omitted, the runtime defaults to MEDIUM.
42
-
43
- ---
44
-
45
- ## Regulatory Context
46
-
47
- <!--
48
- Briefly describe the regulatory or policy framework this trait is derived from.
49
- Do NOT paste verbatim regulatory text. Reference the standard by name and cite
50
- the specific sections that inform this trait.
51
-
52
- Example structure:
53
- "This trait is derived from [STANDARD NAME], specifically [SECTION/REQUIREMENT].
54
- Consult the official [STANDARD NAME] documentation for authoritative guidance."
55
-
56
- If this is an internal policy rather than a public standard, describe it generically
57
- without exposing proprietary details.
58
- -->
59
-
60
- [YOUR CONTENT HERE: Name the relevant standard, regulation, or internal policy. Cite
61
- sections where applicable. Do not paste regulatory text verbatim.]
62
-
63
- ---
64
-
65
- ## Weight Definitions
66
-
67
- ### HIGH — Strict Compliance Review
68
-
69
- <!--
70
- At HIGH weight, this persona should apply the most rigorous interpretation of the
71
- compliance requirements. It should surface any potential violation, including edge
72
- cases, borderline patterns, and indirect violations.
73
-
74
- List the behavioral directives for HIGH weight. These should be specific and
75
- actionable — not "be strict" but "when reviewing X, check that Y is present."
76
- -->
77
-
78
- At HIGH weight, this persona applies strict compliance review:
79
-
80
- - [YOUR CONTENT HERE: Behavioral directive 1]
81
- - [YOUR CONTENT HERE: Behavioral directive 2]
82
- - [YOUR CONTENT HERE: Behavioral directive 3]
83
- - [YOUR CONTENT HERE: Behavioral directive 4]
84
- - [YOUR CONTENT HERE: Behavioral directive 5]
85
-
86
- Use HIGH when: [YOUR CONTENT HERE: Describe the file types, change types, or contexts
87
- where HIGH weight is appropriate — e.g., changes to PHI-handling code, production
88
- configuration changes, cryptographic implementation changes.]
89
-
90
- ---
91
-
92
- ### MEDIUM — Standard Compliance Review
93
-
94
- <!--
95
- At MEDIUM weight, this persona surfaces clear violations and significant risks,
96
- but allows minor deviations that are unlikely to cause compliance issues in practice.
97
-
98
- List the behavioral directives for MEDIUM weight.
99
- -->
100
-
101
- At MEDIUM weight, this persona applies standard compliance review:
102
-
103
- - Flag definite violations of [YOUR CONTENT HERE: key requirements] unconditionally.
104
- - Note patterns that are technically compliant but pose elevated risk.
105
- - [YOUR CONTENT HERE: Behavioral directive 3]
106
- - [YOUR CONTENT HERE: Behavioral directive 4]
107
- - Skip [YOUR CONTENT HERE: categories of findings that MEDIUM weight should not surface].
108
-
109
- Use MEDIUM when: [YOUR CONTENT HERE: Describe the contexts where MEDIUM weight is
110
- appropriate — the typical day-to-day review scenario for your compliance domain.]
111
-
112
- ---
113
-
114
- ### LOW — Advisory Compliance Review
115
-
116
- <!--
117
- At LOW weight, this persona surfaces only clear, unambiguous violations. It does not
118
- flag risk patterns, best-practice deviations, or borderline cases. Use this weight
119
- for early-stage review where the goal is to catch show-stoppers, not to audit exhaustively.
120
- -->
121
-
122
- At LOW weight, this persona surfaces only clear, unambiguous violations:
123
-
124
- - Flag [YOUR CONTENT HERE: the most critical violation categories only].
125
- - Skip [YOUR CONTENT HERE: risk patterns, best-practice deviations, advisory-level findings].
126
- - Note: LOW weight reduces noise, not safety. [YOUR CONTENT HERE: If there is an
127
- absolute floor — a category of finding that must always surface regardless of weight —
128
- state it here.]
129
-
130
- Use LOW when: [YOUR CONTENT HERE: Describe when LOW weight is appropriate. Often this
131
- is early-stage development, learning environments, or non-production contexts.]
132
-
133
- ---
134
-
135
- ## Behavioral Directives (All Weights)
136
-
137
- <!--
138
- List behavioral directives that apply regardless of weight. These are the
139
- non-negotiable behaviors of this trait.
140
- -->
141
-
142
- At every weight level:
143
-
144
- - [YOUR CONTENT HERE: Non-negotiable directive 1 — e.g., always cite the specific
145
- requirement that a finding is based on]
146
- - [YOUR CONTENT HERE: Non-negotiable directive 2]
147
- - [YOUR CONTENT HERE: Non-negotiable directive 3]
148
-
149
- ---
150
-
151
- ## Anti-Patterns to Avoid
152
-
153
- <!--
154
- REQUIRED SECTION. Every trait must specify what the persona should NOT do.
155
- This section is as important as the behavioral directives — it prevents the
156
- trait from producing noisy, unhelpful, or incorrect output.
157
-
158
- Structure: list specific tempting behaviors that would make this trait less useful.
159
- Be concrete.
160
- -->
161
-
162
- **At any weight:**
163
-
164
- - [YOUR CONTENT HERE: Anti-pattern 1 — e.g., do not flag violations in test fixtures
165
- or mock data that are clearly not production code]
166
- - [YOUR CONTENT HERE: Anti-pattern 2 — e.g., do not surface the same violation at
167
- multiple severity levels simultaneously]
168
- - [YOUR CONTENT HERE: Anti-pattern 3 — e.g., do not conflate "non-standard" with
169
- "non-compliant" — the standard may permit multiple approaches]
170
- - Do not cite regulatory text verbatim. Summarize the requirement and link to the source.
171
- - Do not surface compliance concerns that are already caught by static analysis tools
172
- that are confirmed to be running in this repo's CI pipeline.
173
-
174
- **At HIGH weight specifically:**
175
-
176
- - [YOUR CONTENT HERE: Anti-patterns specific to HIGH weight]
177
- - Do not manufacture compliance concerns to appear thorough. Every finding must have
178
- an evidentiary basis.
179
-
180
- **At LOW weight specifically:**
181
-
182
- - [YOUR CONTENT HERE: Anti-patterns specific to LOW weight]
183
- - Do not stay silent on [YOUR CONTENT HERE: the most critical finding category].
184
- LOW weight reduces noise; it does not eliminate mandatory surfacing of show-stoppers.
185
-
186
- ---
187
-
188
- ## Interaction with Other Traits
189
-
190
- <!--
191
- Describe how this trait interacts with core traits. Does HIGH critical-thinking
192
- amplify or conflict with HIGH compliance weight? Does source-citation apply
193
- differently in a compliance context?
194
- -->
195
-
196
- - **`critical-thinking`** — [YOUR CONTENT HERE: how does critical-thinking weight
197
- interact with compliance weight? Do they compound or is one dominant?]
198
- - **`source-citation`** — compliance findings must always cite the specific regulatory
199
- requirement they are based on. The source-citation trait governs the citation format;
200
- this trait provides the regulatory sources.
201
- - **`structured-output`** — compliance findings should use the standard severity tiers
202
- (CRITICAL / WARN / INFO) with the following domain-specific mapping:
203
- [YOUR CONTENT HERE: describe how compliance violation severity maps to the standard tiers]
204
-
205
- ---
206
-
207
- ## Examples
208
-
209
- <!--
210
- Optional but strongly encouraged. Provide 1-2 examples of what this trait produces
211
- at HIGH weight on a realistic input. Show what a well-formed compliance finding looks
212
- like versus a poorly formed one.
213
- -->
214
-
215
- ### Example: Well-formed finding
216
-
217
- ```
218
- [YOUR CONTENT HERE: Paste an example of the output this trait should produce.
219
- Show the severity tier, the specific finding, the regulatory citation, and
220
- the recommendation.]
221
- ```
222
-
223
- ### Example: What NOT to produce
224
-
225
- ```
226
- [YOUR CONTENT HERE: Paste an example of the kind of output this trait should
227
- avoid — too vague, wrong severity, missing citation, etc. Explain why it is wrong.]
228
- ```
@@ -1,184 +0,0 @@
1
- {
2
- // Enterprise AgentBoot configuration.
3
- //
4
- // Multiple groups, multiple teams per group, custom extension path,
5
- // all personas enabled, strict validation, custom secret patterns.
6
- //
7
- // This config represents a mid-to-large engineering organization
8
- // (~50-500 engineers) operating across three major groups.
9
-
10
- "org": "my-company",
11
- "orgDisplayName": "My Company",
12
-
13
- // ---------------------------------------------------------------------------
14
- // Groups and teams
15
- // ---------------------------------------------------------------------------
16
-
17
- "groups": {
18
- // Platform: shared infrastructure and foundational services.
19
- "platform": {
20
-
21
- "teams": [
22
- "api", // REST and GraphQL services
23
- "infra", // Terraform, CI/CD, cloud infrastructure
24
- "data", // Data platform, pipelines, warehousing
25
- "security" // AppSec, SAST/DAST, incident response
26
- ],
27
- // Every Platform engineer gets schema-awareness and source-citation
28
- // in addition to the org-wide trait defaults.
29
- "traitsEnabled": [
30
- "schema-awareness",
31
- "source-citation"
32
- ]
33
- },
34
-
35
- // Product: customer-facing applications.
36
- "product": {
37
-
38
- "teams": [
39
- "web", // React/TypeScript frontends
40
- "mobile", // iOS and Android (React Native)
41
- "growth", // A/B testing, analytics, experimentation
42
- "design-systems" // Component library and tokens
43
- ],
44
- "traitsEnabled": [
45
- "source-citation"
46
- // Planned trait (not yet authored): "minimal-diff"
47
- ]
48
- },
49
-
50
- // Compliance: regulated domains requiring elevated scrutiny.
51
- "compliance": {
52
-
53
- "teams": [
54
- "hipaa", // Healthcare data / PHI handling
55
- "pci", // Payment card data flows
56
- "legal-tech" // Contract analysis, e-discovery tooling
57
- ],
58
- // Compliance teams always run critical-thinking at HIGH and
59
- // must always produce structured output for audit trails.
60
- "traitsEnabled": [
61
- "critical-thinking",
62
- "structured-output",
63
- "source-citation"
64
- // Planned trait (not yet authored): "explain-reasoning"
65
- ]
66
- }
67
- },
68
-
69
- // ---------------------------------------------------------------------------
70
- // Personas
71
- // ---------------------------------------------------------------------------
72
-
73
- "personas": {
74
- // All four core personas enabled.
75
- "enabled": [
76
- "code-reviewer",
77
- "security-reviewer",
78
- "test-generator",
79
- "test-data-expert"
80
- ],
81
-
82
- // Org-specific personas that extend the core set.
83
- // These personas live in this repo under ./personas/ and are NOT
84
- // contributed back to the agentboot open-source project.
85
- "customDir": "./personas",
86
-
87
- // Generate all output formats for maximum tool compatibility.
88
- "outputFormats": ["skill", "claude", "copilot"]
89
- },
90
-
91
- // ---------------------------------------------------------------------------
92
- // Traits
93
- // ---------------------------------------------------------------------------
94
-
95
- "traits": {
96
- // Full set of core traits enabled. Persona authors can reference all of them.
97
- "enabled": [
98
- "critical-thinking",
99
- "structured-output",
100
- "schema-awareness",
101
- "source-citation"
102
- // Planned traits (not yet authored): "minimal-diff", "explain-reasoning"
103
- ]
104
- },
105
-
106
- // ---------------------------------------------------------------------------
107
- // Always-on instructions
108
- // ---------------------------------------------------------------------------
109
-
110
- "instructions": {
111
- "enabled": [
112
- "no-secrets",
113
- "code-style",
114
- "testing-required"
115
- ]
116
- },
117
-
118
- // ---------------------------------------------------------------------------
119
- // Sync
120
- // ---------------------------------------------------------------------------
121
-
122
- "sync": {
123
- "repos": "./repos.json",
124
-
125
- // Write compiled files to .claude/ in each repo.
126
- "targetDir": ".claude",
127
-
128
- // Write a PERSONAS.md index to each repo so engineers know what's available.
129
- "writePersonasIndex": true,
130
-
131
- // dryRun is false by default — set to true here or pass --dry-run at runtime
132
- // to preview what sync would do without writing files.
133
- "dryRun": false
134
- },
135
-
136
- // ---------------------------------------------------------------------------
137
- // Output
138
- // ---------------------------------------------------------------------------
139
-
140
- "output": {
141
- "distPath": "./dist",
142
-
143
- // Provenance headers let engineers trace any deployed file back to source.
144
- "provenanceHeaders": true,
145
-
146
- // Fail the build if dist/ has stale content from a previous run.
147
- // Recommended in CI pipelines to prevent artifact drift.
148
- "failOnDirtyDist": true
149
- },
150
-
151
- // ---------------------------------------------------------------------------
152
- // Validation
153
- // ---------------------------------------------------------------------------
154
-
155
- "validation": {
156
- // Strict mode: warnings are treated as errors.
157
- // Appropriate for regulated environments where correctness is audited.
158
- "strictMode": true,
159
-
160
- // Custom secret patterns for this organization.
161
- // Add internal patterns: account IDs, internal hostnames, internal tokens.
162
- "secretPatterns": [
163
- // Default patterns (password, api_key, secret, token, AWS keys, private keys)
164
- // are always active. These are org-specific additions.
165
-
166
- // Internal service account format.
167
- "svc-[a-z]+-[a-z0-9]{8}@acme-enterprise\\.internal",
168
-
169
- // Internal API gateway base URL (never hardcode in agent instructions).
170
- "api\\.internal\\.acme-enterprise\\.com",
171
-
172
- // Database connection strings.
173
- "postgres://[^@]+@[^/]+/",
174
- "mongodb\\+srv://",
175
-
176
- // Acme internal CA cert fingerprints.
177
- "ACME_INTERNAL_CA",
178
-
179
- // Any placeholder that looks like a real credential was pasted in.
180
- "REPLACE_ME",
181
- "TODO.*(?:password|secret|key|token)"
182
- ]
183
- }
184
- }
@@ -1,46 +0,0 @@
1
- {
2
- // Minimal AgentBoot configuration — a small product team.
3
- //
4
- // One group, two teams, three personas enabled.
5
- // Good starting point for teams under 20 engineers.
6
-
7
- "org": "my-startup",
8
- "orgDisplayName": "My Startup",
9
-
10
- "groups": {
11
- // Single engineering group.
12
- "engineering": {
13
- // Two feature teams.
14
- "teams": ["backend", "frontend"]
15
- }
16
- },
17
-
18
- "personas": {
19
- // Start with three — add more as the team grows.
20
- "enabled": [
21
- "code-reviewer",
22
- "security-reviewer",
23
- "test-generator"
24
- ]
25
- // No extend path — using core personas only.
26
- },
27
-
28
- "traits": {
29
- // Use the full trait set. Restrict here if you want to limit what
30
- // persona authors can reference.
31
- "enabled": [
32
- "critical-thinking",
33
- "structured-output",
34
- "source-citation"
35
- // Planned traits (not yet authored): "minimal-diff", "explain-reasoning"
36
- ]
37
- },
38
-
39
- "sync": {
40
- "repos": "./repos.json"
41
- // targetDir defaults to ".claude"
42
- // writePersonasIndex defaults to true
43
- }
44
-
45
- // output and validation use all defaults.
46
- }