forgeproof-cli 0.2.0__tar.gz → 0.2.1__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.
Files changed (144) hide show
  1. {forgeproof_cli-0.2.0/src/forgeproof_cli.egg-info → forgeproof_cli-0.2.1}/PKG-INFO +25 -12
  2. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/README.md +24 -11
  3. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/pyproject.toml +3 -3
  4. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forge_gate/__init__.py +2 -2
  5. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forge_gate/_deprecated_cli.py +2 -2
  6. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/__init__.py +1 -1
  7. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/catalog.py +1 -1
  8. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/cli.py +5 -3
  9. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/config.py +140 -46
  10. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/ledger.py +2 -2
  11. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/__init__.py +1 -1
  12. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lenses.py +1 -1
  13. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/ORIGIN.md +1 -1
  14. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/box.py +4 -4
  15. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/embed.py +2 -2
  16. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/engines/chaos.py +1 -1
  17. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/ghcache.py +1 -1
  18. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/ghpool.py +2 -2
  19. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/ghsearch.py +1 -1
  20. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/learn.py +2 -2
  21. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/upstream_facts.py +2 -2
  22. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1/src/forgeproof_cli.egg-info}/PKG-INFO +25 -12
  23. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof_cli.egg-info/SOURCES.txt +1 -0
  24. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_box.py +8 -8
  25. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_deps_lock.py +9 -9
  26. forgeproof_cli-0.2.1/tests/test_env_names.py +189 -0
  27. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_fg_gate.py +2 -2
  28. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_fg_mutrun.py +1 -1
  29. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_github_facts.py +5 -5
  30. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_github_lane_s1.py +2 -2
  31. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_live_library.py +2 -2
  32. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_rename_shim.py +21 -1
  33. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_routes.py +11 -11
  34. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_behaviour.py +2 -2
  35. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_chaos.py +1 -1
  36. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_chaos_parity.py +3 -3
  37. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_embed.py +2 -2
  38. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_ghsearch.py +2 -2
  39. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_learn_github.py +2 -2
  40. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_meaning.py +1 -1
  41. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_slice1.py +1 -1
  42. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_shell_gates.py +2 -2
  43. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/LICENSE +0 -0
  44. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/NOTICE +0 -0
  45. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/setup.cfg +0 -0
  46. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/data/gate_catalog.json +0 -0
  47. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/data/host_sets.json +0 -0
  48. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/debug_caller.py +0 -0
  49. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/debug_core.py +0 -0
  50. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixture_engine.py +0 -0
  51. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/__init__.py +0 -0
  52. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/decision_tree_id3.py +0 -0
  53. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/gradient_descent_momentum.py +0 -0
  54. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/kmeans_clustering.py +0 -0
  55. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/knn_classifier.py +0 -0
  56. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/linear_regression_gd.py +0 -0
  57. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/logistic_regression.py +0 -0
  58. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/naive_bayes_text.py +0 -0
  59. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/perceptron.py +0 -0
  60. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/polynomial_regression.py +0 -0
  61. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/fixtures/ridge_regression_normal_eq.py +0 -0
  62. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/guard_lens.py +0 -0
  63. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/invariant_contracts/linear_regression_gd.json +0 -0
  64. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/invariant_contracts/polynomial_regression.json +0 -0
  65. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/invariant_contracts/ridge_regression_normal_eq.json +0 -0
  66. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/invariant_gate.py +0 -0
  67. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/metamorphic/__init__.py +0 -0
  68. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/metamorphic/relations.py +0 -0
  69. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/metamorphic/runner.py +0 -0
  70. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/lens_tools/twin_consensus.py +0 -0
  71. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/paths.py +0 -0
  72. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/decision_tree_id3.py +0 -0
  73. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/gradient_descent_momentum.py +0 -0
  74. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/kmeans_clustering.py +0 -0
  75. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/knn_classifier.py +0 -0
  76. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/linear_regression_gd.py +0 -0
  77. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/logistic_regression.py +0 -0
  78. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/naive_bayes_text.py +0 -0
  79. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/perceptron.py +0 -0
  80. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/polynomial_regression.py +0 -0
  81. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/reference/ridge_regression_normal_eq.py +0 -0
  82. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/runner.py +0 -0
  83. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/__init__.py +0 -0
  84. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/behaviour.py +0 -0
  85. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/cards.py +0 -0
  86. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/contract.py +0 -0
  87. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/corpus.py +0 -0
  88. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/engines/__init__.py +0 -0
  89. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/engines/chaos_port.py +0 -0
  90. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/engines/chaos_runner.py +0 -0
  91. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/engines/executor_port.py +0 -0
  92. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/envfit.py +0 -0
  93. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/experience.py +0 -0
  94. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/fetchproxy.py +0 -0
  95. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/ids.py +0 -0
  96. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/intent_lens.py +0 -0
  97. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/meaning_lens.py +0 -0
  98. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/outcomes.py +0 -0
  99. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/plant.py +0 -0
  100. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/ratify.py +0 -0
  101. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/report.py +0 -0
  102. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/rule2.py +0 -0
  103. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/shape.py +0 -0
  104. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/shape_lens.py +0 -0
  105. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/signature.py +0 -0
  106. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/scout/slots.py +0 -0
  107. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/unsupported.py +0 -0
  108. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/verifier.py +0 -0
  109. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof/view_coverage.py +0 -0
  110. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof_cli.egg-info/dependency_links.txt +0 -0
  111. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof_cli.egg-info/entry_points.txt +0 -0
  112. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof_cli.egg-info/requires.txt +0 -0
  113. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/src/forgeproof_cli.egg-info/top_level.txt +0 -0
  114. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_cli.py +0 -0
  115. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_debug_caller.py +0 -0
  116. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_debug_reify.py +0 -0
  117. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_debug_shrink.py +0 -0
  118. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_determinism_unsupported.py +0 -0
  119. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_fetchproxy.py +0 -0
  120. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_fg_common.py +0 -0
  121. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ghcache.py +0 -0
  122. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_guard_unsupported.py +0 -0
  123. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ledger.py +0 -0
  124. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ledger_cli.py +0 -0
  125. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ledger_routes.py +0 -0
  126. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ledger_scout.py +0 -0
  127. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ledger_verify.py +0 -0
  128. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_lens_wire_up.py +0 -0
  129. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_lenses.py +0 -0
  130. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_meta_inv_unsupported.py +0 -0
  131. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_paths.py +0 -0
  132. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_purity_gate.py +0 -0
  133. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_ratify.py +0 -0
  134. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_relation_soundness.py +0 -0
  135. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_report_ucodes.py +0 -0
  136. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_cards.py +0 -0
  137. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_experience.py +0 -0
  138. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_intent.py +0 -0
  139. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_learn.py +0 -0
  140. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_scout_learn_brain.py +0 -0
  141. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_twin_consensus.py +0 -0
  142. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_twin_unsupported.py +0 -0
  143. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_unsupported.py +0 -0
  144. {forgeproof_cli-0.2.0 → forgeproof_cli-0.2.1}/tests/test_view_coverage.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: forgeproof-cli
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Deterministic regression gate for code-generating agents, with reference implementations from the AURA pattern library.
5
5
  Author-email: Illia Hladkyi <ihladkyi@realityoptimizer.app>
6
6
  License: Apache-2.0
@@ -61,15 +61,24 @@ ForgeProof asks two questions that do not depend on trusting the author:
61
61
 
62
62
  ## Status
63
63
 
64
- Alpha (0.2.0). Not on PyPI yet: install from a checkout. On PyPI the package will be called
65
- `forgeproof-cli` (`forgeproof` is too close to an existing project there); the command and the
66
- import stay `forgeproof`. The verify gate covers 10 Python
64
+ Alpha (0.2.0), on PyPI as [`forgeproof-cli`](https://pypi.org/project/forgeproof-cli/)
65
+ (`forgeproof` is too close to an existing project there); the command and the import are
66
+ `forgeproof`. The verify gate covers 10 Python
67
67
  patterns. Several commands (`scout`, `learn`, `ledger`, `chaos-calibrate`) are advisory or
68
68
  plumbing today. **`KNOWN-DEBT.md` lists every known gap**: what it
69
69
  is, where, what "fixed" will look like, and who owns it.
70
70
 
71
71
  ## Install
72
72
 
73
+ ```bash
74
+ pip install forgeproof-cli # the tool: every lens, no checkout needed
75
+ ```
76
+
77
+ It needs Python 3.10 or newer. macOS's built-in `/usr/bin/python3` is 3.9, and there pip says
78
+ "No matching distribution found for forgeproof-cli": use a newer Python (for example from Homebrew).
79
+
80
+ To run the tests or work on ForgeProof, install from a checkout:
81
+
73
82
  ```bash
74
83
  git clone https://github.com/myfjin/forgeproof.git && cd forgeproof
75
84
  python3 -m venv .venv && .venv/bin/pip install . pytest pytest-timeout "setuptools>=61"
@@ -78,7 +87,7 @@ npm ci # only for the JS oracle (TypeSc
78
87
  ```
79
88
 
80
89
  An install runs every lens on its own: the lens tools ship inside the package (`KNOWN-DEBT.md`,
81
- KD-2, fixed 2026-11-25), so no `FORGE_GATE_HOME` is needed for a verdict. The clone is needed for
90
+ KD-2, fixed 2026-11-25), so no `FORGEPROOF_HOME` is needed for a verdict. The clone is needed for
82
91
  the tests, the shared tools in `tools/` and the JS oracle.
83
92
 
84
93
  Python 3.10 or newer. Without `npm ci` the JS oracle's type gate reports `unavailable`. The JS
@@ -90,13 +99,17 @@ ForgeProof reads no other project unless you tell it where. Each setting is an
90
99
  environment variable, or a key in `config.toml` `[paths]` (per host, not tracked; copy
91
100
  `config.example.toml`). The environment wins.
92
101
 
102
+ Until 0.2.0 every setting was `FORGE_GATE_<NAME>`. Those old names still work (0.2.1 reads
103
+ `FORGEPROOF_<NAME>` first, then the old name, and prints one line on stderr when the old name is
104
+ used) and stop working in 0.3.0.
105
+
93
106
  | key | needed for | default |
94
107
  |---|---|---|
95
- | `FORGE_GATE_LIBRARY_DIR` | the twin-consensus lens, `pytest -m live`, library tools | none: unset, those fail naming the key |
96
- | `FORGE_GATE_HOME` | where `config.toml` is read, and `github-facts`' test runner (a checkout tool); no lens needs it | the checkout |
97
- | `FORGE_GATE_PYTHON` | child runs (oracles, fixtures, lenses) | the interpreter running ForgeProof |
98
- | `FORGE_GATE_NODE`, `_BUN`, `_QJS` | the JS oracle's three engines | `PATH` |
99
- | `FORGE_GATE_SCRATCH` | short-lived lens scripts | `<checkout>/tmp` |
108
+ | `FORGEPROOF_LIBRARY_DIR` | the twin-consensus lens, `pytest -m live`, library tools | none: unset, those fail naming the key |
109
+ | `FORGEPROOF_HOME` | where `config.toml` is read, and `github-facts`' test runner (a checkout tool); no lens needs it | the checkout |
110
+ | `FORGEPROOF_PYTHON` | child runs (oracles, fixtures, lenses) | the interpreter running ForgeProof |
111
+ | `FORGEPROOF_NODE`, `_BUN`, `_QJS` | the JS oracle's three engines | `PATH` |
112
+ | `FORGEPROOF_SCRATCH` | short-lived lens scripts | `<checkout>/tmp` |
100
113
 
101
114
  `deps.lock` pins what each outside route was checked against.
102
115
 
@@ -263,8 +276,8 @@ tests and its known-debt entry.
263
276
  3. **All six languages.** The pattern library holds Python, R, Rust, Go, C++ and JavaScript. The
264
277
  scores scout reads exist for Python, R and Rust today; Go, C++ and JavaScript need their own
265
278
  extractors first.
266
- 4. **A first release on PyPI**, as `forgeproof-cli`. Its condition is met: since KD-2 was fixed
267
- (2026-11-25), an installed copy runs every lens without a source checkout.
279
+ 4. **A first release on PyPI**: done. `forgeproof-cli` 0.2.0 (2026-11-26), once KD-2 was fixed so
280
+ that an installed copy runs every lens without a source checkout.
268
281
  5. **A free web service.** Paste code and have it checked in an isolated sandbox, with no account.
269
282
  You choose whether we may keep your code to improve the checks, and we never show one person's
270
283
  code to anyone else. Prefer to keep everything private? Run this repository on your own
@@ -35,15 +35,24 @@ ForgeProof asks two questions that do not depend on trusting the author:
35
35
 
36
36
  ## Status
37
37
 
38
- Alpha (0.2.0). Not on PyPI yet: install from a checkout. On PyPI the package will be called
39
- `forgeproof-cli` (`forgeproof` is too close to an existing project there); the command and the
40
- import stay `forgeproof`. The verify gate covers 10 Python
38
+ Alpha (0.2.0), on PyPI as [`forgeproof-cli`](https://pypi.org/project/forgeproof-cli/)
39
+ (`forgeproof` is too close to an existing project there); the command and the import are
40
+ `forgeproof`. The verify gate covers 10 Python
41
41
  patterns. Several commands (`scout`, `learn`, `ledger`, `chaos-calibrate`) are advisory or
42
42
  plumbing today. **`KNOWN-DEBT.md` lists every known gap**: what it
43
43
  is, where, what "fixed" will look like, and who owns it.
44
44
 
45
45
  ## Install
46
46
 
47
+ ```bash
48
+ pip install forgeproof-cli # the tool: every lens, no checkout needed
49
+ ```
50
+
51
+ It needs Python 3.10 or newer. macOS's built-in `/usr/bin/python3` is 3.9, and there pip says
52
+ "No matching distribution found for forgeproof-cli": use a newer Python (for example from Homebrew).
53
+
54
+ To run the tests or work on ForgeProof, install from a checkout:
55
+
47
56
  ```bash
48
57
  git clone https://github.com/myfjin/forgeproof.git && cd forgeproof
49
58
  python3 -m venv .venv && .venv/bin/pip install . pytest pytest-timeout "setuptools>=61"
@@ -52,7 +61,7 @@ npm ci # only for the JS oracle (TypeSc
52
61
  ```
53
62
 
54
63
  An install runs every lens on its own: the lens tools ship inside the package (`KNOWN-DEBT.md`,
55
- KD-2, fixed 2026-11-25), so no `FORGE_GATE_HOME` is needed for a verdict. The clone is needed for
64
+ KD-2, fixed 2026-11-25), so no `FORGEPROOF_HOME` is needed for a verdict. The clone is needed for
56
65
  the tests, the shared tools in `tools/` and the JS oracle.
57
66
 
58
67
  Python 3.10 or newer. Without `npm ci` the JS oracle's type gate reports `unavailable`. The JS
@@ -64,13 +73,17 @@ ForgeProof reads no other project unless you tell it where. Each setting is an
64
73
  environment variable, or a key in `config.toml` `[paths]` (per host, not tracked; copy
65
74
  `config.example.toml`). The environment wins.
66
75
 
76
+ Until 0.2.0 every setting was `FORGE_GATE_<NAME>`. Those old names still work (0.2.1 reads
77
+ `FORGEPROOF_<NAME>` first, then the old name, and prints one line on stderr when the old name is
78
+ used) and stop working in 0.3.0.
79
+
67
80
  | key | needed for | default |
68
81
  |---|---|---|
69
- | `FORGE_GATE_LIBRARY_DIR` | the twin-consensus lens, `pytest -m live`, library tools | none: unset, those fail naming the key |
70
- | `FORGE_GATE_HOME` | where `config.toml` is read, and `github-facts`' test runner (a checkout tool); no lens needs it | the checkout |
71
- | `FORGE_GATE_PYTHON` | child runs (oracles, fixtures, lenses) | the interpreter running ForgeProof |
72
- | `FORGE_GATE_NODE`, `_BUN`, `_QJS` | the JS oracle's three engines | `PATH` |
73
- | `FORGE_GATE_SCRATCH` | short-lived lens scripts | `<checkout>/tmp` |
82
+ | `FORGEPROOF_LIBRARY_DIR` | the twin-consensus lens, `pytest -m live`, library tools | none: unset, those fail naming the key |
83
+ | `FORGEPROOF_HOME` | where `config.toml` is read, and `github-facts`' test runner (a checkout tool); no lens needs it | the checkout |
84
+ | `FORGEPROOF_PYTHON` | child runs (oracles, fixtures, lenses) | the interpreter running ForgeProof |
85
+ | `FORGEPROOF_NODE`, `_BUN`, `_QJS` | the JS oracle's three engines | `PATH` |
86
+ | `FORGEPROOF_SCRATCH` | short-lived lens scripts | `<checkout>/tmp` |
74
87
 
75
88
  `deps.lock` pins what each outside route was checked against.
76
89
 
@@ -237,8 +250,8 @@ tests and its known-debt entry.
237
250
  3. **All six languages.** The pattern library holds Python, R, Rust, Go, C++ and JavaScript. The
238
251
  scores scout reads exist for Python, R and Rust today; Go, C++ and JavaScript need their own
239
252
  extractors first.
240
- 4. **A first release on PyPI**, as `forgeproof-cli`. Its condition is met: since KD-2 was fixed
241
- (2026-11-25), an installed copy runs every lens without a source checkout.
253
+ 4. **A first release on PyPI**: done. `forgeproof-cli` 0.2.0 (2026-11-26), once KD-2 was fixed so
254
+ that an installed copy runs every lens without a source checkout.
242
255
  5. **A free web service.** Paste code and have it checked in an isolated sandbox, with no account.
243
256
  You choose whether we may keep your code to improve the checks, and we never show one person's
244
257
  code to anyone else. Prefer to keep everything private? Run this repository on your own
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "forgeproof-cli"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Deterministic regression gate for code-generating agents, with reference implementations from the AURA pattern library."
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
@@ -35,7 +35,7 @@ dependencies = [
35
35
 
36
36
  [project.scripts]
37
37
  forgeproof = "forgeproof.cli:main"
38
- forge-gate = "forge_gate._deprecated_cli:main" # renamed 2026-11-25; removed in a later release
38
+ forge-gate = "forge_gate._deprecated_cli:main" # renamed 2026-11-25; removed in 0.3.0
39
39
 
40
40
  [project.optional-dependencies]
41
41
  dev = [
@@ -55,7 +55,7 @@ testpaths = ["tests"]
55
55
  timeout = 60
56
56
  addopts = "-m 'not live and not gates and not js and not brain and not network'"
57
57
  markers = [
58
- "live: needs FORGE_GATE_LIBRARY_DIR (the pattern library); deselected by default, run with -m live",
58
+ "live: needs FORGEPROOF_LIBRARY_DIR (the pattern library); deselected by default, run with -m live",
59
59
  "gates: slow shell gates (1-15 min each); run with -m gates",
60
60
  "js: JS oracle gates; need `npm ci` and node, bun, qjs; run with -m js",
61
61
  "network: contacts a real named host (the fetch mode's reach check); run with -m network",
@@ -2,7 +2,7 @@
2
2
 
3
3
  ``import forge_gate`` and ``import forge_gate.<module>`` keep working for one release: each
4
4
  ``forge_gate.<module>`` IS ``forgeproof.<module>`` (the same module object). Import ``forgeproof``
5
- instead; this alias will be removed in a later release.
5
+ instead; this alias is removed in 0.3.0.
6
6
  """
7
7
 
8
8
  import importlib
@@ -16,7 +16,7 @@ _OWN = (_OLD + "._deprecated_cli",) # real modules of this shim package, never
16
16
 
17
17
  warnings.warn(
18
18
  "the 'forge_gate' package was renamed to 'forgeproof' (2026-11-25); import 'forgeproof' instead. "
19
- "This alias will be removed in a later release.",
19
+ "This alias is removed in 0.3.0.",
20
20
  DeprecationWarning,
21
21
  stacklevel=2,
22
22
  )
@@ -1,9 +1,9 @@
1
- """The ``forge-gate`` command: renamed ``forgeproof`` on 2026-11-25. Kept for one release."""
1
+ """The ``forge-gate`` command: renamed ``forgeproof`` on 2026-11-25. Kept until 0.3.0, which removes it."""
2
2
 
3
3
  import sys
4
4
 
5
5
  NOTICE = ("forge-gate: this command was renamed to 'forgeproof' (2026-11-25). "
6
- "Running 'forgeproof' now; please update your scripts.")
6
+ "Running 'forgeproof' now; please update your scripts: 'forge-gate' is removed in 0.3.0.")
7
7
 
8
8
 
9
9
  def main(argv=None) -> int:
@@ -1,3 +1,3 @@
1
1
  """ForgeProof — deterministic regression gate for code-generating agents."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.2.1"
@@ -5,7 +5,7 @@ Maps a pattern name to its reference implementation and the matching gate fixtur
5
5
  reference implementations ship too, in `forgeproof/reference/` (byte copies of library
6
6
  patterns; see `reference/ORIGIN.md`), so `forgeproof verify` reads no other project.
7
7
  The live library is read only when a caller passes `library_root` or uses
8
- `load_aura_catalog`, and then through `config.library_dir()` (FORGE_GATE_LIBRARY_DIR).
8
+ `load_aura_catalog`, and then through `config.library_dir()` (FORGEPROOF_LIBRARY_DIR).
9
9
  """
10
10
  from __future__ import annotations
11
11
 
@@ -201,6 +201,8 @@ def main(argv: list[str] | None = None) -> int:
201
201
  prog="forgeproof",
202
202
  description="Deterministic regression gate for code-generating agents.",
203
203
  )
204
+ from forgeproof import __version__
205
+ ap.add_argument("--version", action="version", version=f"forgeproof {__version__}")
204
206
  sub = ap.add_subparsers(dest="command", required=True)
205
207
 
206
208
  list_parser = sub.add_parser("list", help="list gate-ready patterns")
@@ -276,7 +278,7 @@ def main(argv: list[str] | None = None) -> int:
276
278
  facts_parser = sub.add_parser(
277
279
  "github-facts",
278
280
  help="measure whether a ratified repo's own tests notice planted bugs, per function, in the box "
279
- "(writes only $FORGE_GATE_SCOUT_DIR/github_facts.jsonl; a fact row, never a PASS)")
281
+ "(writes only $FORGEPROOF_SCOUT_DIR/github_facts.jsonl; a fact row, never a PASS)")
280
282
  facts_parser.add_argument("spec", metavar="ORG/REPO@SHA", help="a ratified repo at its signed pin")
281
283
  facts_parser.add_argument("--functions", nargs="+", metavar="NAME",
282
284
  help="only these functions: NAME, PATH::NAME or MODULE:NAME (default: every "
@@ -340,7 +342,7 @@ def cmd_box_selftest(args) -> int:
340
342
  print(f" probe said (boxed): {boxed['probe']}")
341
343
  user = box.box_user()
342
344
  depth = (f"box user {user}" if user else
343
- f"namespaces only; FORGE_GATE_BOX_USER unset, so an escape lands as {getpass.getuser()}")
345
+ f"namespaces only; FORGEPROOF_BOX_USER unset, so an escape lands as {getpass.getuser()}")
344
346
  print(f" control: unboxed reached our own listener {unboxed['control_target']}")
345
347
  print(f"PASS: every boxed attempt blocked, every unboxed attempt leaked ({depth})" if ok else
346
348
  "FAIL: " + ("a boxed attempt got through" if not boxed["ok"] else "the unboxed control did not leak: targets not real"))
@@ -349,7 +351,7 @@ def cmd_box_selftest(args) -> int:
349
351
 
350
352
  def cmd_github_facts(args) -> int:
351
353
  """Exit 0 when at least one function was MEASURED, 3 when every row is BLIND, 2 when there
352
- is no place for the rows ($FORGE_GATE_SCOUT_DIR)."""
354
+ is no place for the rows ($FORGEPROOF_SCOUT_DIR)."""
353
355
  from . import config
354
356
  from .scout import upstream_facts
355
357
 
@@ -6,8 +6,8 @@ gets :class:`NotConfigured`, whose message names the key and where to set it.
6
6
 
7
7
  Where ``config.toml`` is looked for, first hit wins:
8
8
 
9
- 1. ``$FORGE_GATE_CONFIG`` (a file path);
10
- 2. ``$FORGE_GATE_HOME/config.toml``;
9
+ 1. ``$FORGEPROOF_CONFIG`` (a file path);
10
+ 2. ``$FORGEPROOF_HOME/config.toml``;
11
11
  3. ``<checkout>/config.toml`` when this file sits in a source checkout
12
12
  (``pyproject.toml`` and ``src/forgeproof`` next to each other).
13
13
 
@@ -19,18 +19,28 @@ Keys (classed as the standard's §2 asks):
19
19
  ========================= ============== =========================================
20
20
  key class default
21
21
  ========================= ============== =========================================
22
- FORGE_GATE_HOME in-project the source checkout, else none
23
- FORGE_GATE_LIBRARY_DIR other project NONE: unset fails, naming the key
24
- FORGE_GATE_NODE/BUN/QJS host binary ``shutil.which`` (PATH), else BLIND
25
- FORGE_GATE_SCRATCH in-project ``<home>/tmp`` (created on demand), else the system temp dir
26
- FORGE_GATE_PYTHON host binary ``sys.executable`` (the interpreter running ForgeProof)
27
- FORGE_GATE_CORPUS_EXPORT_DIR other project NONE: unset fails, naming the key
28
- FORGE_GATE_BRAIN_DATA other project NONE: the Brain's data folder (``learn`` appends to scout_registry*.jsonl there)
29
- FORGE_GATE_SCOUT_DIR runtime state NONE: scout's state folder (report cards, learn lock)
30
- FORGE_GATE_REGISTRY_BUILD_LOCK other project NONE: the lock file the registry build holds
31
- FORGE_GATE_LEDGER_DIR runtime state NONE: the exposure + outcome ledgers (step 8a); unset = ledgers OFF
32
- FORGE_GATE_SCOUT_LIST_DIR in-project ``<checkout>/scout`` (signed list + allowed_signers), else unset fails, naming the key
22
+ FORGEPROOF_HOME in-project the source checkout, else none
23
+ FORGEPROOF_LIBRARY_DIR other project NONE: unset fails, naming the key
24
+ FORGEPROOF_NODE/BUN/QJS host binary ``shutil.which`` (PATH), else BLIND
25
+ FORGEPROOF_SCRATCH in-project ``<home>/tmp`` (created on demand), else the system temp dir
26
+ FORGEPROOF_PYTHON host binary ``sys.executable`` (the interpreter running ForgeProof)
27
+ FORGEPROOF_CORPUS_EXPORT_DIR other project NONE: unset fails, naming the key
28
+ FORGEPROOF_BRAIN_DATA other project NONE: the Brain's data folder (``learn`` appends to scout_registry*.jsonl there)
29
+ FORGEPROOF_SCOUT_DIR runtime state NONE: scout's state folder (report cards, learn lock)
30
+ FORGEPROOF_REGISTRY_BUILD_LOCK other project NONE: the lock file the registry build holds
31
+ FORGEPROOF_LEDGER_DIR runtime state NONE: the exposure + outcome ledgers (step 8a); unset = ledgers OFF
32
+ FORGEPROOF_SCOUT_LIST_DIR in-project ``<checkout>/scout`` (signed list + allowed_signers), else unset fails, naming the key
33
33
  ========================= ============== =========================================
34
+
35
+ The old names (rename slice B, 0.2.1). Until 0.2.0 every key was ``FORGE_GATE_<X>``. Each key is
36
+ now read as ``FORGEPROOF_<X>`` first and the old ``FORGE_GATE_<X>`` second, in the environment
37
+ and in ``config.toml`` alike, through one helper (:func:`setting` for the environment,
38
+ :func:`configured` for both), so a host that still uses the old names keeps working unchanged.
39
+ When only the old name is set, it still works, and one line on stderr (once per process tree)
40
+ says it stops working in 0.3.0. When both names are set and differ, the new one wins and ONE notice goes to stderr, the first
41
+ time that key is read; the process environment is then made to agree (the old name takes the
42
+ new value), so a child process does not print the notice again.
43
+ Not settings and NOT renamed: the ``FORGE_GATE_RESULT`` fixture protocol line.
34
44
  """
35
45
 
36
46
  from __future__ import annotations
@@ -51,26 +61,39 @@ except ModuleNotFoundError: # Python < 3.11: tomli is the same parser
51
61
 
52
62
  CODE: Path = Path(__file__).resolve().parents[2] # src/forgeproof/config.py -> checkout root
53
63
 
54
- LIBRARY_KEY = "FORGE_GATE_LIBRARY_DIR"
55
- CORPUS_KEY = "FORGE_GATE_CORPUS_EXPORT_DIR"
64
+ LIBRARY_KEY = "FORGEPROOF_LIBRARY_DIR"
65
+ CORPUS_KEY = "FORGEPROOF_CORPUS_EXPORT_DIR"
56
66
  # `forgeproof learn` (design §4.5, build step 6b-1). None of the three has a default: each is a
57
67
  # route into another project's live state (or scout's own), and a guessed path there writes
58
68
  # the wrong registry or locks a file nobody else locks.
59
- BRAIN_DATA_KEY = "FORGE_GATE_BRAIN_DATA"
60
- SCOUT_DIR_KEY = "FORGE_GATE_SCOUT_DIR"
61
- BUILD_LOCK_KEY = "FORGE_GATE_REGISTRY_BUILD_LOCK"
69
+ BRAIN_DATA_KEY = "FORGEPROOF_BRAIN_DATA"
70
+ SCOUT_DIR_KEY = "FORGEPROOF_SCOUT_DIR"
71
+ BUILD_LOCK_KEY = "FORGEPROOF_REGISTRY_BUILD_LOCK"
62
72
  LEARN_KEYS = (BRAIN_DATA_KEY, SCOUT_DIR_KEY, BUILD_LOCK_KEY)
63
73
  # The ledgers (design §4a.5, build step 8a, DECISIONS-8a G1). No default: unset means the
64
74
  # ledgers are switched OFF and nothing is recorded; setting it is the switch-on.
65
- LEDGER_KEY = "FORGE_GATE_LEDGER_DIR"
75
+ LEDGER_KEY = "FORGEPROOF_LEDGER_DIR"
66
76
  # Build step 8b (DECISIONS-8b H1, H4): the local embedder for the meaning and intent lenses, and its
67
77
  # vector cache. Both unset = those lenses are BLIND(not-configured).
68
- EMBED_URL_KEY = "FORGE_GATE_EMBED_URL"
69
- EMBED_CACHE_KEY = "FORGE_GATE_EMBED_CACHE_DIR"
78
+ EMBED_URL_KEY = "FORGEPROOF_EMBED_URL"
79
+ EMBED_CACHE_KEY = "FORGEPROOF_EMBED_CACHE_DIR"
70
80
  # KD-13 (f), GitHub-lane loop S1: the folder holding the signed list ``trusted_repos.jsonl`` and
71
81
  # ``allowed_signers``. Default: ``scout/`` of the source checkout this file sits in. An installed
72
82
  # ForgeProof has no checkout, so it must be told; it never guesses (same shape as KD-2).
73
- SCOUT_LIST_DIR_KEY = "FORGE_GATE_SCOUT_LIST_DIR"
83
+ SCOUT_LIST_DIR_KEY = "FORGEPROOF_SCOUT_LIST_DIR"
84
+ PREFIX = "FORGEPROOF_"
85
+ OLD_PREFIX = "FORGE_GATE_" # read when the new name is unset (rename slice B, 0.2.1)
86
+ _NOTICED: set = set() # (source, key) pairs already announced on stderr
87
+ # The settings ForgeProof reads. Only these get the old-name notice: other programs use names that
88
+ # merely start with FORGE_GATE_ (the deploy host's measurement harness passes FORGE_GATE_PATH).
89
+ SETTINGS = frozenset({"HOME", "CONFIG", "LIBRARY_DIR", "CORPUS_EXPORT_DIR", "BRAIN_DATA", "SCOUT_DIR",
90
+ "REGISTRY_BUILD_LOCK", "LEDGER_DIR", "EMBED_URL", "EMBED_CACHE_DIR",
91
+ "SCOUT_LIST_DIR", "SCRATCH", "PYTHON", "NODE", "BUN", "QJS", "BOX_USER",
92
+ "BOX_ROOT", "RATIFY_PIN"})
93
+ # Set in os.environ after the old-name notice, so the notice is printed once per process tree
94
+ # (children inherit it). Not a setting: no FORGEPROOF_ prefix.
95
+ OLD_NAME_MARK = "_FORGEPROOF_OLD_NAME_NOTICE_SHOWN"
96
+ REMOVAL = "0.3.0"
74
97
  LOOPBACK = ("127.0.0.1", "::1") # literal addresses only: a name goes through /etc/hosts (s1 review F3)
75
98
 
76
99
 
@@ -82,20 +105,63 @@ def _is_checkout(p: Path) -> bool:
82
105
  return (p / "pyproject.toml").is_file() and (p / "src" / "forgeproof").is_dir()
83
106
 
84
107
 
108
+ def names(key: str) -> tuple:
109
+ """``(new, old)`` names of one setting, given under either name."""
110
+ for pre in (PREFIX, OLD_PREFIX):
111
+ if key.startswith(pre) and len(key) > len(pre):
112
+ rest = key[len(pre):]
113
+ return PREFIX + rest, OLD_PREFIX + rest
114
+ raise ValueError(f"not a ForgeProof setting: {key!r} (expected {PREFIX}<NAME>)")
115
+
116
+
117
+ def _pick(key: str, values, source: str) -> Optional[str]:
118
+ """The value of ``key`` in ``values``: the new name, else the old one, else None."""
119
+ new, old = names(key)
120
+ a = str(values.get(new, "") or "")
121
+ b = str(values.get(old, "") or "")
122
+ if a and b and a != b:
123
+ if (source, new) not in _NOTICED:
124
+ _NOTICED.add((source, new))
125
+ print(f"forgeproof: {new} and the old name {old} are both set {source} and differ; "
126
+ f"using {new}", file=sys.stderr)
127
+ if values is os.environ:
128
+ os.environ[old] = a # the new name wins in child processes too: one notice, not one per child
129
+ if b and not a and new[len(PREFIX):] in SETTINGS:
130
+ _old_name_notice(old, new)
131
+ return a or b or None
132
+
133
+
134
+ def _old_name_notice(old: str, new: str) -> None:
135
+ """One stderr line per process tree when an old name is what a setting came from (0.2.1+)."""
136
+ if os.environ.get(OLD_NAME_MARK):
137
+ return
138
+ os.environ[OLD_NAME_MARK] = "1"
139
+ print(f"forgeproof: {old} is an old name; use {new}. The old FORGE_GATE_* names stop working "
140
+ f"in {REMOVAL}.", file=sys.stderr)
141
+
142
+
143
+ def setting(key: str) -> Optional[str]:
144
+ """A setting from the environment: ``FORGEPROOF_<X>``, else the old ``FORGE_GATE_<X>``, else None.
145
+
146
+ ``key`` may be given under either name. Every environment read of a setting goes through here.
147
+ """
148
+ return _pick(key, os.environ, "in the environment")
149
+
150
+
85
151
  def home() -> Optional[Path]:
86
- """The project folder: $FORGE_GATE_HOME, else the checkout this file sits in, else None.
152
+ """The project folder: $FORGEPROOF_HOME, else the checkout this file sits in, else None.
87
153
 
88
154
  A non-editable install puts this file in site-packages, where parents[2] is
89
155
  lib/pythonX.Y; that is NOT a project home, so it is refused rather than guessed.
90
156
  """
91
- raw = os.environ.get("FORGE_GATE_HOME", "")
157
+ raw = setting("FORGEPROOF_HOME")
92
158
  if raw:
93
159
  return Path(raw).expanduser()
94
160
  return CODE if _is_checkout(CODE) else None
95
161
 
96
162
 
97
163
  def config_file() -> Optional[Path]:
98
- raw = os.environ.get("FORGE_GATE_CONFIG", "")
164
+ raw = setting("FORGEPROOF_CONFIG")
99
165
  if raw:
100
166
  return Path(raw).expanduser()
101
167
  h = home()
@@ -118,14 +184,36 @@ def _load() -> dict:
118
184
  def configured(name: str) -> Optional[str]:
119
185
  """The raw value of ``name`` from the environment or config.toml, else None.
120
186
 
121
- Read on every call (not cached at import), so a test or a caller that sets the
122
- environment after import is seen.
187
+ Order: environment (new name, then old), then config.toml (new name, then old). ``name`` may
188
+ be given under either name. Read on every call (not cached at import), so a test or a caller
189
+ that sets the environment after import is seen.
123
190
  """
124
- raw = os.environ.get(name, "")
191
+ new, old = names(name)
192
+ raw = setting(name)
125
193
  if raw:
194
+ if not os.environ.get(new): # the value came from the OLD name
195
+ filed = str(_load().get(new, "") or "")
196
+ if filed and filed != raw and ("env-over-file", new) not in _NOTICED:
197
+ _NOTICED.add(("env-over-file", new))
198
+ print(f"forgeproof: {new} in {config_file()} is ignored: the old name {old} is set in "
199
+ f"the environment, and the environment comes first", file=sys.stderr)
126
200
  return raw
127
- raw = str(_load().get(name, "") or "")
128
- return raw or None
201
+ return _pick(name, _load(), f"in {config_file()}")
202
+
203
+
204
+ def supplied_by(key: str) -> str:
205
+ """The name that supplied ``key``'s value (environment first, then config.toml), for messages:
206
+ an operator who set the old name must be able to find it. The new name when nothing is set."""
207
+ new, old = names(key)
208
+ if os.environ.get(new):
209
+ return new
210
+ if os.environ.get(old):
211
+ return old
212
+ try:
213
+ filed = _load()
214
+ except NotConfigured:
215
+ return new
216
+ return old if not filed.get(new) and filed.get(old) else new
129
217
 
130
218
 
131
219
  def _as_path(raw: str) -> Path:
@@ -155,7 +243,7 @@ def library_dir() -> Path:
155
243
  )
156
244
  p = _as_path(raw)
157
245
  if not p.is_dir():
158
- raise NotConfigured(f"{LIBRARY_KEY}={p} is not a directory ({where()})")
246
+ raise NotConfigured(f"{supplied_by(LIBRARY_KEY)}={p} is not a directory ({where()})")
159
247
  return p
160
248
 
161
249
 
@@ -171,7 +259,7 @@ def corpus_export_dir() -> Path:
171
259
  )
172
260
  p = _as_path(raw)
173
261
  if not p.is_dir():
174
- raise NotConfigured(f"{CORPUS_KEY}={p} is not a directory ({where()})")
262
+ raise NotConfigured(f"{supplied_by(CORPUS_KEY)}={p} is not a directory ({where()})")
175
263
  return p
176
264
 
177
265
 
@@ -188,9 +276,9 @@ def brain_data() -> Path:
188
276
  f"to the Brain's data folder ({where()}). Only `forgeproof learn` needs it.")
189
277
  p = _as_path(raw)
190
278
  if not p.is_dir():
191
- raise NotConfigured(f"{BRAIN_DATA_KEY}={p} is not an existing directory ({where()})")
279
+ raise NotConfigured(f"{supplied_by(BRAIN_DATA_KEY)}={p} is not an existing directory ({where()})")
192
280
  if not (p / "logic_registry.jsonl").is_file():
193
- raise NotConfigured(f"{BRAIN_DATA_KEY}={p} holds no logic_registry.jsonl: not the Brain's "
281
+ raise NotConfigured(f"{supplied_by(BRAIN_DATA_KEY)}={p} holds no logic_registry.jsonl: not the Brain's "
194
282
  f"data folder ({where()})")
195
283
  return p
196
284
 
@@ -206,7 +294,7 @@ def scout_dir() -> Path:
206
294
  f"to scout's state folder ({where()}). Only `forgeproof learn` needs it.")
207
295
  p = _as_path(raw)
208
296
  if not p.is_dir():
209
- raise NotConfigured(f"{SCOUT_DIR_KEY}={p} is not an existing directory ({where()})")
297
+ raise NotConfigured(f"{supplied_by(SCOUT_DIR_KEY)}={p} is not an existing directory ({where()})")
210
298
  return p
211
299
 
212
300
 
@@ -221,14 +309,14 @@ def ledger_dir() -> Path:
221
309
  f"config.toml [paths] to the ledger folder ({where()}).")
222
310
  p = _as_path(raw)
223
311
  if not p.is_dir():
224
- raise NotConfigured(f"{LEDGER_KEY}={p} is not an existing directory ({where()})")
312
+ raise NotConfigured(f"{supplied_by(LEDGER_KEY)}={p} is not an existing directory ({where()})")
225
313
  return p
226
314
 
227
315
 
228
316
  def scout_list_dir() -> Path:
229
317
  """The folder holding ``trusted_repos.jsonl`` and ``allowed_signers`` (KD-13 f).
230
318
 
231
- ``$FORGE_GATE_SCOUT_LIST_DIR`` / config.toml first; else ``<checkout>/scout`` when this file
319
+ ``$FORGEPROOF_SCOUT_LIST_DIR`` / config.toml first; else ``<checkout>/scout`` when this file
232
320
  sits in a source checkout; else NotConfigured naming the key. It must be an existing folder:
233
321
  a typo would otherwise read as "no repo is ratified", which looks like a quiet BLIND."""
234
322
  raw = configured(SCOUT_LIST_DIR_KEY)
@@ -242,7 +330,7 @@ def scout_list_dir() -> Path:
242
330
  f"Set it in the environment or in config.toml [paths] to the folder holding "
243
331
  f"trusted_repos.jsonl and allowed_signers ({where()}).")
244
332
  if not p.is_dir():
245
- raise NotConfigured(f"{SCOUT_LIST_DIR_KEY}={p} is not an existing directory ({where()})")
333
+ raise NotConfigured(f"{supplied_by(SCOUT_LIST_DIR_KEY)}={p} is not an existing directory ({where()})")
246
334
  return p
247
335
 
248
336
 
@@ -263,10 +351,10 @@ def loopback_url(raw: str) -> str:
263
351
  u = urlsplit(raw)
264
352
  port = u.port
265
353
  except ValueError as e:
266
- raise NotConfigured(f"{EMBED_URL_KEY}={raw!r} is not a URL: {e}") from None
354
+ raise NotConfigured(f"{supplied_by(EMBED_URL_KEY)}={raw!r} is not a URL: {e}") from None
267
355
  if (u.scheme != "http" or u.hostname not in LOOPBACK or port is None or u.username or u.password
268
356
  or u.path not in ("", "/") or u.query or u.fragment):
269
- raise NotConfigured(f"{EMBED_URL_KEY}={raw!r} must be http://<loopback>:<port> "
357
+ raise NotConfigured(f"{supplied_by(EMBED_URL_KEY)}={raw!r} must be http://<loopback>:<port> "
270
358
  f"(one of {', '.join(LOOPBACK)}), nothing more")
271
359
  return raw.rstrip("/")
272
360
 
@@ -278,7 +366,7 @@ def embed_cache_dir() -> Path:
278
366
  raise NotConfigured(f"{EMBED_CACHE_KEY} is not set: no vector cache ({where()})")
279
367
  p = _as_path(raw)
280
368
  if not p.is_dir():
281
- raise NotConfigured(f"{EMBED_CACHE_KEY}={p} is not an existing directory ({where()})")
369
+ raise NotConfigured(f"{supplied_by(EMBED_CACHE_KEY)}={p} is not an existing directory ({where()})")
282
370
  return p
283
371
 
284
372
 
@@ -295,7 +383,7 @@ def registry_build_lock() -> Path:
295
383
  p = _as_path(raw)
296
384
  if not p.is_file():
297
385
  raise NotConfigured(
298
- f"{BUILD_LOCK_KEY}={p} does not exist. learn never creates it: it must be the file "
386
+ f"{supplied_by(BUILD_LOCK_KEY)}={p} does not exist. learn never creates it: it must be the file "
299
387
  f"the registry build locks ({where()})")
300
388
  return p
301
389
 
@@ -309,7 +397,7 @@ def scratch_dir() -> Path:
309
397
  """
310
398
  import tempfile
311
399
 
312
- raw = configured("FORGE_GATE_SCRATCH")
400
+ raw = configured("FORGEPROOF_SCRATCH")
313
401
  if raw:
314
402
  d = _as_path(raw)
315
403
  else:
@@ -327,13 +415,19 @@ def python() -> str:
327
415
  the reference files' zero-width characters, and 7 of 10 patterns read as UNSTABLE
328
416
  (measured 2026-11-11, build step 1).
329
417
  """
330
- raw = configured("FORGE_GATE_PYTHON")
418
+ raw = configured("FORGEPROOF_PYTHON")
331
419
  return str(_as_path(raw)) if raw else sys.executable
332
420
 
333
421
 
334
422
  def engine(name: str) -> Optional[str]:
335
- """A JavaScript engine binary: FORGE_GATE_<NAME> > PATH > None (the caller goes BLIND)."""
336
- raw = configured("FORGE_GATE_" + name.upper())
423
+ """A JavaScript engine binary: FORGEPROOF_<NAME> > PATH > None (the caller goes BLIND)."""
424
+ raw = configured("FORGEPROOF_" + name.upper())
337
425
  if raw:
338
426
  return str(_as_path(raw))
339
427
  return shutil.which(name)
428
+
429
+
430
+ # F6 (review, slice B): make the two names agree in this process's environment at import, before a
431
+ # caller copies os.environ for a child; otherwise each child would print the notice again.
432
+ for _k in [k for k in list(os.environ) if k.startswith(OLD_PREFIX) and k[len(OLD_PREFIX):] in SETTINGS]:
433
+ setting(_k)
@@ -17,7 +17,7 @@ and again when read, so a hand-appended row with the wrong writer never scores.
17
17
 
18
18
  Files and locking (G6, the 3b/6b lessons):
19
19
 
20
- * ``FORGE_GATE_LEDGER_DIR`` has no default. Unset = the ledgers are switched OFF and nothing is
20
+ * ``FORGEPROOF_LEDGER_DIR`` has no default. Unset = the ledgers are switched OFF and nothing is
21
21
  written anywhere. The folder, both ledger files and ``ledger.lock`` must already exist: the
22
22
  switch-on creates them with their owner and ACL, never a writer (a typo'd folder must not get a
23
23
  fresh ledger nobody reads, and the first writer must not decide the owner).
@@ -141,7 +141,7 @@ def result_ids_in(text: str) -> list[str]:
141
141
 
142
142
 
143
143
  def enabled() -> bool:
144
- """True when ``FORGE_GATE_LEDGER_DIR`` is set (it may still be wrong: writers check)."""
144
+ """True when ``FORGEPROOF_LEDGER_DIR`` is set (it may still be wrong: writers check)."""
145
145
  return config.configured(config.LEDGER_KEY) is not None
146
146
 
147
147
 
@@ -1,7 +1,7 @@
1
1
  """The lens tools: metamorphic, invariant, twin-consensus and guard.
2
2
 
3
3
  They ship inside the package (KNOWN-DEBT KD-2, done 2026-11-25), so an installed ForgeProof
4
- runs every lens without a source checkout and without FORGE_GATE_HOME. ``forgeproof.lenses``
4
+ runs every lens without a source checkout and without FORGEPROOF_HOME. ``forgeproof.lenses``
5
5
  imports metamorphic, invariant_gate and twin_consensus from here, and runs guard_lens.py as a
6
6
  script by its file path (``GUARD_LENS``) in a child process.
7
7
  """
@@ -36,7 +36,7 @@ from forgeproof.lens_tools import GUARD_LENS
36
36
  _PKG_PARENT = Path(__file__).resolve().parents[1]
37
37
  # The lens tools (metamorphic, invariant, twin, guard) ship inside the package, in
38
38
  # forgeproof/lens_tools/ (KNOWN-DEBT KD-2, done 2026-11-25): an install alone runs every lens,
39
- # with no source checkout and no FORGE_GATE_HOME. They always come from the package this file
39
+ # with no source checkout and no FORGEPROOF_HOME. They always come from the package this file
40
40
  # is in, never from another checkout, so the lenses and their tools cannot be two versions.
41
41
 
42
42
  BASE_LENS = "property-primary"
@@ -13,7 +13,7 @@ shipped tool no longer reads the library at run time (build step 1, Q1, 2026-11-
13
13
  - **Changed here:** nothing. Do not edit them in this repo. Fix the pattern in the
14
14
  library, then re-copy, and update the commit and every sha256 below in the same change.
15
15
  - **Drift check:** `tests/test_live_library.py` (tier `live`, needs
16
- `FORGE_GATE_LIBRARY_DIR`) compares each copy against the library checkout.
16
+ `FORGEPROOF_LIBRARY_DIR`) compares each copy against the library checkout.
17
17
 
18
18
  | file here | path in the library | sha256 |
19
19
  |---|---|---|