@orangelogic/myos-gen1 1.0.0-alpha.4 → 1.0.0-alpha.6
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/NOTICE.md +4 -0
- package/README.md +9 -11
- package/contracts/dotnet/ReleaseContext.cs +10 -1
- package/contracts/dotnet/ReleaseEligibility.cs +27 -0
- package/contracts/release/3/README.md +21 -2
- package/contracts/release/3/release.ts +10 -0
- package/dist/contracts/release.d.ts +17 -0
- package/package.json +9 -5
- package/PROVENANCE.json +0 -459
- package/contracts/fixtures/eligibility.json +0 -3003
- package/contracts/fixtures/semver.json +0 -42
package/NOTICE.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
Gen1 provides the Orange Logic native React runtime, component build helpers,
|
|
2
|
+
versioned contracts and schemas. Copyright and license notices in distributed
|
|
3
|
+
source files remain applicable. This notice does not grant redistribution rights
|
|
4
|
+
or change the package's UNLICENSED status.
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @orangelogic/myos-gen1
|
|
2
2
|
|
|
3
|
-
Native React Gen1 unit runtime, public wire contracts and standalone component build tools. This is infrastructure, not a ported Lit component. It is released with `@orangelogic/design-system-react` at the same version
|
|
3
|
+
Native React Gen1 unit runtime, public wire contracts and standalone component build tools. This is infrastructure, not a ported Lit component. It is released together with `@orangelogic/design-system-react` at the same version and declares exactly that version as its design-system peer. React and React DOM are peers.
|
|
4
4
|
|
|
5
|
-
Install the
|
|
5
|
+
Install both packages at the same version from the configured npm feed, with their React peers (shown for `1.0.0-alpha.6`):
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install --save-exact @orangelogic/myos-gen1@1.0.0-alpha.
|
|
8
|
+
npm install --save-exact @orangelogic/myos-gen1@1.0.0-alpha.6 @orangelogic/design-system-react@1.0.0-alpha.6 react@19.3.0 react-dom@19.3.0
|
|
9
9
|
npm install --save-dev --save-exact @types/react@19.3.0 @types/react-dom@19.3.0
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -39,19 +39,17 @@ Run `npx --no-install gen1-build` in that folder, or call `buildComponent({root}
|
|
|
39
39
|
| `./contracts/unit` | All original unit types, public values and vocabulary |
|
|
40
40
|
| `./contracts/release` | All original release, eligibility, slot and host wire types |
|
|
41
41
|
| `./contracts/semver` | Original strict SemVer implementation |
|
|
42
|
-
| `./build` / `gen1-build` | `buildComponent({root})`
|
|
42
|
+
| `./build` / `gen1-build` | `buildComponent({root})` builds one component; callers own component enumeration and changed-build scheduling |
|
|
43
43
|
| `./boundaries` | Original boundary primitives; standalone builds use `checkBoundaries(root,{entry})` |
|
|
44
44
|
| `./components`, `./demo` | Descriptor/mount and data-only demo helpers |
|
|
45
45
|
| `./sync-contracts` | `syncGen1Contracts` checks source synchronization; `copyGen1Contracts({destination,check})` copies or verifies an installed package’s served contracts |
|
|
46
|
-
| `./protocols/*` | Served contracts, e.g. `protocols/unit/1/unit.ts`, `protocols/unit/2/unit.ts`, release/3 schemas
|
|
46
|
+
| `./protocols/*` | Served contracts, e.g. `protocols/unit/1/unit.ts`, `protocols/unit/2/unit.ts`, release/3 schemas; development fixtures are excluded |
|
|
47
47
|
| `./runtime/styles.css` | Runtime CSS for explicit host stylesheet handling |
|
|
48
48
|
|
|
49
|
-
Protocol 1 is frozen byte-for-byte; protocol 2 is copied unchanged. See `
|
|
49
|
+
Protocol 1 is frozen byte-for-byte; protocol 2 is copied unchanged. See `NOTICE.md` for attribution and `api-map.json` for the public export mapping. Runtime CSS passes through CSS Modules while preserving the established `uic-*` hooks used by existing components. Heavy engines remain lazy inside the design-system controls.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Consumers own component implementations, registry publication, release manifests and preview routing. Use the package's served contracts, admit the shared runtime and its transitive graph in the host loader, and retain registry admission and per-mount byte/node limits. No protocol, authorization or CSP relaxation is implied.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
The scroll binding resolves its owning control through native display:contents wrappers and ignores nested control scrolls. Use `discoverComponents(componentProjectRoot)` with an explicit project root; standalone builds use `checkBoundaries`, while `checkLayout` remains the legacy bare-component layout checker. The emitted stylesheet is `mount.css`; Release assembly should consume `mount.css` and include it in the source-digest recipe.
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
G2 reconciliation preserves V01 runtime fixes and F2B scaffold isolation, including their tests. `buildComponent({root, project})` accepts an explicit shared dependency manifest for bare first-party components; source ownership remains confined to `root`. Standalone consumers omit `project`. The distribution includes `protocols/dotnet/*` for the registry's project reference.
|
|
55
|
+
`buildComponent({root, project})` accepts an explicit shared dependency manifest for bare first-party components; source ownership remains confined to `root`. Standalone consumers omit `project`. The distribution includes `protocols/dotnet/*` for the registry's project reference.
|
|
@@ -21,7 +21,16 @@ public sealed record RegistryEvidence(bool Authenticated);
|
|
|
21
21
|
public sealed record ProvenanceEvidence(
|
|
22
22
|
bool Authenticated, ReleaseIdentity? Identity, ReleaseDigests? Digests, string? AudienceSha256,
|
|
23
23
|
Approval? Approval, bool IsOrangeLogicAuthored, bool OfficialDefault,
|
|
24
|
-
bool CodeReviewVerified, bool SecurityReviewVerified, bool ExemptionVerified
|
|
24
|
+
bool CodeReviewVerified, bool SecurityReviewVerified, bool ExemptionVerified,
|
|
25
|
+
[property: System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
|
|
26
|
+
ManualStableAttestation? ManualStable = null);
|
|
27
|
+
|
|
28
|
+
/// <summary>Registry-issued Staff endorsement of exact unchanged source bytes. It grants neither review nor official coverage.</summary>
|
|
29
|
+
public sealed record ManualStableAttestation(
|
|
30
|
+
string? Format, ReleaseIdentity? SourceIdentity, ReleaseDigests? SourceDigests,
|
|
31
|
+
ReleaseIdentity? TargetIdentity, ReleaseDigests? TargetDigests, string? AudienceSha256,
|
|
32
|
+
ExecutionPrivilege Ceiling, long PolicyVersion, string? ActorIssuer, string? ActorSubject,
|
|
33
|
+
DateTimeOffset PromotedAtUtc, string? Reason, bool StaffAuthorized);
|
|
25
34
|
|
|
26
35
|
/// <summary>Authenticated watermark plus conservative monotonic age; receipt time never replaces issue time.</summary>
|
|
27
36
|
public sealed record RevocationEvidence(
|
|
@@ -87,6 +87,8 @@ public static class ReleaseEligibility
|
|
|
87
87
|
!Enum.IsDefined(a.Ceiling) || a.Ceiling == ExecutionPrivilege.Unknown ||
|
|
88
88
|
PrivilegeRank(c.Privilege) > PrivilegeRank(a.Ceiling)) return false;
|
|
89
89
|
if (r.Audience!.Kind == "restrictedOLAlternative" && !p.IsOrangeLogicAuthored) return false;
|
|
90
|
+
if (a.ExemptionId == "manual-stable:1" || p.ManualStable is not null)
|
|
91
|
+
return ManualStableProofAccepts(r, p, c.Evidence.EvaluatedAtUtc);
|
|
90
92
|
// The trusted host supplies a channel only after checking current site opt-in and signed membership.
|
|
91
93
|
if (a.ExemptionId?.StartsWith("channel:", StringComparison.Ordinal) == true)
|
|
92
94
|
return Text(allowedChannel) && a.ExemptionId == "channel:" + allowedChannel &&
|
|
@@ -101,6 +103,31 @@ public static class ReleaseEligibility
|
|
|
101
103
|
(a.SecurityReviewId is null || (Text(a.SecurityReviewId) && p.SecurityReviewVerified));
|
|
102
104
|
}
|
|
103
105
|
|
|
106
|
+
/// <summary>Checks only a manual attestation's binding and truthfulness. Call Evaluate for audience, privilege, availability and revocation.</summary>
|
|
107
|
+
public static bool ManualStableProofAccepts(ReleasePolicy r, ProvenanceEvidence p, DateTimeOffset now)
|
|
108
|
+
{
|
|
109
|
+
var a = r.Approval!;
|
|
110
|
+
var m = p.ManualStable;
|
|
111
|
+
return a is not null && ValidIdentity(r.Identity) && Digests(r.Digests) && Hash(r.AudienceSha256) &&
|
|
112
|
+
p.Authenticated && p.Identity == r.Identity && p.Digests == r.Digests && p.Approval == a &&
|
|
113
|
+
p.AudienceSha256 == r.AudienceSha256 && a.Digests == r.Digests && a.AudienceSha256 == r.AudienceSha256 &&
|
|
114
|
+
Positive(a.Revision) && Positive(a.PolicyVersion) && Enum.IsDefined(a.Ceiling) && a.Ceiling != ExecutionPrivilege.Unknown &&
|
|
115
|
+
a.ExemptionId == "manual-stable:1" && m is not null && m.Format == "orangelogic.gen1.manual-stable/1" &&
|
|
116
|
+
m.StaffAuthorized && Text(m.ActorIssuer) && Text(m.ActorSubject) &&
|
|
117
|
+
Utc(m.PromotedAtUtc) && m.PromotedAtUtc <= now && m.Reason is { Length: <= 1024 } && !m.Reason.Any(char.IsControl) &&
|
|
118
|
+
ValidIdentity(m.SourceIdentity) && StrictSemVersion.Parse(m.SourceIdentity!.Version!).IsPrerelease &&
|
|
119
|
+
m.SourceIdentity!.PackageId == r.Identity!.PackageId && m.TargetIdentity == r.Identity &&
|
|
120
|
+
!StrictSemVersion.Parse(r.Identity!.Version!).IsPrerelease && !r.Identity.Version!.Contains('+') &&
|
|
121
|
+
Digests(m.SourceDigests) && m.TargetDigests == r.Digests &&
|
|
122
|
+
m.SourceDigests!.Release != r.Digests!.Release && m.SourceDigests.Manifest != r.Digests.Manifest &&
|
|
123
|
+
m.SourceDigests.Source == r.Digests.Source && m.SourceDigests.Build == r.Digests.Build &&
|
|
124
|
+
m.SourceDigests.Artifact == r.Digests.Artifact && m.SourceDigests.Authorship == r.Digests.Authorship &&
|
|
125
|
+
m.AudienceSha256 == r.AudienceSha256 && m.Ceiling == a.Ceiling && m.PolicyVersion == a.PolicyVersion &&
|
|
126
|
+
!r.OfficialDefault && !p.OfficialDefault && !p.IsOrangeLogicAuthored &&
|
|
127
|
+
!p.CodeReviewVerified && !p.SecurityReviewVerified && !p.ExemptionVerified &&
|
|
128
|
+
a.CodeReviewId is null && a.SecurityReviewId is null;
|
|
129
|
+
}
|
|
130
|
+
|
|
104
131
|
private static bool Fresh(ExecutionContext c)
|
|
105
132
|
{
|
|
106
133
|
var f = c.Evidence!.Revocation;
|
|
@@ -28,8 +28,27 @@ demo code reachable from production. The independent build gate verifies actual
|
|
|
28
28
|
bytes, provenance, recipes, toolchains and policy evidence. Passing the schema
|
|
29
29
|
does not establish those facts or authorize publication.
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
Authenticated channel prerelease bundles use the registry channel validator. Reviewed stable
|
|
32
|
+
publication still requires the source pipeline, whose runner is parked. Existing eligible channel
|
|
33
|
+
releases may use the distinct manual stable policy capability below; arbitrary stable bundle
|
|
34
|
+
uploads remain refused.
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
Published releases may carry one optional non-executable `source` asset: path `source.zip`, content type `application/zip`, SHA-256 and `bytes` (1 to 8,388,608). Gen1 additionally requires empty `imports` and `resources`; source is an independent root outside both executable graphs. The registry verifies its bytes and rejects an archive that is not a plain set of regular files with safe relative paths. Manifests keep the entry (their digests and approvals cover it), but it has no asset URL, the normal asset routes deny it, and Cortex ignores it. Only Link sessions at `/api/packages/{id}/versions/{version}/source.zip` and authenticated `GetComponentSource(packageId, version)` MCP calls can download it. Existing releases without source remain valid.
|
|
38
|
+
|
|
39
|
+
## Manual stable policy capability 1
|
|
40
|
+
|
|
41
|
+
The server policy adds optional `ProvenanceEvidence.manualStable` with format
|
|
42
|
+
`orangelogic.gen1.manual-stable/1`; it is omitted for existing reviewed/channel projections.
|
|
43
|
+
The attestation binds source/target identities and all digests, audience digest, capability ceiling,
|
|
44
|
+
policy version, authenticated Staff actor, UTC time and reason. Its approval uses `manual-stable:1`.
|
|
45
|
+
Review IDs remain null and code/security/exemption verification, Orange Logic authorship and
|
|
46
|
+
official-default flags remain false. The shared evaluator requires the complete proof and preserves
|
|
47
|
+
all ordinary eligibility checks. Manual evidence cannot satisfy official coverage.
|
|
48
|
+
|
|
49
|
+
This changes server policy capability only; component protocols, slots and release-manifest schema
|
|
50
|
+
versions stay unchanged. Older strict consumers reject the new property and can reject the entire
|
|
51
|
+
package response. Consumers must update the shared evaluator and adapter before using manual tags.
|
|
52
|
+
The registry must derive and verify the preserved audience and ceiling from immutable source policy,
|
|
53
|
+
not from a caller-supplied attestation. `ManualStableProofAccepts` checks the attestation only;
|
|
54
|
+
`Evaluate` remains required for actual consumption (audience, privilege, freshness and revocation).
|
|
@@ -37,6 +37,16 @@ export interface ProvenanceEvidence {
|
|
|
37
37
|
readonly authenticated: boolean; readonly identity: ReleaseIdentity; readonly digests: ReleaseDigests; readonly audienceSha256: string;
|
|
38
38
|
readonly approval: Approval; readonly isOrangeLogicAuthored: boolean; readonly officialDefault: boolean;
|
|
39
39
|
readonly codeReviewVerified: boolean; readonly securityReviewVerified: boolean; readonly exemptionVerified: boolean;
|
|
40
|
+
readonly manualStable?: ManualStableAttestation | null;
|
|
41
|
+
}
|
|
42
|
+
/** Registry-issued manual Staff endorsement; never independent review or official coverage. */
|
|
43
|
+
export interface ManualStableAttestation {
|
|
44
|
+
readonly format: 'orangelogic.gen1.manual-stable/1';
|
|
45
|
+
readonly sourceIdentity: ReleaseIdentity; readonly sourceDigests: ReleaseDigests;
|
|
46
|
+
readonly targetIdentity: ReleaseIdentity; readonly targetDigests: ReleaseDigests;
|
|
47
|
+
readonly audienceSha256: string; readonly ceiling: ExecutionPrivilege; readonly policyVersion: number;
|
|
48
|
+
readonly actorIssuer: string; readonly actorSubject: string; readonly promotedAtUtc: string;
|
|
49
|
+
readonly reason: string; readonly staffAuthorized: boolean;
|
|
40
50
|
}
|
|
41
51
|
export interface RevocationEvidence {
|
|
42
52
|
readonly authenticated: boolean; readonly policyRevision: number;
|
|
@@ -96,6 +96,23 @@ export interface ProvenanceEvidence {
|
|
|
96
96
|
readonly codeReviewVerified: boolean;
|
|
97
97
|
readonly securityReviewVerified: boolean;
|
|
98
98
|
readonly exemptionVerified: boolean;
|
|
99
|
+
readonly manualStable?: ManualStableAttestation | null;
|
|
100
|
+
}
|
|
101
|
+
/** Registry-issued manual Staff endorsement; never independent review or official coverage. */
|
|
102
|
+
export interface ManualStableAttestation {
|
|
103
|
+
readonly format: 'orangelogic.gen1.manual-stable/1';
|
|
104
|
+
readonly sourceIdentity: ReleaseIdentity;
|
|
105
|
+
readonly sourceDigests: ReleaseDigests;
|
|
106
|
+
readonly targetIdentity: ReleaseIdentity;
|
|
107
|
+
readonly targetDigests: ReleaseDigests;
|
|
108
|
+
readonly audienceSha256: string;
|
|
109
|
+
readonly ceiling: ExecutionPrivilege;
|
|
110
|
+
readonly policyVersion: number;
|
|
111
|
+
readonly actorIssuer: string;
|
|
112
|
+
readonly actorSubject: string;
|
|
113
|
+
readonly promotedAtUtc: string;
|
|
114
|
+
readonly reason: string;
|
|
115
|
+
readonly staffAuthorized: boolean;
|
|
99
116
|
}
|
|
100
117
|
export interface RevocationEvidence {
|
|
101
118
|
readonly authenticated: boolean;
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangelogic/myos-gen1",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"scripts",
|
|
9
|
-
"contracts",
|
|
9
|
+
"contracts/unit",
|
|
10
|
+
"contracts/slot",
|
|
11
|
+
"contracts/release",
|
|
12
|
+
"contracts/dotnet",
|
|
13
|
+
"contracts/core-design-system-entries.json",
|
|
10
14
|
"README.md",
|
|
11
|
-
"
|
|
15
|
+
"NOTICE.md",
|
|
12
16
|
"api-map.json"
|
|
13
17
|
],
|
|
14
18
|
"exports": {
|
|
@@ -41,14 +45,14 @@
|
|
|
41
45
|
"gen1-build": "./scripts/build.mjs"
|
|
42
46
|
},
|
|
43
47
|
"peerDependencies": {
|
|
44
|
-
"@orangelogic/design-system-react": "1.0.0-alpha.
|
|
48
|
+
"@orangelogic/design-system-react": "1.0.0-alpha.6",
|
|
45
49
|
"react": "^19.3.0",
|
|
46
50
|
"react-dom": "^19.3.0"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {},
|
|
49
53
|
"dependencies": {
|
|
50
54
|
"esbuild": "0.28.2",
|
|
51
|
-
"typescript": "5.
|
|
55
|
+
"typescript": "5.9.3"
|
|
52
56
|
},
|
|
53
57
|
"sideEffects": [
|
|
54
58
|
"**/*.css",
|