Code Factory

io.github.zrk222由 GitHub 帳號 zrk222 發布v0.49.6更新於 Nov 7, 2026

Read-only audit evidence for security, tests, native coverage, runtime failures and repair status.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機程式碼稽核伺服器,讓助理以唯讀方式取得儲存庫在安全、測試、原生覆蓋率、執行期故障與修復狀態方面的證據。

可以做什麼
  • 掃描儲存庫並檢視附有原始碼位置與已稽核檔案數的發現項目
  • 檢查安全、測試品質、架構與相依性等證據通道,包含深度模式
  • 讀取已記錄的測試與執行期結果,未綁定或缺少的證據會標示為不完整
  • 選擇修復方案並重跑受影響的檢查,支援 PR 前回執與修復連續性狀態
  • 開啟本機 Studio 工作區,以視覺化方式檢視發現項目與證據
適用情境
當助理產出或收到一項程式碼變更、你需要決定接受哪些內容時適用;也適合在送出 PR 前建立本機、有證據支撐的安全、測試與執行期檢視紀錄。
執行需求
以本機程序在使用者電腦上執行(僅桌面端),透過 uvx 使用 PyPI 套件 factoryline-code-factory;未宣告驗證、環境變數或標頭。深度與原生 worker 通道需要另行設定、已簽署的 worker 計畫與 Docker 映像。
安裝前請注意
掃描結果是唯讀證據而非認證:缺少證據會回報為不完整,乾淨的靜態結果不代表執行期覆蓋或發布核准。原生 worker 執行會執行所設定的工具,需要另行設定安全措施;選用的版本檢查會連線 PyPI,除非以 FACTORY_DISABLE_UPDATE_CHECK 關閉。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Code Factory,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Code Factory

Current release

Code Factory core 0.49.6 · VS Code and Open VSX 1.3.3 · JetBrains 1.3.4

Release and downloads · Four annotated UI screenshots

The exposed N443-38 replay measured 88.24% decided actionable precision (30/34) versus 85.71% on the same observed cases. It returned 37 of 38 cases and retained all 30 original true positives. The original sealed first-pass reference was 83.33% on decided labels (30/36) and 78.95% counting all 38 selected cases. Two blind AI reviewers supplied the labels. Case ledger

Your agent handed you a change. Now you need to decide what to accept. Code Factory brings the findings, source context and recorded checks into one review trail. Inspect a finding, choose the repair, and rerun the affected checks. You keep the evidence with the change and the decision in your hands. Start with one command:

powershell
python -m pip install factoryline-code-factoryfactory scan --root .

Your workflow: scan → review the findings → repair → run your tests and the affected checks again. The basic scan reads eligible Python source; it does not run your project. Missing evidence is INCOMPLETE, not a clean bill of health.

The Python source budget defaults to 2,000 files. factory scan --max-files 1000 sets a smaller per-run budget; over-budget scans stop explicitly without silently dropping files. This runtime budget is separate from CF's own architecture caps. Human output includes finding locations and audited/discovered source counts. Exit 0 means no blocking finding or failed check; advisories and missing evidence may remain. Exit 2 means blocked or invalid analysis. A clean Python static result does not establish runtime coverage or release approval. Use --static-only for the Python-only path; the default also orchestrates other applicable evidence lanes. JavaScript, shell and other language audits require external workers.

Want a visual workspace? Run factory studio --root .. Need options? factory --help shows the short path; factory --help-all shows all commands. Start with the quick guide.

Keep pytest, mutation testing, CodeQL, Semgrep and your review checklist. CF adds test-quality findings and source-bound local evidence alongside them. A basic scan needs no adoption ceremony, signing keys, tenant setup or Docker. Native worker execution has separate setup and safety requirements.

Code Factory is the product. Its internal engines and advanced governance features are optional workflows, not prerequisites for reviewing your code.

Starting from an idea?

Describe your idea to your coding agent and create PRD.md. The optional beginner guide helps turn it into concrete acceptance checks. For an existing repository, start with the scan above.

From an idea to a reviewable change

For a new builder, start with an idea and make the expected behavior concrete. For an experienced developer, start with the repository or proposed diff.

The complete factory

  • FactoryLine coordinates local audits, evidence, and review decisions.
  • ForgeLine builds scoped changes and challenges their checks.
  • SpecLine defines the intent, requirements, and acceptance criteria those checks must prove.

Run a basic scan when you want a quick local review.

What’s new in 0.49.6

  1. Pre-PR review. factory change pre-pr <manifest> combines candidate source, planned checks, oracle evidence, and feature verification in one receipt. Add --execute to run the declared checks.
  2. Repair continuity. factory senior fix returns NO_PROGRESS for a repeated failed candidate and STEP_BACK when the round budget is spent. The default budget stops before a fourth round.
  3. Incident intake. Reviewed incidents produce source-bound regression packets marked EXPOSED_NOT_EXECUTED. Replay evidence records what was exercised.
  4. Scan evidence. Native scans bind collection receipts before sealing. Collection drift marks the evidence incomplete and requires a fresh seal.
  5. CLI and editors. factory home prints a local invitation to star the repo. Editor releases are VS Code and Open VSX 1.3.3 and JetBrains 1.3.4.

Product walkthrough

The captures use a fictional workspace. Its one-file scan reports a planted security finding with complete source coverage and incomplete overall evidence.

[Factory Studio Product Mission draft with intent and review callouts]

[Graph Ops guide for choosing the next proof]

[Graph Ops local scan with source coverage and incomplete evidence]

[Expanded Graph Ops finding with its source line and rationale]

Try the free local core on your own repository. If it helps, a GitHub star makes it easier to discover; fork it to improve a rule or contribute a reproducible positive and negative example. Reports of missed issues and false alarms are useful contributions too.

Code Factory + ForgeLine (CF/FL) is a robust, local-first code-audit factory. It starts by collecting local software review evidence for the candidate change. It connects requirements, architecture checks, Python AST security analysis, behavioral test evidence, workflow integrity, specialty AI review, and actionable repair. Its receipts support review; the tool does not certify software, guarantee that defects are absent, or approve a release.

Product naming: Code Factory is the product and ForgeLine is its audit and architecture engine. SpecLine, HSF, and Prestige are advanced internal lanes that appear only when a project declares the corresponding scope; they are not separate products a new user must learn before running a scan.

Earlier Graph Ops examples

Graph Ops in action

[Full-page Graph Ops dashboard capture: lineage runs, a forensic finding, first semantic divergence, recovery preview, guarded actions, graph lanes, and the next action]

This full-page local capture shows Graph Ops tracing a change from sealed lineage through a forensic finding to a proposed recovery path. The guarded action remains locked; the dashboard is a read-only inspection surface.

[Graph Ops Counterfactual Arena comparing a rejected patch, an eligible refactor, and a verified repair candidate]

The Counterfactual Arena compares repair candidates and shows their evidence and risk. Winner controls and the Evidence Frontier show how a reviewer can inspect the rationale and choose the next proof.

The current Graph Ops UI also separates native deep-scan progress, evaluated deep-audit receipts, six runtime lanes, and individual JUnit test cases. Each panel labels its evidence state and next repair. Filter or search the recorded tests, then load more cases as needed; an inventory or a missing report never appears as a passing run. The JUnit reader accepts up to 10,000 cases and marks larger or malformed reports incomplete. A JUnit report is local observation without a current-candidate binding.

[Updated Graph Ops audit results: labeled native deep scan, evaluated audit, six runtime lanes, and searchable individual test results]

This local UI capture shows each reported test case with its status. The audit cards keep checks without a bound result explicitly marked not run.

Supplement: annotated live Assembly telemetry

[Annotated Graph Ops telemetry capture: callouts identify the human waiting state, live run counts, evidence actions, and read-only boundary]

The labels explain an original local Assembly capture. That pictured run is waiting for human input; it does not imply release approval or that every check passed.

Add deeper audit lanes

powershell
factory scan --root . --deep

Deep mode orchestrates architecture, Python security and test-oracle checks, workflow integrity, requirements, runtime coverage, and dependency evidence. Languages including TypeScript/JSX, Go, Rust, Java, C/C++, C#, Ruby, PHP and Swift are inventoried explicitly; missing native analysis remains unmeasured.

For authorized native execution, use:

powershell
factory scan --root . --deep --worker-config .factory/worker-config.json --json

The configuration contains workspace-relative manifest, authorization, and trust_root paths plus manifest_sha256 and trust_root_sha256 pins. This invokes the existing signed Docker worker engine for configured CodeQL, Semgrep, secrets, dependency, container, runtime and fuzz lanes. Unsigned plans are rejected. Completed workers still require independent agent review; missing evidence and review cannot produce a passing verdict. Native execution requires its configured images and tooling and can take longer than a minute. Each unresolved lane includes its next action. Receipt presence alone is not verification, and no scan claims to detect every defect.

Package metadata now uses Production/Stable, starting with this source update. That release-status label is separate from detection accuracy, independent benchmark results, and provider publication.

In an interactive terminal, factory optionally makes one plain PyPI version check and caches the result for up to 24 hours, then prints a notice when a newer version is available. It never downloads or installs the update. The check is quiet in CI, JSON output, server/MCP, help, version, and non-interactive runs; set FACTORY_DISABLE_UPDATE_CHECK=1 to turn it off. The optional request does not include a project path, account identifier, or usage data. All audit and proof commands remain local unless an operator explicitly uses a separate provider integration.

Run repository commands from the project being reviewed. factory guide is a read-only orientation; it does not run tests or agents.

Inspect this repository

These commands show the current architecture policy, the bounded static security scan, and the runtime-audit setup:

powershell
factory architecture health --root . --jsonfactory audit security --root . --jsonfactory runtime-audit status --root . --json

factory audit security checks a limited set of source patterns. It is not a penetration test. The runtime audit needs a separately reviewed plan and its own environment evidence. A status of NOT_RUN or a clean static scan is not a complete project audit.

To display individual tests in Graph Ops, run your suite with a JUnit report at .factory/test-reports/pytest.xml (for example, python -m pytest --junitxml=.factory/test-reports/pytest.xml). The local Studio reads the report and labels its candidate binding UNBOUND; it does not infer that those results still apply after source changes.

The prior snapshot's repository self-audit receipt records A (97.9/100) and 1,055/1,085 functions attributed to test intent (97.24%). That static measurement applies to its recorded source digest and is describes static test-intent attribution for that snapshot.

ForgeLine 0.10.8 computes Python complexity for public module functions and public class methods in its recorded metrics.scope.code_files; names starting with _ are excluded. Its AST metric counts branches, boolean alternatives, exception handlers, with, and assertions. Ruff C901 uses a different McCabe metric and also checks private functions. CI therefore runs python -m ruff check --select C901 factoryline tests separately at limit 10. The ForgeLine maximum must not be read as the maximum of every Python function. CI also checks action and reusable workflow references for immutable commit pins; the generic workflow evidence validator alone does not inspect those refs.

Release controls

Candidate preflight requires release-cadence admission and strict architecture health. Protected main requires CI and a separate specialty AI source review; the coordinator records that assessment, separately from test evidence. It is not a second human approval. Provider publication and marketplace approval are separate outcomes. See release channels.

Architecture health checks growth budgets. ForgeLine's repository inventory and feature QA are separate checks. The current gap review records historical parser behavior. CF requires ForgeLine 0.10.8 and checks real MJS, TS, and TSX feature QA during factory doctor --strict. Static signals are neither executed coverage nor a security certification.

More detail

Updated video preview

60-second CF/FL audit and repair walkthrough — October 8, 2026. Silent captions, current Graph Ops captures, bounded scanner improvements and agent repair evidence requirements. The source render is in videos/code-factory-proof-of-survival/remotion.

Earlier native agent-harness preview

The examples below describe the earlier 0.48.1 development preview.

The native harness keeps incident checkpoints for recovery, binds review context shards to source, and compares candidate repairs without applying them. Budgeted Jev triage keeps unprocessed incidents visible as pending, not assessed. Parallel audits are opt-in and require a signed policy declaring work non-mutating and resource-safe; serial remains the default, and the declaration does not prove isolation. Optional activation experiments call only hooks explicitly registered by the caller. Their observations are experimental, not model certification or accuracy evidence. The source taxonomy and manifest define the same routes for Junie while keeping execution and identity limits visible.

Native scanner changes introduced in core 0.49.0

Fixed: native scanner controls require vulnerable and safe results bound to image, profile and source hashes. Missing evidence remains incomplete. Test-intent auditing recognizes argument/await assertions, expected-exception failure checks and invoked local assertion helpers. Direct local serialization round-trips in tests retain informational findings and custom-reducer warnings. Changed: agents use one factory scan --deep overview and explicitly configured native workers selected for the project's languages and risks. JavaScript/Actions workers verify bundled compiled queries rather than rebuilding them, and receipt discovery skips explicit file checks for unrelated logs. Added: CodeQL JavaScript/TypeScript interprocedural analysis, GitHub Actions security-extended analysis, and ten Python/JavaScript/TypeScript Semgrep rules including local taint tracking. CodeQL controls require native flow evidence; Semgrep community output does not establish cross-file coverage. The external-source regression corpus includes upstream cases from requests, Rich and Click. These source fixtures exercise supported regression cases; runtime verification remains a separate step.

Code Factory is a robust code audit factory with Production/Stable package metadata. This source preview does not establish new marketplace publication, runtime verification of every repository, or measured detection accuracy.

Smaller models, stronger quality workflows

CF/FL is designed to guide smaller LLMs toward frontier-like coding performance through deterministic workflows, independent audits and evidence-driven repair. Sealed task packets keep requirements, scope and acceptance checks explicit. This is the design objective; model parity and cost savings require a paired benchmark and are not established by the current attribution metric.

來源:README.md,提交 5cea4de

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

7
  1. v0.49.6最新Nov 7, 2026
  2. v0.48.2Oct 15, 2026
  3. v0.48.1Oct 10, 2026
  4. v0.48.0Oct 9, 2026
  5. v0.47.0Oct 4, 2026
  6. v0.46.7Sep 19, 2026
  7. v0.46.4Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。