← How the benchmark works

diff --git a/openspec/config.yaml b/openspec/config.yaml
index 2805cb671454f2a67816aaaafdb898888e7f11c6..b9206e7c8fedf40ea72b5cc0aeacbe715fd38690 100644
--- a/openspec/config.yaml
+++ b/openspec/config.yaml
@@ -1,32 +1,35 @@
 schema: spec-driven
 
-# Project context (optional)
-# Add only constraints that should guide OpenSpec artifacts and workflows.
-# Include constraints an agent cannot infer by reading the code.
-# Keep general project documentation and discoverable codebase facts out.
-# Example:
-#   context: |
-#     Designs and tasks must cover Windows, macOS, and Linux
-#     Write all artifacts in Spanish
+context: |
+  json-toolkit is a small TypeScript library (ESM, Node, strict TypeScript, tsconfig includes only src/)
+  with NO runtime dependencies: do not add any. It provides building blocks for services that store,
+  exchange and update JSON (configuration files, API payloads, stored records).
+  It is imported by other projects of the team, so its public API and behaviour are a contract:
+  - Behaviour must follow the published standards it implements (e.g. JSON RFC 8259, JSON Pointer
+    RFC 6901, JSON Patch RFC 6902, JSON Merge Patch RFC 7396). Name the governing standard and section
+    in the specs and design, and where the standard and convenience disagree, the standard wins.
+  - Changes to exported behaviour that could break importers must be called out explicitly as breaking.
+  - Tests run with `npm test` (node --test); every behaviour in a spec needs a test, including the
+    standard's edge cases (escaping, null, arrays, missing/duplicate keys, invalid input).
+  - Inputs are untrusted JSON: never mutate caller-supplied values unless the spec says so, and handle
+    hostile keys such as __proto__ safely.
 
-# Per-artifact rules (optional)
-# Add custom rules for specific artifacts.
-# Example:
-#   rules:
-#     proposal:
-#       - Keep proposals under 500 words
-#       - Always state what is out of scope
-#     tasks:
-#       - Break tasks into chunks of max 2 hours
+rules:
+  proposal:
+    - State which standard (and section) governs the change, or say that none applies
+    - Flag any breaking change for importing projects and state what is out of scope
+  specs:
+    - Write requirements as testable scenarios that cite the relevant RFC section, including edge cases and error cases
+  design:
+    - Justify any departure from or ambiguity in the standard; do not introduce runtime dependencies
+  tasks:
+    - Include a task for tests of each scenario, runnable with `npm test`
 
-# Per-operation guidance (optional)
-# Add advisory guidance for how apply and archive work should be conducted.
-# This is separate from artifact rules above.
-# Example:
-#   operations:
-#     apply:
-#       guidance:
-#         - Keep test summaries concise
-#     archive:
-#       guidance:
-#         - Summarize the archive outcome before finishing
+operations:
+  apply:
+    guidance:
+      - Keep code in src/, with tests runnable by `npm test`; run them before marking tasks complete
+      - Do not add runtime dependencies or change package.json beyond what the change requires
+  archive:
+    guidance:
+      - Sync delta specs into openspec/specs before archiving