From ff86bedb0161650e97c99a76f726b3ba820afc9f Mon Sep 17 00:00:00 2001 From: Marius Storhaug <17722253+MariusStorhaug@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:42:42 +0100 Subject: [PATCH 1/3] Add the shared development working agreement Link the canonical agreement from human and agent discovery routes. Add a thin plugin skill and refresh generated navigation from existing page metadata. --- .github/plugin/marketplace.json | 2 +- .github/plugin/msx/plugin.json | 2 +- .../SKILL.md | 8 ++ README.md | 4 + .../Capabilities/agentic-development/index.md | 4 +- .../Capabilities/dependency-updates/index.md | 2 +- src/docs/Capabilities/index.md | 10 +- .../Capabilities/merge-automation/index.md | 4 +- .../powershell-on-github/index.md | 2 +- .../repository-governance/index.md | 2 +- src/docs/Coding-Standards/PowerShell/index.md | 2 +- src/docs/Coding-Standards/index.md | 2 +- src/docs/Initiatives/index.md | 2 +- src/docs/Ways-of-Working/Working-Agreement.md | 119 ++++++++++++++++++ src/docs/Ways-of-Working/index.md | 34 ++--- src/docs/index.md | 13 +- src/zensical.toml | 1 + 17 files changed, 175 insertions(+), 38 deletions(-) create mode 100644 .github/plugin/msx/skills/msx-ways-of-working-working-agreement/SKILL.md create mode 100644 src/docs/Ways-of-Working/Working-Agreement.md diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json index 4984d29..173f166 100644 --- a/.github/plugin/marketplace.json +++ b/.github/plugin/marketplace.json @@ -11,7 +11,7 @@ { "name": "msx", "description": "Routes reader-facing writing, coding, consumer upgrades, and work lifecycle tasks to current MSX standards.", - "version": "0.3.1", + "version": "0.3.2", "source": ".github/plugin/msx" } ] diff --git a/.github/plugin/msx/plugin.json b/.github/plugin/msx/plugin.json index c10da1c..496bd81 100644 --- a/.github/plugin/msx/plugin.json +++ b/.github/plugin/msx/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "msx", - "version": "0.3.1", + "version": "0.3.2", "description": "Routes reader-facing writing, coding, consumer upgrades, and work lifecycle tasks to current MSX standards.", "author": { "name": "MSXOrg", diff --git a/.github/plugin/msx/skills/msx-ways-of-working-working-agreement/SKILL.md b/.github/plugin/msx/skills/msx-ways-of-working-working-agreement/SKILL.md new file mode 100644 index 0000000..86fc06d --- /dev/null +++ b/.github/plugin/msx/skills/msx-ways-of-working-working-agreement/SKILL.md @@ -0,0 +1,8 @@ +--- +name: msx-ways-of-working-working-agreement +description: Apply the shared MSX working agreement when setting task scope, communication, exploration, validation, and completion expectations for humans and agents. +--- + +# Follow the MSX working agreement + +Read and follow the [MSX Working Agreement](https://github.com/MSXOrg/docs/blob/main/src/docs/Ways-of-Working/Working-Agreement.md). diff --git a/README.md b/README.md index 363ccfc..51afb10 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,10 @@ Start at [`src/docs/index.md`](src/docs/index.md) or the [published root](https: Readers and agents use the same structure to find the relevant document. +Start development work with the shared +[Working Agreement](src/docs/Ways-of-Working/Working-Agreement.md). +It defines task scope, communication, exploration, evidence, and completion for humans and agents. + ## Repository layout ```text diff --git a/src/docs/Capabilities/agentic-development/index.md b/src/docs/Capabilities/agentic-development/index.md index 66dc638..2ad8c56 100644 --- a/src/docs/Capabilities/agentic-development/index.md +++ b/src/docs/Capabilities/agentic-development/index.md @@ -17,11 +17,11 @@ A repository adopts the framework with a router and the client routes that reach | [Design](design.md) | How the agentic development framework is built — OKF documentation, thin repo pointers, and deterministic context resolution. | | [AGENTS.md Template](AGENTS.template.md) | The repository-level agent router template and the guidance for applying it. | | [MCP Servers](mcp-servers.md) | How one logical set of tool servers is defined once and declared by every runtime in its own format, so a documented procedure does not depend on which client runs it. | -| [Runtime Integration](runtime-integration.md) | How a runtime is wired into the framework — the entry file it reads, the lifecycle point where it verifies context freshness, the permissions it needs, and what a new runtime must supply to be supported. | +| [Runtime Integration](runtime-integration.md) | Requirements for a runtime's entry file, context freshness, tool declaration, identity, and permissions. | | [Plugin Distribution](plugin-distribution.md) | How recurring workflows are packaged as named intents that point to canonical documentation, and why a packaged shortcut never carries a copy of the procedure. | | [Plugin Marketplaces](design-plugin-marketplaces.md) | How shared and initiative-owned Agent Plugin marketplaces are named, laid out, versioned, and updated. | | [Agent Interaction](agent-interaction.md) | How humans and agents coordinate through issues, labels, and pull requests, and why intent and implementation are kept in separate artifacts. | -| [Advisory Agents](advisory-agents.md) | The pattern for automation that analyses work and publishes its conclusion as advice, without deciding, relabelling, or committing. | +| [Advisory Agents](advisory-agents.md) | The pattern for automation that analyzes work and publishes its conclusion as advice, without deciding, relabeling, or committing. | | [Conformance](conformance.md) | What a repository must provide to be conformant with the agentic development framework, what it may add, and the duplication checks that keep the router thin. | | [Agentic Development decisions](decisions/index.md) | Immutable records of one-way-door choices in the agentic development framework. | diff --git a/src/docs/Capabilities/dependency-updates/index.md b/src/docs/Capabilities/dependency-updates/index.md index d3bd524..31faeb7 100644 --- a/src/docs/Capabilities/dependency-updates/index.md +++ b/src/docs/Capabilities/dependency-updates/index.md @@ -16,6 +16,6 @@ release path. | Page | Description | | --- | --- | | [Spec](spec.md) | Requirements for dependency updates — pinned dependencies kept current and secure through reviewed, released update pull requests. | -| [Design](design.md) | How dependency updates are handled — automated update pull requests, coverage, cooldown, security updates, and review. | +| [Design](design.md) | Automated update pull requests use manifest coverage, cooldown, security updates, and repository review controls. | diff --git a/src/docs/Capabilities/index.md b/src/docs/Capabilities/index.md index 0bd4ba2..d410aa6 100644 --- a/src/docs/Capabilities/index.md +++ b/src/docs/Capabilities/index.md @@ -21,14 +21,14 @@ A framework uses the same spec-and-design structure and documentation location a | Section | Description | | --- | --- | | [Release Management](release-management/index.md) | Durable version resolution, publication, recovery, withdrawal, and consumer update policy for immutable releases. | -| [Repository Governance](repository-governance/index.md) | How every repository in an organization is classified, protected, and continuously reconciled against the controls its classification declares. | -| [Dependency Updates](dependency-updates/index.md) | How a repository's pinned dependencies are kept current and secure through automated update pull requests. | -| [Merge Automation](merge-automation/index.md) | How a pull request's required status checks become the machine-readable signal that drives automated approval and merge — green merges, red holds, nothing bypasses the gate. | +| [Repository Governance](repository-governance/index.md) | Repository classification, shared controls, and continuous comparison of declared and live configuration. | +| [Dependency Updates](dependency-updates/index.md) | Automated update pull requests keep pinned dependencies current and address known vulnerabilities. | +| [Merge Automation](merge-automation/index.md) | Required status checks control automated approval and merge without bypassing repository gates or review requirements. | | [Downstream Release Propagation](downstream-release-propagation/index.md) | How producer releases reach dependents through verified upgrade pull requests or evidenced no-upgrade outcomes. | | [Deployment](deployment/index.md) | How a change to managed resources is approved together with its effect and deployed exactly as approved — one spec, and one design for each combination of deploying a service provider from a CI/CD platform. | | [VS Code Extension Framework](vscode-extension-framework/index.md) | How a VS Code extension is built, tested, versioned, packaged, and published — one GitHub-native pipeline, opt-in from a template and a single settings file. | -| [PowerShell on GitHub](powershell-on-github/index.md) | How we make GitHub a first-class platform for PowerShell through reusable modules, actions, and capability gaps we close over time. | -| [Agentic Development](agentic-development/index.md) | The framework for org-scoped documentation that gives agents project-specific standards and behavior. | +| [PowerShell on GitHub](powershell-on-github/index.md) | Reusable modules, actions, and platform advocacy define the PowerShell development capability on GitHub. | +| [Agentic Development](agentic-development/index.md) | Organization-scoped documentation for project-specific agent standards and behavior. | diff --git a/src/docs/Capabilities/merge-automation/index.md b/src/docs/Capabilities/merge-automation/index.md index 7d51055..4976bd2 100644 --- a/src/docs/Capabilities/merge-automation/index.md +++ b/src/docs/Capabilities/merge-automation/index.md @@ -14,7 +14,7 @@ missing. Pipeline and ruleset gates remain binding. | Page | Description | | --- | --- | -| [Spec](spec.md) | Requirements for merge automation — required status checks as the signal, a ruleset that enforces them, and automation that merges on green and holds on red without bypassing the gate. | -| [Design](design.md) | How merge automation is built — named checks and commit statuses, a ruleset that requires them, and a GitHub App that approves and merges on green or holds on red. | +| [Spec](spec.md) | Required status checks and repository rulesets govern automated approval and merge without bypasses. | +| [Design](design.md) | Named checks, required-check rulesets, and a GitHub App implement automated approval and merge. | diff --git a/src/docs/Capabilities/powershell-on-github/index.md b/src/docs/Capabilities/powershell-on-github/index.md index 8869920..6690622 100644 --- a/src/docs/Capabilities/powershell-on-github/index.md +++ b/src/docs/Capabilities/powershell-on-github/index.md @@ -15,6 +15,6 @@ copies. | Page | Description | | --- | --- | | [Spec](spec.md) | Requirements and boundaries for PowerShell parity on GitHub using reusable modules, actions, and platform advocacy. | -| [Design](design.md) | Architecture and implementation model for making GitHub PowerShell-native through modules, actions, and gap-closing workflows. | +| [Design](design.md) | Reusable modules, actions, and the Process-PSModule framework implement PowerShell capability requirements on GitHub. | diff --git a/src/docs/Capabilities/repository-governance/index.md b/src/docs/Capabilities/repository-governance/index.md index 6ec56b0..f92fdb5 100644 --- a/src/docs/Capabilities/repository-governance/index.md +++ b/src/docs/Capabilities/repository-governance/index.md @@ -18,6 +18,6 @@ the controls its type requires. | --- | --- | | [Spec](spec.md) | Requirements for repository governance — classification-driven protection, a common baseline for every governed repository, explicit exemption, and continuous reconciliation. | | [Design](design.md) | How repository governance is built — a multi-select type property, organization rulesets selected by type, and continuous drift detection with graded reconciliation. | -| [Repository Types](design-types.md) | The repository type catalogue — the branch-model types, the layering types, the exemption type, and the rules by which they compose. | +| [Repository Types](design-types.md) | The repository type catalog, including branch models, layering types, exemption, and composition rules. | diff --git a/src/docs/Coding-Standards/PowerShell/index.md b/src/docs/Coding-Standards/PowerShell/index.md index c818e4f..74c9bb1 100644 --- a/src/docs/Coding-Standards/PowerShell/index.md +++ b/src/docs/Coding-Standards/PowerShell/index.md @@ -14,7 +14,7 @@ PowerShell-specific conventions extend the [language-agnostic baseline](../index | Page | Description | | --- | --- | | [Functions](Functions.md) | Advanced functions — CmdletBinding, typed and validated parameters, pipeline blocks, ShouldProcess, and required comment-based help. | -| [Classes](Classes.md) | When to reach for a PowerShell class, and how to structure its members, constructors, and documentation. | +| [Classes](Classes.md) | When to use a PowerShell class and how to structure its members, constructors, and documentation. | | [Scripts](Scripts.md) | Structure for standalone .ps1 scripts — requirements, parameters, help, and keeping the script thin. | | [PowerShell Testing](Testing.md) | Pester test naming and the Simple, Standard, and Advanced profiles for PowerShell modules. | | [Messaging](Messaging.md) | Write-Verbose for user-facing operational progress and normal troubleshooting; Write-Debug for developer-focused internals and deep diagnostics. | diff --git a/src/docs/Coding-Standards/index.md b/src/docs/Coding-Standards/index.md index cc93d3c..33135c3 100644 --- a/src/docs/Coding-Standards/index.md +++ b/src/docs/Coding-Standards/index.md @@ -53,7 +53,7 @@ The baseline pages apply to all code and come first. The per-language standards | [PowerShell](PowerShell/index.md) | Cross-platform PowerShell 7 — the conventions shared by every script, function, and class, with per-construct standards below. | | [Terraform](Terraform.md) | Stack layout, version pinning, state and secrets, and the fmt/validate/tflint toolchain. | | [TypeScript](TypeScript.md) | ES modules, strict-mode typing, pinned dependencies, and the Prettier/ESLint/Vitest toolchain for Node tooling and VS Code extensions. | -| [YAML](YAML.md) | One file extension, yamllint locally and in CI, narrowly scoped suppressions, and actionlint on top for workflow files. | +| [YAML](YAML.md) | One file extension, yamllint locally and in CI, narrowly scoped suppressions, and actionlint for workflow files. | diff --git a/src/docs/Initiatives/index.md b/src/docs/Initiatives/index.md index 4e2357b..6ba173f 100644 --- a/src/docs/Initiatives/index.md +++ b/src/docs/Initiatives/index.md @@ -20,7 +20,7 @@ Target-state roles and contracts are not evidence of deployed products or contro | [PSModule](PSModule.md) | The GitHub + PowerShell framework — reusable modules and the actions that ship them. | | [AzActions](AzActions.md) | Reusable building blocks for automating Azure on GitHub. | | [TFActions](TFActions.md) | Reusable building blocks for automating Terraform and infrastructure as code. | -| [VS Code Extensions](VS-Code-Extensions.md) | Editor tooling that brings the MSX way of working into VS Code. | +| [VS Code Extensions](VS-Code-Extensions.md) | Editor tools that apply the MSX ways of working in VS Code. | diff --git a/src/docs/Ways-of-Working/Working-Agreement.md b/src/docs/Ways-of-Working/Working-Agreement.md new file mode 100644 index 0000000..c2ab8c3 --- /dev/null +++ b/src/docs/Ways-of-Working/Working-Agreement.md @@ -0,0 +1,119 @@ +--- +title: Working Agreement +description: Shared task, communication, scope, and evidence rules for humans and agents. +--- + +# Working Agreement + +Humans and agents use the same development approach: understand the request, +use evidence, verify the result, and stop at the agreed outcome. +Clear scope and evidence keep the work easy, fast, and safe. + +## The source of truth + +This agreement owns shared task behavior across MSX projects. +[Workflow](Workflow.md) owns delivery stages. +[Engineering Taste](Engineering-Taste.md) guides implementation choices. +The [Coding Standards](../Coding-Standards/index.md) own technical requirements. +Agent routers and skills link to these sources instead of copying their rules. + +## Rules + +### Language and communication + +Follow [Natural Language](../Coding-Standards/Natural-Language.md) for +ASD-STE100 writing practices and en-US. +Use the [Technical Writing Guide](../Coding-Standards/Writing-Guide.md) when +you write or review text. + +Lead with the outcome. Use concise, direct, affirmative statements. +Report material actions, changes, findings, decisions, blockers, and required input. +State assumptions and evidence limits when they affect correctness, risk, or the next step. +Restate the request or seek confirmation only when clarification or approval is necessary. +Include links when they help the reader verify or use the result. + +### Focus and execution + +Match the work to the request: answer, explore, or implement. +Keep planning, task records, and tools proportional to that work. +Use evidence for factual claims and decisions. Identify assumptions as assumptions. +Apply [Engineering Taste](Engineering-Taste.md) to choose the simplest sufficient +solution and reuse existing patterns and tools. + +Keep changes within the agreed outcome and its required supporting work. +Fix regressions caused by the change. Preserve unrelated code, behavior, and user work. +Add dependencies, abstractions, or documentation only when the task requires them. + +Work in small increments. Verify each working state before you expand it. +Use the smallest sufficient checks for the requested behavior, following +[Testing](../Coding-Standards/Testing.md). +Expand validation when the affected behavior or evidence requires it. +Keep task status and blockers current. + +### Exploration + +Start each experiment with a clear question and observable success or failure criteria. +Keep experiments small and reversible. +Continue while each attempt adds useful evidence. +If progress stops, state what was learned and what is needed to continue. + +An answer or temporary experiment does not require a pull request or production hardening. +Start the [Contribution Workflow](Contribution-Workflow.md) when the agreed +outcome becomes a lasting repository change. +Report what worked, what failed, and the limits of the evidence. +Preserve useful findings before cleanup. +Remove only temporary files, processes, and resources created for the experiment. +Preserve existing user work and resources. + +### Follow-up work + +Report material unrelated defects, risks, and improvements without fixing them. +Collect nonblocking findings for the completion report. +Interrupt the task only for a blocker, material risk, or required decision. +Get approval before adding unrelated work to the scope. + +Propose separate issues for actionable findings. +Create them only when issue creation is authorized. +Search for duplicates first. Include evidence, impact, and the expected outcome. +When authorization is absent, retain the proposal and report that it remains unfiled. +A required fix or unmet gate remains a blocker; a follow-up proposal does not waive it. + +### Repository contributions + +For lasting changes, follow the [Contribution Workflow](Contribution-Workflow.md). +Open a draft pull request early and push focused commits at meaningful checkpoints. +Keep the pull request in draft until it meets the full +[review-readiness gate](Definition-of-Ready-and-Done.md#definition-of-ready-for-review). +Then mark it ready for review. + +When the runtime provides the Copilot app's **Agent merge** feature, enable it +after readiness with the required authorization. +Agent merge can address review feedback, failing CI, and conflicts. +It is separate from **GitHub auto-merge**, which integrates a pull request after +the configured requirements pass. +Use GitHub auto-merge through the +[merge procedure](Branching-and-Merging.md#required-checks-and-auto-merge) +only when merging is authorized. +Neither feature nor readiness grants approval or bypasses a required gate. + +### Completion + +Complete work only after the requested outcome is verified and the deliverables are saved. +State the outcome, meaningful changes, validation results, and material follow-up findings. +Identify incomplete or unverified work. +Stop when the requested outcome is met. Defer optional improvements. + +## Enforcement + +Self-review and independent review compare the task, diff, and evidence with this agreement. +Use existing validation for affected artifacts. +Verify related documentation and instruction routes through the shared +[completion evidence gate](Definition-of-Ready-and-Done.md#documentation-and-design-evidence). +Record justified no-change evidence when an existing artifact is already correct. + +## Exceptions + +Technical, security, and approval contracts can require additional evidence or a deliberate decision. +Follow the applicable contract. +Report a conflict with authorized scope instead of weakening a gate or expanding the task without approval. +This agreement grants no tool permissions or authority to publish, merge, or discard work. diff --git a/src/docs/Ways-of-Working/index.md b/src/docs/Ways-of-Working/index.md index ea2e424..e0dcca4 100644 --- a/src/docs/Ways-of-Working/index.md +++ b/src/docs/Ways-of-Working/index.md @@ -9,40 +9,44 @@ Shared principles, processes, and conventions apply across the MSX ecosystem. Use them to plan work, open issues, write commit messages, and review pull requests. +Start with the [Working Agreement](Working-Agreement.md) for shared task behavior. +Then use the process and standards relevant to the request. + ## Contents | Page | Description | | --- | --- | +| [Working Agreement](Working-Agreement.md) | Shared task, communication, scope, and evidence rules for humans and agents. | | [Workflow](Workflow.md) | The canonical process from idea to delivery, including how to resolve and enter each workflow stage. | | [Workflow Stages](Workflow-Stages/index.md) | Procedures for each stage of the canonical Workflow, reached through indexes or direct task-language shortcuts. | -| [Contribution Workflow](Contribution-Workflow.md) | How a change travels from a branch to a review-ready pull request — draft first, the Copilot review loop, then people. | +| [Contribution Workflow](Contribution-Workflow.md) | The process from a topic branch to a review-ready pull request, with automated review before human review. | | [Consumer Upgrades](Consumer-Upgrades.md) | Upgrade a consumer from its actual upstream baseline through a fixed target using complete release evidence and a compatible immutable template. | -| [Fleet Orchestration](Fleet-Orchestration.md) | How one change is rolled out across many repositories through Task or Bug delivery leaves tracked entirely on GitHub. | -| [Comparative Review Orchestration](Comparative-Review-Orchestration.md) | A repeatable playbook for reviewing a target against reference sources — establishing the frame, building the evidence model before judging, and converting findings into small scoped issues. | -| [Documentation Model](Documentation-Model.md) | How every capability is documented — a spec for the why and a design for the how, colocated, concise, and kept evergreen for humans and agents alike. | -| [Spec-Driven Development](Spec-Driven-Development.md) | The specification is the source of truth — the spec (why and what), its design (how), and how a change moves from need to shipped. | +| [Fleet Orchestration](Fleet-Orchestration.md) | A campaign applies one change across repositories through Task or Bug delivery leaves tracked on GitHub. | +| [Comparative Review Orchestration](Comparative-Review-Orchestration.md) | Comparative reviews use source evidence to separate required changes from accepted differences and file focused issues. | +| [Documentation Model](Documentation-Model.md) | Specs, designs, and supporting artifacts describe each capability for humans and agents. | +| [Spec-Driven Development](Spec-Driven-Development.md) | Requirements, artifact roles, and the path from a need to a delivered capability. | | [Spec-Driven Development Templates](Spec-Driven-Development-Templates.md) | A copyable skeleton for every spec-driven artifact — specification, feature addendum, design, implementation doc, guide, reference, research, decision record, standard, orchestration playbook, and decisions register. | -| [Evolutionary Development](Evolutionary-Development.md) | Grow software as bets under selection — variation, feedback, and survival of the fittest, run as one tight loop. | -| [Git Worktrees](Git-Worktrees.md) | How repository-delivery work is implemented locally — a bare-clone and worktree layout for working on several things at once. | -| [Session Interactions](Session-Interactions.md) | Recognised phrases that steer a working session deterministically, why each is defined once as a standard rather than embedded in tool-specific files, and what an interaction may not do. | +| [Evolutionary Development](Evolutionary-Development.md) | Develop software through small experiments, explicit criteria, and feedback. | +| [Git Worktrees](Git-Worktrees.md) | Local repository-delivery workspaces use bare clones and an independent worktree for each Task or Bug. | +| [Session Interactions](Session-Interactions.md) | Recognized phrases that run documented session procedures, independent of the runtime, without changing the operator's authority. | | [Organization Standard](Organization-Standard.md) | What every initiative organization must define centrally so humans and agents share the same expectations. | | [Repository Standard](Repository-Standard.md) | The baseline files and behaviors every repository must expose so it is understandable, secure, and maintainable. | -| [Repository Type Property](Repository-Type-Property.md) | How a multi-select "Type" custom property classifies every repository in an initiative organization and drives which org-wide controls apply to it. | -| [Automation Labels](Automation-Labels.md) | Why every label that drives automation belongs to exactly one owning function, how namespacing keeps label dimensions disjoint, and why automation ignores labels it does not own. | +| [Repository Type Property](Repository-Type-Property.md) | The multi-select Type property that selects organization-wide repository controls. | +| [Automation Labels](Automation-Labels.md) | Ownership and namespace rules for labels that control repository automation. | | [Principles](Principles/index.md) | The foundational beliefs and product mindset behind every decision. | -| [Engineering Taste](Engineering-Taste.md) | The judgment that takes over when the standards run out. | -| [Goal-Setting Framework](Goal-Setting.md) | Mission, OKRs, and Initiatives — the strategy above repository Epics. | -| [Definition of Ready and Done](Definition-of-Ready-and-Done.md) | The three gates that bracket every piece of work. | +| [Engineering Taste](Engineering-Taste.md) | Engineering judgment for decisions that the standards do not resolve. | +| [Goal-Setting Framework](Goal-Setting.md) | Mission, OKRs, and Initiatives define strategy above repository Epics. | +| [Definition of Ready and Done](Definition-of-Ready-and-Done.md) | Readiness, review, and completion gates for issues and pull requests. | | [Issues](Issues/index.md) | How issues are formatted and organized across the MSX ecosystem. | | [PR Format](PR-Format.md) | Write pull requests for consumers and maintainers. Give upgrade steps and release decisions when they apply. | | [Commit Conventions](Commit-Conventions.md) | How commit messages are written. | | [Branching and Merging](Branching-and-Merging.md) | Delivery-leaf topic branches, pull-request-only integration, and merge models. | | [Review Etiquette](Review-Etiquette.md) | Tone, scope, severity, and how to disagree well. | -| [Code Ownership](Code-Ownership.md) | The three-layer model behind CODEOWNERS — permission, ownership, and enforcement — how the file is resolved and where it is read from, and why ownership without enforcement is decorative. | +| [Code Ownership](Code-Ownership.md) | Permission, review assignment, and merge enforcement for repository code owners. | | [Repository Segmentation](Repository-Segmentation.md) | What belongs in a repository, and when to split or combine. | -| [README-Driven Context](Readme-Driven-Context.md) | Why the README is the front door and the source of truth. | +| [README-Driven Context](Readme-Driven-Context.md) | The README defines repository context for humans and agents. | | [Continuous Practices](Continuous-Practices.md) | The Continuous X family, Continuous AI, and the DevOps Dojo pillars. | | [Continuous Delivery and Release](Continuous-Delivery-And-Release.md) | The distinction between integration, delivery, deployment, and release to users — and the four design decisions that follow from it, from build-once promotion to roll-forward recovery. | | [Observability](Observability.md) | Why every failure must be registered somewhere queryable, retained long enough for trends to be visible, and written as data rather than prose so an agent can triage it. | diff --git a/src/docs/index.md b/src/docs/index.md index aa48f02..42da5aa 100644 --- a/src/docs/index.md +++ b/src/docs/index.md @@ -53,11 +53,11 @@ Agents use the same route to find the relevant document. | Section | Description | | --- | --- | | [Vision](Vision/index.md) | The mission and the philosophy of easy, fast, and safe. | -| [Initiatives](Initiatives/index.md) | The products that make the vision real — PSModule, AzActions, TFActions, and the tools built along the way. | -| [Ways of Working](Ways-of-Working/index.md) | How work happens across the ecosystem — for humans and agents alike. | -| [Coding Standards](Coding-Standards/index.md) | The shared baseline every repository inherits, and the per-language standards that build on it. | -| [Capabilities](Capabilities/index.md) | The capabilities the ecosystem builds, each documented by a spec (why and what) and a design (how and what). | -| [Dictionary](Dictionary/index.md) | Shared vocabulary for the MSX ecosystem — the terms a reader or agent meets across these docs. | +| [Initiatives](Initiatives/index.md) | Products that apply the vision: PSModule, AzActions, TFActions, and related tools. | +| [Ways of Working](Ways-of-Working/index.md) | Shared principles, processes, and conventions for MSX contributors and agents. | +| [Coding Standards](Coding-Standards/index.md) | Shared coding rules and language-specific standards for every MSX repository. | +| [Capabilities](Capabilities/index.md) | Each MSX capability has a spec for its requirements and a design for its implementation. | +| [Dictionary](Dictionary/index.md) | Shared terms and definitions for the MSX ecosystem. | @@ -73,4 +73,5 @@ The same pages serve people and agents. People read the documentation to underst Agents read it as context before they act. There is no separate "agent manual". Each page describes the supported contract and changes in place as that contract evolves. -Start with the [Vision](Vision/index.md), or go directly to the [Ways of Working](Ways-of-Working/index.md). +Start development work with the [Working Agreement](Ways-of-Working/Working-Agreement.md). +Use the [Vision](Vision/index.md) for purpose and the [Ways of Working](Ways-of-Working/index.md) for the applicable process. diff --git a/src/zensical.toml b/src/zensical.toml index c96dff7..bf0a8dc 100644 --- a/src/zensical.toml +++ b/src/zensical.toml @@ -25,6 +25,7 @@ nav = [ ]}, {"Ways of Working" = [ "Ways-of-Working/index.md", + {"Working Agreement" = "Ways-of-Working/Working-Agreement.md"}, {"Workflow" = [ "Ways-of-Working/Workflow.md", "Ways-of-Working/Workflow-Stages/index.md", From 9d768804a48f992e34dab3a3bec62fd0c0199472 Mon Sep 17 00:00:00 2001 From: Marius Storhaug <17722253+MariusStorhaug@users.noreply.github.com> Date: Wed, 2 Dec 2026 13:01:59 +0100 Subject: [PATCH 2/3] Align development guidance with the working agreement Keep early drafts, scoped follow-ups, required gates, and thin agent routes consistent. Reconcile context-first guidance with evidence-based diagnosis while preserving already-correct artifacts. --- .github/CONTRIBUTING.md | 10 ++++-- .../agentic-development/conformance.md | 2 +- .../agentic-development/design.md | 2 -- .../Ways-of-Working/Contribution-Workflow.md | 33 ++++++++++--------- .../Evolutionary-Development.md | 8 ++--- .../Ways-of-Working/Organization-Standard.md | 3 +- .../Principles/AI-First-Development.md | 10 +++--- src/docs/Ways-of-Working/Review-Etiquette.md | 10 +++--- .../Ways-of-Working/Session-Interactions.md | 9 +++-- .../Workflow-Stages/Implement.md | 8 ++--- .../Ways-of-Working/Workflow-Stages/Review.md | 4 +-- 11 files changed, 55 insertions(+), 44 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index e284d50..4fb17ca 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -7,7 +7,9 @@ title and description according to [PR Format](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/). Fix a small problem when it is directly in scope. -Register a larger or unrelated problem as an issue in the repository that owns it. +Use the [Working Agreement](../src/docs/Ways-of-Working/Working-Agreement.md) +for shared task behavior and follow-up authorization. +Propose unrelated work without adding it to the current change. ## Making a change @@ -16,13 +18,15 @@ Register a larger or unrelated problem as an issue in the repository that owns i [Branching and Merging](https://msxorg.github.io/docs/Ways-of-Working/Branching-and-Merging/) defines. 2. Edit the relevant pages under `src/docs/`. Follow the authoring conventions below. + Commit and push the first coherent checkpoint, then open an early draft pull request. + Continue the change and its validation in that draft. 3. If you add or rename a page, regenerate the indexes: ```pwsh pwsh .github/scripts/Update-DocumentationIndex.ps1 ``` -4. Validate links before you open a pull request. +4. Validate links at relevant checkpoints and before requesting review. The first script resolves relative links and anchors from the checkout. The second resolves links into other MSX repositories over the network: @@ -47,7 +51,7 @@ Register a larger or unrelated problem as an issue in the repository that owns i 6. If you need to inspect the rendered result, preview the site. See [Building and previewing locally](#building-and-previewing-locally). -7. Open the pull request as a draft and follow the +7. Complete the automated review loop and readiness gate in the [Contribution Workflow](https://msxorg.github.io/docs/Ways-of-Working/Contribution-Workflow/). ## Pull request format diff --git a/src/docs/Capabilities/agentic-development/conformance.md b/src/docs/Capabilities/agentic-development/conformance.md index 1ee89ad..12fbca4 100644 --- a/src/docs/Capabilities/agentic-development/conformance.md +++ b/src/docs/Capabilities/agentic-development/conformance.md @@ -23,7 +23,7 @@ A conformant repository MUST provide all of the following. | **Client routes** | Every supported runtime's expected instruction path exists and resolves to the router, carrying no content of its own ([client behavior](design.md#client-behavior)) | | **Canonical coordinates** | The router names the organization's canonical documentation location, so context is reachable without prior knowledge | | **Freshness** | Canonical context is synchronized at the start of every session, in every runtime ([context freshness](design.md#context-freshness)) | -| **Precedence** | The router states that local files never override a standard | +| **Precedence** | Repository guidance respects the [canonical conflict precedence](design.md#pointer-files); the router reaches that guidance without copying it | Each baseline item supports context discovery. The baseline does not assess the quality of the repository's documentation. diff --git a/src/docs/Capabilities/agentic-development/design.md b/src/docs/Capabilities/agentic-development/design.md index 6311cb3..88693a6 100644 --- a/src/docs/Capabilities/agentic-development/design.md +++ b/src/docs/Capabilities/agentic-development/design.md @@ -152,8 +152,6 @@ Read in this order: Clone each linked repository locally, keep its configuration local to that clone, and update it before reading it. - -Read nearest first. A local file never overrides a standard. ``` A router lists only destinations that exist. The example does not require that layout. When no local guide is needed, replace that entry with a link to the inherited organization default. If the repository has no documentation, omit that entry. A standards repository omits the duplicate entry when its local and organization documentation use the same tree. The router uses each path or source link literally. diff --git a/src/docs/Ways-of-Working/Contribution-Workflow.md b/src/docs/Ways-of-Working/Contribution-Workflow.md index 060fff5..e2c1f15 100644 --- a/src/docs/Ways-of-Working/Contribution-Workflow.md +++ b/src/docs/Ways-of-Working/Contribution-Workflow.md @@ -9,7 +9,8 @@ This workflow takes a change from a topic branch to a review-ready pull request. The author completes Copilot review on a **draft** before requesting human review. This procedure applies to a repository-delivery Task or Bug. -It follows [Issue Lifecycle](Issues/Process/Lifecycle.md), [PR Format](PR-Format.md), +Shared task scope, behavior, and authority follow the [Working Agreement](Working-Agreement.md). +The procedure follows [Issue Lifecycle](Issues/Process/Lifecycle.md), [PR Format](PR-Format.md), [Branching and Merging](Branching-and-Merging.md), and [Review Etiquette](Review-Etiquette.md). Epic and PBI aggregates remain in planning and coordination; they do not enter this flow. @@ -17,24 +18,25 @@ Epic and PBI aggregates remain in planning and coordination; they do not enter t ```mermaid flowchart TD - A[Branch and implement] --> B[Open PR as draft] - B --> C[Request Copilot review] + A[Branch and initial checkpoint] --> B[Open early draft PR] + B --> C[Implement, verify and request Copilot review] C --> D{New comments?} D -- in scope --> E[Fix in this PR] - D -- out of scope --> F[File an issue] + D -- out of scope --> F[Route follow-up] E --> C F --> C D -- none --> G[Mark ready for review] - G --> AM[Enable auto-merge] + G --> AM[Enable authorized GitHub auto-merge] AM --> H[Human review] H --> M[Auto-merge lands it on approval + green checks] ``` -1. **Branch and implement.** Implement one ready, unblocked Task or Bug on a +1. **Branch and create an initial checkpoint.** Start one ready, unblocked Task or Bug on a `/-` branch. Keep per-change implementation detail in that delivery issue and the pull request, not in the spec, design, or parent aggregate. -2. **Open the pull request as a draft.** By default, an AI agent drafts and +2. **Open the pull request early as a draft.** Push the initial coherent checkpoint. + Continue implementation and verification in the draft. By default, an AI agent drafts and updates the title and description from the evidence required by [PR Format](PR-Format.md). A person can write or update them manually when needed and follows the same format. Use a draft to run CI and iterate before @@ -48,8 +50,8 @@ flowchart TD decision block and `release:*` labels with its effective configuration. If it does not, omit both. Then confirm the [Definition of Ready for Review](Definition-of-Ready-and-Done.md#definition-of-ready-for-review). -5. **Enable auto-merge** so the change merges automatically when human review - approves it and all required checks pass. Human reviewers then assess the change. +5. **Enable GitHub auto-merge when merging is authorized** so the change merges + after human approval and all required checks pass. Human reviewers then assess the change. ## Why draft first @@ -87,21 +89,22 @@ Copilot reviews the complete diff again each round, so a genuine false positive Do not change correct code to silence it. Dismiss it with a reason and treat the loop as converged on substance. -## Triage: fix in scope, file an issue for the rest +## Triage: fix in scope, propose the rest For each piece of feedback, decide: - **In scope** — it concerns the change under review. Address it in this pull request and push; the next round re-checks it. - **Out of scope** — it identifies a pre-existing gap or an adjacent improvement. - Route a follow-up through the [Issue Hierarchy](Issues/Types/Hierarchy.md) and - reference it; do not grow the pull request to cover it. + Apply the [shared follow-up rule](Working-Agreement.md#follow-up-work). + Use the [Issue Hierarchy](Issues/Types/Hierarchy.md) when issue creation is authorized. + Link the issue or report the unfiled proposal; do not grow the pull request to cover it. - **Not actionable** — a false positive, or a matter of taste you disagree with. Reply with the reason and resolve the thread; a documented dismissal counts as handled ([Review Etiquette](Review-Etiquette.md)). -Separate follow-up issues keep the pull request within its delivery scope and -retain a record of each gap. +Follow-up records retain each finding without expanding the delivery scope. +They do not waive an unmet acceptance criterion or a required gate. ## Marking ready @@ -117,7 +120,7 @@ Readiness depends on the gate, not on who verifies it. ## Enable auto-merge -After the pull request is ready, enable auto-merge (squash). +After the pull request is ready, enable GitHub auto-merge (squash) when merging is authorized. Auto-merge waits for human approval and every required branch-protection condition before it merges the change. These conditions include required checks, required approvals, and any other ruleset requirement. There is no need to wait and manually select merge. See diff --git a/src/docs/Ways-of-Working/Evolutionary-Development.md b/src/docs/Ways-of-Working/Evolutionary-Development.md index efaf924..14e7122 100644 --- a/src/docs/Ways-of-Working/Evolutionary-Development.md +++ b/src/docs/Ways-of-Working/Evolutionary-Development.md @@ -114,18 +114,18 @@ Each cycle requires correct, complete context. The **context bundle** contains: - The constraints, non-goals, and dependencies that bound the solution. - Pointers to the code, standards, and prior decisions that already apply — read in layers, local context before central standards ([Agentic Development](../Capabilities/agentic-development/index.md)). -This makes [context-first development](Principles/AI-First-Development.md#context-first-development) operational. Create context in specs, issues, and ADRs before the cycle. Incomplete context can lead to incorrect results and wasted work. Update a standard or instruction when evidence shows it is wrong or reveals a better approach (see [The instructions evolve too](#the-instructions-evolve-too)). +This makes [context-first development](Principles/AI-First-Development.md#context-first-development) operational. Create context in specs, issues, and ADRs before the cycle. Incomplete context can lead to incorrect results and wasted work. Propose a correction when evidence shows that a standard or instruction is wrong or reveals a better approach (see [The instructions evolve too](#the-instructions-evolve-too)). ## The instructions evolve too Durable, reusable instructions follow the same engineering practices as code. This includes standards, guides, stored prompts, skills, and agent files. Source control, testing and verification, pull requests, review, and acceptance apply through the [Contribution Workflow](Contribution-Workflow.md). One-off chat requests are outside these source-control and pull-request requirements. > [!IMPORTANT] -> Self-directed update is a standing directive, not an optional courtesy. A person or agent that learns something or finds an incorrect instruction starts a proposed correction immediately. Do not leave the correction for someone else. Starting a correction does not bypass verification, review, or acceptance. The next cycle uses the accepted correction. A cycle that cannot improve its instructions cannot evolve. +> Record evidence of an incorrect instruction or a useful improvement promptly. Apply the [Working Agreement's follow-up rule](Working-Agreement.md#follow-up-work) to determine whether the correction belongs in the current task or needs separate authorization. Verification, review, and acceptance remain required. The next cycle uses the accepted correction. -These instructions provide context for each cycle (see [How the loop is driven](#how-the-loop-is-driven)). A weak instruction can misdirect every reader. Correct instructions when they are wrong and refine them when evidence identifies a better approach. This maintenance is part of the work. It applies [self-improving agents](Principles/AI-First-Development.md#self-improving-agents) to the instructions themselves. +These instructions provide context for each cycle (see [How the loop is driven](#how-the-loop-is-driven)). A weak instruction can misdirect every reader. Correct instructions when they are wrong and refine them when evidence identifies a better approach. Follow the agreed scope and authorization for each correction. This applies [self-improving agents](Principles/AI-First-Development.md#self-improving-agents) to the instructions themselves. -When a cycle exposes an incorrect instruction or a better way of working, propose the correction as its own small change. Its pull request must be reviewed, approved, and merged through the same [decision point](Principles/AI-First-Development.md#decision-before-change). Only then does the correction become accepted guidance. Relevant signals include: +Keep each authorized correction small. Its pull request must be reviewed, approved, and merged through the same [decision point](Principles/AI-First-Development.md#decision-before-change). Only then does the correction become accepted guidance. Relevant signals include: - An agent needs the same clarification twice, or a `[NEEDS CLARIFICATION]` marker keeps recurring. - A review comment teaches a rule that is not written down yet. diff --git a/src/docs/Ways-of-Working/Organization-Standard.md b/src/docs/Ways-of-Working/Organization-Standard.md index db72526..ea87f55 100644 --- a/src/docs/Ways-of-Working/Organization-Standard.md +++ b/src/docs/Ways-of-Working/Organization-Standard.md @@ -176,7 +176,8 @@ Do not change a linter config to make a warning disappear unless the written sta Humans and agents must read the same standards. Do not create a separate hidden agent process that contradicts the public docs. -Agent files are allowed when they point to, summarize, or operationalize the central standard. They must not become a second source of truth. +Agent files point to central standards instead of summarizing or copying them. +Runtime-specific configuration supplies mechanics, not a second process. The repository-level entry point is `AGENTS.md`, as defined by [Agentic Development](../Capabilities/agentic-development/design.md#client-behavior). A repository also carries a route file for each client that reads a different filename. A route contains a pointer to the router and, at most, genuinely runtime-specific configuration. It never duplicates a standard or workflow. The same limit applies to organization-level instruction settings from agent vendors. Use them for organization-wide preferences, never as a second copy of a standard. diff --git a/src/docs/Ways-of-Working/Principles/AI-First-Development.md b/src/docs/Ways-of-Working/Principles/AI-First-Development.md index d21b640..b09aa47 100644 --- a/src/docs/Ways-of-Working/Principles/AI-First-Development.md +++ b/src/docs/Ways-of-Working/Principles/AI-First-Development.md @@ -57,17 +57,17 @@ Agents need feedback and a way to process it. Workflow stages evolve as lessons Every change starts with context before code: ```text -Intention of change → Update documentation → Update README → Update tests → Update code +Intention of change → Check affected context → Update contracts and tests when needed → Update code ``` -The README and the documentation are the **specification**. Tests validate the intended interface. A change needs documented context before implementation so people and agents know the contract. +The README and the documentation are the **specification**. Tests validate the intended interface. Read the affected context before implementation so people and agents know the contract. Update it before changing the contract. This means: - A new feature starts as a documented intent (issue, README update, or docs change) before any code is written. -- Tests are written or updated to assert the interface the documentation describes — before the implementation exists. -- A refactor updates the relevant documentation **first**, then the tests, then the code follows to match. -- If the docs and the code disagree, the docs are wrong — fix the docs, fix the tests, then fix the code to match. +- Write or update tests before changing behavior when they do not already express the intended contract. +- A refactor preserves documented behavior. Update documentation and tests only where they are affected. +- When documentation, tests, and code disagree, establish the [intended contract](Engineering-Practices.md#intent-is-the-source-of-truth). Correct the mismatched artifacts and preserve those that are already correct. Agents use documented context to guide changes. Correct, complete context gives them the intended contract before they build. diff --git a/src/docs/Ways-of-Working/Review-Etiquette.md b/src/docs/Ways-of-Working/Review-Etiquette.md index 37d04b1..5a1af45 100644 --- a/src/docs/Ways-of-Working/Review-Etiquette.md +++ b/src/docs/Ways-of-Working/Review-Etiquette.md @@ -23,7 +23,7 @@ Consider each of the following dimensions when reviewing a PR: ### Stay in scope -The PR delivers one Task or Bug. Suggestions that go beyond that delivery leaf are **new issues**, not blocking review comments. File the follow-up and link it from the comment. +The PR delivers one Task or Bug. Suggestions beyond that delivery leaf are follow-up proposals, not reasons to expand the PR. Apply the [Working Agreement's follow-up rule](Working-Agreement.md#follow-up-work). Link an existing or authorized new issue; otherwise report the unfiled proposal. An unmet acceptance criterion or required gate remains blocking. ### One concern per comment @@ -68,17 +68,17 @@ Read both carefully; do not dismiss comments in bulk. ### Reply before resolving Every resolved thread has a reply that explains the action. -State what was fixed, why a finding was dismissed, or which issue owns the follow-up. +State what was fixed, why a finding was dismissed, which issue owns the follow-up, or why a proposal remains unfiled. Do not resolve threads in bulk without replies. ### Forward progress over discussion -A valid concern that needs deep design discussion becomes a follow-up issue and a resolved thread, not an open thread that blocks the PR. Open threads are blockers — minimize them. +Move an independent, nonblocking design question to the [follow-up route](#stay-in-scope). A required decision or unmet gate stays open until it is resolved. ### Don't expand the PR An out-of-scope suggestion remains out of scope. -Reply, file the follow-up issue, link it, and resolve the thread. +Reply with the follow-up issue or the unfiled proposal, then resolve the nonblocking thread. Do not include the suggestion only to satisfy the reviewer. ### Propagate fixes @@ -111,7 +111,7 @@ When the Reviewer and Responder genuinely disagree: 1. Re-state the disagreement plainly in the thread. 2. Reference the relevant doc, decision, or principle. -3. If the disagreement remains, escalate to a human maintainer or file a discussion issue. +3. If the disagreement remains, escalate to a human maintainer or propose a discussion issue. Do not repeat the same discussion in the thread. ### Converge, don't diverge diff --git a/src/docs/Ways-of-Working/Session-Interactions.md b/src/docs/Ways-of-Working/Session-Interactions.md index 405cd18..e32a07b 100644 --- a/src/docs/Ways-of-Working/Session-Interactions.md +++ b/src/docs/Ways-of-Working/Session-Interactions.md @@ -9,6 +9,11 @@ Session interactions provide repeatable procedures to record a tangent, prepare An **interaction** is a recognized phrase bound to one documented procedure. That procedure defines the result for every runtime and operator, whether human or agent. +An explicit interaction request selects its documented operation within the authorized scope. +It grants no tool permissions and removes no required confirmation. +Apply the [shared follow-up rule](Working-Agreement.md#follow-up-work) before creating issues. +If a required write is not authorized, preserve a proposal and report the incomplete operation. + ## An interaction is a phrase bound to a procedure An interaction MUST be a short natural phrase, and it MUST resolve to a procedure defined in @@ -60,8 +65,8 @@ Ending the session can lose that context. Wrap-up is a **scan**, not a summary. It records each untracked item in its owning artifact; a summary alone does not meet that requirement. -If a problem is too large to fix in scope, create an issue in its owning repository. -Do not retain it only in the session. +If a problem is too large to fix in scope, use the authorized follow-up route above. +A required durable record remains incomplete until it is saved. ### Park diff --git a/src/docs/Ways-of-Working/Workflow-Stages/Implement.md b/src/docs/Ways-of-Working/Workflow-Stages/Implement.md index 53add56..1cc8cc3 100644 --- a/src/docs/Ways-of-Working/Workflow-Stages/Implement.md +++ b/src/docs/Ways-of-Working/Workflow-Stages/Implement.md @@ -48,7 +48,7 @@ Verify the leaf's relevant design and documentation against the delivered consum ### 4. Self-review and respond 1. Run the [Copilot review loop](../Contribution-Workflow.md#the-copilot-review-loop) until it reports a clean round. -2. Triage each thread and CI failure per [Review Etiquette](../Review-Etiquette.md): fix in scope and propagate the same fix elsewhere; file a follow-up for out-of-scope; reply, then resolve. +2. Triage each thread and CI failure per [Review Etiquette](../Review-Etiquette.md): fix in scope and propagate the same fix elsewhere; use the [shared follow-up rule](../Working-Agreement.md#follow-up-work) for out-of-scope findings; reply, then resolve when the concern is handled. ### 5. Standards and framework alignment pass @@ -76,7 +76,7 @@ Record the outcome as one row per changed surface: A result is `Aligned`, `Fixed in this PR`, or `Exception` with a link that justifies it. Where a changed surface has no framework or domain documentation of its own, write `None (no framework-specific docs)` rather than inventing a pseudo-link. Put each row in the [`Technical details` block](../PR-Format.md#add-result-details-in-order) for the result it supports. If a row supports several results or interfaces, record it once and name them so [Review](Review.md) can verify the pass. -**Stop rule.** Fix only work in scope for the closing Task or Bug, and keep the pull request small enough to review. For out-of-scope or systemic findings, file a follow-up issue through [Define](Define.md). Do the same when a finding would change the pull request's scope. Link the follow-up in the table as an exception and leave that work out of the change. The pass verifies alignment; it does not add another deliverable. +**Stop rule.** Fix only work in scope for the closing Task or Bug, and keep the pull request small enough to review. Route out-of-scope or systemic findings through the [shared follow-up rule](../Working-Agreement.md#follow-up-work); use [Define](Define.md) for authorized issue creation. Link required exception evidence in the table and leave unrelated work out of the change. An unfiled proposal does not justify an exception or clear a required gate. The pass verifies alignment; it does not add another deliverable. ### 6. Issue convergence sweep @@ -86,7 +86,7 @@ Run this once per implementation session, at the same timing as the standards/fr 2. Scope the sweep deliberately so it scales: prioritize the delivery leaf's parent and siblings in the [Issue Hierarchy](../Issues/Types/Hierarchy.md), then narrow by affected component, labels, keywords, or code paths. Do not read every open issue serially in large repositories. 3. Treat convergence as outcome-based: - **Fully satisfied** — the diff already delivers the issue's ask. Add it to the result's `Related links` with `Resolves` so merge closes it. - - **Partially satisfied** — the diff helps but does not fully deliver the ask. Add it to the result's `Related links` as non-closing context. Keep or create a follow-up delivery leaf for the remaining gap. + - **Partially satisfied** — the diff helps but does not fully deliver the ask. Add it to the result's `Related links` as non-closing context. Keep the issue open for the remaining gap. Apply the shared follow-up rule before creating a separate delivery leaf. 4. Keep this pass focused on convergence and linkage. It does **not** rewrite, reformat, or otherwise "fix up" issue bodies to match issue templates; issue quality edits are separate work routed through [Define](Define.md). ### 7. Finalize and hand off @@ -94,7 +94,7 @@ Run this once per implementation session, at the same timing as the standards/fr When the change meets the [Definition of Ready for Review](../Definition-of-Ready-and-Done.md): 1. Finalize the title and release-note-ready description per [PR Format](../PR-Format.md). When the target route invokes Release Management, also reconcile the `Release details` block and applied `release:*` labels with the effective configuration; otherwise omit them. -2. Mark the pull request ready and enable auto-merge per [Branching and Merging](../Branching-and-Merging.md). +2. Mark the pull request ready. When merging is authorized, enable GitHub auto-merge per [Branching and Merging](../Branching-and-Merging.md). Use Agent merge according to the [Working Agreement](../Working-Agreement.md#repository-contributions). ## Operating rules diff --git a/src/docs/Ways-of-Working/Workflow-Stages/Review.md b/src/docs/Ways-of-Working/Workflow-Stages/Review.md index b8efba5..24c96f6 100644 --- a/src/docs/Ways-of-Working/Workflow-Stages/Review.md +++ b/src/docs/Ways-of-Working/Workflow-Stages/Review.md @@ -45,7 +45,7 @@ For documentation and design, verify the shared [completion evidence gate](../De ### 4. Post the review -Use severity prefixes per [Review Etiquette](../Review-Etiquette.md): `Blocking:`, `Question:`, `Suggestion:`, `Nit:`. Out-of-scope suggestions become new issues, not blocking comments. +Use severity prefixes per [Review Etiquette](../Review-Etiquette.md): `Blocking:`, `Question:`, `Suggestion:`, `Nit:`. Out-of-scope suggestions use its [follow-up route](../Review-Etiquette.md#stay-in-scope); they do not expand the pull request. ### 5. Approve @@ -54,7 +54,7 @@ Approve only after the blocking concerns are resolved. The approving identity mu ## Operating rules 1. Read the issue first; review against it. -2. Stay in the pull request's scope — beyond-issue suggestions are filed as new issues. +2. Stay in the pull request's scope; report out-of-scope proposals through the follow-up route. 3. One concern per comment. 4. Apply repo standards; linter rules win where a standard is silent. 5. Security is non-negotiable. From beaffa302f86188cedb65a5b39a1186f445045e0 Mon Sep 17 00:00:00 2001 From: Marius Storhaug <17722253+MariusStorhaug@users.noreply.github.com> Date: Wed, 2 Dec 2026 14:13:57 +0100 Subject: [PATCH 3/3] Apply approved diagnosis cases and preserve handoff authority Define the three mismatch cases in Engineering Practices and link context-first guidance to them. Route workflow follow-ups and merge handoffs through the shared authorization rules. --- src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md | 2 +- .../Ways-of-Working/Principles/AI-First-Development.md | 2 +- .../Ways-of-Working/Principles/Engineering-Practices.md | 8 +++++++- src/docs/Ways-of-Working/Workflow.md | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md index 4c81aa7..7eab9fc 100644 --- a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md +++ b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md @@ -60,7 +60,7 @@ guidance resolves without repository-local copies, and needed local instructions or documented exceptions are preserved. Already-correct guidance does not require a file edit. -Once every item holds, hand the change off: mark it ready for review and enable auto-merge so it lands the moment review approves and the required checks stay green. See [Branching and Merging](Branching-and-Merging.md#required-checks-and-auto-merge). +Once every item holds, hand the change off: mark it ready for review. Use the [Working Agreement](Working-Agreement.md#repository-contributions) for Agent merge and authorized GitHub auto-merge, and [Branching and Merging](Branching-and-Merging.md#required-checks-and-auto-merge) for the merge procedure. Auto-merge waits only for requirements in the branch ruleset. These include required status checks and approvals. If the ruleset names no required status checks, approval alone can permit integration before CI completes. This violates [Required checks and auto-merge](Branching-and-Merging.md#required-checks-and-auto-merge), which requires the ruleset to enforce status checks. Add the missing status-check rule. Do not substitute manual build monitoring. diff --git a/src/docs/Ways-of-Working/Principles/AI-First-Development.md b/src/docs/Ways-of-Working/Principles/AI-First-Development.md index b09aa47..8c5eac4 100644 --- a/src/docs/Ways-of-Working/Principles/AI-First-Development.md +++ b/src/docs/Ways-of-Working/Principles/AI-First-Development.md @@ -67,7 +67,7 @@ This means: - A new feature starts as a documented intent (issue, README update, or docs change) before any code is written. - Write or update tests before changing behavior when they do not already express the intended contract. - A refactor preserves documented behavior. Update documentation and tests only where they are affected. -- When documentation, tests, and code disagree, establish the [intended contract](Engineering-Practices.md#intent-is-the-source-of-truth). Correct the mismatched artifacts and preserve those that are already correct. +- When documentation, tests, and code disagree, apply the [diagnosis rule](Engineering-Practices.md#intent-is-the-source-of-truth). Preserve correct artifacts. Request a decision before changing a contract whose intended behavior remains unresolved. Agents use documented context to guide changes. Correct, complete context gives them the intended contract before they build. diff --git a/src/docs/Ways-of-Working/Principles/Engineering-Practices.md b/src/docs/Ways-of-Working/Principles/Engineering-Practices.md index 2c0a929..984396b 100644 --- a/src/docs/Ways-of-Working/Principles/Engineering-Practices.md +++ b/src/docs/Ways-of-Working/Principles/Engineering-Practices.md @@ -53,7 +53,13 @@ Shared guidance, every README, and every specification follow these evergreen ru The documented intent is the source of truth for what the system is meant to be. It is recorded in default-branch specs and docs, and in issue descriptions. Implementation represents that intent. Running code shows actual behavior, not necessarily desired behavior. -Either intent or implementation can be wrong. When they disagree, **diagnose it** rather than assuming which is correct. If the intent is wrong, correct the doc, spec, or issue. If the implementation is wrong, correct the code. Reconcile the mismatch instead of silently trusting the code or rewriting the intent to match it. +Either intent or implementation can be wrong. When they disagree, **diagnose it** rather than assuming which is correct. + +- **Valid intent, wrong implementation:** fix the code. Add focused regression coverage when it is missing. +- **Wrong intent:** confirm the corrected intent. Correct the owning document, specification, or issue before updating affected tests and code. +- **Unresolved mismatch:** collect evidence and request a decision before changing the disputed contract. State what remains unknown. + +Preserve correct documents and tests. Reconcile the mismatch instead of silently trusting the code or rewriting the intent to match it. ## Test-driven development diff --git a/src/docs/Ways-of-Working/Workflow.md b/src/docs/Ways-of-Working/Workflow.md index 1369752..92c5096 100644 --- a/src/docs/Ways-of-Working/Workflow.md +++ b/src/docs/Ways-of-Working/Workflow.md @@ -110,10 +110,10 @@ Execute one ready, unblocked Task or Bug. For repository delivery: 2. **Draft PR** — push early and open a draft pull request scoped to one Task or Bug delivery leaf. The pull request closes that leaf. Link additional fully convergent issues through the session-end issue convergence sweep. This makes progress and CI results visible from the start. 3. **Implement** — work through the leaf's test-first implementation plan, including relevant [documentation and design evidence](Definition-of-Ready-and-Done.md#documentation-and-design-evidence). One logical change per commit. Update the issue as each plan step completes. 4. **Test locally** — run relevant local checks. Do not push known failures to CI. -5. **Self-review with automation** — run the [Copilot review loop](Contribution-Workflow.md#the-copilot-review-loop) until it reports a clean round, fixing in-scope feedback and filing follow-up issues for the rest. +5. **Self-review with automation** — run the [Copilot review loop](Contribution-Workflow.md#the-copilot-review-loop) until it reports a clean round. Fix in-scope feedback and apply the [shared follow-up rule](Working-Agreement.md#follow-up-work) to other findings, including unfiled proposals when issue creation is not authorized. 6. **Standards and framework alignment pass** — once the change is complete, reconcile it against process, the applicable [Coding Standards](../Coding-Standards/index.md) chapters, and the repository's framework documentation, and record the result in the pull request. See [Implement](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass). 7. **Issue convergence sweep** — in the same session-end window, sweep scoped open issues for asks already satisfied by the finished diff, and link fully convergent issues in the pull request with closing keywords. See [Implement](Workflow-Stages/Implement.md#6-issue-convergence-sweep). -8. **Ready and auto-merge** — when the change meets the [Definition of Ready for Review](Definition-of-Ready-and-Done.md#definition-of-ready-for-review), finalize the pull request per [PR Format](PR-Format.md), mark it ready, and enable auto-merge. +8. **Ready and handoff** — when the change meets the [Definition of Ready for Review](Definition-of-Ready-and-Done.md#definition-of-ready-for-review), finalize the pull request per [PR Format](PR-Format.md) and mark it ready. Use the [shared contribution rule](Working-Agreement.md#repository-contributions) for Agent merge and authorized GitHub auto-merge. An audited operational Task follows its [operational completion path](Issues/Types/Task.md#operational-delivery) instead of creating a branch or pull request.