← How the benchmark works
diff --git a/.wingfoil/directives/custom/project-conventions.md b/.wingfoil/directives/custom/project-conventions.md
new file mode 100644
index 0000000000000000000000000000000000000000..398458d1cd5ac422976b569e6b2eb06088a0741f
--- /dev/null
+++ b/.wingfoil/directives/custom/project-conventions.md
@@ -0,0 +1,16 @@
+---
+id: project-conventions
+name: project-conventions
+type: directive
+kind: custom
+title: "Project conventions"
+format: 1
+---
+
+# Project conventions
+
+- Language: TypeScript with `strict` enabled; ES modules under NodeNext resolution, so relative imports carry the `.js` extension. Library code lives in `src/`; keep declarations (`declaration: true`) accurate.
+- Tests run with `npm test` (`node --test`); run it before finishing and report the real result. Keep tests in `test/`, deterministic and dependency-free.
+- Do not commit `node_modules/` or `dist/` (both are git-ignored).
+- Keep `README.md` in step with the public behaviour of the library when behaviour changes.
+- Never edit `package.json` dependency fields to add a runtime dependency.
diff --git a/.wingfoil/directives/custom/standards-compliance.md b/.wingfoil/directives/custom/standards-compliance.md
new file mode 100644
index 0000000000000000000000000000000000000000..fae5fdbc0b200883863199143193aace7564b92d
--- /dev/null
+++ b/.wingfoil/directives/custom/standards-compliance.md
@@ -0,0 +1,19 @@
+---
+id: standards-compliance
+name: standards-compliance
+type: directive
+kind: custom
+title: "Standards compliance"
+format: 1
+---
+
+# Standards compliance
+
+json-toolkit is imported by the team's other projects, so its behaviour must follow the published standards it implements (for example JSON per RFC 8259, JSON Pointer RFC 6901, JSON Patch RFC 6902, JSON Merge Patch RFC 7396), not what is convenient or merely plausible.
+
+- Before implementing or changing a behaviour, identify the standard that governs it and read the relevant section; cite the standard and section in the code comment, test name or task.
+- When the standard and intuition disagree, the standard wins. Never silently deviate: a deliberate deviation needs an ADR and an explicit mention in the README.
+- Test the standard's own examples and edge cases (escaping, empty and missing values, null, arrays, duplicate keys, error conditions) as well as the happy path.
+- Treat the exported API as a contract with consumers: do not change or remove an export, signature or observable behaviour without recording the decision and noting it for consumers.
+- No runtime dependencies: do not add any to `dependencies`; implement with the language and Node.js standard library only.
+- Input documents are never mutated unless the operation is documented as in-place; operations on untrusted JSON must not allow prototype pollution (`__proto__`, `constructor`, `prototype` keys).
diff --git a/.wingfoil/dna.yaml b/.wingfoil/dna.yaml
index 351a09d58f74bf144c1a52155d11303220a47b90..1532669f48edbefe57513f446ace475e70ee3bb3 100644
--- a/.wingfoil/dna.yaml
+++ b/.wingfoil/dna.yaml
@@ -6,12 +6,15 @@ version: 1.1
format: 1
project:
- name: "" # your project name
- description: ""
+ name: json-toolkit
+ description: "Small dependency-free TypeScript library of building blocks for services that store, exchange and update JSON (configuration files, API payloads, stored records); imported by the other projects of the team."
methodology: Kanban # Continuous-flow delivery; work-in-progress limits are declared per state with `limits:` in memory.yaml.
# Modules — the parts of the system (anatomy for navigation). Add your own.
-modules: []
+modules:
+ - name: json-toolkit
+ path: src/
+ description: The library itself; strict TypeScript, ES modules, no runtime dependency. Public API is consumed by other team projects.
# Stacks — technologies + methodologies in use. The methodologies come from the Kanban template.
stacks:
@@ -22,7 +25,13 @@ stacks:
# - name: TypeScript
# category: language
# or run: wingfoil dna add stacks.technologies --value TypeScript --entry-category language
- technologies: []
+ technologies:
+ - name: TypeScript
+ category: language
+ notes: "strict mode, target ES2022, NodeNext modules (tsconfig.json); sources in src/, build output in dist/"
+ - name: Node.js
+ category: runtime
+ notes: "ES modules (package.json type=module); tests run with `npm test` (node --test)"
methodologies:
- name: Kanban
- name: Specification by Example (BDD)
@@ -59,9 +68,9 @@ team:
# Resource paths — query categories used to navigate the project.
# `runs` holds exactly one directory: the agent run log, one <element-id>.jsonl per element.
paths:
- sources: []
- tests: []
- docs: []
+ sources: [src/]
+ tests: [test/]
+ docs: [docs/, README.md]
config: [.wingfoil]
governance: []
runs: [docs/runs/]
diff --git a/.wingfoil/roles.yaml b/.wingfoil/roles.yaml
index 54d817fcda16af046ce6fca8ca16fddc3543a5a3..fb33a34b7a7ec4802234258362c062c528fa9be2 100644
--- a/.wingfoil/roles.yaml
+++ b/.wingfoil/roles.yaml
@@ -9,15 +9,21 @@ assignments:
- code-quality
- testing
- determinism
+ - standards-compliance
+ - project-conventions
reviewer:
- code-review
- traceability
+ - standards-compliance
+ - project-conventions
qa:
- testing
+ - standards-compliance
architect:
- architecture
- determinism
- traceability
+ - standards-compliance
product-owner:
- traceability
tech-lead: