Skip to content

Guard templates inject generatedAt/generatedBy, making regeneration non-idempotent for auth-enabled projects #129

Description

@cultron

withGeneratedMeta (src/lib/utils/file-system.ts:74-82) injects generatedAt: new Date().toISOString() and generatedBy: $USER, rendered by guards/auth.guard.eta:5 and guards/guards.module.eta:36. Any project with an auth block in .apsorc gets 2 files of churn on every regeneration even with zero schema changes, which defeats incremental diffs (context: mavric/apso-platform-server#162 diagnosis; that repo has no auth block so it does not fire there, but auth-enabled projects hit it every run).

Fix: drop the two fields from the templates and withGeneratedMeta (~3-line change across 2 templates + the helper). Version attribution stays available via the file header banner.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions