@lapxo/bound 0.1.4 → 0.1.5
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.
- package/LICENSE +0 -1
- package/README.md +26 -5
- package/TARGET.bound +83 -19
- package/dist/cli/accept.js +21 -9
- package/dist/cli/owner.d.ts +2 -0
- package/dist/cli/owner.js +17 -2
- package/dist/cli/pass.js +15 -10
- package/dist/cli/place.js +8 -1
- package/dist/cli/verb.js +35 -1
- package/dist/fold/claims.js +5 -1
- package/dist/fold/closed.js +44 -13
- package/dist/fold/digests.js +5 -2
- package/dist/fold/observed.js +195 -174
- package/dist/fold/resolved.js +6 -2
- package/dist/host/act-cost.d.ts +13 -0
- package/dist/host/act-cost.js +25 -0
- package/dist/host/adapters/modules/javascript.d.ts +1 -0
- package/dist/host/adapters/modules/javascript.js +48 -0
- package/dist/host/capsule-process.js +22 -19
- package/dist/host/capsule.js +5 -6
- package/dist/host/ports/ingress.d.ts +24 -0
- package/dist/host/ports/ingress.js +81 -0
- package/dist/host/reading-closures.d.ts +28 -0
- package/dist/host/reading-closures.js +146 -0
- package/dist/host/release.js +24 -2
- package/dist/host/walk.d.ts +6 -0
- package/dist/host/walk.js +193 -0
- package/dist/observe/regions.js +3 -5
- package/dist/render/field.d.ts +1 -7
- package/dist/render/field.js +6 -12
- package/dist/render/names.d.ts +1 -1
- package/dist/render/names.js +1 -1
- package/dist/render/view.js +16 -11
- package/docs/contracts/archive.md +11 -0
- package/docs/contracts/cli.md +11 -0
- package/docs/contracts/documents.md +35 -0
- package/docs/contracts/evidence-view.md +6 -0
- package/docs/contracts/publication.md +17 -0
- package/docs/contracts/typed-object.md +27 -0
- package/docs/contracts/view-walk.md +7 -0
- package/docs/contracts/views.md +29 -0
- package/docs/usage.md +6 -0
- package/package.json +6 -4
- package/receipts.bound +314 -92
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -5,14 +5,31 @@
|
|
|
5
5
|
Declare what must hold. Read what does. Keep the evidence
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx @lapxo/bound@0.1.
|
|
9
|
-
npx @lapxo/bound@0.1.
|
|
8
|
+
npx @lapxo/bound@0.1.5 fold --as help
|
|
9
|
+
npx @lapxo/bound@0.1.5 fold
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## How Bound reads a project
|
|
13
13
|
|
|
14
14
|
Bound reads a project's admitted statements and observations through its selected Topos, then renders the declared views and records their inputs in receipts. The example below explains the object; a file-fold alone does not calculate its intervals.
|
|
15
15
|
|
|
16
|
+
## Use Bound in a project
|
|
17
|
+
|
|
18
|
+
From a project with an admitted lock and selected views, inspect its standing, ask for its evidence, then verify the committed outputs:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npx @lapxo/bound@0.1.5 fold --as lines
|
|
22
|
+
npx @lapxo/bound@0.1.5 fold --as receipts@1
|
|
23
|
+
npx @lapxo/bound@0.1.5 fold --check
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Use this flow to review a project change or check a dependency's declared contract. `--check` verifies existing evidence; it does not execute a missing reading. A file fold names readings and explicitly says that it computed no encounters.
|
|
27
|
+
|
|
28
|
+
Independent observations are judged through the declared typed cells view. The selected topos supplies the form, origin evidence and bounds. Bound keeps attribution and exact-ID withdrawals through the fold.
|
|
29
|
+
|
|
30
|
+
A selected form can instead describe a set of artifacts, a delivery interval or another domain's values. The project declares the form, origin evidence and views; Bound does not infer them from filenames or units.
|
|
31
|
+
|
|
32
|
+
|
|
16
33
|
## A meeting everyone can understand
|
|
17
34
|
|
|
18
35
|
Ana is available from 10 to 14, Luis from 12 to 16, and the room from 10 to 13. Their common availability is 12 to 13. A boss available from 18 to 20 makes the encounter incompatible. Withdrawing that exact reading restores the overlap; Ana, Luis and the room remain.
|
|
@@ -49,11 +66,11 @@ lot_dir="$(mktemp -d)"
|
|
|
49
66
|
Have the selected view produce a proposal at `$lot_dir/proposal.bound`, or prepare the project's permitted lines there for review. Unsigned proposals use `by=target`, without a preassigned epoch or `sig`. Lots stay outside the repository; the committed bound files are only `TARGET.bound` and `receipts.bound`.
|
|
50
67
|
|
|
51
68
|
```sh
|
|
52
|
-
npx @lapxo/bound@0.1.
|
|
69
|
+
npx @lapxo/bound@0.1.5 sign "$lot_dir/proposal.bound" \
|
|
53
70
|
--key "$BOUND_KEY_ID" --key-file "$BOUND_KEY_FILE" \
|
|
54
71
|
> "$lot_dir/signed.bound" &&
|
|
55
|
-
npx @lapxo/bound@0.1.
|
|
56
|
-
npx @lapxo/bound@0.1.
|
|
72
|
+
npx @lapxo/bound@0.1.5 land "$lot_dir/signed.bound" &&
|
|
73
|
+
npx @lapxo/bound@0.1.5 fold
|
|
57
74
|
```
|
|
58
75
|
|
|
59
76
|
`sign` assigns the admitted epoch and writes the signed lot to stdout. `land` validates the whole lot before admission. A refusal is evidence to inspect; it is not success. Do not proceed after a failed signature or admission. The key file is a PKCS8 private key matching the admitted public key; do not put it in the lot, source tree, package or CI artifacts.
|
|
@@ -97,3 +114,7 @@ A pin names standing, not a download URL or runtime entry. Its declared artifact
|
|
|
97
114
|
Use Bound where independently attributed observations must be judged against an accepted contract: compatibility between components, operational limits, or a team's project requirements. The selected topos must supply the actual measurements; a digest identifies the evidence without declaring it true.
|
|
98
115
|
|
|
99
116
|
[Contribute a counterexample or a proposed lot](CONTRIBUTING.md).
|
|
117
|
+
|
|
118
|
+
## Foundations and related libraries
|
|
119
|
+
|
|
120
|
+
The two-sided constraint object is described in Nahum Ochoa's [Two-Sided Constraints on a Valued Lattice](https://doi.org/10.5281/zenodo.21858428), DOI `10.5281/zenodo.21858428`. Bound uses the object through [Obligations](https://github.com/Lapxo/obligations); [Topos](https://github.com/Lapxo/topos) supplies the wire and contracts for forms, views and selected worlds. Bound admits, folds and retains evidence across those declared boundaries. A digest identifies bytes; it does not certify that an observation is true.
|