{"slug": "turning-spfx-factory-into-an-evidence-gated-spfx-agent", "title": "Turning spfx-factory Into an Evidence-Gated SPFx Agent", "summary": "The latest release of spfx-factory, an open-source tool for generating SharePoint Framework (SPFx) projects, introduces an evidence-gated workflow that records verification results for each step of the generation process. The tool now logs checks such as scaffold completion, code implementation, policy validation, local npm checks, and independent assurance, with each check reporting a status of verified, warning, blocked, or not-tested. This evidence ledger aims to provide transparency about what was tested and what remains unknown, distinguishing local verification from tenant validation.", "body_md": "AI can generate an SPFx project. That is not the same as proving the project is ready.\n\nThe latest `spfx-factory`\n\nrelease adds an evidence ledger around the existing generation workflow:\n\n`SCAFFOLD`\n\n— whether the official scaffold completed;`CODEX`\n\n— whether implementation was requested and completed;`POLICY`\n\n— whether static policy checks passed;`LOCAL`\n\n— whether requested local npm checks passed;`ASSURANCE`\n\n— whether an independent `spfx-assurance`\n\ncheck ran;`TENANT`\n\n— always explicitly `not-tested`\n\n.Every check reports one of:\n\n`verified`\n\n;`warning`\n\n;`blocked`\n\n;`not-tested`\n\n.The existing factory report status remains backward compatible. Evidence is recorded in a parallel `evidence`\n\nfield rather than silently changing the old contract.\n\nThe factory can invoke `spfx-assurance`\n\nwhen it is already available through `SPFX_ASSURANCE_BIN`\n\nor `PATH`\n\n.\n\nIt does not:\n\n`npx`\n\n;When the checker is absent, the result is `not-tested`\n\nwith an actionable explanation.\n\n```\nspfx-factory inspect --output ./generated\nspfx-factory inspect --output ./generated --json\n```\n\nThe inspection command is read-only. It reads the existing `factory-report.json`\n\n, prints the evidence, and does not rerun generation or verification.\n\nWarnings do not break an otherwise green run by default. Teams that want warning-gating can opt in:\n\n```\nspfx-factory generate \\\n  --spec specs/document-review.json \\\n  --output ./generated \\\n  --fail-on warning\n```\n\nThis is local evidence, not tenant validation. A green local report does not prove:\n\nThat limitation is part of the report, not a footnote hidden outside it.\n\nThe useful product boundary for AI-assisted SPFx development is not “the model wrote code.” It is:\n\nThe system cannot call the work complete without showing what was checked, what passed, and what remains unknown.\n\nThe project is open source:\n\n[https://github.com/vystartasv/spfx-factory](https://github.com/vystartasv/spfx-factory)\n\nThe release adds an evidence layer to the factory while preserving its existing generation and policy behaviour.", "url": "https://wpnews.pro/news/turning-spfx-factory-into-an-evidence-gated-spfx-agent", "canonical_source": "https://dev.to/vystartasv/turning-spfx-factory-into-an-evidence-gated-spfx-agent-53cd", "published_at": "2026-08-31 16:15:46+00:00", "updated_at": "2026-08-31 16:22:14.557747+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-agents"], "entities": ["spfx-factory", "spfx-assurance", "SharePoint Framework"], "alternates": {"html": "https://wpnews.pro/news/turning-spfx-factory-into-an-evidence-gated-spfx-agent", "markdown": "https://wpnews.pro/news/turning-spfx-factory-into-an-evidence-gated-spfx-agent.md", "text": "https://wpnews.pro/news/turning-spfx-factory-into-an-evidence-gated-spfx-agent.txt", "jsonld": "https://wpnews.pro/news/turning-spfx-factory-into-an-evidence-gated-spfx-agent.jsonld"}}