code-yeongyu/oh-my-openagent / packages/shared-skills/skills/ulw-research
ulw-research
UnverifiedRuns maximum-saturation research with a cooperating team, claim-graph gating, and a cited, QA'd deliverable. Use when the user explicitly asks for research or a deep investigation, including any 'ulw' research wording.
scripts/fact-ledger-schema.test.ts
View on GitHubimport { describe, expect, test } from "bun:test"
import { LEDGER_SCHEMA_VERSION, ROW_DEFAULTS, validateLedger } from "./fact-ledger-schema.mjs"
function measuredRow(factId: string, label: string) {
return {
...structuredClone(ROW_DEFAULTS),
fact_id: factId,
kind: "measured",
value: "320",
unit: "m",
raw: "320 m",
quote: "The span is 320 m.",
value_span: [12, 15],
source_id: "S1",
locator: { artifact: "sources/S1/text.txt", line: 3, char_start: 40, char_end: 62 },
snapshot_sha256: "a".repeat(64),
extracted_by: "fact add --find",
observed_at: "2026-10-23T08:00:00Z",
label,
exact: { num: "320", den: "1" },
}
}
function ledgerOf(...rows: object[]) {
return { schemaVersion: LEDGER_SCHEMA_VERSION, rows, events: [] }
}
describe("validateLedger (schema module)", () => {
test("given a complete measured row, when validated, then there are no errors", () => {
expect(validateLedger(ledgerOf(measuredRow("F1", "span")))).toEqual([])
})
test("given two rows with one label, when validated, then the duplicate label is reported", () => {
const errors = validateLedger(ledgerOf(measuredRow("F1", "span"), measuredRow("F2", "span")))
expect(errors.some((e: string) => e.includes("duplicate label"))).toBe(true)
})
test("given an assumed row without rationale, when validated, then rationale is required", () => {
const errors = validateLedger(ledgerOf({ ...measuredRow("F1", "span"), kind: "assumed" }))
expect(errors.some((e: string) => e.includes("rationale"))).toBe(true)
})
})
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |