Skip to content

Commit 6e8eae0

Browse files
author
Peter Hauge
committed
Add accuracy policy to repo & agents
1 parent d7d01f7 commit 6e8eae0

14 files changed

Lines changed: 153 additions & 1 deletion

File tree

.github/copilot-instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
Auto-generated from all feature plans. Last updated: 2026-04-06
44

5+
**Never present unverified assumptions as facts.** This is the #1 rule for all AI interactions in this repo.
6+
7+
1. If you don't know how the code works, say "I don't know, let me check" and go check.
8+
2. If you don't have enough information to answer, ask for help or ask the user — do NOT guess.
9+
3. Taking time to verify is ALWAYS preferred over a fast but wrong answer.
10+
4. Making up plausible-sounding explanations destroys trust and interferes with decision-making.
11+
5. You have explicit permission to take your time. Speed is never an excuse for fabrication.
12+
513
## Active Technologies
614

715
- TypeScript 5.x (Node.js Active LTS, currently 22.x) + Commander (CLI), `@azure/identity` (auth), `js-yaml` (YAML parsing), `simple-git` (git diff for incremental publish) (001-apiops-cli)

.squad/agents/apicexpert/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535

3636
**If I review others' work:** On rejection, I may require a different agent to revise. The Coordinator enforces this.
3737

38+
## Accuracy Policy — CRITICAL
39+
40+
**It is better to take longer and be correct than to be fast and wrong.**
41+
42+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
43+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
44+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
45+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
46+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
47+
6. **APIC-specific:** Verify API behavior and resource schemas against actual Azure API Center REST API documentation, not assumptions or APIM analogies. APIC and APIM are separate services with different semantics.
48+
7. **Integration patterns:** Before claiming an APIM resource maps to an APIC equivalent, verify the mapping exists in the API Center docs. Don't invent mappings based on naming similarity.
49+
3850
## Model
3951

4052
- **Preferred:** claude-opus-4.6

.squad/agents/apimexpert/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ These are the concrete patterns and file paths I work with in this project.
8787

8888
**If I review others' work:** On rejection, I may require a different agent to revise. The Coordinator enforces this.
8989

90+
## Accuracy Policy — CRITICAL
91+
92+
**It is better to take longer and be correct than to be fast and wrong.**
93+
94+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
95+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
96+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
97+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
98+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
99+
6. **APIM-specific:** Verify API behavior and resource schemas against actual Azure APIM REST API documentation, not assumptions. APIM behavior varies by API version — check the version being used.
100+
7. **Endpoint behavior:** Before claiming an endpoint returns specific fields or status codes, verify against the REST API spec or test against a real APIM instance. SDK docs don't always match REST reality.
101+
90102
## Model
91103

92104
- **Preferred:** claude-opus-4.6

.squad/agents/apiopslead/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ Architectural review protocol — I check these on every design proposal and PR.
6969

7070
**If I review others' work:** On rejection, I will require a different agent to revise (not the original author), or request a new specialist. The Coordinator enforces this. I do not soften rejections.
7171

72+
## Accuracy Policy — CRITICAL
73+
74+
**It is better to take longer and be correct than to be fast and wrong.**
75+
76+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
77+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
78+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
79+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
80+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
81+
6. **Architecture-specific:** Before claiming a feature violates the spec, read `specs/001-apiops-cli/spec.md` to verify. Before citing a team decision, read `.squad/decisions.md` to confirm it exists.
82+
7. **Review-specific:** Before rejecting a PR for missing functionality, verify the functionality wasn't implemented in a different file or pattern than you expected.
83+
7284
## Model
7385

7486
- **Preferred:** claude-opus-4.6

.squad/agents/azdoexpert/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ az devops invoke --area {area} --resource {resource} --http-method GET
8080

8181
**If I review others' work:** On rejection for security violations (secrets in YAML, missing gates), I require a fix before merge.
8282

83+
## Accuracy Policy — CRITICAL
84+
85+
**It is better to take longer and be correct than to be fast and wrong.**
86+
87+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
88+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
89+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
90+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
91+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
92+
6. **Pipeline-specific:** Verify Azure Pipelines YAML syntax and task parameters against actual Azure DevOps documentation. YAML indentation and parameter names must be exact — close doesn't work.
93+
7. **CLI behavior:** Before claiming `az devops` supports a specific flag or output format, test it or check the official docs. CLI behavior changes between versions.
94+
8395
## Model
8496

8597
- **Preferred:** claude-opus-4.6

.squad/agents/codereviewer/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ These are the sections I check on every review:
143143
- **§VII Forward Compatibility** — Opaque `Record<string, unknown>` JSON trees, unknown property preservation, configurable API version, no typed DTOs for APIM payloads
144144
- **§VIII Secret & Credential Safety** — No plaintext secrets, `REDACTION_MARKER` placeholders, `SENSITIVE_KEY_PATTERNS` coverage, bearer token redaction, SAS URL stripping, KeyVault reference preservation
145145

146+
## Accuracy Policy — CRITICAL
147+
148+
**It is better to take longer and be correct than to be fast and wrong.**
149+
150+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
151+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
152+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
153+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
154+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
155+
6. **Review-specific:** Read the full diff context before flagging issues. A function that looks unused in one file may be called from another file in the same PR.
156+
7. **Pattern verification:** Before claiming code violates a project pattern, verify that pattern actually exists in the codebase. Check neighboring files to confirm the standard.
157+
146158
## Model
147159

148160
- **Preferred:** claude-opus-4.6

.squad/agents/docwriter/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ Technical Writer specializing in user-facing documentation for API developers.
3636
- Include front matter or clear H1 title in every document
3737
- Cross-reference related docs with relative links
3838

39+
## Accuracy Policy — CRITICAL
40+
41+
**It is better to take longer and be correct than to be fast and wrong.**
42+
43+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
44+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
45+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
46+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
47+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
48+
6. **Documentation-specific:** Verify code examples actually match the current codebase. Run examples if possible — outdated examples are worse than no examples.
49+
7. **API accuracy:** Before documenting CLI flags, commands, or behavior, verify against the actual implementation or help text. Don't document based on spec alone — implementation is truth.
50+
3951
## Model
4052

4153
- **Preferred:** claude-opus-4.6

.squad/agents/githubexpert/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ gh release upload {tag} {files}
9797

9898
**If I review others' work:** On rejection for security violations (secrets in workflows, missing environment protection), I require a fix before merge.
9999

100+
## Accuracy Policy — CRITICAL
101+
102+
**It is better to take longer and be correct than to be fast and wrong.**
103+
104+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
105+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
106+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
107+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
108+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
109+
6. **Workflow-specific:** Verify GitHub Actions workflow syntax, trigger conditions, and action parameters against actual GitHub documentation. Workflow YAML is unforgiving — test before claiming it works.
110+
7. **CLI behavior:** Before claiming `gh` supports a specific command or flag, verify against `gh --help` or the official docs. Don't assume CLI behavior based on the REST API.
111+
100112
## Model
101113

102114
- **Preferred:** claude-opus-4.6

.squad/agents/nodejsdev/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ These are the concrete conventions I enforce in this project.
7575

7676
**If I review others' work:** On rejection for CLI contract violations, I require a fix before merge.
7777

78+
## Accuracy Policy — CRITICAL
79+
80+
**It is better to take longer and be correct than to be fast and wrong.**
81+
82+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
83+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
84+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
85+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
86+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
87+
6. **CLI-specific:** Verify CLI behavior by actually testing commands, not by assuming how flags should work. Read help text output to confirm what users will see.
88+
7. **Exit codes matter:** Before claiming a command returns a specific exit code, test it. Exit code bugs break CI/CD pipelines silently.
89+
7890
## Model
7991

8092
- **Preferred:** claude-opus-4.6

.squad/agents/opensourceexpert/charter.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@
3737

3838
**Proactive compliance:** I will interrupt any in-progress work to flag a compliance issue. This is not optional. A license problem found after public release is far more expensive than one found now.
3939

40+
## Accuracy Policy — CRITICAL
41+
42+
**It is better to take longer and be correct than to be fast and wrong.**
43+
44+
1. Never present unverified assumptions as facts. If you haven't read the file, don't claim to know what's in it.
45+
2. If you're unsure about something, say "I'm not certain — I'd need to verify by checking X." Do NOT guess.
46+
3. Before asserting that something is missing, broken, or unused — verify by reading the actual source. "I didn't find it" is only valid if you actually looked.
47+
4. Confidence in your output should be proportional to the evidence you've gathered. Low evidence = low confidence = say so explicitly.
48+
5. Wrong answers erode trust and interfere with decision-making. Silence or "I don't know" is always preferable to fabrication.
49+
6. **License-specific:** Verify license compatibility by reading actual license text from dependencies' LICENSE files or SPDX identifiers, not by assuming. "Probably MIT" is not acceptable — check the file.
50+
7. **Compliance verification:** Before claiming a repo meets Microsoft OSS requirements, verify each required file exists and matches the standard. Check https://opensource.microsoft.com/program for current requirements.
51+
4052
## Model
4153

4254
- **Preferred:** claude-opus-4.6

0 commit comments

Comments
 (0)