Skip to content

Commit 0e737e8

Browse files
Design framework-owned trigger admission and closure coordination
1 parent c22dd38 commit 0e737e8

7 files changed

Lines changed: 282 additions & 2 deletions

File tree

docs/content/specification/design.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ passes the required secrets. The full caller template is in
1717
[Repository setup](../get-started/repository-setup.md#3-add-the-caller-workflow), and the interface it targets is
1818
documented in [Workflow inputs](../reference/workflow-inputs.md).
1919

20+
### Trigger admission
21+
22+
The [workflow trigger design](workflow-triggers/design.md) owns admission before processing: a retained production queue,
23+
replaceable pull-request activity, and protected closure coordination. Concurrency belongs to the reusable entry point,
24+
not to caller templates or individual processing stages. The complete processing call retains its admission slot through
25+
the final enabled stage; closure stops obsolete activity before optional prerelease cleanup.
26+
2027
### Composed reusable workflows
2128

2229
The main workflow composes work across specialized reusable workflows, each owning a pipeline stage:
@@ -110,6 +117,7 @@ independently; the main workflow pins versions explicitly. The full list is in
110117
## Where this connects
111118

112119
- [Spec](spec.md) — the requirements this design delivers.
120+
- [Workflow triggers](workflow-triggers/index.md) — scheduling requirements and the event-routing design.
113121
- [Pipeline stages](../reference/pipeline-stages.md) — detailed breakdown of each job.
114122
- [Calling the workflow](../guides/calling-the-workflow.md) — how to invoke it.
115123
- [Settings](../reference/settings.md) — the settings file reference.

docs/content/specification/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ delivered. They are aimed at people maintaining Process-PSModule itself. Module
1313
| --- | --- |
1414
| [Spec](spec.md) | Requirements — an end-to-end pipeline guaranteeing build, testing, quality gates, documentation, and versioned publication. |
1515
| [Design](design.md) | How the spec is delivered — a single reusable workflow composing sub-workflows, and the settings contract. |
16+
| [Workflow triggers](workflow-triggers/index.md) | Production queuing, pull-request supersession, and optional closure cleanup, with a dedicated spec and design. |
1617
| [Principles and practices](principles-and-practices.md) | The versioning, branching, and colocation principles behind the design. |

docs/content/specification/spec.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Versions MUST follow [SemVer 2.0.0](https://semver.org/) (`vMAJOR.MINOR.PATCH` o
6161

6262
### NFR2 — Serialized releases {#nfr2}
6363

64-
Only one release process MUST run against a given version of the codebase at a time. Concurrent releases to the same ref MUST be prevented, so the tag, version counter, and published artifact remain consistent.
64+
Production pipelines MUST execute serially from planning through their final enabled stage, retaining pending work within the platform's maximum queue capacity. Pull-request updates MUST supersede obsolete activity without canceling production or closure cleanup. The [workflow trigger spec](workflow-triggers/spec.md) owns admission, ordering boundaries, and cleanup guarantees.
6565

6666
### NFR3 — Single production authority {#nfr3}
6767

@@ -73,7 +73,7 @@ Pipeline failures MUST be visible in the pull request and block merge. Contribut
7373

7474
### NFR5 — Reproducible and auditable {#nfr5}
7575

76-
The entire pipeline and its decisions MUST be stored in git, so the build is reproducible and auditable from the commit alone. No external configuration, API calls, or out-of-band decisions.
76+
Pipeline policy and configuration MUST be version-controlled. Each run MUST record its triggering revision and the authenticated event, release, and configuration metadata used for its decisions, so queuing or later metadata changes do not erase the decision trail.
7777

7878
## Success Criteria
7979

@@ -151,6 +151,7 @@ Scenario: Handle documentation generation failure
151151
## Where this connects
152152

153153
- [Design](design.md) — how these requirements are delivered.
154+
- [Workflow triggers](workflow-triggers/index.md) — production, pull-request, and closure scheduling.
154155
- [Pipeline stages](../reference/pipeline-stages.md) — the job-by-job breakdown of the workflow.
155156
- [Calling the workflow](../guides/calling-the-workflow.md) — how to invoke the workflow.
156157
- [Settings](../reference/settings.md) — the settings file and its options.

0 commit comments

Comments
 (0)