Source of truth

From SteelMorgan/1c-agent-based-dev-framework · View interactive version

Source of truth is an AI agent skill from the GitHub repository SteelMorgan/1c-agent-based-dev-framework. MUST use BEFORE drawing conclusions about the cause of a conflict, a test failure, or an artifact dispute. Defines the L1→L6 end-to-end verification method and the classification of the first broken link.

How to use this skill

Skill file

Source of Truth Policy (Source of Truth) — Method

In full-cycle, artifacts form a hierarchy of sources of truth. A lower level refines the higher one, but does NOT override it. On conflict, priority is always with the higher level. Verification is performed along the entire chain from top to bottom until the first broken link is found. This skill is a detailed procedure; the invariant trigger "conflict → check the chain from top to bottom" is fixed in rule framework/rules/source-of-truth/SKILL.md.

Hierarchy of Sources of Truth

| Level | Artifact | Purpose |

|---------|----------|------------|

| 1 | Task business goal + explicit user answers | Define intent and the allowed result |

| 2 | Approved specification + acceptance criteria | Fix the task contract |

| 3 | Technical design + task-breakdown.json | Define the implementation approach and decomposition |

| 4 | BDD / acceptance scenarios | Formalize observable behavior |

| 5 | Unit / integration tests | Verify behavior at the executable level |

| 6 | Code | Implements behavior |

If a specific task is missing a level according to the process rules, the source of truth is the nearest approved level above the current one.

MUST

End-to-End Chain Verification

On any conflict, test failure, behavior mismatch, or dispute between artifacts, the agent MUST verify the chain from top to bottom:

  1. The business goal and user answers are clear, current, and do not contradict each other
  2. The specification correctly reflects the business goal
  3. Technical design and task breakdown correctly reflect the specification
  4. BDD / acceptance scenarios correctly reflect the specification and design
  5. Unit / integration tests correctly reflect the scenarios and the specification
  6. Code correctly reflects the design, tests, and specification

It is forbidden to skip levels and make a binary conclusion such as "the test is at fault" or "the code is at fault" without checking the upper levels.

Classification of the First Broken Link

| Where the mismatch was first detected | Classification |

|------------------------------------|---------------|

| Levels 1-2 | Requirements / specification issue |

| Level 3 | Technical design / decomposition issue |

| Level 4 | Acceptance / BDD scenarios issue |

| Level 5 | Test issue |

| Level 6 | Implementation issue |

What must be recorded is not only the symptom, but also the first broken link in the chain.

What This Rule Adds

Principle, Boundaries, and Arbitration

In other words: this rule defines the source of truth, agent prompts define the right to change, the orchestrator defines the return route.

Implications for Roles

Typical Uses


depends_on:


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.