mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-09 20:07:39 +00:00
feat(skills): add composition-structure block + soft-warn feedback lint
Extend the CLI feedback reproduction packet (#2498) with a fifth mandated field, `COMPOSITION_STRUCTURE:`, and enforce presence of `REPRO COMMAND:` / `COMPOSITION_STRUCTURE:` at feedback-submit time. - Skill + reference now specify `COMPOSITION_STRUCTURE:` — a privacy-preserving structural anatomy (element census + attribute presence + timeline shape + delta + defect location) — required for any rating <=7 that describes a visual defect. - `buildCompositionCensus()` + `renderCompositionCensusBlock()` auto-fill the block from composition HTML so agents don't ask the human user to hand-count `<video>` / `<img>` / sub-comp mounts. Counts + presence flags only — no file paths, no src URLs, no user text. - `hyperframes feedback` soft-warns (never blocks) when a non-10 `--comment` is missing `REPRO COMMAND:`, and when a rating-<=7 visual-defect comment is missing `COMPOSITION_STRUCTURE:`. The warning points at the auto-census helper so agents remediate themselves. - `coreSkillContent.test.ts` locks the new literal in both the skill and the reference file, following #2498's pattern. Extends #2498. Follow-up: no change to `doctorSummary` generation, no change to the feedback-submission API endpoint, no refactor of #2498's doc-content Jest test. Signed-off-by: Via
This commit is contained in:
@@ -35,6 +35,20 @@ describe("hyperframes-core contract docs", () => {
|
||||
expect(renderReference).toContain("OUTCOME:");
|
||||
expect(renderReference).toContain("WORKAROUND:");
|
||||
});
|
||||
|
||||
it("mandates a composition-structure block for visual-defect feedback", () => {
|
||||
const skill = read("skills", "hyperframes-cli", "SKILL.md");
|
||||
const renderReference = read("skills", "hyperframes-cli", "references", "preview-render.md");
|
||||
|
||||
// Skill teaches the mandate at a high level.
|
||||
expect(skill).toContain("COMPOSITION_STRUCTURE:");
|
||||
// Reference carries the fillable block + agent-helper pointer.
|
||||
expect(renderReference).toContain("COMPOSITION_STRUCTURE:");
|
||||
expect(renderReference).toContain("elements: video=");
|
||||
expect(renderReference).toContain("attributes:");
|
||||
expect(renderReference).toContain("timeline:");
|
||||
expect(renderReference).toContain("buildCompositionCensus");
|
||||
});
|
||||
});
|
||||
|
||||
describe("media-use TTS documentation", () => {
|
||||
|
||||
Reference in New Issue
Block a user