fabriek 1.0.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fabriek-1.0.0a1/LICENSE +201 -0
- fabriek-1.0.0a1/PKG-INFO +208 -0
- fabriek-1.0.0a1/README.md +156 -0
- fabriek-1.0.0a1/pyproject.toml +115 -0
- fabriek-1.0.0a1/setup.cfg +4 -0
- fabriek-1.0.0a1/src/fabriek/__init__.py +1 -0
- fabriek-1.0.0a1/src/fabriek/__main__.py +5 -0
- fabriek-1.0.0a1/src/fabriek/core/__init__.py +18 -0
- fabriek-1.0.0a1/src/fabriek/core/config.py +966 -0
- fabriek-1.0.0a1/src/fabriek/core/failure.py +21 -0
- fabriek-1.0.0a1/src/fabriek/core/paths.py +91 -0
- fabriek-1.0.0a1/src/fabriek/core/profiles/__init__.py +203 -0
- fabriek-1.0.0a1/src/fabriek/core/profiles/data/dotnet-node.yaml +22 -0
- fabriek-1.0.0a1/src/fabriek/core/profiles/data/python.yaml +8 -0
- fabriek-1.0.0a1/src/fabriek/core/profiles/data/rust.yaml +11 -0
- fabriek-1.0.0a1/src/fabriek/core/results.py +41 -0
- fabriek-1.0.0a1/src/fabriek/core/verdict.py +201 -0
- fabriek-1.0.0a1/src/fabriek/engine/__init__.py +2 -0
- fabriek-1.0.0a1/src/fabriek/engine/actions.py +254 -0
- fabriek-1.0.0a1/src/fabriek/engine/agent_error_guide.md +7 -0
- fabriek-1.0.0a1/src/fabriek/engine/agent_error_guide.py +26 -0
- fabriek-1.0.0a1/src/fabriek/engine/agents.py +300 -0
- fabriek-1.0.0a1/src/fabriek/engine/allowlist.py +66 -0
- fabriek-1.0.0a1/src/fabriek/engine/brief_coverage.py +108 -0
- fabriek-1.0.0a1/src/fabriek/engine/brief_prompt.md +49 -0
- fabriek-1.0.0a1/src/fabriek/engine/brief_prompt.py +47 -0
- fabriek-1.0.0a1/src/fabriek/engine/claude_auth.py +306 -0
- fabriek-1.0.0a1/src/fabriek/engine/cli.py +534 -0
- fabriek-1.0.0a1/src/fabriek/engine/completion.py +48 -0
- fabriek-1.0.0a1/src/fabriek/engine/containers.py +81 -0
- fabriek-1.0.0a1/src/fabriek/engine/copilot_auth.py +224 -0
- fabriek-1.0.0a1/src/fabriek/engine/deps.py +77 -0
- fabriek-1.0.0a1/src/fabriek/engine/dryrun.py +169 -0
- fabriek-1.0.0a1/src/fabriek/engine/egress_policy.py +130 -0
- fabriek-1.0.0a1/src/fabriek/engine/egress_proxy.py +359 -0
- fabriek-1.0.0a1/src/fabriek/engine/extensions/__init__.py +0 -0
- fabriek-1.0.0a1/src/fabriek/engine/extensions/aidlc.py +180 -0
- fabriek-1.0.0a1/src/fabriek/engine/fanout.py +588 -0
- fabriek-1.0.0a1/src/fabriek/engine/forbidden.py +77 -0
- fabriek-1.0.0a1/src/fabriek/engine/graph.py +380 -0
- fabriek-1.0.0a1/src/fabriek/engine/hostboundary.py +140 -0
- fabriek-1.0.0a1/src/fabriek/engine/isolation.py +1899 -0
- fabriek-1.0.0a1/src/fabriek/engine/llm.py +196 -0
- fabriek-1.0.0a1/src/fabriek/engine/loaders.py +167 -0
- fabriek-1.0.0a1/src/fabriek/engine/mounts.py +63 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/__init__.py +6 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/checks.py +273 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/doctor.py +94 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/init.py +463 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/recipes/dotnet-node.yaml +118 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/recipes/python.yaml +78 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/recipes/rust.yaml +82 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/recipes.py +93 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/templates/dev.agent.md +148 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/templates/env.example +13 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/templates/qa.agent.md +188 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/templates/review.agent.md +50 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/templates.py +62 -0
- fabriek-1.0.0a1/src/fabriek/engine/onboarding/upgrade.py +84 -0
- fabriek-1.0.0a1/src/fabriek/engine/outputs.py +63 -0
- fabriek-1.0.0a1/src/fabriek/engine/presets.py +51 -0
- fabriek-1.0.0a1/src/fabriek/engine/proc.py +72 -0
- fabriek-1.0.0a1/src/fabriek/engine/provider_wire.py +234 -0
- fabriek-1.0.0a1/src/fabriek/engine/registry.py +317 -0
- fabriek-1.0.0a1/src/fabriek/engine/run_status.py +364 -0
- fabriek-1.0.0a1/src/fabriek/engine/run_status_command.md +23 -0
- fabriek-1.0.0a1/src/fabriek/engine/seccomp/__init__.py +72 -0
- fabriek-1.0.0a1/src/fabriek/engine/seccomp/chromium-userns.json +190 -0
- fabriek-1.0.0a1/src/fabriek/engine/secrets.py +207 -0
- fabriek-1.0.0a1/src/fabriek/engine/stages.py +1314 -0
- fabriek-1.0.0a1/src/fabriek/engine/step_workspace.py +188 -0
- fabriek-1.0.0a1/src/fabriek/engine/sync_back.py +332 -0
- fabriek-1.0.0a1/src/fabriek/py.typed +0 -0
- fabriek-1.0.0a1/src/fabriek/reporting/__init__.py +43 -0
- fabriek-1.0.0a1/src/fabriek/reporting/metrics.py +593 -0
- fabriek-1.0.0a1/src/fabriek/reporting/render.py +175 -0
- fabriek-1.0.0a1/src/fabriek/reporting/sources.py +770 -0
- fabriek-1.0.0a1/src/fabriek/viz/__init__.py +16 -0
- fabriek-1.0.0a1/src/fabriek/viz/layout.py +233 -0
- fabriek-1.0.0a1/src/fabriek/viz/page.py +11 -0
- fabriek-1.0.0a1/src/fabriek/viz/runs_view.py +218 -0
- fabriek-1.0.0a1/src/fabriek/viz/server.py +637 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-1pKPtbcx.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-2lMgbefg.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-B0WgRfVg.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-B3fCnGwv.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-Bm3KyEZC.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-DIfh6y3Q.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/16-DxEg5YJZ.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/20-CdViZ4xF.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/accordion.min.js +66 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/button-rSg_K8yf.js +97 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/button-skeleton-i-vqINhS.js +43 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/button.min.js +26 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/carbon-element-Bi7pQHAl.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/checkbox-D7PSLQCq.js +62 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/checkbox.min.js +59 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/class-map-t9xXbTFr.js +28 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/code-snippet.min.js +83 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/collection-helpers-BOkEorAG.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/copy-button.min.js +36 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/copy-tonlUGaV.js +31 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/data-table.min.js +184 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/decorate-1Ivfrp93.js +46 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/decorators-CNcdZSLL.js +33 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/deep-shadow-contains-Cs2rSnhr.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/definition-tooltip-FYe4J71p.js +48 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/directive-xDpGnViN.js +28 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/feature-flags-C7ZDYm5Q.js +41 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/floating-controller-DmTRVV0A.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/focus-D91D_iCB.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/form-Sg67yyAA.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/host-listener-CEd01uiB.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/host-listener-D_ODAJ3e.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/icon-button-Be2x1qrf.js +38 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/icon-loader-Cj1PggRN.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/icon-loader-utils-CVerE28u.js +28 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/if-defined-CV6i5LeB.js +28 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/if-non-empty-B5mz8bH9.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/link-aD3OYHCu.js +46 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/link.min.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/manifest.json +257 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/notification.min.js +123 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/on-DP_Dnlgd.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/popover-content-fajgXUvu.js +37 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/popover.min.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/query-DJR3NpB4.js +33 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/query-all-BuL-eXl_.js +29 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/radio-button.min.js +77 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/radio-group-manager-BE85t4HN.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/search-CVX2VAop.js +54 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/settings-DlHDxgf_.js +85 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/skeleton-text-s5gA9_CO.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/skeleton-text.min.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/tag.min.js +133 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/themes.css +1 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/tile.min.js +97 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/tooltip-DYtXwn-o.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/tooltip-content-DDo9ICPL.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/tooltip.min.js +23 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/ui-shell.min.js +159 -0
- fabriek-1.0.0a1/src/fabriek/viz/vendor/unsafe-html-BDr7jYB8.js +28 -0
- fabriek-1.0.0a1/src/fabriek.egg-info/PKG-INFO +208 -0
- fabriek-1.0.0a1/src/fabriek.egg-info/SOURCES.txt +225 -0
- fabriek-1.0.0a1/src/fabriek.egg-info/dependency_links.txt +1 -0
- fabriek-1.0.0a1/src/fabriek.egg-info/entry_points.txt +2 -0
- fabriek-1.0.0a1/src/fabriek.egg-info/requires.txt +24 -0
- fabriek-1.0.0a1/src/fabriek.egg-info/top_level.txt +1 -0
- fabriek-1.0.0a1/tests/test_029_merge_on_conflict.py +86 -0
- fabriek-1.0.0a1/tests/test_033_brief_step.py +608 -0
- fabriek-1.0.0a1/tests/test_035_finalize_nudge.py +219 -0
- fabriek-1.0.0a1/tests/test_036_banned_commands_and_lane_boundary.py +226 -0
- fabriek-1.0.0a1/tests/test_041_brief_coverage.py +296 -0
- fabriek-1.0.0a1/tests/test_046_brief_prompt.py +39 -0
- fabriek-1.0.0a1/tests/test_055_cli.py +190 -0
- fabriek-1.0.0a1/tests/test_055_doctor.py +163 -0
- fabriek-1.0.0a1/tests/test_055_init.py +258 -0
- fabriek-1.0.0a1/tests/test_055_profile_loading.py +73 -0
- fabriek-1.0.0a1/tests/test_055_profiles.py +188 -0
- fabriek-1.0.0a1/tests/test_055_recipes.py +160 -0
- fabriek-1.0.0a1/tests/test_055_schema_lock.py +47 -0
- fabriek-1.0.0a1/tests/test_055_templates.py +58 -0
- fabriek-1.0.0a1/tests/test_055_upgrade.py +143 -0
- fabriek-1.0.0a1/tests/test_actions.py +488 -0
- fabriek-1.0.0a1/tests/test_agent_error_guide.py +188 -0
- fabriek-1.0.0a1/tests/test_agents.py +238 -0
- fabriek-1.0.0a1/tests/test_aidlc.py +314 -0
- fabriek-1.0.0a1/tests/test_build_viz_page.py +88 -0
- fabriek-1.0.0a1/tests/test_claude_auth.py +339 -0
- fabriek-1.0.0a1/tests/test_claude_cli.py +43 -0
- fabriek-1.0.0a1/tests/test_cli.py +614 -0
- fabriek-1.0.0a1/tests/test_config.py +902 -0
- fabriek-1.0.0a1/tests/test_containers.py +114 -0
- fabriek-1.0.0a1/tests/test_copilot_auth.py +197 -0
- fabriek-1.0.0a1/tests/test_copilot_cli.py +90 -0
- fabriek-1.0.0a1/tests/test_deps.py +75 -0
- fabriek-1.0.0a1/tests/test_dry_run.py +191 -0
- fabriek-1.0.0a1/tests/test_e2e_fixtures.py +333 -0
- fabriek-1.0.0a1/tests/test_egress_proxy.py +428 -0
- fabriek-1.0.0a1/tests/test_fanout.py +517 -0
- fabriek-1.0.0a1/tests/test_graph.py +620 -0
- fabriek-1.0.0a1/tests/test_hostboundary.py +146 -0
- fabriek-1.0.0a1/tests/test_hostboundary_integration.py +119 -0
- fabriek-1.0.0a1/tests/test_isolation.py +2364 -0
- fabriek-1.0.0a1/tests/test_isolation_integration.py +345 -0
- fabriek-1.0.0a1/tests/test_isolation_pbt.py +106 -0
- fabriek-1.0.0a1/tests/test_llm.py +273 -0
- fabriek-1.0.0a1/tests/test_loaders.py +249 -0
- fabriek-1.0.0a1/tests/test_module_contract.py +113 -0
- fabriek-1.0.0a1/tests/test_outputs.py +182 -0
- fabriek-1.0.0a1/tests/test_outputs_pbt.py +111 -0
- fabriek-1.0.0a1/tests/test_proc.py +124 -0
- fabriek-1.0.0a1/tests/test_provider_wire.py +213 -0
- fabriek-1.0.0a1/tests/test_publish.py +488 -0
- fabriek-1.0.0a1/tests/test_pypi_yank.py +339 -0
- fabriek-1.0.0a1/tests/test_qa_prompt.py +32 -0
- fabriek-1.0.0a1/tests/test_registry.py +259 -0
- fabriek-1.0.0a1/tests/test_repo_ascii.py +60 -0
- fabriek-1.0.0a1/tests/test_results.py +35 -0
- fabriek-1.0.0a1/tests/test_run_status.py +283 -0
- fabriek-1.0.0a1/tests/test_runs_js_duration_charts.py +179 -0
- fabriek-1.0.0a1/tests/test_runs_js_filters.py +167 -0
- fabriek-1.0.0a1/tests/test_runs_js_key_stats.py +242 -0
- fabriek-1.0.0a1/tests/test_runs_js_metrics.py +148 -0
- fabriek-1.0.0a1/tests/test_runs_layout.py +92 -0
- fabriek-1.0.0a1/tests/test_runs_layout_key_stats.py +98 -0
- fabriek-1.0.0a1/tests/test_sdk_compat.py +201 -0
- fabriek-1.0.0a1/tests/test_secrets.py +329 -0
- fabriek-1.0.0a1/tests/test_secrets_integration.py +67 -0
- fabriek-1.0.0a1/tests/test_secrets_pipeline.py +108 -0
- fabriek-1.0.0a1/tests/test_source_resolution.py +36 -0
- fabriek-1.0.0a1/tests/test_stages.py +1055 -0
- fabriek-1.0.0a1/tests/test_step_workspace.py +150 -0
- fabriek-1.0.0a1/tests/test_sync_back.py +387 -0
- fabriek-1.0.0a1/tests/test_unit11.py +524 -0
- fabriek-1.0.0a1/tests/test_unit11_pbt.py +125 -0
- fabriek-1.0.0a1/tests/test_unit12_reporting.py +369 -0
- fabriek-1.0.0a1/tests/test_unit13_runs_viz.py +288 -0
- fabriek-1.0.0a1/tests/test_unit5_config.py +166 -0
- fabriek-1.0.0a1/tests/test_unit5_pbt.py +71 -0
- fabriek-1.0.0a1/tests/test_unit5_pure.py +208 -0
- fabriek-1.0.0a1/tests/test_vendor_carbon_wc.py +33 -0
- fabriek-1.0.0a1/tests/test_verdict.py +243 -0
- fabriek-1.0.0a1/tests/test_viz.py +1656 -0
- fabriek-1.0.0a1/tests/test_viz_demo.py +126 -0
- fabriek-1.0.0a1/tests/test_viz_layout.py +275 -0
- fabriek-1.0.0a1/tests/test_viz_wheel_contents.py +63 -0
fabriek-1.0.0a1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
fabriek-1.0.0a1/PKG-INFO
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fabriek
|
|
3
|
+
Version: 1.0.0a1
|
|
4
|
+
Summary: The code factory (say fa-BREEK): turn an LLM into a gated, sandboxed, resumable construction loop over your codebase.
|
|
5
|
+
Author: Luke Wilson
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/lukedawilson/fabriek
|
|
8
|
+
Project-URL: Documentation, https://fabriek.io/
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: MacOS
|
|
13
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
14
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Classifier: Topic :: Software Development
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
24
|
+
Classifier: Topic :: Security
|
|
25
|
+
Classifier: Typing :: Typed
|
|
26
|
+
Requires-Python: >=3.12
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: pydantic>=2.0
|
|
30
|
+
Requires-Dist: PyYAML>=6.0
|
|
31
|
+
Requires-Dist: openhands-sdk~=1.17.0
|
|
32
|
+
Requires-Dist: openhands-tools~=1.17.0
|
|
33
|
+
Requires-Dist: browser-use==0.11.13
|
|
34
|
+
Requires-Dist: pillow>=13.0.0
|
|
35
|
+
Requires-Dist: agent-client-protocol<1.0.0
|
|
36
|
+
Requires-Dist: langgraph>=1.2
|
|
37
|
+
Requires-Dist: langgraph-checkpoint-sqlite>=3.0
|
|
38
|
+
Requires-Dist: msgpack>=1.0
|
|
39
|
+
Requires-Dist: filelock>=4.2.1
|
|
40
|
+
Requires-Dist: pyasn1>=0.6.5
|
|
41
|
+
Requires-Dist: pypdf>=6.21.4
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: hypothesis>=6.0; extra == "dev"
|
|
44
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
45
|
+
Requires-Dist: pip-audit>=2.0; extra == "dev"
|
|
46
|
+
Requires-Dist: pre-commit>=3.0; extra == "dev"
|
|
47
|
+
Requires-Dist: setuptools>=78.1.1; extra == "dev"
|
|
48
|
+
Provides-Extra: docs
|
|
49
|
+
Requires-Dist: mkdocs-material~=9.6; extra == "docs"
|
|
50
|
+
Requires-Dist: pymdown-extensions~=10.0; extra == "docs"
|
|
51
|
+
Dynamic: license-file
|
|
52
|
+
|
|
53
|
+
# fabriek
|
|
54
|
+
|
|
55
|
+
> **The code factory: gated, sandboxed, resumable agent loops over your codebase.**
|
|
56
|
+
|
|
57
|
+
fabriek is Dutch for factory, say **fa-BREEK**.
|
|
58
|
+
|
|
59
|
+
Describe your pipeline in one YAML file - agent steps, mechanical test gates, and
|
|
60
|
+
trusted actions - and `fabriek` runs it end to end: agent and command steps get
|
|
61
|
+
kernel-level sandboxing via Docker, verdicts route the graph, every boundary is
|
|
62
|
+
checkpointed, and nothing gets committed until every gate passes.
|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+
## Key features
|
|
67
|
+
|
|
68
|
+
- **A tool, not a wiring project.** One CLI entry point, opinionated defaults,
|
|
69
|
+
fixed safety policies. You write the pipeline and the agent definitions -
|
|
70
|
+
nothing else.
|
|
71
|
+
- **Deterministic.** Same pipeline + same state means the same routing.
|
|
72
|
+
Verdicts are parsed from files and validated tool calls, retries are
|
|
73
|
+
bounded, nothing is best-effort.
|
|
74
|
+
- **Sandboxed by default.** The agent's shell and every command step run
|
|
75
|
+
inside an always-on Docker sandbox: network off by default, writes only to
|
|
76
|
+
declared `mounts:`, no `.git`. If no sandbox is available, the run stops
|
|
77
|
+
instead of degrading.
|
|
78
|
+
- **Crash-safe and resumable.** Every boundary is checkpointed; interrupt a
|
|
79
|
+
run and resume it from the exact checkpoint with `--resume`, notes intact.
|
|
80
|
+
- **Watchable.** A live browser graph view with per-stage consoles and an
|
|
81
|
+
event log, a browsable run history, and markdown reports.
|
|
82
|
+
- **Gated commits.** A single commit point that fires only when every gate
|
|
83
|
+
passed and the worktree was clean at start.
|
|
84
|
+
- **Supply-chain careful.** A digest-pinned dev image, a locked-by-default
|
|
85
|
+
dependency policy, and a CVE-audited restore step.
|
|
86
|
+
- **Secret-safe.** Secrets are refs in config, values in the host environment,
|
|
87
|
+
opted in per step, and scrubbed from every engine-written output; the
|
|
88
|
+
workspace may not contain `.env*` files.
|
|
89
|
+
- **Onboarding that stays honest.** `init` scaffolds a working loop for your
|
|
90
|
+
repo, `doctor` probes the host before every run, `upgrade` converges the
|
|
91
|
+
install and the pinned version.
|
|
92
|
+
- **Extensible.** Plugins add your own actions, tools, and document loaders,
|
|
93
|
+
loaded from outside the workspace only.
|
|
94
|
+
|
|
95
|
+
## Supported platforms
|
|
96
|
+
|
|
97
|
+
The engine is plain Linux under the hood and runs wherever a compliant
|
|
98
|
+
Docker engine does:
|
|
99
|
+
|
|
100
|
+
| Platform | Support |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| **Linux** | Native. Docker Engine, OrbStack, Colima, or podman with docker compat. |
|
|
103
|
+
| **macOS** | Native. Docker Desktop, OrbStack, or Colima. |
|
|
104
|
+
| **Windows** | Via **WSL2** (Ubuntu distro). Enable Docker Desktop's WSL integration (or run Docker Engine inside the distro) and keep the repo on the WSL filesystem (`~/dev/...`), not `/mnt/c` - bind-mounting a 9p path into containers breaks permissions and is slow. |
|
|
105
|
+
|
|
106
|
+
## Quickstart
|
|
107
|
+
|
|
108
|
+
### Prerequisites
|
|
109
|
+
|
|
110
|
+
| Requirement | Detail |
|
|
111
|
+
| --- | --- |
|
|
112
|
+
| Python | >= 3.12 |
|
|
113
|
+
| Docker engine | Engine API >= 1.43 (Engine 24). Any compliant engine works - Docker Desktop, OrbStack, Colima, Rancher Desktop, podman docker-compat. On Windows, run under WSL2: the repo must live on the WSL filesystem, not /mnt/c. |
|
|
114
|
+
| LLM API key | The env var named by your pipeline's `api_key_env` (e.g. `OPENAI_API_KEY`) must be set - a missing key fails fast, naming it. Alternatively, `fabriek copilot-login` authenticates a Copilot subscription, and a Claude Pro or Max subscription runs on Anthropic's own endpoint after `fabriek claude-login` (see [LLM providers](https://fabriek.io/llm-providers/)). |
|
|
115
|
+
|
|
116
|
+
### Installation
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
pipx install --pip-args="--pre" fabriek # latest release is currently a pre-release
|
|
120
|
+
fabriek --version
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Install with **pipx**: the engine's venv lives outside the workspace, so it
|
|
124
|
+
is unmounted from the sandbox and never agent-writable. On the first run the
|
|
125
|
+
engine pulls the digest-pinned dev image and verifies its digest. Setup
|
|
126
|
+
details and troubleshooting live in the [setup guide](https://fabriek.io/setup/).
|
|
127
|
+
|
|
128
|
+
### Your first loop
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
cd <your-repo>
|
|
132
|
+
fabriek init --profile python # writes the pipeline + agents
|
|
133
|
+
# or: --profile dotnet-node, rust
|
|
134
|
+
# or any toolchain image: --profile ./my-profile.yaml --recipe ./my-recipe.yaml
|
|
135
|
+
export OPENAI_API_KEY=... # whatever api_key_env names
|
|
136
|
+
fabriek fabriek/pipeline.yaml --dry-run # validate - no LLM, no Docker
|
|
137
|
+
fabriek fabriek/pipeline.yaml # run it
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`init` scaffolds `fabriek/pipeline.yaml` plus the agent files it
|
|
141
|
+
names; `--dry-run` loads and validates with no LLM, no Docker, and no state
|
|
142
|
+
writes. Bundled profiles cover `python`, `dotnet-node`, and `rust`; for any
|
|
143
|
+
other toolchain, pass your own profile and recipe files and point the
|
|
144
|
+
profile's `isolation.image` at your image (see the
|
|
145
|
+
[setup guide](https://fabriek.io/setup/)). A minimal pipeline looks like:
|
|
146
|
+
|
|
147
|
+
```yaml
|
|
148
|
+
name: my-construction-loop
|
|
149
|
+
|
|
150
|
+
llm:
|
|
151
|
+
model: openai/deepseek-v4-pro
|
|
152
|
+
base_url: https://api.deepseek.com
|
|
153
|
+
api_key_env: OPENAI_API_KEY
|
|
154
|
+
|
|
155
|
+
max_attempts: 10
|
|
156
|
+
agents_dir: sdk_agents
|
|
157
|
+
|
|
158
|
+
steps:
|
|
159
|
+
- name: dev
|
|
160
|
+
agent: dev
|
|
161
|
+
produces: implementation-summary.md
|
|
162
|
+
on_pass: test
|
|
163
|
+
|
|
164
|
+
- name: test
|
|
165
|
+
command: .venv-sandbox/bin/python -m pytest tests/ -q
|
|
166
|
+
on_pass: review
|
|
167
|
+
on_fail: { goto: dev, retry: true }
|
|
168
|
+
|
|
169
|
+
- name: review
|
|
170
|
+
agent: review
|
|
171
|
+
artifact: review-findings.md
|
|
172
|
+
verdicts: { pass: APPROVED, fail: NEEDS CHANGES }
|
|
173
|
+
on_pass: commit
|
|
174
|
+
on_fail: { goto: dev, retry: true }
|
|
175
|
+
|
|
176
|
+
- name: commit
|
|
177
|
+
action: commit
|
|
178
|
+
params: { message: "feat: construct {subject}" }
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Every field - per-step isolation, mounts and egress, secrets, dependency
|
|
182
|
+
policy, named LLM profiles - is in the
|
|
183
|
+
[pipeline.yaml reference](https://fabriek.io/pipeline/).
|
|
184
|
+
|
|
185
|
+
## Documentation
|
|
186
|
+
|
|
187
|
+
| Page | What it covers |
|
|
188
|
+
| --- | --- |
|
|
189
|
+
| [Architecture](https://fabriek.io/architecture/) | The five layers, one full run end to end, and the host-boundary security model |
|
|
190
|
+
| [CLI](https://fabriek.io/cli/) | Run flags, resuming, the live view, reports, container management, and onboarding commands |
|
|
191
|
+
| [pipeline.yaml](https://fabriek.io/pipeline/) | The complete configuration reference: steps, isolation, secrets, networking, dependency policy |
|
|
192
|
+
| [LLM providers](https://fabriek.io/llm-providers/) | OpenAI-compatible endpoints (OpenAI, DeepSeek, and others), the GitHub Copilot subscription, and the Claude subscription |
|
|
193
|
+
| [Authoring a loop](https://fabriek.io/authoring/) | From `init` to a committed pipeline: agent files, stage lineup, adaptation checklist |
|
|
194
|
+
| [Setup and troubleshooting](https://fabriek.io/setup/) | Docker engines, the dev image, caching, error codes |
|
|
195
|
+
| [Browser sandbox](https://fabriek.io/browser-sandbox/) | Running a browser inside the sandbox |
|
|
196
|
+
| [Known issues](https://fabriek.io/known-issues/) | Container lifecycle edge cases |
|
|
197
|
+
|
|
198
|
+
## Contributing
|
|
199
|
+
|
|
200
|
+
Read [AGENTS.md](https://github.com/lukedawilson/fabriek/blob/main/AGENTS.md) first -
|
|
201
|
+
it is the instruction set for both human and agent contributors - then see
|
|
202
|
+
[CONTRIBUTING.md](https://github.com/lukedawilson/fabriek/blob/main/CONTRIBUTING.md)
|
|
203
|
+
for the development workflow and the OpenCode commands.
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
Built on [OpenHands SDK](https://github.com/OpenHands/software-agent-sdk) and
|
|
208
|
+
[LangGraph](https://github.com/langchain-ai/langgraph).
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# fabriek
|
|
2
|
+
|
|
3
|
+
> **The code factory: gated, sandboxed, resumable agent loops over your codebase.**
|
|
4
|
+
|
|
5
|
+
fabriek is Dutch for factory, say **fa-BREEK**.
|
|
6
|
+
|
|
7
|
+
Describe your pipeline in one YAML file - agent steps, mechanical test gates, and
|
|
8
|
+
trusted actions - and `fabriek` runs it end to end: agent and command steps get
|
|
9
|
+
kernel-level sandboxing via Docker, verdicts route the graph, every boundary is
|
|
10
|
+
checkpointed, and nothing gets committed until every gate passes.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
## Key features
|
|
15
|
+
|
|
16
|
+
- **A tool, not a wiring project.** One CLI entry point, opinionated defaults,
|
|
17
|
+
fixed safety policies. You write the pipeline and the agent definitions -
|
|
18
|
+
nothing else.
|
|
19
|
+
- **Deterministic.** Same pipeline + same state means the same routing.
|
|
20
|
+
Verdicts are parsed from files and validated tool calls, retries are
|
|
21
|
+
bounded, nothing is best-effort.
|
|
22
|
+
- **Sandboxed by default.** The agent's shell and every command step run
|
|
23
|
+
inside an always-on Docker sandbox: network off by default, writes only to
|
|
24
|
+
declared `mounts:`, no `.git`. If no sandbox is available, the run stops
|
|
25
|
+
instead of degrading.
|
|
26
|
+
- **Crash-safe and resumable.** Every boundary is checkpointed; interrupt a
|
|
27
|
+
run and resume it from the exact checkpoint with `--resume`, notes intact.
|
|
28
|
+
- **Watchable.** A live browser graph view with per-stage consoles and an
|
|
29
|
+
event log, a browsable run history, and markdown reports.
|
|
30
|
+
- **Gated commits.** A single commit point that fires only when every gate
|
|
31
|
+
passed and the worktree was clean at start.
|
|
32
|
+
- **Supply-chain careful.** A digest-pinned dev image, a locked-by-default
|
|
33
|
+
dependency policy, and a CVE-audited restore step.
|
|
34
|
+
- **Secret-safe.** Secrets are refs in config, values in the host environment,
|
|
35
|
+
opted in per step, and scrubbed from every engine-written output; the
|
|
36
|
+
workspace may not contain `.env*` files.
|
|
37
|
+
- **Onboarding that stays honest.** `init` scaffolds a working loop for your
|
|
38
|
+
repo, `doctor` probes the host before every run, `upgrade` converges the
|
|
39
|
+
install and the pinned version.
|
|
40
|
+
- **Extensible.** Plugins add your own actions, tools, and document loaders,
|
|
41
|
+
loaded from outside the workspace only.
|
|
42
|
+
|
|
43
|
+
## Supported platforms
|
|
44
|
+
|
|
45
|
+
The engine is plain Linux under the hood and runs wherever a compliant
|
|
46
|
+
Docker engine does:
|
|
47
|
+
|
|
48
|
+
| Platform | Support |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| **Linux** | Native. Docker Engine, OrbStack, Colima, or podman with docker compat. |
|
|
51
|
+
| **macOS** | Native. Docker Desktop, OrbStack, or Colima. |
|
|
52
|
+
| **Windows** | Via **WSL2** (Ubuntu distro). Enable Docker Desktop's WSL integration (or run Docker Engine inside the distro) and keep the repo on the WSL filesystem (`~/dev/...`), not `/mnt/c` - bind-mounting a 9p path into containers breaks permissions and is slow. |
|
|
53
|
+
|
|
54
|
+
## Quickstart
|
|
55
|
+
|
|
56
|
+
### Prerequisites
|
|
57
|
+
|
|
58
|
+
| Requirement | Detail |
|
|
59
|
+
| --- | --- |
|
|
60
|
+
| Python | >= 3.12 |
|
|
61
|
+
| Docker engine | Engine API >= 1.43 (Engine 24). Any compliant engine works - Docker Desktop, OrbStack, Colima, Rancher Desktop, podman docker-compat. On Windows, run under WSL2: the repo must live on the WSL filesystem, not /mnt/c. |
|
|
62
|
+
| LLM API key | The env var named by your pipeline's `api_key_env` (e.g. `OPENAI_API_KEY`) must be set - a missing key fails fast, naming it. Alternatively, `fabriek copilot-login` authenticates a Copilot subscription, and a Claude Pro or Max subscription runs on Anthropic's own endpoint after `fabriek claude-login` (see [LLM providers](https://fabriek.io/llm-providers/)). |
|
|
63
|
+
|
|
64
|
+
### Installation
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pipx install --pip-args="--pre" fabriek # latest release is currently a pre-release
|
|
68
|
+
fabriek --version
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Install with **pipx**: the engine's venv lives outside the workspace, so it
|
|
72
|
+
is unmounted from the sandbox and never agent-writable. On the first run the
|
|
73
|
+
engine pulls the digest-pinned dev image and verifies its digest. Setup
|
|
74
|
+
details and troubleshooting live in the [setup guide](https://fabriek.io/setup/).
|
|
75
|
+
|
|
76
|
+
### Your first loop
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
cd <your-repo>
|
|
80
|
+
fabriek init --profile python # writes the pipeline + agents
|
|
81
|
+
# or: --profile dotnet-node, rust
|
|
82
|
+
# or any toolchain image: --profile ./my-profile.yaml --recipe ./my-recipe.yaml
|
|
83
|
+
export OPENAI_API_KEY=... # whatever api_key_env names
|
|
84
|
+
fabriek fabriek/pipeline.yaml --dry-run # validate - no LLM, no Docker
|
|
85
|
+
fabriek fabriek/pipeline.yaml # run it
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`init` scaffolds `fabriek/pipeline.yaml` plus the agent files it
|
|
89
|
+
names; `--dry-run` loads and validates with no LLM, no Docker, and no state
|
|
90
|
+
writes. Bundled profiles cover `python`, `dotnet-node`, and `rust`; for any
|
|
91
|
+
other toolchain, pass your own profile and recipe files and point the
|
|
92
|
+
profile's `isolation.image` at your image (see the
|
|
93
|
+
[setup guide](https://fabriek.io/setup/)). A minimal pipeline looks like:
|
|
94
|
+
|
|
95
|
+
```yaml
|
|
96
|
+
name: my-construction-loop
|
|
97
|
+
|
|
98
|
+
llm:
|
|
99
|
+
model: openai/deepseek-v4-pro
|
|
100
|
+
base_url: https://api.deepseek.com
|
|
101
|
+
api_key_env: OPENAI_API_KEY
|
|
102
|
+
|
|
103
|
+
max_attempts: 10
|
|
104
|
+
agents_dir: sdk_agents
|
|
105
|
+
|
|
106
|
+
steps:
|
|
107
|
+
- name: dev
|
|
108
|
+
agent: dev
|
|
109
|
+
produces: implementation-summary.md
|
|
110
|
+
on_pass: test
|
|
111
|
+
|
|
112
|
+
- name: test
|
|
113
|
+
command: .venv-sandbox/bin/python -m pytest tests/ -q
|
|
114
|
+
on_pass: review
|
|
115
|
+
on_fail: { goto: dev, retry: true }
|
|
116
|
+
|
|
117
|
+
- name: review
|
|
118
|
+
agent: review
|
|
119
|
+
artifact: review-findings.md
|
|
120
|
+
verdicts: { pass: APPROVED, fail: NEEDS CHANGES }
|
|
121
|
+
on_pass: commit
|
|
122
|
+
on_fail: { goto: dev, retry: true }
|
|
123
|
+
|
|
124
|
+
- name: commit
|
|
125
|
+
action: commit
|
|
126
|
+
params: { message: "feat: construct {subject}" }
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Every field - per-step isolation, mounts and egress, secrets, dependency
|
|
130
|
+
policy, named LLM profiles - is in the
|
|
131
|
+
[pipeline.yaml reference](https://fabriek.io/pipeline/).
|
|
132
|
+
|
|
133
|
+
## Documentation
|
|
134
|
+
|
|
135
|
+
| Page | What it covers |
|
|
136
|
+
| --- | --- |
|
|
137
|
+
| [Architecture](https://fabriek.io/architecture/) | The five layers, one full run end to end, and the host-boundary security model |
|
|
138
|
+
| [CLI](https://fabriek.io/cli/) | Run flags, resuming, the live view, reports, container management, and onboarding commands |
|
|
139
|
+
| [pipeline.yaml](https://fabriek.io/pipeline/) | The complete configuration reference: steps, isolation, secrets, networking, dependency policy |
|
|
140
|
+
| [LLM providers](https://fabriek.io/llm-providers/) | OpenAI-compatible endpoints (OpenAI, DeepSeek, and others), the GitHub Copilot subscription, and the Claude subscription |
|
|
141
|
+
| [Authoring a loop](https://fabriek.io/authoring/) | From `init` to a committed pipeline: agent files, stage lineup, adaptation checklist |
|
|
142
|
+
| [Setup and troubleshooting](https://fabriek.io/setup/) | Docker engines, the dev image, caching, error codes |
|
|
143
|
+
| [Browser sandbox](https://fabriek.io/browser-sandbox/) | Running a browser inside the sandbox |
|
|
144
|
+
| [Known issues](https://fabriek.io/known-issues/) | Container lifecycle edge cases |
|
|
145
|
+
|
|
146
|
+
## Contributing
|
|
147
|
+
|
|
148
|
+
Read [AGENTS.md](https://github.com/lukedawilson/fabriek/blob/main/AGENTS.md) first -
|
|
149
|
+
it is the instruction set for both human and agent contributors - then see
|
|
150
|
+
[CONTRIBUTING.md](https://github.com/lukedawilson/fabriek/blob/main/CONTRIBUTING.md)
|
|
151
|
+
for the development workflow and the OpenCode commands.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
Built on [OpenHands SDK](https://github.com/OpenHands/software-agent-sdk) and
|
|
156
|
+
[LangGraph](https://github.com/langchain-ai/langgraph).
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "fabriek"
|
|
7
|
+
version = "1.0.0a1"
|
|
8
|
+
description = "The code factory (say fa-BREEK): turn an LLM into a gated, sandboxed, resumable construction loop over your codebase."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Luke Wilson" },
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Environment :: Console",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"Operating System :: MacOS",
|
|
20
|
+
"Operating System :: Microsoft :: Windows",
|
|
21
|
+
"Operating System :: POSIX :: Linux",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
26
|
+
"Programming Language :: Python :: 3.14",
|
|
27
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
28
|
+
"Topic :: Software Development",
|
|
29
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
30
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
31
|
+
"Topic :: Security",
|
|
32
|
+
"Typing :: Typed",
|
|
33
|
+
]
|
|
34
|
+
dependencies = [
|
|
35
|
+
"pydantic>=2.0",
|
|
36
|
+
"PyYAML>=6.0",
|
|
37
|
+
"openhands-sdk ~=1.17.0",
|
|
38
|
+
"openhands-tools ~=1.17.0",
|
|
39
|
+
# browser-use is a transitive dep (openhands-tools declares
|
|
40
|
+
# browser-use>=0.8.0, unpinned). 0.12.0+ hard-pin pillow==12.x, and
|
|
41
|
+
# pillow 12.3.0 carries 39 CVEs (fixed in 13.0.0); pin the last release
|
|
42
|
+
# with an open pillow constraint (>=11.2.1) so a fresh pip resolve lands
|
|
43
|
+
# on pillow 13.0.0 and the restore step's pip-audit stays green.
|
|
44
|
+
"browser-use==0.11.13",
|
|
45
|
+
# pillow is a transitive dep (browser-use, reportlab). 12.3.0 carries 39
|
|
46
|
+
# CVEs (fixed in 13.0.0); pin a floor so the restore step's pip-audit
|
|
47
|
+
# stays green, and so a future browser-use pin back to ==12.x fails the
|
|
48
|
+
# install loudly instead of silently reintroducing the CVEs.
|
|
49
|
+
"pillow>=13.0.0",
|
|
50
|
+
# openhands-sdk declares agent-client-protocol>=0.8.1 with NO upper bound;
|
|
51
|
+
# the 1.0.0rc pre-releases drop acp.helpers (breaks sdk 1.17.0 imports).
|
|
52
|
+
# Without this cap, --pre installs resolve to the broken rc. See AGENTS.md
|
|
53
|
+
# error-handling rules + COMPAT-SHIMS.md for the SDK-compat pattern.
|
|
54
|
+
"agent-client-protocol<1.0.0",
|
|
55
|
+
"langgraph>=1.2",
|
|
56
|
+
"langgraph-checkpoint-sqlite>=3.0",
|
|
57
|
+
# msgpack is a transitive dep (langgraph-checkpoint-sqlite), but the
|
|
58
|
+
# run-status subcommand decodes checkpoints directly, so pin it explicitly.
|
|
59
|
+
"msgpack>=1.0",
|
|
60
|
+
# filelock is a transitive dep (openhands-sdk, litellm, virtualenv).
|
|
61
|
+
# 3.32.7 carries CVE-2026-112907/-112913/-112940 (fixed in 4.2.1); pin a
|
|
62
|
+
# floor so the restore step's pip-audit stays green.
|
|
63
|
+
"filelock>=4.2.1",
|
|
64
|
+
# pyasn1 is a transitive dep (openhands-sdk, rsa, google-auth). 0.6.4
|
|
65
|
+
# carries CVE-2026-119194/-119195/-119196/-119197 (fixed in 0.6.5); pin a
|
|
66
|
+
# floor so the restore step's pip-audit stays green.
|
|
67
|
+
"pyasn1>=0.6.5",
|
|
68
|
+
# pypdf is a transitive dep (openhands-tools document loaders). 6.21.2
|
|
69
|
+
# carries CVE-2026-119203/-119204/-119205/-119206/-119207/-119208/-119209
|
|
70
|
+
# (fixed in 6.21.4); pin a floor so the restore step's pip-audit stays green.
|
|
71
|
+
"pypdf>=6.21.4",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[project.urls]
|
|
75
|
+
Homepage = "https://github.com/lukedawilson/fabriek"
|
|
76
|
+
Documentation = "https://fabriek.io/"
|
|
77
|
+
|
|
78
|
+
[project.scripts]
|
|
79
|
+
fabriek = "fabriek.engine.cli:main"
|
|
80
|
+
|
|
81
|
+
[project.optional-dependencies]
|
|
82
|
+
dev = [
|
|
83
|
+
"hypothesis>=6.0",
|
|
84
|
+
"pytest>=8.0",
|
|
85
|
+
"pip-audit>=2.0",
|
|
86
|
+
"pre-commit>=3.0",
|
|
87
|
+
# tests/test_viz_wheel_contents.py builds a wheel with
|
|
88
|
+
# --no-build-isolation so the suite never needs PyPI; the backend must be
|
|
89
|
+
# importable from this environment. Floor pinned past CVE-2025-47273
|
|
90
|
+
# (fixed in 78.1.1) so the restore step's pip-audit stays green.
|
|
91
|
+
"setuptools>=78.1.1",
|
|
92
|
+
]
|
|
93
|
+
docs = [
|
|
94
|
+
"mkdocs-material~=9.6",
|
|
95
|
+
"pymdown-extensions~=10.0",
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[tool.setuptools.packages.find]
|
|
99
|
+
where = ["src"]
|
|
100
|
+
|
|
101
|
+
[tool.setuptools.package-data]
|
|
102
|
+
fabriek = ["py.typed"]
|
|
103
|
+
"fabriek.core.profiles" = ["data/*.yaml"]
|
|
104
|
+
"fabriek.engine" = ["*.md"]
|
|
105
|
+
"fabriek.engine.seccomp" = ["*.json"]
|
|
106
|
+
"fabriek.engine.onboarding" = ["recipes/*.yaml", "templates/*"]
|
|
107
|
+
# The viz page loads Carbon web-component modules from /vendor/* at runtime;
|
|
108
|
+
# server.py serves them from this directory on disk (see
|
|
109
|
+
# tests/test_viz_wheel_contents.py).
|
|
110
|
+
"fabriek.viz" = ["vendor/*"]
|
|
111
|
+
|
|
112
|
+
[tool.pytest.ini_options]
|
|
113
|
+
markers = [
|
|
114
|
+
"docker: real-Docker integration tests (require a running Linux daemon)",
|
|
115
|
+
]
|