submit_candidate_decision
Record newly discovered engineering conventions as reviewable candidates, so maintainers can approve them before they become canonical for other agents.
Instructions
Record a new engineering convention you discovered while working — for human review.
Call this when you find an undocumented convention, a tricky gotcha, or a preferred
pattern that Metatron did not already know but future agents should. It is stored as
an uncurated CANDIDATE: a human maintainer must approve it in the Metatron UI or CLI
before it becomes canonical and is served to other agents. Nothing you submit here is
auto-promoted.
Returns the new candidate decision's id. If the pattern near-duplicates a decision
already on record (in any wording), nothing new is stored and the existing
decision's id is returned with a note — no need to resubmit known conventions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Where the rule applies: a file path, directory/glob, or architectural layer (e.g. "src/services/**"), or "global". | |
| pattern | Yes | The concrete rule or guideline, stated imperatively (e.g. "Use internal.http for outbound calls, not the requests library"). | |
| keywords | No | Optional: 3-8 retrieval terms an engineer might use when describing a task this rule applies to — synonyms and code identifiers not already in the pattern wording (e.g. ["s3", "presigned", "upload"]). | |
| rationale | Yes | Why the convention exists — the problem or bug it prevents (e.g. "flaky network caused phantom 5xx errors; the internal client retries"). | |
| confidence | No | How strongly the team holds this convention. | medium |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |