FACET · intent
What is this for?
Two or three sentences on why the feature exists and how it should behave. The sentence a new hire, a support agent and an agent all read first.
Everyone. Atlas puts it at the top of every page.
A standard for autonomous coding agents
FACET is an attempt to create a standard for autonomous coding agents. With it, agents build more reliable software, AI development scales better, and above all, people keep insight into software that is no longer built by people.
This site shows the range of what FACET can be used for. Not everything is equally mature: each product shows its maturity in the menu and on its page.
Coding agents are fast, but they only know the code. What a product is actually meant to do lives in people's heads, tickets and old chats. The more agents build, the less anyone knows why the software does what it does.
An agent knows the code, but rarely the intent behind it. FACET writes down what each part of the product should do, and the agent follows it.
Software changes faster than documentation can be kept up to date. FACET reports where that happens and makes it visible to agents and people.
Many automated checks run and stay green, but that does not say whether the right thing is checked. FACET connects each described function of the product with its checks, so you see which one has none.
When agents build most of it, no person knows every detail. FACET shows in plain terms what the product does and which parts have checks, without needing an AI.
Each part of the product gets a short description in a fixed format, kept right next to the code: what it should do, examples that show it, and the checks that prove it. FACET calls this description a FACET recordA FACET record is a short, checkable description of one feature, kept as a YAML file next to the code. It states why the feature exists, the behaviour it promises as scenarios, and the tests that check it.In the glossary. When code changes but its description does not, FACET reports it.
WHAT A RECORD HOLDS
A feature record has Facet (record section)A facet, written lowercase, is one of the seven sections of a feature record: Intent, Contract, Anchor, Verification, Observation, Knowledge and Lineage. Each answers one recurring question about the feature. FACET or Facet with a capital F is the product; a facet is only a section of a record.In the glossary, each answering a question somebody asks every week. And three more record types hold what no single feature owns: the rules, the beliefs and the data.
Intent, Contract, Anchor, Verification, Observation, Knowledge, Lineage, Policy, Assumption, and Data entity
FACET · intent
What is this for?
Two or three sentences on why the feature exists and how it should behave. The sentence a new hire, a support agent and an agent all read first.
Everyone. Atlas puts it at the top of every page.
FACET · contract
What behavior is required?
Scenarios in Given / When / Then, plus business rules in plain sentences. Rules carry the numbers that tend to be scattered through the code — the 14 days, the 50 %.
Product, QA, the agent before it edits.
FACET · anchor
Where does it live in the code?
Not in the record — in the code. A comment on every place that implements the feature, with its role. The record doesn’t have to guess where its code went.
Developers, the editor, every hook.
FACET · verification
Which test verifies which acceptance criterion?
Each test entry refers to the scenarios it should verify. A scenario without a test entry is a warning; a missing test is an error. facet test runs the named test files and reports per file; what a test asserts is not checked.
QA, review, facet test.
FACET · observation
How do we know it works in production?
SLOs, alerts, dashboards and runbooks — linked from the feature they watch, not from a wiki page about the service.
On-call, SRE, leadership.
FACET · knowledge
What does a user need to know?
Five fixed questions. The owner answers them; FACET turns the answers into help, FAQ and onboarding — and leaves out what nobody answered.
Support, docs, new users.
FACET · lineage
Who owns it, and what hangs off it?
Owner, what it depends on, what depends on it, and the policies, assumptions and data it touches. Every reference is checked — a dangling one is a lint error.
Owners, architects, anyone changing a dependency.
Record type: Rules
Which rule binds many features at once?
Regulatory, security or business rules that cut across features — with clauses you can check, a scope saying which features they govern, and how compliance is verified.
Legal, security, every feature in scope.
Record type: Assumptions
What do we believe that could turn out false?
A named belief the code depends on, with evidence, a review date and what breaks if it’s wrong. When the date passes, it shows up — instead of quietly ageing in someone’s head.
Product, research, whoever owns the risk.
Record type: Data
What data is this, and who may touch it?
The canonical model: its schema, who owns it, how long it’s kept, and which features read or change it.
Data, privacy, platform teams.
1 of 10
Feature · seven facets
Alongside · own records
FACET · intent
What is this for?
Two or three sentences on why the feature exists and how it should behave. The sentence a new hire, a support agent and an agent all read first.
WHO READS IT
Everyone. Atlas puts it at the top of every page.
intent: summary: | A customer can enter one code at checkout and gets the specified discount — once, capped at 50 %, and never after it expires.
FACET · contract
What behavior is required?
Scenarios in Given / When / ThenGherkinGherkin is the plain-language format that describes how software should behave as concrete examples, written as Given, When and Then.Read more about Gherkin, plus business rules in plain sentences. Rules carry the numbers that tend to be scattered through the code — the 14 days, the 50 %.
WHO READS IT
Product, QA, the agent before it edits.
contract: business_rules: - id: discount-cap rule: A discount never exceeds 50 % of the cart. scenarios: - id: expired-code-rejected Given a code that expired yesterday When the customer applies it Then the total is unchanged
FACET · anchor
Where does it live in the code?
Not in the record — in the code. A comment on every place that implements the feature, with its role. The record doesn’t have to guess where its code went.
WHO READS IT
Developers, the editor, every hook.
// @facet: checkout/pricing/discount-codes// @facet-role: primaryexport function redeem(code, cart) { …} # config/billing.yaml# @facet: checkout/pricing/discount-codes# @facet-role: config
FACET · verification
Which test verifies which acceptance criterion?
Each test entry refers to the scenarios it should verify. A scenario without a test entry is a warning; a missing test is an error. facet test runs the named test files and reports per file; what a test asserts is not checked.
WHO READS IT
QA, review, facet test.
verification: unit_tests: - id: pricing::discount::test_expired_code_rejected proves: [expired-code-rejected] property_tests: - id: pricing::discount::prop_cap_never_exceeded proves: [discount-cap-applied]
FACET · observation
How do we know it works in production?
SLOs, alerts, dashboards and runbooks — linked from the feature they watch, not from a wiki page about the service.
WHO READS IT
On-call, SRE, leadership.
observation: slos: - name: discount-apply-success-rate target: 99.9 window: 28d alerts: - name: discount-apply-error-spike severity: page runbook: runbooks/discount-apply-errors.md
FACET · knowledge
What does a user need to know?
Five fixed questions. The owner answers them; FACET turns the answers into help, FAQ and onboarding — and leaves out what nobody answered.
WHO READS IT
Support, docs, new users.
knowledge: common_pitfalls: question: What mistakes do users make? answer: Entering two codes and expecting both. not_for: answer: ~ discoverability: derive_from: [anchors]
FACET · lineage
Who owns it, and what hangs off it?
Owner, what it depends on, what depends on it, and the policies, assumptions and data it touches. Every reference is checked — a dangling one is a lint error.
WHO READS IT
Owners, architects, anyone changing a dependency.
lineage: owner: team: checkout-pricing depends_on: - checkout/cart/line-item-subtotal related_policies: - policy/legal/promo-disclosure related_assumptions: - assumption/pricing/discount-codes-do-not-stack
OWN RECORD · policy/<domain>/<name>
Which rule binds many features at once?
Regulatory, security or business rules that cut across features — with clauses you can check, a scope saying which features they govern, and how compliance is verified.
WHO READS IT
Legal, security, every feature in scope.
id: policy/privacy/gdpr-erasureintent: summary: Personal data is erased within 30 days of a verified request.scope: - account/profile/delete-account - billing/invoices/export-dataverification: - id: privacy::erasure::it_purges_all_stores
OWN RECORD · assumption/<domain>/<name>
What do we believe that could turn out false?
A named belief the code depends on, with evidence, a review date and what breaks if it’s wrong. When the date passes, it shows up — instead of quietly ageing in someone’s head.
WHO READS IT
Product, research, whoever owns the risk.
statement: | A cart has at most one active discount code.evidence: - type: user-research reference: research/2024-q1-pricing-studyreview_by: 2026-03-01criticality: highrisk_if_false: | Promo-disclosure policy assumes single-code.
OWN RECORD · data/<domain>/<entity>
What data is this, and who may touch it?
The canonical model: its schema, who owns it, how long it’s kept, and which features read or change it.
WHO READS IT
Data, privacy, platform teams.
id: data/promo/discount-codecanonical_schema: schemas/discount-code.jsonownership: team: checkout-pricingretention: 24 months after expiryread_by: - checkout/pricing/discount-codesmutated_by: - growth/campaigns/issue-codes
Field names from the schema/facet.schema.jsonOriginal excerpt from the English source.[…] Schema for a FACET feature record (FACET spec 1.3.0, Appendix A.1). […]
View on GitHub · examples from FACETOriginal excerpt from the English source.[…] a named, coherent capability of the product that can be reasoned about, changed, and owned independently. […]
View on GitHub
HOW IT WORKS
Code changes, Drift is detected, The agent is told, and The agent updates the docs
An agent edits a file with a code comment linking it to a feature record.
FACET flags that linked code changed while its record stayed the same.
Before it can say “done”, it has to look — once, with the reason.
The agent updates the record. FACET flags help articles based on the old version.
1 of 4
RECORD · password-reset.yaml
intent: summary: A customer who forgot their password gets a link by email. It works once and stops after 60 minutes.contract: scenarios: - id: link-expires-after-60-minutes
CODE · src/reset.ts
// @facet: account/access/password-reset// @facet-role: primaryexport const LINK_LIFETIME_MINUTES = ; export function isLinkValid(sentAt, now) { return now - sentAt < LINK_LIFETIME_MINUTES * 60_000;}
HELP ARTICLE · GENERATED
Resetting your password
We email you a link. It works once, for 60 minutes. After that, ask for a new one.
regenerated · fresh
record updated · link-expires-after-60-minutes$ facet docs checkstale: help/password-reset.md — written from an older revision of its recordregenerated from the record
Replay · example repository · drift line in facet’s real format; hook and docs-check wording paraphrased
BEFORE YOU TRY IT
What people ask first about a research preview, and what is true today.
An existing project does not need a restart to become traceable. Guided back-filling surveys the code, drafts feature records and makes the depth of review visible, including the questions that still need an owner's answer.
First settle the area, languages and where the run protocol lives. A cost estimate comes before the actual run.
The workflow surveys existing code into CapabilityA capability is the middle part of a feature id: a group of related features within one domain, such as pricing within checkout.In the glossary and drafts the corresponding records with their connections.
A draft, review against code and observation in the product are different evidence. The report names which depth was used.
Unresolved questions go to owners. An interrupted run resumes from its checked protocol instead of drafting everything again.
The quick pass creates drafts and checks their structure. It does not review or revise them against the code. Especially in complex software, those descriptions may be wrong.
Result: explicitly unverified drafts, not a completed product assessment.
A separate review reads every draft against the implementation. Findings are revised, rejected with a reason or left as open work, including missing tests.
Result: reviewed and revised descriptions with a traceable list of remaining gaps.
This pass adds reproduction of open deviations in the product to the code review. If the product cannot be started, these findings remain explicitly unverified and receive manual checking instructions.
Result: only observed product failures appear as bugs; deviations that were not reproduced keep their corresponding label.
Start in
/facet:setupSetup leads into adoption of existing code. This is an agent workflow, distinct from importing recorded fixes with facet defects backfill.
Large runs can consume a substantial AI usage allowance. The examples show the workflow, not verified coverage of this project.
ATLAS
AtlasAtlas opens your repository as a product map, showing features, their requirements and the tests linked to them in your browser.View nowRead more here opens your repository as a map of your product: what each feature should do, whether that is tested, and where code and documentation have drifted apart. Product, support, management and engineering each get the view they need.
npx facet-framework ui
GET STARTED
Four steps. A wizard walks you through them — it measures what’s already there, asks before it writes, and checks each step where it takes effect.
/facet:setup/facet:authoringfacet lintOpen your project
HookA hook is a script a tool runs automatically at a fixed point, such as at the start of a session or Git before a commit. FACET's hooks bring the matching record into the session and stop commits that break records or anchors.In the glossary, the MCP serverMCP is the standard way AI assistants call outside tools. FACET runs an MCP server from your project with facet mcp, so an assistant can look up records and the code anchored to them.In the glossary for your agent and the Language serverFACET's language server connects anchors in your editor with their records: hover a line of code to read its requirements, or jump to the record.In the glossary for your editor come with it.
check: the agent is in your project folder
Run the setup wizard
/facet:setupIt measures first, proposes a profile, then walks the steps: scaffold, TaxonomyThe taxonomy is a file, taxonomy.yaml, that declares a product's domains and capabilities once. Feature ids are checked against it.In the glossary, agent layer, a LintLint is FACET's check that records and code still point at each other: every record matches its schema, every anchor names an existing record, and every active record has an anchor. It runs locally and in CI on every pull request.In the glossary on every commit, CI. Each step can be skipped.
check: every step checked where it acts
Write your first requirement
/facet:authoringOne real feature, written with the agent, anchored in the code. It starts active — not a draft nobody finishes.
check: the lint passes with one anchored record
Check it
facet lintThe lint checks the record against the schema and its AnchorAn anchor is a comment in the source code, starting with @facet:, that names the record the code belongs to. FACET reads these comments to know where each feature is implemented.In the glossary in the code. From here on, every commit keeps them together.
check: lint passes with your first record
/facet:setup/facet:setup adoptfacet lintOpen your project
Nothing in your repository changes yet. The plugin stays silent in a project that hasn’t adopted FACET.
check: the agent is in your project folder
Run the setup wizard
/facet:setupIt sees code and no records, and proposes the back-fill profile: scaffold, taxonomy of your DomainA domain is the first part of a feature id: a product area such as checkout, never a team or a service.In the glossary, agent layer, git.
check: every step checked where it acts
Back-fill the records
/facet:setup adoptSurveys your code into capabilities and drafts a record for each — then hands back what only an owner can answer. Pick how thorough below.
check: a protocol you can resume, a list of open questions
Check what you have
facet lintThe lint checks every drafted record against the schema and the anchors in your code, and names each one that fails.
check: one lint report for the whole RegistryThe registry is the set of FACET records of one product, which FACET indexes, checks and serves to tools. A monorepo can declare several registries in .facetrc.yaml, each with its own source folders.In the glossary
BACK-FILL · THREE WAYS TO ADOPT AN EXISTING CODEBASE
Quick
tokens: low · quality: drafts
Drafts only, unverified. On complex software, expect the records to be wrong in places.
Thorough
tokens: higher · quality: good
Reviews every draft against the code and revises it. Ends with a checklist of deviations and missing tests.
Evidenced
tokens: very high · quality: very good
Also reproduces each DeviationA deviation marks a scenario whose current behaviour is known not to be what anybody wants, such as a confirmed bug, with the reason and how it was confirmed. The record then does not present that behaviour as a promise.In the glossary in the running product. What it reports as a bug was observed.
You see a cost estimate before it starts. Every run keeps a protocol it can resume from. Questions only the owner can answer are handed back, not invented.
/facet:setupfacet filter install/facet:setup adoptOpen your project
For a team that hasn’t decided yet. You try it; the repository doesn’t have to know.
check: the agent is in your project folder
Private profile
/facet:setupRecords and lint files go into git’s local exclude. The repository changes by zero bytes.
check: git status names none of them
Private anchors
facet filter installAnchors stay in your working copy and are stripped from every commit you make.
check: an anchor absent from the staged diff
Back-fill for yourself
/facet:setup adoptThe same back-fill, protocol kept outside the repository. Show the team the result, not a proposal.
check: records only you can see
BACK-FILL · THREE WAYS TO ADOPT AN EXISTING CODEBASE
Quick
tokens: low · quality: drafts
Drafts only, unverified. On complex software, expect the records to be wrong in places.
Thorough
tokens: higher · quality: good
Reviews every draft against the code and revises it. Ends with a checklist of deviations and missing tests.
Evidenced
tokens: very high · quality: very good
Also reproduces each deviation in the running product. What it reports as a bug was observed.
You see a cost estimate before it starts. Every run keeps a protocol it can resume from. Questions only the owner can answer are handed back, not invented.