Skip to content

[auto] Add seed-determinism test for scaffold materializer#8

Closed
stackbilt-admin wants to merge 1 commit intomainfrom
auto/fa0de18c
Closed

[auto] Add seed-determinism test for scaffold materializer#8
stackbilt-admin wants to merge 1 commit intomainfrom
auto/fa0de18c

Conversation

@stackbilt-admin
Copy link
Copy Markdown
Member

Autonomous Task

Task ID: fa0de18c-c821-4e3f-b4bc-d44c0212b426
Authority: auto_safe
Exit code: 0

Task Prompt

Write a test for the scaffold materializer in src/scaffold-materializer.ts.

Create test/scaffold-materializer.test.ts using vitest. The test should:

  1. Import materializeScaffold from ../src/scaffold-materializer.js
  2. Define a fixed facts object (use realistic scaffold-cast output — see the emitted facts contract in the TarotScript spread at the repo root's sibling tarotscript/spreads/scaffold-cast.tarot). Here's a working example:
const facts = {
  project_type: "api",
  complexity: "standard",
  requirement_name: "User Profile",
  requirement_element: "User",
  requirement_orientation: "upright",
  requirement_priority: "P0",
  requirement_effort: "small",
  requirement_acceptance: "profile edits saved without full reload,avatar resized server-side,email change triggers verification",
  interface_name: "Stack",
  interface_element: "Flow",
  interface_orientation: "upright",
  interface_regions: "content",
  interface_grid: "1fr",
  threat_name: "Authentication Bypass",
  threat_element: "Security",
  threat_orientation: "upright",
  threat_likelihood: "medium",
  threat_impact: "critical",
  threat_mitigation: "centralised auth middleware on every protected route",
  runtime_name: "Workers for Platforms",
  runtime_element: "Edge",
  runtime_orientation: "upright",
  runtime_tier: "blessed",
  runtime_traits: ["multi-tenant", "isolation", "dispatch", "user-scripts"],
  test_plan_name: "Mock Dependency Test",
  test_plan_element: "Isolation",
  test_plan_orientation: "reversed",
  test_plan_framework: "vitest",
  test_plan_ci_stage: "pre-commit",
  test_plan_coverage_target: "90",
  first_task_name: "Search Feature",
  first_task_element: "Build",
  first_task_orientation: "upright",
  first_task_estimate: "5",
  first_task_complexity: "medium",
  first_task_deliverable: "search input with debounce, filter panel, result list with count",
  position_count: 6,
  shadow_density: 0.17,
  elemental_balance: { Fire: 0, Water: 0, Air: 0, Earth

## Result Summary
TASK_COMPLETE

---
Generated by AEGIS task runner. Review before merging.

Verifies deterministic output, file count, expected paths, project name
derivation, Workers runtime detection, and graceful empty-facts handling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-generated Created by AEGIS task runner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant