Skip to content

Reconcile review-time context freshness with the canonical default-branch gate #307

Backlog

Description

Context and request

Review-time agents and runtime integrators need an unambiguous rule for which context source must be fresh, which revision supplies it, and which check establishes that state.

Observed and expected behavior

At reviewed source 475827e2e095a3e1f2a4d79eacb1e0a0d8b500d0, the Agentic Development design's Local workspace requires context clones to be clean, on the remote default branch, and exactly equal to the fetched head before context is read.

The Context freshness table says a review-time agent reads instructions from the pull request's head branch, so freshness follows the branch under review. The paragraph after the table again applies the clean, synchronized default-branch requirement to each runtime. The distinction between canonical organization context and review-head instruction files is not explicit enough to apply both clauses consistently.

The expected result is one compatible source-and-revision contract for each context role. Review-head behavior must neither silently waive the canonical-context gate nor be described as satisfying a default-branch check when it does not.

Reproduction, environment, and regression

Apply the linked clauses to a review whose head branch changes an instruction file while the canonical organization documentation has its own default-branch revision. Identify the source, revision, and freshness check for each artifact. Repeat with stale or unavailable canonical context. This is a document-case reproduction, not a claim about observed runtime behavior.

The last consistent version and regression date are unknown. The linked design does not establish one unambiguous general interpretation for these cases.

Acceptance criteria

  • The design distinguishes canonical documentation context from instructions supplied by the branch under review.
  • Every documented runtime shape has a compatible source, revision, lifecycle point, and observable freshness check.
  • Dirty, stale, wrong-branch, diverged, or unavailable canonical context has an explicit result; review-head availability does not silently bypass a required gate.
  • Any review-time exception is explicit and owner-approved, rather than implied by conflicting paragraphs.
  • The documentation does not claim that instruction freshness establishes instruction trust or independent review.

Technical decisions

Scope is the documentation contract in Agentic Development design and only directly coupled specification, runtime-integration, or conformance clauses. The owner must confirm the source-role interpretation before implementation readiness.

MSXOrg/docs#123 owns investigation of review-head instruction trust and platform controls. This issue does not duplicate its fork experiments, choose a security control, add a runtime, or change synchronization tools. The earlier working-checkout clarification in MSXOrg/docs#132 remains closed and is not being reopened.

Use repeatable source-role cases rather than a new text-matching validator. Correct already-established technical requirements only where the approved interpretation requires it.

Implementation plan

  • Record expected context sources and checks for local, hosted, review-time, and batch shapes; obtain the owner decision for the disputed review case.
  • Reconcile the owning clauses and directly coupled references while preserving required freshness gates.
  • Repeat the fresh, stale, wrong-branch, and unavailable-context cases and retain before/after evidence.
  • Run existing Markdown, documentation-link, and index checks; verify the affected guidance through the completion evidence gate.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions