dorfl 0.8.0 → 0.10.0

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 (44) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +63 -25
  3. package/dist/cli.js.map +1 -1
  4. package/dist/config.d.ts +82 -7
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/config.js +14 -2
  7. package/dist/config.js.map +1 -1
  8. package/dist/do.d.ts +16 -1
  9. package/dist/do.d.ts.map +1 -1
  10. package/dist/do.js +14 -9
  11. package/dist/do.js.map +1 -1
  12. package/dist/env-config.d.ts.map +1 -1
  13. package/dist/env-config.js +25 -3
  14. package/dist/env-config.js.map +1 -1
  15. package/dist/intake-trigger-template.d.ts +91 -53
  16. package/dist/intake-trigger-template.d.ts.map +1 -1
  17. package/dist/intake-trigger-template.js +213 -114
  18. package/dist/intake-trigger-template.js.map +1 -1
  19. package/dist/intake.d.ts +53 -4
  20. package/dist/intake.d.ts.map +1 -1
  21. package/dist/intake.js +59 -15
  22. package/dist/intake.js.map +1 -1
  23. package/dist/placement.d.ts +42 -33
  24. package/dist/placement.d.ts.map +1 -1
  25. package/dist/placement.js +20 -17
  26. package/dist/placement.js.map +1 -1
  27. package/dist/repo-config.d.ts +1 -1
  28. package/dist/repo-config.d.ts.map +1 -1
  29. package/dist/repo-config.js +35 -0
  30. package/dist/repo-config.js.map +1 -1
  31. package/dist/tasking.d.ts +46 -1
  32. package/dist/tasking.d.ts.map +1 -1
  33. package/dist/tasking.js +48 -21
  34. package/dist/tasking.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/cli.ts +75 -28
  37. package/src/config.ts +96 -9
  38. package/src/do.ts +30 -10
  39. package/src/env-config.ts +25 -3
  40. package/src/intake-trigger-template.ts +263 -143
  41. package/src/intake.ts +136 -18
  42. package/src/placement.ts +42 -36
  43. package/src/repo-config.ts +35 -0
  44. package/src/tasking.ts +75 -43
@@ -1 +1 @@
1
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AAG,CAAC,EAAE,CAAC;QACnD,SAAS,CAAC,cAAc,GAAG;YAC1B,SAAS,EAAE,qBAAqB,CAAC,SAAS,IAAI,KAAK;SACnD,CAAC;IACH,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,CAAqB,EAAE,CAAC;QAClE,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC5B,SAAS;QACV,CAAC;QACD,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAChC,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;QACzB,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACvB,SAAS;QACV,CAAC;QACD,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QACpD,2EAA2E;QAC1E,SAAqC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;IACvD,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC"}
@@ -6,9 +6,11 @@
6
6
  * STRUCTURALLY VALIDATES it, mirroring the snapshot-assertion style of
7
7
  * `advance-lifecycle-template.ts` / `advance-ci-template.ts` (the package depends on
8
8
  * NO YAML lib, so the checks are presence/shape assertions over the raw text). It
9
- * ALSO carries the PURE author-trust → per-outcome-flags DERIVATION
10
- * ({@link deriveIntakeFlags}) — CI's merge-vs-propose POLICY, the load-bearing
11
- * testable logic the workflow encodes at runtime.
9
+ * ALSO carries the PURE intake-flags DERIVATION ({@link deriveIntakeFlags}) —
10
+ * CI's merge-vs-propose POLICY, the load-bearing testable logic the workflow
11
+ * encodes at runtime. The DOCUMENT mode is the resolved `intakeIntegration`
12
+ * (operator/config); author-trust drives ONLY the `--origin-trust` stamp +
13
+ * placement, never the mode.
12
14
  *
13
15
  * SCOPE FENCE (spec Out-of-Scope): the issue→artifact TRANSFORM engine is
14
16
  * `issue-intake`'s (`intake <N>` + its four-outcome dispatch + the per-outcome
@@ -27,14 +29,23 @@
27
29
  * (re-)evaluation; an EDITED comment is NOT a trigger (the ID-based
28
30
  * `seen=<ids>` watermark suffices). The "post a NEW comment to signal an edit"
29
31
  * convention is documented in the workflow so a human knows to re-trigger.
30
- * - AUTHOR-TRUST → per-outcome FLAGS (Decision 1, {@link deriveIntakeFlags}): an
31
- * UNTRUSTED author (`author_association` not in OWNER/MEMBER/COLLABORATOR)
32
- * forces `--propose-task` REGARDLESS of the `autoBuild` gate, while
33
- * `--merge-spec` stays allowed (a human still tasks a spec before anything
34
- * autonomous acts — the checkpoint is intact). A TRUSTED author gets the plain
35
- * gate-derived mode for both. The fully-gateless "all gates on + merge
36
- * everywhere" path is a LOUD, NON-DEFAULT opt-in — the default is conservative
37
- * (propose / human-in-the-loop).
32
+ * - INTAKE-INTEGRATION → the file-emit MODE; AUTHOR-TRUST → PLACEMENT + the
33
+ * STAMP (ADR `untrusted-origin-carries-via-stamp-not-forced-staging`; spec
34
+ * `intake-integration-knob-and-specs-land-in-proposed-rename`; {@link
35
+ * deriveIntakeFlags}): the intake DOCUMENT mode (merge-vs-propose for a
36
+ * task/spec FILE) is the resolved `intakeIntegration ?? integration` — an
37
+ * operator/config choice, a SINGLE value applied to BOTH the task and the spec
38
+ * document, DECOUPLED from the autonomy gates. `autoBuild`/`autoTask` no
39
+ * longer feed the document mode (they mean ONLY "may an agent act
40
+ * autonomously"). Author-trust feeds exactly (1) the `--origin-trust` STAMP
41
+ * (`author_association` not in OWNER/MEMBER/COLLABORATOR ⇒ `untrusted`) and
42
+ * (2) — via that stamp, read by `intake`'s dispatch — which PLACEMENT default
43
+ * (`untrusted*LandIn` vs `*LandIn`) the emitted document lands in. Untrusted
44
+ * safety is the CARRIED stamp (it forces the BUILD transition to a code PR)
45
+ * plus the placement default, NOT a forced document PR. A document therefore
46
+ * merges to `main` regardless of who filed the issue OR whether the gates are
47
+ * on; whether it is reviewed-as-a-PR is purely the `intakeIntegration`
48
+ * operator config, not a trust or autonomy consequence.
38
49
  * - INSERTION POINT E (the issue-thread review surface): the review verdict over
39
50
  * intake's generated specs/tasks is surfaced into the ISSUE THREAD via the
40
51
  * `IssueProvider.postIssueComment` seam (issue thread, by NUMBER — NOT the PR
@@ -82,60 +93,83 @@ export declare const TRUSTED_AUTHOR_ASSOCIATIONS: readonly ["OWNER", "MEMBER", "
82
93
  * The per-outcome integration flags CI passes to `intake <N>` — the GRANULAR
83
94
  * per-type pair (the aggregates `--merge`/`--propose` are not needed because CI
84
95
  * always resolves BOTH types explicitly). Each is `'merge'` or `'propose'`.
96
+ *
97
+ * Both {@link spec} and {@link task} are the SAME resolved `intakeIntegration`
98
+ * value (spec `intake-integration-knob-and-specs-land-in-proposed-rename` US #1
99
+ * chose a SINGLE intake-document knob, NOT a per-type split): the pair is kept
100
+ * only because `intake`'s CLI consumes `--merge-task`/`--merge-spec` on two flag
101
+ * axes, not because task and spec can differ. Both are DECOUPLED from the autonomy
102
+ * gates and trust-INDEPENDENT (ADR
103
+ * `untrusted-origin-carries-via-stamp-not-forced-staging`): `autoBuild`/`autoTask`
104
+ * no longer compose into the document mode, and author-trust never did. The trust
105
+ * signal rides only {@link originTrust} (the stamp), which `intake`'s dispatch
106
+ * reads to select the untrusted-side PLACEMENT default. So `spec`/`task` here
107
+ * answer "does the DOCUMENT merge or open a PR", derived purely from the resolved
108
+ * `intakeIntegration` operator config — never from who filed the issue nor whether
109
+ * an agent may act autonomously.
85
110
  */
86
111
  export interface IntakeIntegrationFlags {
87
- /** The spec outcome's mode → `--merge-spec` / `--propose-spec`. */
112
+ /**
113
+ * The spec outcome's mode → `--merge-spec` / `--propose-spec`. The resolved
114
+ * `intakeIntegration ?? integration` (operator/config), IDENTICAL to
115
+ * {@link task} — the single intake-document knob applied to the spec axis.
116
+ */
88
117
  spec: 'merge' | 'propose';
89
- /** The task outcome's mode → `--merge-task` / `--propose-task`. */
118
+ /**
119
+ * The task outcome's mode → `--merge-task` / `--propose-task`. The resolved
120
+ * `intakeIntegration ?? integration` (operator/config), IDENTICAL to
121
+ * {@link spec} — the single intake-document knob applied to the task axis.
122
+ * Neither the autonomy gates nor author-trust force this: an untrusted author's
123
+ * task DOCUMENT merges to `main` exactly like a trusted one when
124
+ * `intakeIntegration` is `merge` (the untrusted safety is the carried
125
+ * {@link originTrust} stamp — which forces the BUILD to a code PR — plus the
126
+ * placement default, NOT a forced document PR).
127
+ */
90
128
  task: 'merge' | 'propose';
91
129
  /**
92
130
  * The ORIGIN-TRUST verdict CI passes to `intake <N>` via `--origin-trust`
93
131
  * (task `untrusted-origin-forces-build-propose`) so the emitted spec/task is
94
- * STAMPED with how it was born. Derived from the SAME `author_association` case
95
- * as the integration flags (it IS `authorTrusted` collapsed to the wire value),
96
- * so the stamp and the integration mode CANNOT desync. `intake.ts` writes it
97
- * verbatim onto the frontmatter — it never re-resolves trust (the `intake.ts`
98
- * ~L296 boundary: author-trust is CI's POLICY, passed IN, not resolved here).
132
+ * STAMPED with how it was born. This is now the SOLE thing author-trust drives
133
+ * on the wire: `intake`'s dispatch reads this stamp to (1) select the
134
+ * untrusted-side PLACEMENT default (`untrusted*LandIn`) and (2) force the later
135
+ * BUILD transition of an untrusted task to a code PR. Derived from the SAME
136
+ * `author_association` case the (gate-derived) modes above see, so it cannot
137
+ * desync. `intake.ts` writes it verbatim onto the frontmatter — it never
138
+ * re-resolves trust (the `intake.ts` ~L296 boundary: author-trust is CI's
139
+ * POLICY, passed IN, not resolved here).
99
140
  */
100
141
  originTrust: 'trusted' | 'untrusted';
101
142
  }
102
- /** The gate state CI composes with author-trust to derive the per-outcome flags. */
103
- export interface IntakeGateState {
104
- /**
105
- * `autoBuild` — whether an agent will AUTO-BUILD an undeclared task next. ON ⇒
106
- * a task needs a human PR checkpoint NOW (`--propose-task`); OFF ⇒ a human
107
- * must build it, so it may `--merge-task` (when the author is also trusted).
108
- */
109
- autoBuild: boolean;
110
- /**
111
- * `autoTask` — whether an agent will AUTO-TASK an undeclared spec next. ON ⇒ a
112
- * spec needs a human PR checkpoint NOW (`--propose-spec`); OFF ⇒ a human must
113
- * task it, so it may `--merge-spec`.
114
- */
115
- autoTask: boolean;
116
- }
117
143
  /**
118
- * DERIVE the per-outcome merge-vs-propose flags from the gate state COMPOSED with
119
- * author-trust — CI's merge-vs-propose POLICY (spec "merge-vs-propose POLICY" +
120
- * "Composed with AUTHOR-TRUST"; task Decision 1). This is the load-bearing pure
121
- * logic the workflow encodes at runtime (it reads `author_association` off the
122
- * event payload and sets the flags accordingly):
144
+ * DERIVE the per-outcome file-emit modes + the origin-trust stamp — CI's intake
145
+ * POLICY (ADR `untrusted-origin-carries-via-stamp-not-forced-staging`; spec
146
+ * `intake-integration-knob-and-specs-land-in-proposed-rename` US #1/#2). This is
147
+ * the load-bearing pure logic the workflow encodes at runtime (it reads the
148
+ * resolved `intakeIntegration ?? integration` via `dorfl config --json` for the
149
+ * MODE, and `author_association` off the event payload for the STAMP):
123
150
  *
124
- * - **SPEC** — gate-derived ONLY (author-trust does NOT bite): `--merge-spec` iff
125
- * `autoTask` is OFF (a human must task the spec before anything autonomous
126
- * acts on it — the human checkpoint stays AHEAD even for an untrusted author),
127
- * else `--propose-spec`.
128
- * - **TASK** — `--propose-task` iff (`autoBuild` ON) OR (author UNTRUSTED);
129
- * `--merge-task` ONLY iff (`autoBuild` OFF AND author TRUSTED). An untrusted
130
- * author can never auto-merge a task from a public-front-door issue.
151
+ * - **DOCUMENT mode (spec = task)** — the resolved `intakeIntegration` value, a
152
+ * SINGLE mode applied to BOTH the spec and task document: `merge` ⇒
153
+ * `--merge-spec` + `--merge-task`, `propose` ⇒ `--propose-spec` +
154
+ * `--propose-task`. DECOUPLED from the autonomy gates: `autoBuild`/`autoTask`
155
+ * no longer bite the document mode (they mean ONLY "may an agent act
156
+ * autonomously"). So a repo with `autoBuild: true`/`autoTask: true` +
157
+ * `intakeIntegration` (or `integration`) `merge` MERGES intake documents to
158
+ * `main` — previously impossible (the gates forced a document PR).
159
+ * - **ORIGIN-TRUST stamp** — the ONLY thing author-trust drives: `untrusted`
160
+ * iff the author is not trusted, else `trusted`. `intake`'s dispatch reads
161
+ * this stamp to select the untrusted-side PLACEMENT default and to force the
162
+ * later BUILD transition of an untrusted task to a code PR.
131
163
  *
132
- * So the only way to `--merge-task` is a TRUSTED author with `autoBuild` OFF —
133
- * and the fully-gateless "merge everything" path additionally needs `autoTask`
134
- * OFF; both gates off + a trusted author is the LOUD, NON-DEFAULT opt-in. The
135
- * conservative case (untrusted author, or any gate on) keeps a human in the loop.
164
+ * So author-trust changes ONLY (a) which folder the document lands in (via the
165
+ * stamp → `untrusted*LandIn`) and (b) the carried stamp — NEVER whether the
166
+ * DOCUMENT is a PR. Whether a document merges or is proposed is now purely the
167
+ * `intakeIntegration` operator config, independent of the gates AND of who filed
168
+ * the issue. The untrusted safety is the stamp (the build-time code PR) plus the
169
+ * placement default, not a forced document PR (the ADR's core move).
136
170
  */
137
171
  export declare function deriveIntakeFlags(options: {
138
- gate: IntakeGateState;
172
+ intakeIntegration: 'merge' | 'propose';
139
173
  authorTrusted: boolean;
140
174
  }): IntakeIntegrationFlags;
141
175
  /**
@@ -154,9 +188,13 @@ export declare function isAuthorTrusted(authorAssociation: string | undefined):
154
188
  * shape itself is config-independent.
155
189
  *
156
190
  * The per-outcome FLAGS are DERIVED AT RUNTIME by a `bash` step that mirrors
157
- * {@link deriveIntakeFlags}: it reads the gate env block + the event's
158
- * `author_association` and sets `--merge-spec`/`--propose-spec` +
159
- * `--merge-task`/`--propose-task` accordingly. The same rule that
191
+ * {@link deriveIntakeFlags}: it reads the resolved `intakeIntegration ??
192
+ * integration` via `dorfl config --json` to set the (config-derived) DOCUMENT
193
+ * mode `--merge-spec`/`--propose-spec` + `--merge-task`/`--propose-task` (a SINGLE
194
+ * mode applied to both), and the event's `author_association` to set ONLY the
195
+ * `--origin-trust` STAMP (which carries the placement + build-PR consequence). The
196
+ * autonomy gates (`autoBuild`/`autoTask`) are NOT read for the document mode (they
197
+ * mean only "may an agent act autonomously"). The same rule that
160
198
  * {@link deriveIntakeFlags} unit-tests is what the workflow executes — they cannot
161
199
  * desync because the test asserts the SHELL derivation matches the function.
162
200
  */
@@ -1 +1 @@
1
- {"version":3,"file":"intake-trigger-template.d.ts","sourceRoot":"","sources":["../src/intake-trigger-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAGH,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAG3D,6EAA6E;AAC7E,eAAO,MAAM,4BAA4B,WAAW,CAAC;AAErD,+DAA+D;AAC/D,eAAO,MAAM,+BAA+B,sJACmG,CAAC;AAEhJ,8EAA8E;AAC9E,eAAO,MAAM,4BAA4B,yBAAyB,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,QAAyB,CAAC;AAI3D;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,8CAI9B,CAAC;AAEX;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACtC,mEAAmE;IACnE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,mEAAmE;IACnE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B;;;;;;;;OAQG;IACH,WAAW,EAAE,SAAS,GAAG,WAAW,CAAC;CACrC;AAED,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC/B;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IAC1C,IAAI,EAAE,eAAe,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACvB,GAAG,sBAAsB,CAoBzB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,iB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