AIToday
Large Language ModelsZenn AI/MLPublished: Oct 2, 2026, 10:00 JST

tools/aissfw.py grew to about 9,500 lines, and the author now questions its boundaries

tools/aissfw.py grew to about 9,500 lines, and the author now questions its boundaries

3 Key Points

  1. What happened

    The author writes that ALPACA-template's Python CLI tools/aissfw.py grew to about 9,500 lines, covering framework checks, project artifacts, traceability, and gate preflight. It reads framework/catalog.toml, checks it first, then dispatches each command and returns Markdown or JSON with exit codes.

  2. Why it matters

    The author says that because the CLI handles so many different checks in one place, a change in one area is hard to trace to the others. The author views it as a useful prototyping step rather than a final architecture.

  3. What to watch

    The author plans to revise the internal structure in the next version, not because the original design was wrong, but because running it revealed where boundaries should be drawn. The next article will break down what each of framework check, project check, trace check, and gate preflight actually looks at.

WHO IT HITSDevelopers and QA leads who maintain template-based project frameworks feel this most: they get deterministic checks with exit codes for CI, but must reason about a very large single file when requirements change.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The article follows an earlier piece that described why ALPACA-template placed framework/catalog.toml as a machine-readable contract separate from human- or AI-facing rules. Here the focus shifts to the tool that reads it: tools/aissfw.py.

The author separates roles deliberately. People, AI, and QA judge meaning and validity, while the CLI handles structure and consistency such as required artifacts, IDs, relationships, table structure, and gate prerequisites. Final decisions stay with QA and the Project Owner. The CLI supports commands like framework check, project check, trace check, trace render, and gate preflight, and it validates the catalog itself before checking any project so a broken rule set cannot reject artifacts. Results are collected into a shared CheckResult and returned as Markdown or JSON with distinct exit codes. Only trace render --write is allowed to write, and the CLI never treats its pass as an approval.

The author is candid that the single-CLI approach has become unwieldy at about 9,500 lines. The stated reason is not the line count itself but that different responsibilities share one module, so tracing the impact of a contract change across the parser, catalog interpretation, gate aggregation, and output format takes mental effort. The next version's rework is framed as drawing boundaries that only became visible after the framework was actually run, which is a reminder that early-stage consolidation can be a reasonable path to clarity rather than purely a liability.

FAQ
Why did the ALPACA-template author not rely on AI for every check?
The author says checks like whether required files exist, whether IDs are duplicated, or whether undefined IDs are referenced are better handled deterministically, since the same input should give the same answer. AI is left to judge meaning and validity instead.
Does passing the CLI mean a design is approved?
No. The author writes that CLI pass, QA quality recommendation, and Project Owner approval are kept separate. The CLI only presents deterministic conditions; it does not issue approvals itself.
Can trace render change files?
Yes, but only with an explicit write. The author says trace render --write regenerates a derived RTM index, while trace check stays read-only so that checking and fixing are not the same operation.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI CEOs sign AI safety accord letting labs self-police, Trump says