Skip to content

fix: stackbilt scaffold reads from run output, not only architect cache #7

Closed

Description

@stackbilt-admin

Bug

stackbilt scaffold reads .charter/last-build.json written by stackbilt architect. stackbilt run writes files directly to disk but does NOT write this cache file. So stackbilt run && stackbilt scaffold doesn't compose — scaffold has nothing to read.

Fix

Standardise on a single cache contract written by both architect and run:

.charter/last-build.json  {
  intention: string
  pattern: string
  classification: ClassifyResult
  governance: GovernanceDocs
  files?: ScaffoldFile[]   // present after run, absent after architect
  createdAt: string
}

Both commands write this shape. scaffold reads it and materialises files from files[] if present, or calls generateFiles() from the cached classification if not.

Related

#4 (inference-free scaffold wiring) depends on this cache contract being stable.

Activity

  1. added 2 commits that reference this issue on Jun 12, 2026
  2. stackbilt-admin commented on Jun 12, 2026

    @stackbilt-admin
    MemberAuthor

    Fixed in PR #8: unified cache contract implemented. architect writes { intention, pattern, classification, governance, createdAt }. run writes the same shape plus files[]. scaffold.ts reads all three shapes (new, architect-no-files, legacy BuildResult).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions