name : ub-governance description : >- Use this skill when the user wants to review governance rules, check testing posture, decide whether ADR or claim evidence is needed, evaluate repository or release controls, or understand exception and gate behavior; when the task involves governance modes, test-signal review, evidence levels, or decision-memory boundaries; or when they ask whether work needs governance escalation. Do not use it for workflow planning, framework implementation, or the host repository's own maintenance catalog, path, and skill-integrity checks. context : fork metadata : desktop-portfolio-help-topics : "overview,evidence,testing,repository,core,glossary,combos,invoke" desktop-portfolio-help-aliases : "repo=repository" desktop-portfolio-help-default-topic : "overview"
UB Governance
Overview
Use this skill as the owner for governance in the current repository or project where it is adopted.
This skill should stay lean for ordinary workflow-backed work and should only activate heavier controls when the selected mode or scope actually requires them.
Embedded Contract
These rules are the base contract of this skill and must not depend on a secondary document to be applied correctly.
- Default to the
leanprofile unless the user explicitly requestsadvancedwith rationale. - Use only these governance gate states:
pass,fail,blocked. - Every bounded exception must include
owner,rationale,created_at,expires_at, andfollow_up. - For ordinary Level 1 workflow-backed work, treat workflow artifacts as the default durable operational record.
- Escalate to ADR and claim machinery only when the decision is durable beyond one initiative, repository-wide, high-risk, or explicitly governed at Level 2.
- Keep blocking governance decisions tied to deterministic artifacts.
Operating Modes
repository mode: repository hygiene, CI and release governance, branch or ruleset policy, deterministic toolingtesting mode: behavior-first TDD governance and low-signal testing anti-pattern reviewevidence mode: evidence lifecycle, ADR alignment, claim verification, and gate readinesscore-contract mode: shared profile, gate, exception, and report semanticsfull governance audit mode: run repository, testing, and evidence checks in one deterministic sequence
Testing Signal Model
Use descriptive names in normal guidance. Keep the numeric IDs as stable internal codes for tooling and compatibility.
Blocking signals:
Type Redundancy(TG001): runtime tests that restate type-system guaranteesInteraction Without Outcome(TG002): interaction assertions without observable outcome assertionsPass-Through Test(TG003): trivial getter or setter pass-through testsHappy-Path-Only Suite(TG004): repeated happy-path focus without boundary or error representation
Warning-only signal:
Internal-Detail Bias(TG005): probable verification of internal details over public behavior
Functional-realism signals use risk-scaled guidance rather than automatic new gates:
Local Source Mocking(TG006): a test replaces local application source involved in the behavior under reviewUncontracted Test Double(TG007): a mock, stub, fake, fixture, or route intercept has no visible boundary reason or contract evidenceMock-Dominant Test(TG008): the test is mostly double setup or call assertions instead of observable outcomesMissing Functional Guard(TG009): risky behavior lacks a public-surface functional, integration, contract, component, or E2E checkMutation Survivor on Changed Logic(TG010): changed critical logic has unreviewed surviving mutants when mutation evidence is already in scopeSnapshot/Coverage-Only Proof(TG011): behavior change relies only on snapshots, render smoke, coverage, or does-not-throw proof
Load References By Trigger
Use these load tiers literally. If a trigger is not active, do not read the reference just because it exists.
[phase:decision-boundary]Readreferences/decision-memory-and-claims.mdwhen deciding whether workflow artifacts are sufficient or ADR and claim escalation is required.[phase:testing-mode]Readreferences/testing-policy-and-signals.mdwhen reviewing testing policy or applying the testing anti-pattern model.[phase:testing-mode]Readreferences/execution-playbook.mdwhen the task is about TDD execution order, regression-first bug fixing, or testing workflow hygiene.[phase:command-or-audit]Readreferences/governance-commands.mdwhen the user asks how to run checks or an audit path is being executed.[edge:glossary-or-normalization]Readreferences/vocabulary.mdonly when glossary help or wording normalization matters.[edge:repository-mode]Readreferences/repository-baseline.md,references/github-implementation-playbook.md, andreferences/release-please-playbook.mdonly when repository governance is actually in scope.[edge:evidence-level-2]Readreferences/evidence-baseline.md,references/evidence-lifecycle.md,references/evidence-artifact-taxonomy.md,references/ci-artifact-contract.md, andreferences/stack-baseline.mdonly when explicit Level 2 or evidence-heavy governance is active.[edge:schema-or-data]Readreferences/high-risk-paths.yaml,references/agent-validation-record.schema.json,references/adr-registry.schema.json,references/claim-register.schema.json, andreferences/adr-template-madr.mdonly when those concrete artifacts are being authored or validated.[edge:authoring-conventions]Read../ub-authoring/references/authoring-conventions.mdonly when adjusting routing or shared authoring structure.
Core Workflow
- Detect the requested governance mode and evaluated scope from repository truth.
- Select profile:
leanby default,advancedonly with explicit rationale. - For ordinary workflow-backed work, prefer the Level 1 fast path and keep the durable record in workflow artifacts.
- Escalate only when the decision scope, risk, or explicit governance run requires it.
- Run the selected mode's controls and keep outputs deterministic.
- Apply bounded exceptions only through the canonical exception contract.
- Emit a traceable gate outcome with artifact paths.
Quick Examples
Does this auth change need an ADR or claim work?Useevidence modeand the decision-boundary reference to decide whether ordinary workflow artifacts are sufficient or whether the change is truly repository-wide, high-risk, or Level 2.Are these tests mostly checking mock calls without user-visible outcome assertions?Usetesting mode, apply the test-signal model, and treat likelyTG002findings as blocking only when the suite is asserting interaction without externally observable outcome.Show me the host repository's maintenance checks for README, AGENTS, and skill schema.Do not route that through governance. Those checks belong to the host repository's own maintenance/check surface.
When Not To Use
- Do not use this skill for workflow intake, PRD shaping, roadmap generation,
sprint preparation, or resumable initiative orchestration; defer those to
ub-workflow. - Do not use this skill as the primary surface for framework-specific implementation guidance when the task is about code changes rather than governance policy or gate semantics.
- Do not use this skill as a generic documentation-normalization layer when
ub-qualityis the actual owner of the task.
Mode Workflows
Repository Mode
- verify repository baseline artifacts and deterministic tooling policy
- verify CI, permissions, and merge-gate controls
- verify release policy with Conventional Commits and
release-please
Testing Mode
- detect stack and test runner
- treat reported defects as regression-first work before code fixes are accepted
- enforce
TG001throughTG004as blocking andTG005as warning-only - apply
TG006throughTG011as functional-realism guidance, escalating only when risk, evidence level, or explicit gate scope justifies it - require behavior-first TDD flow for behavior-changing work
- keep testing guidance readable, boundary-aware, and deterministic without turning advisory guidance into new gates
Evidence Mode
- classify
changeType,evidenceLevel, andprofile - detect high-risk path impact when the scope requires it
- choose the lightest durable record that matches the decision scope
- treat workflow-backed initiative artifacts as the default operational record for ordinary Level 1 work
- escalate to ADR alignment only when Level 2, repository-wide durable decisions, or explicit high-risk governance applies
- require claim-register validation only when blocking rationale depends on claims
- validate required artifacts and freshness for the selected path
Core-Contract Mode
- apply canonical profile, gate, exception, and report semantics
- normalize status language and report contract usage
- reject duplicate or conflicting schema definitions
Full Governance Audit Mode
- execute
repository mode - execute
testing mode - execute
evidence mode - consolidate output under canonical report sections
Rules
- Keep defaults lean and activate advanced controls explicitly.
- Do not imply that repository ADR machinery is the default record for ordinary Level 1 workflow-backed work.
- Exception metadata must stay bounded, explicit, and time-limited.
- Do not duplicate canonical contract definitions across files when the main skill already embeds the short rule.
- Repository-maintenance tooling is not automatically the same thing as lean governance guidance.
Output Requirements
When producing non-trivial governance output, include:
environment_notescope_notedecision_notegate_noteexception_notevalidation_note
Add mode-specific sections when applicable:
quality_gate_notefor testing modeevidence_inventoryandclaim_notefor evidence mode
Completion Checklist
- Selected mode is explicit.
- Profile choice is explicit (
leanoradvanced). - The ordinary Level 1 fast path versus Level 2 escalation path is explicit.
- Required deterministic artifacts are present or explicitly missing.
- Gate result is traceable and reproducible.
- Exceptions use the canonical fields and remain bounded.
- Governance guidance stays self-contained and internally consistent.