Skip to content

docs: clarify context availability after cloning - #3144

Merged
Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel-issue-delivery-3143
Oct 2, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel-issue-delivery-3143

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

document(onboarding): clarify context availability after cloning

TL;DR

Committed agent files are available after cloning, but their linked package
resources may not be. This documentation-only change makes apm install
explicit in team setup and explains that installed resources must remain
available while native consumers use them.

Problem (WHY)

  • [!] The existing what-to-commit guidance promised agent context on clone,
    despite deployed links pointing into gitignored apm_modules/.
  • [!] Recreating installed dependencies does not make them disposable while
    agents or tools still read them.

These are the specific documentation gaps in the approved issue scope below.
The edits document this non-obvious dependency rather than repeat generic
installation advice, following
"Add what the agent lacks, omit what it knows".

Approach (WHAT)

  • Distinguish reviewable/discoverable files from complete linked context.
  • Preserve the normal committed-manifest/lockfile/output plus install workflow.
  • Keep the full commit table and lifetime explanation in the Quickstart,
    with the consumer guide linking to it.

Implementation (HOW)

File Bounded change
consumer/install-packages.md Replace the unconditional context-on-clone claim; link to the shared commit guidance.
quickstart.mdx Clarify the commit table, after-clone install step, and installed-resource lifetime.
producer/package-relative-links.md Explain when the existing rewritten-link example becomes resolvable.
apm-usage/workflow.md Give installed guide users the same clone/install distinction and lifetime caveat.

The claims were checked against the existing
LinkResolver asset-link projection
and native Copilot marketplace paths.
No implementation or CHANGELOG changes.

Diagrams

This describes the existing dependency-availability model, not new runtime behavior.

flowchart LR
    subgraph Checkout["After clone"]
        F["Committed agent files available"]
    end
    I["apm install"]
    subgraph Installed["After install"]
        R["Linked package resources available"]
        K["Keep installed resources while consumers need them"]
    end
    F --> I --> R --> K
Loading

Trade-offs

  • Keep the installation prerequisite explicit rather than implement dependency
    file promotion or a no-install runtime. Those mechanisms remain deferred.
  • Preserve aryansk's separate docs: clarify apm_modules is derived #2601 contribution and its ownership. That
    lockfile-reference patch does not cover the complete clone/install
    clarification; this PR corrects existing guidance in different files and
    does not edit, supersede, or approve that contribution.
  • Pure docs change: runtime scenario tests and the full Python test suite
    were not run. Documentation build/link checks are the applicable gate;
    the Scenario Evidence table is omitted under the docs-only exception.

Benefits

  1. Both human-facing commit guides distinguish file availability from usability.
  2. The package-link example and bundled team setup explicitly require installation.
  3. The Quickstart and bundled guide retain resources through consumer use,
    rather than treating APM exit as a cleanup signal.

Issue and approved scope

Issue: #3143 (documentation-only slice).

Human scope-approval comment:
#3143 (comment)

The responsible human confirmed starting this bounded implementation on
2026-10-02; review contact: Daniel Meppiel (@danielmeppiel).

Important

This PR does not complete issue #3143, which stays open for the
deferred file-promotion remainder. It adds no no-install runtime, cleanup
feature, link rewriting, ownership/update changes, or recommendation to
commit apm_modules/. The overlapping #3045 and #2064 discussions are
unaffected by this PR.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Validation

cd docs && npm run build passed on the integrated candidate:

14:44:48 [build] 125 page(s) built in 7.89s
14:44:48 [build] Complete!
[+] Checked 1070 relative link(s) across generated pages. No broken relative links found.

The build emitted non-fatal Astro configuration, chunk-size, i18n, and
route-conflict warnings. Dependencies were restored after the initial build
reported missing Astro; the successful build above includes check:links.

Local lint and acceptance evidence

Current origin/main was merged before the CI lint mirror. These commands
all passed:

uv run --frozen --extra dev ruff check src/ tests/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/
uv run --frozen --extra dev ruff format --check src/ tests/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/
uv run --frozen --extra dev python -m pylint --disable=all --enable=R0801 --min-similarity-lines=10 --fail-on=R0801 src/apm_cli/ scripts/lint_architecture_boundaries.py scripts/architecture_linter/
bash scripts/lint-auth-signals.sh
bash scripts/lint-architecture-boundaries.sh
git diff --check origin/main..HEAD
All checks passed!
1910 files already formatted
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
[+] auth-signal lint clean

The CI YAML I/O, 2100-line, and raw str(relative_to) guards also passed
using equivalent Python regex/path checks on macOS (565 covered files).
Their covered source is byte-identical to the checked base.

Deterministic acceptance checks passed: exactly four documentation files,
unchanged frontmatter/examples, ASCII content, explicit clone/install/lifetime
wording, and both bundled-guide relative links including their anchors.
The Mermaid block was rendered successfully with mmdc.

These are local results, not a claim that remote CI or review has completed.

How to test

  • With Node 22.12+ and dependencies installed (cd docs && npm ci),
    run npm run build; expect the site and internal-link checks to pass.
  • Read the Quickstart and Install packages commit guidance; expect
    manifest/lockfile/outputs to be committed and apm_modules/ gitignored.
  • Follow the package-link example and bundled team setup; expect
    installation after clone before relying on complete linked context.
  • Confirm the lifetime caveat extends beyond APM exit and no page
    promises universal self-contained agents before installation.

Spec conformance (OpenAPM v0.1)

If this PR changes behaviour that an OpenAPM v0.1 req-XXX covers,
confirm the three-step ritual in the
development guide:

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

Co-authored-by: Copilot [email protected]

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

Docs sync advisory

Verdict: no_change | Additional pages affected: 0 | LLM calls: 0/15 | Layer: L0

No additional docs impact detected: this PR changes only existing documentation
and updates the bundled apm-usage/workflow.md guidance in the same change.
No runtime surface or table-of-contents change needs a follow-up docs panel.
This classification is not review or merge approval.


Generated by docs-sync. This comment is AI-generated and may contain errors.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The documentation consistently reflects existing link resolution and native plugin lifecycle behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Clarifies that committed agent files may depend on resources restored by apm install.

Changes:

  • Distinguishes discoverability after cloning from full usability.
  • Documents the required post-clone installation step.
  • Explains resource lifetime requirements for linked context and native plugins.
File Description
packages/​apm-guide/​.apm/​skills/​apm-usage/​workflow.md Updates bundled team workflow guidance.
docs/​src/​content/​docs/​quickstart.mdx Expands commit and post-clone guidance.
docs/​src/​content/​docs/​producer/​package-relative-links.md Clarifies when package-relative links resolve.
docs/​src/​content/​docs/​consumer/​install-packages.md Corrects context availability claims.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@danielmeppiel

Daniel Meppiel (danielmeppiel) commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_now

This docs-only PR tightens the clone-versus-install contract so readers know what can be reviewed immediately after clone and what requires apm install to become usable.

panel-mode=lean; personas=doc-writer,apm-ceo

cc Daniel Meppiel (@danielmeppiel) Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

The spawned lean-panel signal is straightforward: the doc-writer found the wording aligned with current install, link-rewrite, and native plugin behavior, and surfaced no accuracy or completeness gaps. For a narrow four-file documentation correction with no code-path changes, that is the right level of signal to trust.

Strategically, this is exactly the kind of small truthfulness fix APM should ship quickly. It reduces user surprise in the first-read experience, preserves trust in the docs as an operational contract, and avoids overstating package context availability after clone. There is no meaningful dissent to resolve, and no evidence here of hidden scope beyond the stated clarification.

Aligned with: portable_by_manifest (the clarification makes the portability boundary explicit: committed deployed agent files travel with the repo, while linked package context under apm_modules/ depends on a local install step); oss_community_driven (clearer setup docs reduce avoidable contributor confusion); pragmatic_as_npm (the wording sets a practical expectation for the common clone-first workflow).

Panel summary

Persona B R N Takeaway
Doc Writer 0 0 0 Docs stay aligned with install, link-rewrite, and native plugin behavior; no advisory findings.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Recommendation

Advisory read: ship this now. The highest-signal outcome is that the docs become more precise without expanding scope, and there are no panel findings that warrant holding a narrow documentation correction.


Full per-persona findings

Doc Writer

No findings.

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.


Terminal merge-worker evidence (appended, no new review spawned)

  • Copilot classification: 1 review (state COMMENTED, "Approval recommended"), 0 inline findings -- nothing to fold.
  • Panel disposition: 0 panel findings; folded_items=[]; deferred_items=[] -- nothing crossed the strict docs-only scope boundary of this PR.
  • Scope reservations carried forward (context only, no action taken by this PR): docs: clarify apm_modules is derived #2601 remains OPEN, assigned sergio-sisternes-epam, fork aryansk/apm, ref docs/2064-apm-modules-derived @ eff1db8, sole changed file docs/src/content/docs/reference/lockfile-spec.md -- not edited, not taken over, not superseded here. Clarify package-relative links and committed target-owned directories #3045 is a separately accepted docs-only item and is treated as context only, not part of this PR's scope. Issue [BUG] What-to-commit & shared context files in apm_modules is a broken process #3143 stays OPEN for the file-promotion remainder; this PR's closingIssuesReferences is empty (no closing keyword).
  • Lint evidence: full canonical CI-mirror lint (ruff check + ruff format --check across src/, tests/, scripts/lint_architecture_boundaries.py, scripts/architecture_linter/; pylint --enable=R0801 min-similarity-lines=10; lint-auth-signals.sh; YAML I/O safety guard; 2100-line file-length guard; portable_relpath guard) -- all clean at head 35127fc. origin/main confirmed unchanged at the PR's recorded base (7dfc5dd), so no merge-main step was required.
  • CI evidence: statusCheckRollup at head 35127fc has zero FAILURE/TIMED_OUT/ACTION_REQUIRED/STARTUP_FAILURE and zero pending checks (Lint, CodeQL x2, Deploy Docs build, Merge Gate/gate, NOTICE Drift Check, PR eligibility evidence x2, Windows Compatibility Gate, Windows Git Discovery x2, Test Architecture Ratchets, Build & Test Shard 1/2 (Linux), PR Binary Smoke, APM Self-Check, Lifecycle Smoke, Coverage Combine, license/cla all SUCCESS; CodeQL summary + PR eligibility (advisory only) NEUTRAL).
  • Owner-touch gate: owner_touch_gate.py detect and verify both run against exact base 7dfc5dd / head 35127fc -- touched_owners=[] (docs-only diff touches zero src/apm_cli/ owner surfaces from .apm/instructions/architecture.instructions.md); classification=not-applicable; verify returned verified=true.
  • Terminal delta panel: re-checked at head 35127fc with conversation watermark unchanged since this receipt (no new PR comments, no new reviews beyond the single Copilot COMMENTED review above) -- correctly a noop per the panel-mode contract (delta posts only when head or watermark changed since the last receipt).
  • Governance evaluator (durable, trusted-current-default-branch asset): CI check "PR eligibility (advisory only)" (run https://github.com/microsoft/apm/runs/110849326687, head 35127fc) returned state=record-present for issue [BUG] What-to-commit & shared context files in apm_modules is a broken process #3143: "Record present, not permission. Confirm scope match, review capacity and current approval with a responsible human." scripts/governance/* is byte-identical to origin/main (this PR does not touch it), so this check ran the genuine current-default-branch evaluator, not a stale fork. The linked scope-record comment (issuecomment-5952312970) was independently reconfirmed live and unedited at verification time. Record-present evidence is corroborating context only, not implementation permission.

Mergeability snapshot (exact head 35127fc)

mergeable mergeStateStatus reviewer request reviewDecision CI
MERGEABLE BLOCKED sergio-sisternes-epam requested, not yet reviewed empty green

This is reported literally: GitHub shows BLOCKED with an outstanding review request and no reviewDecision yet recorded. Cause confirmed via the live main-protection ruleset (rule type pull_request, require_code_owner_review=true, required_approving_review_count=0 -- the gate is the CODEOWNERS rule, not a numeric-approval-count rule) cross-referenced with .github/CODEOWNERS (* @danielmeppiel @sergio-sisternes-epam, a repo-wide wildcard matching all 4 touched docs paths). danielmeppiel is the PR author and cannot satisfy this as a self-review; sergio-sisternes-epam is the only other CODEOWNER and has not yet reviewed, which is why mergeStateStatus remains BLOCKED. Green CI and a ship-now panel verdict do not themselves authorize or imply merge.


Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants