@cratis/pi 7.151.0 → 7.151.1
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/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -0
- package/package/corpus/hooks/README.md +10 -6
- package/package/corpus/hooks/scripts/quality-gates.json +7 -5
- package/package/corpus/rules/github-actions.md +7 -0
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +14 -7
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +5 -0
- package/package.json +1 -1
|
@@ -103,6 +103,13 @@ capacity numbers into workflows or guidance.
|
|
|
103
103
|
- **Never** route `pull_request`-triggered jobs of a *public* repository to self-hosted
|
|
104
104
|
runners — that hands code execution on our infrastructure to any fork.
|
|
105
105
|
|
|
106
|
+
## Arc proxies
|
|
107
|
+
|
|
108
|
+
- Workflows never generate Arc TypeScript proxies; the client commits them. Every `dotnet
|
|
109
|
+
build`/`publish` of an Arc project passes `-p:CratisProxiesOutputPath=` (empty, Arc's off
|
|
110
|
+
switch; `DisableProxyGenerator` is repository-defined, not Arc's). See the
|
|
111
|
+
**cratis-arc-command** proxy-generation reference.
|
|
112
|
+
|
|
106
113
|
## Automation that writes back
|
|
107
114
|
|
|
108
115
|
- A bot that pushes to a branch must **retry with `git pull --rebase`** — the branch
|
|
@@ -841,12 +841,16 @@ source root is not `Source/` re-scopes the `paths` globs there too.
|
|
|
841
841
|
|
|
842
842
|
**One property gates the proxy generator.** The generator's MSBuild target is
|
|
843
843
|
`Condition="'$(CratisProxiesOutputPath)' != ''"`, so clearing that property with
|
|
844
|
-
`-p:CratisProxiesOutputPath=` is
|
|
845
|
-
|
|
846
|
-
looks like it works and changes nothing.
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
the
|
|
844
|
+
`-p:CratisProxiesOutputPath=` is Arc's off switch. `DisableProxyGenerator` is not an Arc
|
|
845
|
+
property; it works only where a repository defines it — MSBuild silently accepts unknown `-p:`
|
|
846
|
+
names, so passing it elsewhere looks like it works and changes nothing. Proxies are generated and
|
|
847
|
+
committed by the client, never in CI, so CI builds always clear the path.
|
|
848
|
+
|
|
849
|
+
The Debug/Release split applies to the shipped client-side local gates only: Release clears the
|
|
850
|
+
path, and the committing client's Debug gate does not, because `general.md` makes the Debug build
|
|
851
|
+
the canonical trigger for regenerating the TypeScript proxies the frontend phase depends on, and
|
|
852
|
+
the client commits the result. A consuming repository's CI never copies the Debug proxy step; it
|
|
853
|
+
passes `-p:CratisProxiesOutputPath=` in every configuration.
|
|
850
854
|
|
|
851
855
|
## Unattended runs
|
|
852
856
|
|
|
@@ -69,11 +69,13 @@
|
|
|
69
69
|
"Commands are pinned to .cratis/ai/rules/general.md 'Quality Gates' and .cratis/ai/hooks/agent-stop.md.",
|
|
70
70
|
"Note the Release build passes -p:CratisProxiesOutputPath= per general.md so the proxy",
|
|
71
71
|
"generator does not re-run and touch already-correct generated files. That property is the",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"so passing
|
|
75
|
-
"
|
|
76
|
-
"
|
|
72
|
+
"Arc off switch: the generator's target is Condition=\"'$(CratisProxiesOutputPath)' != ''\".",
|
|
73
|
+
"DisableProxyGenerator is not an Arc property, only repository-defined \u2014 MSBuild accepts",
|
|
74
|
+
"unknown -p: names silently, so passing it elsewhere looks effective and does nothing.",
|
|
75
|
+
"The Debug/Release split is for these client-side local hooks only: the committing client's",
|
|
76
|
+
"Debug gate omits the override because general.md makes Debug the canonical proxy-regeneration",
|
|
77
|
+
"trigger, and the client commits the result. CI never copies that Debug proxy step: it passes",
|
|
78
|
+
"-p:CratisProxiesOutputPath= in every configuration."
|
|
77
79
|
],
|
|
78
80
|
"enabled": true,
|
|
79
81
|
"failFast": true,
|
|
@@ -102,6 +102,13 @@ capacity numbers into workflows or guidance.
|
|
|
102
102
|
- **Never** route `pull_request`-triggered jobs of a *public* repository to self-hosted
|
|
103
103
|
runners — that hands code execution on our infrastructure to any fork.
|
|
104
104
|
|
|
105
|
+
## Arc proxies
|
|
106
|
+
|
|
107
|
+
- Workflows never generate Arc TypeScript proxies; the client commits them. Every `dotnet
|
|
108
|
+
build`/`publish` of an Arc project passes `-p:CratisProxiesOutputPath=` (empty, Arc's off
|
|
109
|
+
switch; `DisableProxyGenerator` is repository-defined, not Arc's). See the
|
|
110
|
+
**cratis-arc-command** proxy-generation reference.
|
|
111
|
+
|
|
105
112
|
## Automation that writes back
|
|
106
113
|
|
|
107
114
|
- A bot that pushes to a branch must **retry with `git pull --rebase`** — the branch
|
|
@@ -102,13 +102,20 @@ On the frontend, the generated route already starts with the API prefix.
|
|
|
102
102
|
|
|
103
103
|
## Skipping generation
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
**Proxies are generated by the committing client, never in CI.** The client that
|
|
106
|
+
changes a command or query builds Debug, generates the proxies and commits them
|
|
107
|
+
with the change. CI builds compile against the committed proxies; a CI build that
|
|
108
|
+
regenerates them produces diffs nobody commits or drift that exists only on the
|
|
109
|
+
runner. Every CI build of an Arc project passes `-p:CratisProxiesOutputPath=`
|
|
110
|
+
(empty), in every configuration.
|
|
111
|
+
|
|
112
|
+
`-p:CratisProxiesOutputPath=` is Arc's off switch: the `CratisProxyGenerator`
|
|
113
|
+
target runs only when `CratisProxiesOutputPath` is non-empty, so an empty value
|
|
114
|
+
makes it a no-op. `DisableProxyGenerator` is **not an Arc property**; it works only
|
|
115
|
+
in a repository that defines it itself (for example a project that gates
|
|
116
|
+
`CratisProxiesOutputPath` and the generator reference on it, as the Chronicle
|
|
117
|
+
kernel `Core.csproj` does). MSBuild accepts unknown `-p:` names silently, so passing
|
|
118
|
+
it where it is not defined looks effective and does nothing.
|
|
112
119
|
|
|
113
120
|
## What the generator extracts for client-side validation
|
|
114
121
|
|
|
@@ -59,6 +59,11 @@ before an external effect. A request to verify does not authorize a push.
|
|
|
59
59
|
7. A change to a command, read model or query shape runs the repository's proxy
|
|
60
60
|
and API regeneration checks; never hand-edit generated files. A package bump
|
|
61
61
|
regenerates the checked-in snapshots that pin versions, in the same commit.
|
|
62
|
+
Arc TypeScript proxies are generated and committed by the client, never in CI:
|
|
63
|
+
CI, and local gates that mirror CI, pass `-p:CratisProxiesOutputPath=` (empty;
|
|
64
|
+
the `DisableProxyGenerator` name is repository-defined, not Arc's); only the
|
|
65
|
+
client's own Debug hook regenerates proxies. See the
|
|
66
|
+
**cratis-arc-command** proxy-generation reference.
|
|
62
67
|
|
|
63
68
|
Use affected-project checks while coding and writing specifications. Build once
|
|
64
69
|
at the end: run the full local gate when the work is believed complete, not after
|