mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-18 09:06:53 +03:00
Add concept world catalog and review workflow
AI-assisted: prepared by Codex at Paul's request.
This commit is contained in:
@@ -98,21 +98,27 @@ describe('docs integrity', () => {
|
||||
const document = fs.readFileSync(path.join(ROOT, 'skill/reference/document.md'), 'utf8');
|
||||
const codex = fs.readFileSync(path.join(ROOT, 'skill/reference/codex.md'), 'utf8');
|
||||
const typeset = fs.readFileSync(path.join(ROOT, 'skill/reference/typeset.md'), 'utf8');
|
||||
const context = fs.readFileSync(path.join(ROOT, 'skill/scripts/context.mjs'), 'utf8');
|
||||
|
||||
expect(init).toContain('durable product truth');
|
||||
expect(init).toContain('does not invent a visual world');
|
||||
expect(init).toContain('does not write DESIGN.md');
|
||||
expect(init).toContain('If the file is absent, init is incomplete');
|
||||
expect(init).not.toContain('## Audience World');
|
||||
|
||||
expect(newWork).toContain('Missing DESIGN.md does not route back to init');
|
||||
expect(newWork).toContain('Establish or replace the visual world');
|
||||
expect(newWork).toContain('concept-seed.mjs --scope world');
|
||||
expect(newWork).toContain('Shape or select the direction');
|
||||
expect(newWork).toContain('concept-seed.mjs --scope direction');
|
||||
expect(newWork).toContain('concept-seed.mjs --scope surface');
|
||||
expect(newWork).toContain('Local extension inside stable authority: shape, do not seed');
|
||||
expect(newWork).toContain('Never run it for a local extension');
|
||||
expect(newWork).toContain('Do not select a new world and its first surface concept in separate tournaments');
|
||||
expect(newWork).toContain('do not reopen either half independently');
|
||||
expect(newWork).toContain('.impeccable/surfaces/<target-slug>.md');
|
||||
expect(newWork).toContain('DIRECTION CONTRACT');
|
||||
expect(newWork).toContain('[codex.md](codex.md)');
|
||||
expect(newWork).toContain('Commit before correcting');
|
||||
expect(newWork).toContain('Judge the shortlist skin-blind');
|
||||
expect(newWork).toContain('Judge candidates skin-blind');
|
||||
expect(newWork).not.toContain('palette.mjs');
|
||||
|
||||
expect(shape).toContain('follow [new-work.md](new-work.md)');
|
||||
@@ -123,10 +129,15 @@ describe('docs integrity', () => {
|
||||
expect(skill).toContain('Premium motion is not transform/opacity alone');
|
||||
expect(newWork).toContain('The old DESIGN.md and implementation are not authority');
|
||||
expect(newWork).toContain('Do not offer replacement worlds unless the user asked for a redesign');
|
||||
expect(document).toContain('run **Establish or replace the visual world**');
|
||||
expect(document).toContain('Run **Select one direction**');
|
||||
expect(document).toContain('requires a concrete first surface');
|
||||
expect(codex).toContain('this file must not reopen it');
|
||||
expect(codex).toContain('Do not generate a palette artifact');
|
||||
expect(typeset).toContain('return to [new-work.md](new-work.md)');
|
||||
expect(typeset).toContain('route through [new-work.md](new-work.md)');
|
||||
expect(skill).not.toContain('reference/finish.md');
|
||||
expect(skill).toContain('manual scan only when no automatic detector is active');
|
||||
expect(context).toContain('renderLlmOnlySlopReview');
|
||||
expect(context).toContain('automaticHookMode');
|
||||
});
|
||||
|
||||
test('internal docs links point at canonical local routes', () => {
|
||||
|
||||
Reference in New Issue
Block a user