oh-my-copilot 5.19.2 → 5.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +70 -67
- package/agents/planner.md +4 -4
- package/bin/oh-my-copilot.js +5 -1
- package/bridge/claude-md-coordinator.cjs +2 -2
- package/bridge/cli.cjs +3043 -2635
- package/bridge/mcp-server.cjs +969 -867
- package/bridge/runtime-cli.cjs +244 -184
- package/bridge/team-bridge.cjs +17 -1
- package/bridge/team-mcp.cjs +208 -140
- package/bridge/team.js +73 -13
- package/copilot/agents/planner.md +4 -4
- package/dist/__tests__/ci-evidence.test.d.ts +2 -0
- package/dist/__tests__/ci-evidence.test.d.ts.map +1 -0
- package/dist/__tests__/ci-evidence.test.js +210 -0
- package/dist/__tests__/ci-evidence.test.js.map +1 -0
- package/dist/__tests__/copilot-hooks-manifest.test.js +1 -0
- package/dist/__tests__/copilot-hooks-manifest.test.js.map +1 -1
- package/dist/__tests__/doctor-conflicts.test.js +6 -5
- package/dist/__tests__/doctor-conflicts.test.js.map +1 -1
- package/dist/__tests__/hud/cli-diagnostic.test.js +4 -3
- package/dist/__tests__/hud/cli-diagnostic.test.js.map +1 -1
- package/dist/__tests__/mnemosyne/detector.test.js +3 -2
- package/dist/__tests__/mnemosyne/detector.test.js.map +1 -1
- package/dist/__tests__/run-cjs-windows-stdio-contract.test.js +50 -10
- package/dist/__tests__/run-cjs-windows-stdio-contract.test.js.map +1 -1
- package/dist/__tests__/session-end-process-exit.test.js +15 -5
- package/dist/__tests__/session-end-process-exit.test.js.map +1 -1
- package/dist/__tests__/session-start-script-context.test.js +1 -1
- package/dist/__tests__/session-start-script-context.test.js.map +1 -1
- package/dist/__tests__/setup/stub-skill-list-probe.d.ts +2 -0
- package/dist/__tests__/setup/stub-skill-list-probe.d.ts.map +1 -0
- package/dist/__tests__/setup/stub-skill-list-probe.js +11 -0
- package/dist/__tests__/setup/stub-skill-list-probe.js.map +1 -0
- package/dist/__tests__/setup-claude-md-script.test.js +7 -4
- package/dist/__tests__/setup-claude-md-script.test.js.map +1 -1
- package/dist/__tests__/setup-config-script.test.d.ts +2 -0
- package/dist/__tests__/setup-config-script.test.d.ts.map +1 -0
- package/dist/__tests__/setup-config-script.test.js +350 -0
- package/dist/__tests__/setup-config-script.test.js.map +1 -0
- package/dist/__tests__/shipyard-seed-locale.test.js +1 -1
- package/dist/__tests__/shipyard-seed-locale.test.js.map +1 -1
- package/dist/__tests__/shipyard-skills.test.js +9 -9
- package/dist/__tests__/shipyard-skills.test.js.map +1 -1
- package/dist/__tests__/tier0-docs-consistency.test.js +5 -5
- package/dist/__tests__/tier0-docs-consistency.test.js.map +1 -1
- package/dist/__tests__/trusted-publishing-contract.test.js +56 -7
- package/dist/__tests__/trusted-publishing-contract.test.js.map +1 -1
- package/dist/__tests__/visual-verdict-skill.test.js +1 -1
- package/dist/__tests__/visual-verdict-skill.test.js.map +1 -1
- package/dist/cli/__tests__/autoresearch.test.js +3 -2
- package/dist/cli/__tests__/autoresearch.test.js.map +1 -1
- package/dist/cli/autoresearch.d.ts +1 -1
- package/dist/cli/autoresearch.d.ts.map +1 -1
- package/dist/cli/autoresearch.js +2 -1
- package/dist/cli/autoresearch.js.map +1 -1
- package/dist/cli/commands/__tests__/factory-init.test.js +2 -1
- package/dist/cli/commands/__tests__/factory-init.test.js.map +1 -1
- package/dist/cli/commands/__tests__/intake.test.js +26 -4
- package/dist/cli/commands/__tests__/intake.test.js.map +1 -1
- package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -1
- package/dist/cli/commands/doctor-conflicts.js +5 -4
- package/dist/cli/commands/doctor-conflicts.js.map +1 -1
- package/dist/cli/commands/factory.d.ts.map +1 -1
- package/dist/cli/commands/factory.js +4 -3
- package/dist/cli/commands/factory.js.map +1 -1
- package/dist/cli/commands/intake.d.ts.map +1 -1
- package/dist/cli/commands/intake.js +13 -4
- package/dist/cli/commands/intake.js.map +1 -1
- package/dist/cli/commands/release.d.ts.map +1 -1
- package/dist/cli/commands/release.js +11 -2
- package/dist/cli/commands/release.js.map +1 -1
- package/dist/cli/commands/ship.d.ts +1 -1
- package/dist/cli/commands/ship.js +1 -1
- package/dist/copilot-run/job.d.ts.map +1 -1
- package/dist/copilot-run/job.js +4 -1
- package/dist/copilot-run/job.js.map +1 -1
- package/dist/copilot-run/sandbox.d.ts +2 -7
- package/dist/copilot-run/sandbox.d.ts.map +1 -1
- package/dist/copilot-run/sandbox.js +2 -26
- package/dist/copilot-run/sandbox.js.map +1 -1
- package/dist/factory/__tests__/listener.test.js +22 -4
- package/dist/factory/__tests__/listener.test.js.map +1 -1
- package/dist/factory/listener.d.ts +2 -2
- package/dist/factory/listener.d.ts.map +1 -1
- package/dist/factory/listener.js +20 -5
- package/dist/factory/listener.js.map +1 -1
- package/dist/factory/run/__tests__/prepare-gates.test.js +7 -1
- package/dist/factory/run/__tests__/prepare-gates.test.js.map +1 -1
- package/dist/factory/run/engine.d.ts.map +1 -1
- package/dist/factory/run/engine.js +1 -0
- package/dist/factory/run/engine.js.map +1 -1
- package/dist/features/continuation-enforcement.d.ts.map +1 -1
- package/dist/features/continuation-enforcement.js +2 -1
- package/dist/features/continuation-enforcement.js.map +1 -1
- package/dist/features/lookout/__tests__/lookout.test.js +9 -6
- package/dist/features/lookout/__tests__/lookout.test.js.map +1 -1
- package/dist/forge/__tests__/gh-argv-baseline.factory.test.js +7 -1
- package/dist/forge/__tests__/gh-argv-baseline.factory.test.js.map +1 -1
- package/dist/hooks/__tests__/bridge.test.js +10 -2
- package/dist/hooks/__tests__/bridge.test.js.map +1 -1
- package/dist/hooks/autopilot/__tests__/pipeline.test.js +2 -1
- package/dist/hooks/autopilot/__tests__/pipeline.test.js.map +1 -1
- package/dist/hooks/autopilot/adapters/execution-adapter.d.ts.map +1 -1
- package/dist/hooks/autopilot/adapters/execution-adapter.js +3 -2
- package/dist/hooks/autopilot/adapters/execution-adapter.js.map +1 -1
- package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts.map +1 -1
- package/dist/hooks/autopilot/adapters/ralplan-adapter.js +2 -1
- package/dist/hooks/autopilot/adapters/ralplan-adapter.js.map +1 -1
- package/dist/hooks/learner/detector.d.ts.map +1 -1
- package/dist/hooks/learner/detector.js +2 -6
- package/dist/hooks/learner/detector.js.map +1 -1
- package/dist/hooks/mode-registry/index.d.ts.map +1 -1
- package/dist/hooks/mode-registry/index.js +2 -1
- package/dist/hooks/mode-registry/index.js.map +1 -1
- package/dist/hooks/persistent-mode/__tests__/team-ralplan-stop.test.js +7 -0
- package/dist/hooks/persistent-mode/__tests__/team-ralplan-stop.test.js.map +1 -1
- package/dist/hooks/persistent-mode/index.d.ts +1 -1
- package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
- package/dist/hooks/persistent-mode/index.js +6 -5
- package/dist/hooks/persistent-mode/index.js.map +1 -1
- package/dist/hooks/persistent-mode/session-isolation.test.js +23 -14
- package/dist/hooks/persistent-mode/session-isolation.test.js.map +1 -1
- package/dist/hooks/ralph/loop.d.ts +1 -1
- package/dist/hooks/ralph/loop.js +1 -1
- package/dist/hooks/ralph/prd.d.ts.map +1 -1
- package/dist/hooks/ralph/prd.js +2 -1
- package/dist/hooks/ralph/prd.js.map +1 -1
- package/dist/hooks/ralph/stale-prd.d.ts +2 -2
- package/dist/hooks/ralph/stale-prd.js +3 -3
- package/dist/hooks/ralph/stale-prd.js.map +1 -1
- package/dist/hooks/ralph/verifier.d.ts +1 -1
- package/dist/hooks/ralph/verifier.d.ts.map +1 -1
- package/dist/hooks/ralph/verifier.js +4 -3
- package/dist/hooks/ralph/verifier.js.map +1 -1
- package/dist/hooks/session-end/__tests__/spawn-next.test.js +31 -4
- package/dist/hooks/session-end/__tests__/spawn-next.test.js.map +1 -1
- package/dist/hooks/session-end/spawn-next.d.ts +6 -3
- package/dist/hooks/session-end/spawn-next.d.ts.map +1 -1
- package/dist/hooks/session-end/spawn-next.js +19 -6
- package/dist/hooks/session-end/spawn-next.js.map +1 -1
- package/dist/hud/index.d.ts.map +1 -1
- package/dist/hud/index.js +3 -2
- package/dist/hud/index.js.map +1 -1
- package/dist/installer/__tests__/hook-templates.test.js +3 -1
- package/dist/installer/__tests__/hook-templates.test.js.map +1 -1
- package/dist/installer/__tests__/session-start-template.test.js +16 -8
- package/dist/installer/__tests__/session-start-template.test.js.map +1 -1
- package/dist/installer/hooks.d.ts +1 -1
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +2 -1
- package/dist/installer/hooks.js.map +1 -1
- package/dist/release/__tests__/checks.test.js +39 -1
- package/dist/release/__tests__/checks.test.js.map +1 -1
- package/dist/release/__tests__/engine.test.js +236 -3
- package/dist/release/__tests__/engine.test.js.map +1 -1
- package/dist/release/checks.d.ts +18 -1
- package/dist/release/checks.d.ts.map +1 -1
- package/dist/release/checks.js +40 -1
- package/dist/release/checks.js.map +1 -1
- package/dist/release/engine.d.ts +14 -2
- package/dist/release/engine.d.ts.map +1 -1
- package/dist/release/engine.js +211 -44
- package/dist/release/engine.js.map +1 -1
- package/dist/ship/__tests__/exec-env.test.d.ts +2 -0
- package/dist/ship/__tests__/exec-env.test.d.ts.map +1 -0
- package/dist/ship/__tests__/exec-env.test.js +26 -0
- package/dist/ship/__tests__/exec-env.test.js.map +1 -0
- package/dist/ship/__tests__/exec-plant.test.d.ts +2 -0
- package/dist/ship/__tests__/exec-plant.test.d.ts.map +1 -0
- package/dist/ship/__tests__/exec-plant.test.js +34 -0
- package/dist/ship/__tests__/exec-plant.test.js.map +1 -0
- package/dist/ship/__tests__/gates.test.js +35 -0
- package/dist/ship/__tests__/gates.test.js.map +1 -1
- package/dist/ship/__tests__/workflow-checks.test.js +34 -5
- package/dist/ship/__tests__/workflow-checks.test.js.map +1 -1
- package/dist/ship/config.js +3 -3
- package/dist/ship/config.js.map +1 -1
- package/dist/ship/exec.d.ts.map +1 -1
- package/dist/ship/exec.js +10 -2
- package/dist/ship/exec.js.map +1 -1
- package/dist/ship/gates.d.ts.map +1 -1
- package/dist/ship/gates.js +3 -1
- package/dist/ship/gates.js.map +1 -1
- package/dist/skills/__tests__/mingw-escape.test.js +0 -35
- package/dist/skills/__tests__/mingw-escape.test.js.map +1 -1
- package/dist/skills/__tests__/omc-setup-optout.test.js +4 -3
- package/dist/skills/__tests__/omc-setup-optout.test.js.map +1 -1
- package/dist/smoke/__tests__/copilot-factory-run-scenario.test.js +7 -1
- package/dist/smoke/__tests__/copilot-factory-run-scenario.test.js.map +1 -1
- package/dist/smoke/__tests__/copilot-sdk-driver.test.js +2 -2
- package/dist/smoke/__tests__/copilot-sdk-driver.test.js.map +1 -1
- package/dist/smoke/copilot-sdk-scenarios.d.ts.map +1 -1
- package/dist/smoke/copilot-sdk-scenarios.js +2 -1
- package/dist/smoke/copilot-sdk-scenarios.js.map +1 -1
- package/dist/team/__tests__/git-worktree.test.js +10 -1
- package/dist/team/__tests__/git-worktree.test.js.map +1 -1
- package/dist/team/__tests__/runtime-cli.test.js +4 -4
- package/dist/team/__tests__/runtime-cli.test.js.map +1 -1
- package/dist/team/__tests__/tmux-session.test.js +16 -2
- package/dist/team/__tests__/tmux-session.test.js.map +1 -1
- package/dist/team/__tests__/worker-launch-ack.test.js +14 -0
- package/dist/team/__tests__/worker-launch-ack.test.js.map +1 -1
- package/dist/team/git-worktree.d.ts.map +1 -1
- package/dist/team/git-worktree.js +13 -5
- package/dist/team/git-worktree.js.map +1 -1
- package/dist/team/tmux-session.d.ts.map +1 -1
- package/dist/team/tmux-session.js +8 -6
- package/dist/team/tmux-session.js.map +1 -1
- package/dist/ultragoal/goal-record.d.ts.map +1 -1
- package/dist/ultragoal/goal-record.js +2 -1
- package/dist/ultragoal/goal-record.js.map +1 -1
- package/dist/utils/__tests__/skill-slash.test.d.ts +2 -0
- package/dist/utils/__tests__/skill-slash.test.d.ts.map +1 -0
- package/dist/utils/__tests__/skill-slash.test.js +307 -0
- package/dist/utils/__tests__/skill-slash.test.js.map +1 -0
- package/dist/utils/__tests__/windows-search.test.d.ts +2 -0
- package/dist/utils/__tests__/windows-search.test.d.ts.map +1 -0
- package/dist/utils/__tests__/windows-search.test.js +154 -0
- package/dist/utils/__tests__/windows-search.test.js.map +1 -0
- package/dist/utils/skill-registry.d.ts +51 -0
- package/dist/utils/skill-registry.d.ts.map +1 -0
- package/dist/utils/skill-registry.js +168 -0
- package/dist/utils/skill-registry.js.map +1 -0
- package/dist/utils/skill-slash.d.ts +18 -0
- package/dist/utils/skill-slash.d.ts.map +1 -0
- package/dist/utils/skill-slash.js +20 -0
- package/dist/utils/skill-slash.js.map +1 -0
- package/dist/utils/windows-search.d.ts +42 -0
- package/dist/utils/windows-search.d.ts.map +1 -0
- package/dist/utils/windows-search.js +94 -0
- package/dist/utils/windows-search.js.map +1 -0
- package/docs/ARCHITECTURE.md +29 -29
- package/docs/CLAUDE.md +4 -4
- package/docs/FIELD-TESTING.md +563 -0
- package/docs/GETTING-STARTED.md +11 -11
- package/docs/HOOKS.md +8 -8
- package/docs/MIGRATION.md +100 -100
- package/docs/PERFORMANCE-MONITORING.md +2 -2
- package/docs/REFERENCE.md +131 -131
- package/docs/TOOLS.md +1 -1
- package/docs/cancel-skill-active-state-gap.md +2 -2
- package/docs/copilot-instructions.md +3 -3
- package/docs/design/P2-RUN-LEDGER-AND-INTAKE-PLAN.md +1 -1
- package/docs/design/project-session-manager.md +1 -1
- package/docs/field-testing-first-prompt.md +36 -0
- package/docs/shared/features.md +5 -5
- package/docs/shipyard.md +8 -8
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/scripts/build-workflow-stage-prompts.mjs +15 -6
- package/scripts/ci/duration-sequencer.mjs +69 -0
- package/scripts/ci/durations-reporter.mjs +34 -0
- package/scripts/ci/tree-reuse.mjs +166 -0
- package/scripts/ci/update-test-durations.mjs +62 -0
- package/scripts/copilot/dispatch.cjs +3 -0
- package/scripts/find-node.sh +1 -1
- package/scripts/keyword-detector.mjs +5 -4
- package/scripts/lib/copilot-hook-adapter.cjs +3 -0
- package/scripts/lib/hud-wrapper-template.txt +2 -2
- package/scripts/lib/skill-slash.mjs +11 -0
- package/scripts/lib/windows-search.cjs +40 -0
- package/scripts/lib/windows-search.mjs +7 -0
- package/scripts/lib/workflow-stage-prompts.mjs +6 -2
- package/scripts/persistent-mode.cjs +11 -10
- package/scripts/persistent-mode.mjs +16 -11
- package/scripts/plugin-shipping-surface.mjs +1 -0
- package/scripts/pre-tool-enforcer.mjs +1 -1
- package/scripts/session-start.mjs +3 -3
- package/scripts/setup-claude-md.mjs +3 -0
- package/scripts/setup-config.mjs +420 -0
- package/scripts/setup-progress.mjs +3 -0
- package/scripts/shipyard-audit.mjs +2 -1
- package/scripts/stale-run-reporter.mjs +2 -1
- package/skills/AGENTS.md +4 -4
- package/skills/ai-slop-cleaner/SKILL.md +3 -3
- package/skills/ask/SKILL.md +7 -7
- package/skills/ask-navigator/SKILL.md +11 -11
- package/skills/autopilot/SKILL.md +5 -5
- package/skills/cancel/SKILL.md +5 -5
- package/skills/configure-notifications/SKILL.md +10 -10
- package/skills/critique/SKILL.md +1 -1
- package/skills/discover/SKILL.md +1 -1
- package/skills/drydock/SKILL.md +5 -5
- package/skills/external-context/SKILL.md +4 -4
- package/skills/graph/SKILL.md +2 -2
- package/skills/harbor/SKILL.md +7 -7
- package/skills/hud/SKILL.md +10 -10
- package/skills/intent/SKILL.md +1 -1
- package/skills/launch/SKILL.md +13 -13
- package/skills/loft/SKILL.md +2 -2
- package/skills/map/SKILL.md +1 -1
- package/skills/omc-ado-auto-review/SKILL.md +2 -2
- package/skills/omc-ado-review/SKILL.md +2 -2
- package/skills/omc-ado-setup/SKILL.md +1 -1
- package/skills/omc-ado-sprint/SKILL.md +2 -2
- package/skills/omc-ado-triage/SKILL.md +2 -2
- package/skills/omc-doctor/SKILL.md +1 -1
- package/skills/omc-gh-auto-review/SKILL.md +2 -2
- package/skills/omc-gh-project/SKILL.md +2 -2
- package/skills/omc-gh-review/SKILL.md +2 -2
- package/skills/omc-gh-setup/SKILL.md +2 -2
- package/skills/omc-gh-triage/SKILL.md +3 -3
- package/skills/omc-setup/SKILL.md +16 -14
- package/skills/omc-setup/phases/01-install-claude-md.md +1 -18
- package/skills/omc-setup/phases/02-configure.md +10 -30
- package/skills/omc-setup/phases/03-integrations.md +5 -5
- package/skills/omc-setup/phases/04-welcome.md +7 -7
- package/skills/plan/SKILL.md +1 -1
- package/skills/project-session-manager/SKILL.md +1 -1
- package/skills/ralph/SKILL.md +6 -6
- package/skills/ralph-experiment/SKILL.md +3 -3
- package/skills/ralplan/SKILL.md +4 -4
- package/skills/release/SKILL.md +1 -1
- package/skills/self-improve/SKILL.md +1 -1
- package/skills/skill/SKILL.md +12 -12
- package/skills/team/SKILL.md +8 -8
- package/skills/trace/SKILL.md +1 -1
- package/skills/visual-verdict/SKILL.md +1 -1
- package/templates/hooks/keyword-detector.mjs +4 -4
- package/templates/hooks/lib/workflow-stage-prompts.mjs +6 -2
- package/templates/hooks/persistent-mode.mjs +12 -8
- package/templates/hooks/session-start.mjs +1 -1
- package/bridge/__pycache__/gyoshu_bridge.cpython-314.pyc +0 -0
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
# Field testing oh-my-copilot
|
|
2
|
+
|
|
3
|
+
This guide is for a GitHub Copilot CLI agent that tests oh-my-copilot on a
|
|
4
|
+
second Windows computer and reports back to
|
|
5
|
+
[RobinNorberg/oh-my-copilot](https://github.com/RobinNorberg/oh-my-copilot).
|
|
6
|
+
It stands on its own: read it end to end before the first command, then keep
|
|
7
|
+
it open as a checklist.
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
Fixtures and unit tests show how `omg factory` behaves against recorded
|
|
12
|
+
answers. Field testing shows how it behaves against the real thing: a real
|
|
13
|
+
Azure DevOps org, a real `az` on Windows, real `psmux` panes, a real Copilot
|
|
14
|
+
CLI. The goal is to harden two areas:
|
|
15
|
+
|
|
16
|
+
- `omg factory` on Azure DevOps (setup, intake, runs, heal) and on GitHub;
|
|
17
|
+
- native Windows behaviour (paths, `az` spawning, team workers, sandboxed lanes).
|
|
18
|
+
|
|
19
|
+
Your output is GitHub issues, one per finding, and sometimes a small fix as a
|
|
20
|
+
draft PR. The maintainer side triages the issues, fixes the subtle ones,
|
|
21
|
+
reviews every PR and releases. Robin is the only person who merges.
|
|
22
|
+
|
|
23
|
+
## Ground rules
|
|
24
|
+
|
|
25
|
+
Each rule is a check you can run on yourself. Break none of them; when one is
|
|
26
|
+
in the way, stop and ask Robin.
|
|
27
|
+
|
|
28
|
+
1. **Test the published package, and record its version.** Run `omg --version`
|
|
29
|
+
before each session and put the number in every issue. *Why:* a finding is
|
|
30
|
+
only useful when the maintainer can install the same build; a local build
|
|
31
|
+
may hold fixes or bugs that no user has.
|
|
32
|
+
2. **Never merge, and never force-push.** No `gh pr merge`, no
|
|
33
|
+
`git push --force` or `--force-with-lease`, no rebase of a pushed branch.
|
|
34
|
+
When your branch falls behind `dev`, run `git merge origin/dev` and push
|
|
35
|
+
again. *Why:* Robin is the only merger, and a force-push can destroy
|
|
36
|
+
commits the maintainer side added to your branch.
|
|
37
|
+
3. **Push only `field/*` branches to this repository.** Every `git push` you
|
|
38
|
+
run against the `RobinNorberg/oh-my-copilot` remote names a branch that
|
|
39
|
+
starts with `field/`. The acceptance script's own pushes of `main` into
|
|
40
|
+
the throwaway Azure DevOps project (the `create` and `heal-drill` phases)
|
|
41
|
+
are outside this rule. *Why:* `dev`, `main` and `release/*` are the
|
|
42
|
+
maintainer's; a `field/` prefix also tells everyone where a branch came
|
|
43
|
+
from.
|
|
44
|
+
4. **Do not edit protected files.** Never change repository rulesets or
|
|
45
|
+
settings, `.github/known-flaky-tests.json`, `.github/workflows/*`, release
|
|
46
|
+
files (`CHANGELOG.md` released sections, `.github/release-body.md`,
|
|
47
|
+
`.github/release-notes.md`, `.github/upstream-port.json`, the version in
|
|
48
|
+
`package.json`). The one exception is your entry under
|
|
49
|
+
`## [Unreleased]` in `CHANGELOG.md`. *Why:* these files gate CI and
|
|
50
|
+
releases; a change to them needs the maintainer's judgement, not a field
|
|
51
|
+
fix.
|
|
52
|
+
5. **Never post secrets or identities.** No PATs, tokens, auth headers, org,
|
|
53
|
+
project, repository or user names, emails, machine or agent names, or user
|
|
54
|
+
profile paths in an issue, comment, commit, PR or branch name. Scrub first
|
|
55
|
+
(see [Scrubbing](#scrubbing)). *Why:* the repository is public, and GitHub
|
|
56
|
+
keeps edited-away text in the edit history.
|
|
57
|
+
6. **The acceptance script creates real Azure DevOps projects; clean up only
|
|
58
|
+
your own.** Run `--phase cleanup` only with the `--run <runId>` of a run
|
|
59
|
+
you made, and never delete any other project, repository, pipeline, work
|
|
60
|
+
item or agent in the org, by script or by hand. *Why:* the org may hold
|
|
61
|
+
other work; the cleanup guard deletes only the project in that run's
|
|
62
|
+
manifest, and nothing else is ever safe to delete.
|
|
63
|
+
7. **Ask Robin before spending Copilot credits.** These commands spend AI
|
|
64
|
+
credits: `scripts/ado-acceptance.mjs --with-lanes`, `omg factory run`
|
|
65
|
+
without `--dry-run`, `omg factory heal run` and `heal approve`,
|
|
66
|
+
`omg team` with real workers, and every live smoke: `omg smoke copilot
|
|
67
|
+
--tier 1`, `omg smoke copilot --tier 2` in any form without
|
|
68
|
+
`--sdk-static` or `--replay` (with no `--scenario` it runs `smoke` and
|
|
69
|
+
`guardrail`, about 0.6 credits), and `--record`. `omg factory poll` is
|
|
70
|
+
paid too when `factory.intake.autoStart` is on, because an idle tick then
|
|
71
|
+
starts `omg factory run --next`; check it first (see
|
|
72
|
+
[Step 2](#step-2-the-factory-by-hand-on-github-and-on-azure-devops)).
|
|
73
|
+
Free: `--dry-run` forms, `omg factory setup|check|board|enqueue
|
|
74
|
+
--dry-run`, `omg factory poll --once` once autoStart is checked off,
|
|
75
|
+
`omg factory heal scan`, `omg smoke copilot` (tier 0), `omg smoke copilot
|
|
76
|
+
--sdk-static`, `omg smoke copilot --tier 2 --replay <dir>`,
|
|
77
|
+
`omg smoke cassette verify`. Before a paid command, say which command,
|
|
78
|
+
why, and the estimate (the
|
|
79
|
+
[REFERENCE.md](./REFERENCE.md#omg-smoke-copilot) figures), and wait for a
|
|
80
|
+
yes. *Why:* the account's quota is small and shared with releases.
|
|
81
|
+
8. **Never answer a confirmation for Robin.** Never add `--yes` to any
|
|
82
|
+
command, never run `scripts/ado-acceptance.mjs --phase all` (it is also
|
|
83
|
+
the default, so always pass `--phase`), and never pipe an answer into a
|
|
84
|
+
prompt, unless Robin has said yes to that exact command in this session.
|
|
85
|
+
*Why:* `--yes` writes trust into the user config and deletes projects
|
|
86
|
+
without a human looking; Copilot CLI's shell has no terminal, so every
|
|
87
|
+
prompt answers no and prints "pass --yes", which is not an invitation.
|
|
88
|
+
9. **One finding per issue, and search first.** *Why:* one issue maps to one
|
|
89
|
+
fix and one close; duplicates split the discussion.
|
|
90
|
+
|
|
91
|
+
## Setup
|
|
92
|
+
|
|
93
|
+
### 1. GitHub CLI with minimal rights
|
|
94
|
+
|
|
95
|
+
Robin creates a fine-grained personal access token that reaches two repositories
|
|
96
|
+
only: `RobinNorberg/oh-my-copilot`, and a scratch repository for the GitHub
|
|
97
|
+
factory test ([Step 2](#step-2-the-factory-by-hand-on-github-and-on-azure-devops)).
|
|
98
|
+
Robin creates the scratch repository and the token; you never create a
|
|
99
|
+
repository and you never handle a token. On GitHub, under **Settings → Developer settings → Personal
|
|
100
|
+
access tokens → Fine-grained tokens → Generate new token**:
|
|
101
|
+
|
|
102
|
+
- **Resource owner:** `RobinNorberg`.
|
|
103
|
+
- **Repository access:** **Only select repositories**, then pick
|
|
104
|
+
`RobinNorberg/oh-my-copilot` and the scratch repository. Nothing else.
|
|
105
|
+
- **Repository permissions:**
|
|
106
|
+
|
|
107
|
+
| Permission | Access | For |
|
|
108
|
+
|---|---|---|
|
|
109
|
+
| Contents | Read and write | pushing `field/*` branches; the factory's branches in the scratch repository |
|
|
110
|
+
| Issues | Read and write | filing findings, labels, comments; factory intake in the scratch repository |
|
|
111
|
+
| Pull requests | Read and write | draft PRs |
|
|
112
|
+
| Actions | Read | `omg factory heal scan` and the factory's CI checks read workflow runs |
|
|
113
|
+
| Metadata | Read | required by GitHub |
|
|
114
|
+
|
|
115
|
+
Robin: give it nothing else: no Administration, no Workflows, no Actions write, no
|
|
116
|
+
Secrets, no account permissions. Without the Workflows permission GitHub
|
|
117
|
+
itself refuses a push that touches `.github/workflows/`. Contents write
|
|
118
|
+
still allows pushing any branch, so rule 3 is yours to keep.
|
|
119
|
+
|
|
120
|
+
Robin runs `gh auth login --hostname github.com` himself on that machine and
|
|
121
|
+
pastes the token there. It is interactive: it fails without a terminal, and a
|
|
122
|
+
token pasted into the session lands in the transcript. The agent only runs:
|
|
123
|
+
|
|
124
|
+
```powershell
|
|
125
|
+
gh auth status
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
If that shows it is not logged in, stop and report to Robin. Never run
|
|
129
|
+
`gh auth login` and never handle a token.
|
|
130
|
+
|
|
131
|
+
### 2. Git identity
|
|
132
|
+
|
|
133
|
+
Use your GitHub noreply address, never a personal email (rule 5):
|
|
134
|
+
|
|
135
|
+
```powershell
|
|
136
|
+
git config --global user.name "<your GitHub login>"
|
|
137
|
+
git config --global user.email "<id>+<login>@users.noreply.github.com"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### 3. The published package
|
|
141
|
+
|
|
142
|
+
```powershell
|
|
143
|
+
npm i -g oh-my-copilot@latest
|
|
144
|
+
npm i -g @github/copilot-sdk --omit=optional --ignore-scripts
|
|
145
|
+
omg --version
|
|
146
|
+
omg setup
|
|
147
|
+
omg doctor
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Write the version down; it goes in every issue. `@github/copilot-sdk` is an
|
|
151
|
+
optional peer: without it `omg smoke copilot --sdk-static` and every tier 2
|
|
152
|
+
form exit 2 ("skipped"). Exit 2 is not a pass; report it as skipped.
|
|
153
|
+
|
|
154
|
+
For team workers in panes (Step 3) install psmux 3.3.7 or later and check
|
|
155
|
+
the version:
|
|
156
|
+
|
|
157
|
+
```powershell
|
|
158
|
+
winget install psmux
|
|
159
|
+
psmux -V
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### 4. Two clones: the guide on `dev`, the scripts at your version
|
|
163
|
+
|
|
164
|
+
The acceptance and fixture scripts live in the repository, not the package,
|
|
165
|
+
and need a build matching the installed package. This guide and the field
|
|
166
|
+
section of `AGENTS.md` live on `dev` and do not exist in older tags, so a
|
|
167
|
+
`git checkout v<version>` in the clone you read them from would delete
|
|
168
|
+
them. Keep two separate clones (two directories, not `git worktree`):
|
|
169
|
+
|
|
170
|
+
```powershell
|
|
171
|
+
# 1. The guide, and the base for fixes: stays on dev.
|
|
172
|
+
gh repo clone RobinNorberg/oh-my-copilot C:\field\guide
|
|
173
|
+
# 2. The scripts, at the tag that matches `omg --version`.
|
|
174
|
+
gh repo clone RobinNorberg/oh-my-copilot C:\field\run
|
|
175
|
+
cd C:\field\run
|
|
176
|
+
git checkout v<version> # for example v5.19.2
|
|
177
|
+
npm ci
|
|
178
|
+
npm run build
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Run every `node scripts/...` command and every test from `C:\field\run`.
|
|
182
|
+
Judge behaviour against that tag's `docs/REFERENCE.md`
|
|
183
|
+
(`C:\field\run\docs\REFERENCE.md`), not the one on `dev`: `dev` may document
|
|
184
|
+
features your version lacks. Read this guide from `C:\field\guide`, and
|
|
185
|
+
`git pull` there before each session. Fixes start from `origin/dev` in
|
|
186
|
+
`C:\field\guide` (see [Contributing a fix](#contributing-a-fix)).
|
|
187
|
+
|
|
188
|
+
### 5. Azure DevOps access
|
|
189
|
+
|
|
190
|
+
- Azure CLI with the extension: `az extension add --name azure-devops`.
|
|
191
|
+
- Sign in with `az login`, or have Robin set `AZURE_DEVOPS_EXT_PAT` in the
|
|
192
|
+
session himself. Never type a PAT yourself and never put one in a file
|
|
193
|
+
(see [Scrubbing](#scrubbing)).
|
|
194
|
+
- A test repository to push into the throwaway project: a local clone with a
|
|
195
|
+
`BACKLOG.md` of `## EXC-NNN` tickets. Ask Robin which one.
|
|
196
|
+
- An agent for the project's pipeline: Robin registers any pipeline agent, or
|
|
197
|
+
tells you which pool to use (`--hosted` needs the org linked to an Azure
|
|
198
|
+
subscription; ask Robin before using it, it can bill). Never register,
|
|
199
|
+
reconfigure or remove an agent yourself: it is an org-level write outside the
|
|
200
|
+
manifest.
|
|
201
|
+
|
|
202
|
+
## What to test
|
|
203
|
+
|
|
204
|
+
Do these in order. Each step names the command and what to look for. Run
|
|
205
|
+
everything in PowerShell unless a step says otherwise, and keep the full
|
|
206
|
+
output of anything that surprises you.
|
|
207
|
+
|
|
208
|
+
### Step 1: the ADO acceptance flow
|
|
209
|
+
|
|
210
|
+
The script is `scripts/ado-acceptance.mjs`; its reference is
|
|
211
|
+
[Live acceptance on Azure DevOps](./REFERENCE.md#live-acceptance-on-azure-devops-maintainers).
|
|
212
|
+
Every phase takes `--org https://dev.azure.com/<org>`; the first phases also
|
|
213
|
+
take `--source <test repo clone>`. Always pass `--phase`: without it the
|
|
214
|
+
script runs every phase (`all`), which rule 8 forbids. Never add `--yes`
|
|
215
|
+
(rule 8).
|
|
216
|
+
|
|
217
|
+
1. **Dry run first, always.**
|
|
218
|
+
`node scripts/ado-acceptance.mjs --org <org url> --source <clone> --phase preflight --dry-run`
|
|
219
|
+
prints the exact argv of every command and every file it would write, and
|
|
220
|
+
runs nothing. Observe: every `az` call except `az --version` (which
|
|
221
|
+
prints text only) ends in `--output json`, and every `devops`, `repos`,
|
|
222
|
+
`boards` and `pipelines` call also carries `--detect false`; no argv holds
|
|
223
|
+
a token; paths are Windows paths.
|
|
224
|
+
2. **Preflight.** The same without `--dry-run`. It is read-only and free.
|
|
225
|
+
Observe: one `ok` line per check (az, the `azure-devops` extension, the
|
|
226
|
+
login, the org, a clean `--source`, `BACKLOG.md`, the build), the pool
|
|
227
|
+
advice, and `Copilot: no lane runs without --with-lanes (0 credits)`.
|
|
228
|
+
3. **Create.** `--phase create`. Makes one private Agile project named
|
|
229
|
+
`omg-acc-<yyyymmddHHMM>` and writes its manifest to
|
|
230
|
+
`~/.omg/acceptance/<runId>.json`. Note the run id. Observe: the push of
|
|
231
|
+
`main` succeeds before the build policy appears; `omg factory setup` runs
|
|
232
|
+
and pushes `.copilot/omg.jsonc`.
|
|
233
|
+
4. **Enqueue**, in two passes, because it writes trust into the user config.
|
|
234
|
+
Copilot CLI's shell has no terminal, so the script's first question (add
|
|
235
|
+
the spec creator to `trustedAuthors`) answers no and the run throws
|
|
236
|
+
"not confirmed"; the second question (enqueue the tickets) never comes.
|
|
237
|
+
Passing `--yes` is what answers both. You never add `--yes` on your own.
|
|
238
|
+
1. Run `--phase enqueue --run <runId> --source <clone> --dry-run`. It
|
|
239
|
+
runs and writes nothing, and prints: the `user-scope write:` block
|
|
240
|
+
(the user config path and the `trustedAuthors` list before `->`
|
|
241
|
+
after), the `omg factory setup` and `omg factory enqueue` argv it
|
|
242
|
+
would run, and the two questions as `[dry-run] would ask:` lines (the
|
|
243
|
+
second names how many tickets it would enqueue under which spec).
|
|
244
|
+
2. Send Robin all of it, scrubbed (the author is a `uniqueName`: write
|
|
245
|
+
`user1@example.com`), and ask whether to proceed.
|
|
246
|
+
3. Only after he explicitly says yes to this run, rerun
|
|
247
|
+
`--phase enqueue --run <runId> --yes`.
|
|
248
|
+
|
|
249
|
+
Observe: every ticket becomes a User Story child of the spec; a second
|
|
250
|
+
`--dry-run` reports every ticket `unchanged`.
|
|
251
|
+
5. **Exercise.** `--phase exercise --run <runId>` (no `--with-lanes`). It runs
|
|
252
|
+
`omg factory check`, `check --parent`, `board` and `run --next --parent
|
|
253
|
+
<spec> --dry-run`. Observe: each `PASS`/`FAIL` line; a ticket with a
|
|
254
|
+
predecessor is `blocked` with `depends-on:#<id>`.
|
|
255
|
+
6. **Heal drill**, only with a working agent: `--phase heal-drill --run
|
|
256
|
+
<runId>`. Pushes a failing test, waits up to 20 minutes for the red build,
|
|
257
|
+
runs `omg factory heal scan` and `heal run <sig8> --dry-run`, then reverts.
|
|
258
|
+
Observe: the build policy is enabled again afterwards.
|
|
259
|
+
7. **Capture.** `--phase capture --run <runId>`. Writes fixtures to
|
|
260
|
+
`~/.omg/acceptance/<runId>/capture/` and prints a drift report against the
|
|
261
|
+
recording. A drift line is a finding.
|
|
262
|
+
8. **Cleanup.** `--phase cleanup --org <org url> --run <runId>`. Deletes only
|
|
263
|
+
this run's project (restorable for 28 days) and its clone. It prints the
|
|
264
|
+
`trustedAuthors` the run added. Send Robin that list (scrubbed); he
|
|
265
|
+
decides whether to remove them. Never remove them yourself.
|
|
266
|
+
|
|
267
|
+
`--with-lanes` on `exercise` or `heal-drill` runs real lanes and spends
|
|
268
|
+
credits (rule 7).
|
|
269
|
+
|
|
270
|
+
### When a phase fails
|
|
271
|
+
|
|
272
|
+
A phase that exits non-zero may have made part of a project, pipeline, work
|
|
273
|
+
item or policy. The manifest records which step was in flight.
|
|
274
|
+
|
|
275
|
+
- Never rerun `create`: a second run makes a second project, and the first
|
|
276
|
+
run's half-made parts are then nobody's.
|
|
277
|
+
- Never delete anything in the org by hand, not even what the failed run
|
|
278
|
+
made (rule 6).
|
|
279
|
+
- Do not try `--phase all`, `--yes` or another `--run` to get past it.
|
|
280
|
+
- Stop, and send Robin the error, the manifest path and the pending line.
|
|
281
|
+
On a failure the script prints
|
|
282
|
+
`the manifest <path> records a pending <step>; check the org before retrying`.
|
|
283
|
+
When it prints no such line, say so and give the manifest path
|
|
284
|
+
(`~/.omg/acceptance/<runId>.json`). Wait for his answer.
|
|
285
|
+
|
|
286
|
+
### Step 2: the factory by hand, on GitHub and on Azure DevOps
|
|
287
|
+
|
|
288
|
+
Run these inside a test repository whose `origin` is the forge under test (the
|
|
289
|
+
acceptance clone under `~/.omg/acceptance/<runId>/repo/` for Azure DevOps; a
|
|
290
|
+
scratch repository Robin made for GitHub, see Setup step 1). The reference is
|
|
291
|
+
[`omg factory`](./REFERENCE.md#omg-factory).
|
|
292
|
+
|
|
293
|
+
| Command | Observe |
|
|
294
|
+
|---|---|
|
|
295
|
+
| `omg factory setup --intake <source> --dry-run --json` (`<source>` as in the reference, for example `label:factory` or `wiql-query:<guid>`) | the detected forge, the auth check (no token printed), the diff it would write, the preview |
|
|
296
|
+
| `omg factory check --json` | every item in exactly one bucket (`runnable`, `needs-plan`, `blocked`) with its reason codes |
|
|
297
|
+
| `omg factory board --json` | the same items with their runs and stages; no write to the tracker |
|
|
298
|
+
| `omg factory poll --once --json`, only after the autoStart check below | one tick, no lane started, no tracker write; the tick's `autoStart` is `{ "started": false, "reason": "factory.intake.autoStart is off" }` |
|
|
299
|
+
| `omg factory run --next --parent <spec> --dry-run` | the pick matches the first runnable item of `check --parent` |
|
|
300
|
+
| `omg factory heal scan --dry-run --json` | red CI runs classified; no state written |
|
|
301
|
+
|
|
302
|
+
**The autoStart check, before any `omg factory poll`.** With
|
|
303
|
+
`factory.intake.autoStart: true` an idle tick starts `omg factory run --next`,
|
|
304
|
+
which runs lanes and spends credits. The key is read from only two places;
|
|
305
|
+
both must lack it or set it to `false`:
|
|
306
|
+
|
|
307
|
+
```powershell
|
|
308
|
+
Select-String -Path "$env:USERPROFILE\AppData\Roaming\claude-omc\config.jsonc" -Pattern 'autoStart' -ErrorAction SilentlyContinue
|
|
309
|
+
git fetch origin # if git asks for credentials or opens a sign-in window, stop and tell Robin; never type or paste credentials
|
|
310
|
+
git show "origin/<base>:.copilot/omg.jsonc" | Select-String 'autoStart'
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
`<base>` is `ship.base` (default `dev`; for a test repository without `dev`
|
|
314
|
+
use the branch its PRs target, usually `main`). No output from either means
|
|
315
|
+
off. A `true` anywhere: stop and ask Robin; poll is then a paid command
|
|
316
|
+
(rule 7).
|
|
317
|
+
|
|
318
|
+
`omg factory run --next --parent <spec>` without `--dry-run` runs lanes:
|
|
319
|
+
credits, ask first. It must stop at `awaiting-human: merge` and never merge.
|
|
320
|
+
|
|
321
|
+
### Step 3: Windows team workers
|
|
322
|
+
|
|
323
|
+
The reference is [`omg team`](./REFERENCE.md#omg-team-cli-runtime-surface) and
|
|
324
|
+
its [Windows (psmux)](./REFERENCE.md#windows-psmux) section.
|
|
325
|
+
|
|
326
|
+
Check every command's syntax against your version first, with
|
|
327
|
+
`omg team --help` and `omg smoke copilot --help` (or
|
|
328
|
+
`node bin/oh-my-copilot.js team --help` in `C:\field\run`).
|
|
329
|
+
|
|
330
|
+
1. Free checks: `omg doctor`, `omg smoke copilot` (tier 0) and
|
|
331
|
+
`omg smoke copilot --sdk-static`. Observe: all checks pass; `sdk.sandbox`
|
|
332
|
+
reports host support. Exit 2 means skipped (the copilot binary or
|
|
333
|
+
`@github/copilot-sdk` was not found), not passed.
|
|
334
|
+
2. With Robin's yes (credits), both transports. Under Copilot CLI the
|
|
335
|
+
default `--transport auto` picks `sdk`, so the psmux run needs
|
|
336
|
+
`--transport pane`:
|
|
337
|
+
- `omg team 2:copilot --transport sdk "<a tiny task>"`
|
|
338
|
+
- `omg team 2:copilot --transport pane "<a tiny task>"`
|
|
339
|
+
|
|
340
|
+
Each launch prints the team name. Then run
|
|
341
|
+
`omg team status <team-name> --json` and
|
|
342
|
+
`omg team shutdown <team-name>`. Observe: `transport`, worker states, AI
|
|
343
|
+
credits per worker, a clean shutdown, and for `pane` no leftover psmux
|
|
344
|
+
namespace (the namespace is in `status`; see the
|
|
345
|
+
[Windows (psmux)](./REFERENCE.md#windows-psmux) section).
|
|
346
|
+
|
|
347
|
+
### Step 4: Copilot record and replay (when asked)
|
|
348
|
+
|
|
349
|
+
The reference is [`omg smoke copilot`](./REFERENCE.md#omg-smoke-copilot).
|
|
350
|
+
|
|
351
|
+
- Free, and only once cassettes exist in your clone: `omg smoke copilot
|
|
352
|
+
--tier 2 --scenario factory-run --replay
|
|
353
|
+
src/smoke/__tests__/fixtures/cassettes` in `C:\field\run` replays recorded
|
|
354
|
+
model traffic. First check that
|
|
355
|
+
`src/smoke/__tests__/fixtures/cassettes` exists there; when it does not
|
|
356
|
+
(no release has shipped cassettes yet), skip this step. A missing
|
|
357
|
+
cassette directory is not a finding. With cassettes present, a miss or a
|
|
358
|
+
failed check is a finding.
|
|
359
|
+
- Paid, only on Robin's request: `omg smoke copilot --tier 2 --scenario
|
|
360
|
+
<list> --model <id> --record ~/omg-cassettes` records new cassettes. See
|
|
361
|
+
[Captured data](#captured-data) for how they come in.
|
|
362
|
+
|
|
363
|
+
## Filing a finding
|
|
364
|
+
|
|
365
|
+
**When to file.** A command that fails, hangs, prints a secret, writes where
|
|
366
|
+
it should not, disagrees with REFERENCE.md, or behaves differently on Windows
|
|
367
|
+
than the docs say. One finding per issue. A question about intent is a
|
|
368
|
+
finding too; say so in the title.
|
|
369
|
+
|
|
370
|
+
**Search first.**
|
|
371
|
+
|
|
372
|
+
```powershell
|
|
373
|
+
gh issue list --repo RobinNorberg/oh-my-copilot --label field --state all --search "<two or three keywords>"
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
When a match exists, add your data as a comment on it instead.
|
|
377
|
+
|
|
378
|
+
**The form.** On the web, use **New issue → Field report**. From the CLI,
|
|
379
|
+
`gh issue create` does not render forms, so write a body with the same
|
|
380
|
+
headings and pass the labels yourself:
|
|
381
|
+
|
|
382
|
+
```powershell
|
|
383
|
+
gh issue create --repo RobinNorberg/oh-my-copilot --title "factory-ado: <short symptom>" --label field --label field:ado --body-file finding.md
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
Required in the body, under these headings: **Area**, **oh-my-copilot
|
|
387
|
+
version**, **OS**, **Copilot CLI version**, **Forge**, **Command run**,
|
|
388
|
+
**Expected**, **Actual**, **Logs**, and the two confirmations (scrubbed;
|
|
389
|
+
duplicates searched). Add `field:ado` for Azure DevOps findings and
|
|
390
|
+
`field:windows` for Windows-only ones. Keep `finding.md` outside the clone.
|
|
391
|
+
|
|
392
|
+
### Scrubbing
|
|
393
|
+
|
|
394
|
+
Before anything leaves this machine:
|
|
395
|
+
|
|
396
|
+
- **ADO captures and recordings:** never paste them. They come in by PR after
|
|
397
|
+
`node scripts/ado-fixture-import.mjs <dir> --dry-run` (see
|
|
398
|
+
[Captured data](#captured-data)). In an issue, quote only the one or two
|
|
399
|
+
lines that matter, scrubbed by hand.
|
|
400
|
+
- **By hand, in logs and text**, replace with the same names the import uses,
|
|
401
|
+
so issues and fixtures agree:
|
|
402
|
+
|
|
403
|
+
| Real value | Write |
|
|
404
|
+
|---|---|
|
|
405
|
+
| org / project / repository | `contoso` / `Web` / `web-app` |
|
|
406
|
+
| a user's email or `uniqueName` | `user1@example.com` (`user2@…` for the next) |
|
|
407
|
+
| a display name | `User 1` |
|
|
408
|
+
| a PAT, token, `Authorization` header | `[REDACTED]` |
|
|
409
|
+
| a machine or agent name | `agent1` |
|
|
410
|
+
| `C:\Users\<name>` | `C:\Users\user` |
|
|
411
|
+
| a GUID that identifies your org or project | `00000000-0000-0000-0000-000000000001` |
|
|
412
|
+
| a tenant id or subscription id (`tenantId`, `id` in `az account show`) | `00000000-0000-0000-0000-000000000002` |
|
|
413
|
+
| a subscription name (`name` in `az account show`) | `subscription1` |
|
|
414
|
+
| a GitHub token (`ghp_…`, `github_pat_…`, `gho_…`) | `[REDACTED]` |
|
|
415
|
+
| an Azure DevOps PAT (52 lowercase letters and digits 2-7, or the newer 84-character form with `AZDO` inside) | `[REDACTED]` |
|
|
416
|
+
| an old-style org URL `https://<org>.visualstudio.com` | `https://dev.azure.com/contoso` |
|
|
417
|
+
| a OneDrive company folder (`OneDrive - <company>`) | `OneDrive - Company` |
|
|
418
|
+
| a git remote with credentials in it (`https://<user>:<token>@…`) | `https://dev.azure.com/contoso/Web/_git/web-app` |
|
|
419
|
+
|
|
420
|
+
Then search the text. Each hit must be one of the scrubbed forms:
|
|
421
|
+
|
|
422
|
+
```powershell
|
|
423
|
+
Select-String -Path finding.md -Pattern '@','dev\.azure\.com/','visualstudio\.com','Bearer','Basic ','ghp_','github_pat_','gho_','AZDO','\b[a-z2-7]{52}\b','OneDrive - ','tenantId','subscription','https?://[^/\s]+:[^@\s]+@','<your login>','<your machine name>'
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
Replace the last two patterns with your real login and machine name before
|
|
427
|
+
running it, and never paste that command line anywhere.
|
|
428
|
+
|
|
429
|
+
**Never type a PAT.** Robin sets `AZURE_DEVOPS_EXT_PAT` in your session
|
|
430
|
+
himself (or you sign in with `az login`). A value you type lands in the
|
|
431
|
+
PSReadLine history file and in the Copilot CLI transcript, both of which
|
|
432
|
+
outlive the session. When a command needs a token you do not have, stop
|
|
433
|
+
and ask.
|
|
434
|
+
|
|
435
|
+
## Contributing a fix
|
|
436
|
+
|
|
437
|
+
**Fix it yourself only when all of these hold:** the cause is in one place,
|
|
438
|
+
the fix is a few lines, a focused test proves it (red before, green after),
|
|
439
|
+
and it touches no protected file (rule 4). Typical: a wrong path join on
|
|
440
|
+
Windows, a missing `--output json`, a doc that names a flag wrongly.
|
|
441
|
+
|
|
442
|
+
**File only** when the cause is unclear, the fix spans modules, it touches a
|
|
443
|
+
security guard (`runGuardedAdo`, `plainText`, the neutralization helpers,
|
|
444
|
+
the sandbox, the cleanup guard), it changes GitHub forge behaviour, or the
|
|
445
|
+
test needs live services. Say what you suspect in the issue.
|
|
446
|
+
|
|
447
|
+
**Steps** (the project rules are in [CONTRIBUTING.md](../CONTRIBUTING.md) and
|
|
448
|
+
[AGENTS.md](../AGENTS.md); where this fork differs from CONTRIBUTING.md, the
|
|
449
|
+
list below wins and the difference is called out):
|
|
450
|
+
|
|
451
|
+
1. Comment on the issue that you are taking it and add
|
|
452
|
+
`field:fix-in-progress`.
|
|
453
|
+
2. Branch from `dev` in `C:\field\guide`, never in `C:\field\run`:
|
|
454
|
+
`git fetch origin` then `git switch -c field/<issue#>-<slug> origin/dev`
|
|
455
|
+
(for example `field/412-az-path-join`), then `npm ci`. Switch back to
|
|
456
|
+
`dev` when the PR is open, so the guide you read stays current.
|
|
457
|
+
3. Reproduce on `dev` first. When `dev` already behaves, say so on the issue
|
|
458
|
+
and stop.
|
|
459
|
+
4. Write the failing test, then the fix. Keep the diff small; match the
|
|
460
|
+
surrounding code.
|
|
461
|
+
5. Build and check:
|
|
462
|
+
|
|
463
|
+
```powershell
|
|
464
|
+
npm run build
|
|
465
|
+
npx vitest run <the test files you touched>
|
|
466
|
+
npx tsc --noEmit
|
|
467
|
+
npm run lint
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
Keep `pr.md`, `finding.md` and any notes OUTSIDE the clone (for example
|
|
471
|
+
in `C:\field\notes\`): the `git add -A` in step 7 would commit them.
|
|
472
|
+
|
|
473
|
+
6. Add one entry under `## [Unreleased]` in `CHANGELOG.md` (Fixed, Changed or
|
|
474
|
+
Docs), ending with the issue number.
|
|
475
|
+
7. Stage, then regenerate the inventory (it counts tracked files only, so it
|
|
476
|
+
comes after `git add`):
|
|
477
|
+
|
|
478
|
+
```powershell
|
|
479
|
+
git add -A
|
|
480
|
+
git add -f dist bridge
|
|
481
|
+
node scripts/generate-inventory-graph.mjs --write
|
|
482
|
+
node scripts/generate-inventory-graph.mjs --verify
|
|
483
|
+
git add -A
|
|
484
|
+
git status
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
On this fork `dist/` and `bridge/` are committed, so `git add -f dist
|
|
488
|
+
bridge` is required; CONTRIBUTING.md §6 describes the upstream policy.
|
|
489
|
+
Never `git add -A -f`: it would add ignored files such as `node_modules/`
|
|
490
|
+
and `.omg/`. `git status` must show neither.
|
|
491
|
+
8. Commit with a conventional message (`fix(factory): …`), then push:
|
|
492
|
+
`git push -u origin field/<issue#>-<slug>`.
|
|
493
|
+
9. Open a draft PR to `dev`:
|
|
494
|
+
|
|
495
|
+
```powershell
|
|
496
|
+
gh pr create --repo RobinNorberg/oh-my-copilot --base dev --draft --label field --title "fix(<area>): <summary>" --body-file C:\field\notes\pr.md
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
The body holds: what and why in two or three lines; `Fixes #<n>`; the red
|
|
500
|
+
evidence (the test failing before the fix, output trimmed); the green
|
|
501
|
+
evidence (the same test passing, plus `npx tsc --noEmit` and
|
|
502
|
+
`npm run lint` clean); what you could not verify. `Fixes #<n>` closes the
|
|
503
|
+
issue when the change reaches `main` in a release, not when the PR merges
|
|
504
|
+
to `dev`.
|
|
505
|
+
|
|
506
|
+
Two checks fail by design on every PR whose diff touches `dist/` or
|
|
507
|
+
`bridge/`, which every fix with a build does: **No Committed Build
|
|
508
|
+
Artifacts** and **Authorize generated artifacts from base trust root**.
|
|
509
|
+
They hold generated changes for the maintainer's sign-off. Do not try to
|
|
510
|
+
make them pass (no `git restore dist bridge`, no workflow edits); say in
|
|
511
|
+
the PR body that they are expected. Any other red check is yours to look
|
|
512
|
+
at.
|
|
513
|
+
10. Answer review comments with new commits on the same branch. Never
|
|
514
|
+
force-push (rule 2).
|
|
515
|
+
|
|
516
|
+
## Captured data
|
|
517
|
+
|
|
518
|
+
ADO fixture captures and Copilot replay cassettes come in by PR only, never as
|
|
519
|
+
issue attachments or pasted text.
|
|
520
|
+
|
|
521
|
+
- **ADO captures** (`~/.omg/acceptance/<runId>/capture/`, or a recording
|
|
522
|
+
under `recorded/`): in a `field/` branch from `dev`, run
|
|
523
|
+
`node scripts/ado-fixture-import.mjs <dir> --dry-run`, then without
|
|
524
|
+
`--dry-run`. The import scrubs every string again and refuses the whole
|
|
525
|
+
import when anything identifying is left; a refusal is itself a finding.
|
|
526
|
+
The files land under `src/forge/ado/__tests__/fixtures/live/<name>/`. Read
|
|
527
|
+
the diff before committing.
|
|
528
|
+
- **Replay cassettes** (from `--record <dir>`): run
|
|
529
|
+
`omg smoke cassette verify <dir>` (the redaction gate, then a free replay),
|
|
530
|
+
then on your `field/` branch in `C:\field\guide` run
|
|
531
|
+
`omg smoke cassette import <dir>`, which copies them
|
|
532
|
+
into `src/smoke/__tests__/fixtures/cassettes/`. A cassette marked
|
|
533
|
+
`REDACTION-FAILED` never goes in. Read the diff before committing.
|
|
534
|
+
|
|
535
|
+
Then follow [Contributing a fix](#contributing-a-fix) from step 5, with a PR
|
|
536
|
+
body that names the run, the moment or scenario, and the Copilot CLI version.
|
|
537
|
+
|
|
538
|
+
## Labels and what happens next
|
|
539
|
+
|
|
540
|
+
| Label | Set by | Meaning | Next |
|
|
541
|
+
|---|---|---|---|
|
|
542
|
+
| `field` | the issue form, or you | a field-test finding | the maintainer side triages it |
|
|
543
|
+
| `field:ado` | you | it involves Azure DevOps | triaged with the ADO adapter work |
|
|
544
|
+
| `field:windows` | you | it is specific to native Windows | checked on a second Windows machine |
|
|
545
|
+
| `field:needs-repro` | the maintainer | not reproduced from the report | add the missing data as a comment; the label is removed when it reproduces |
|
|
546
|
+
| `field:fix-in-progress` | whoever starts the fix | a branch or PR is open for it | nobody else starts a second fix |
|
|
547
|
+
|
|
548
|
+
Issues and PRs labelled `field` are exempt from the stale bot, so a finding
|
|
549
|
+
or a fix PR never closes for inactivity. Put `field` on every issue and PR
|
|
550
|
+
you open (the form and the `gh` commands above do).
|
|
551
|
+
|
|
552
|
+
## What the maintainer side does
|
|
553
|
+
|
|
554
|
+
The maintainer side is a Claude Code session on Robin's main computer.
|
|
555
|
+
|
|
556
|
+
- It reads new `field` issues, labels and reproduces them, and answers on the
|
|
557
|
+
issue. Expect questions there, not elsewhere.
|
|
558
|
+
- It implements the subtle fixes itself, with separate review lanes, and links
|
|
559
|
+
them to your issue.
|
|
560
|
+
- It reviews your draft PRs. It may push commits to your `field/` branch; pull
|
|
561
|
+
before you continue (`git pull`, a merge, never a rebase).
|
|
562
|
+
- Robin merges to `dev`, and releases from `dev` to `main`. A released fix
|
|
563
|
+
closes its issue; then test it again on the new published version.
|
package/docs/GETTING-STARTED.md
CHANGED
|
@@ -27,7 +27,7 @@ OMC ships two surfaces and they are designed to coexist:
|
|
|
27
27
|
|
|
28
28
|
| Surface | What you get | Recommended install |
|
|
29
29
|
|---|---|---|
|
|
30
|
-
| **Plugin** (`oh-my-copilot@omc`, Copilot CLI or Claude Code) | In-session skills, agents, hooks, statusline, MCP servers — the `/
|
|
30
|
+
| **Plugin** (`oh-my-copilot@omc`, Copilot CLI or Claude Code) | In-session skills, agents, hooks, statusline, MCP servers — the `/autopilot`, `/ralph`, `/execute`, and `/team` slash commands (on Claude Code: `/oh-my-copilot:<name>`) | Marketplace plugin install (Step 1–2 below) |
|
|
31
31
|
| **Terminal CLI** (`omg` binary, package `oh-my-copilot`) | Shell commands: `omg setup`, `omg update`, `omg team`, `omg ask`, and a hard-deprecated `omg autoresearch` shim | `npm i -g oh-my-copilot@latest` |
|
|
32
32
|
|
|
33
33
|
Most users want **both**: the plugin for the in-session experience, and the npm CLI for shell-side automation and updates. Running them in parallel is fully supported — `omg update` and `omg setup` are idempotent and detect the plugin install to avoid duplicating in-session skills (#2252).
|
|
@@ -81,7 +81,7 @@ Both can be installed at the same time. The host config directory is `~/.copilot
|
|
|
81
81
|
After installation, run this in Claude Code:
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
|
-
/
|
|
84
|
+
/omc-setup
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
### Prerequisites summary
|
|
@@ -99,7 +99,7 @@ After installation, run this in Claude Code:
|
|
|
99
99
|
Applies OMC only to the current project:
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
/
|
|
102
|
+
/omc-setup --local
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
- Settings are saved to `./.claude/CLAUDE.md`
|
|
@@ -111,7 +111,7 @@ Applies OMC only to the current project:
|
|
|
111
111
|
Applies OMC to all Claude Code sessions:
|
|
112
112
|
|
|
113
113
|
```bash
|
|
114
|
-
/
|
|
114
|
+
/omc-setup
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
- Settings are saved to `~/.claude/CLAUDE.md`
|
|
@@ -124,7 +124,7 @@ Applies OMC to all Claude Code sessions:
|
|
|
124
124
|
To confirm everything is working, run the diagnostics tool:
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
|
-
/
|
|
127
|
+
/omc-doctor
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
This checks the following:
|
|
@@ -159,7 +159,7 @@ This loads agents, skills, and commands directly from your checkout without copy
|
|
|
159
159
|
|
|
160
160
|
OMC checks for updates at session start, at most every 6 hours, and earlier after an update or a switch between plugin and npm installs. A plugin install reads the latest version from the marketplace on `main`, and an npm install reads npm `latest`. To update a plugin install, run `copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc` in a shell (the HUD hint prints the same chain), or `/plugin update oh-my-copilot@omc` inside Copilot CLI. To update an npm install, run `npm i -g oh-my-copilot@latest`.
|
|
161
161
|
|
|
162
|
-
> ⚠️ **Warning:** After a plugin update, run `/
|
|
162
|
+
> ⚠️ **Warning:** After a plugin update, run `/omc-setup` again to apply the latest configuration.
|
|
163
163
|
|
|
164
164
|
### Uninstalling
|
|
165
165
|
|
|
@@ -231,7 +231,7 @@ While work is in progress, you can monitor the current state in the Claude Code
|
|
|
231
231
|
To configure the HUD display, run:
|
|
232
232
|
|
|
233
233
|
```bash
|
|
234
|
-
/
|
|
234
|
+
/hud setup
|
|
235
235
|
```
|
|
236
236
|
|
|
237
237
|
### Starting smaller
|
|
@@ -246,10 +246,10 @@ analyze why this test is failing
|
|
|
246
246
|
deepsearch for files that handle authentication
|
|
247
247
|
|
|
248
248
|
# Approved implementation task
|
|
249
|
-
/
|
|
249
|
+
/execute add a health check endpoint
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
These surfaces invoke focused work without running the full autopilot pipeline. Use `/
|
|
252
|
+
These surfaces invoke focused work without running the full autopilot pipeline. Use `/team` when the task needs parallel agents.
|
|
253
253
|
|
|
254
254
|
### Next steps
|
|
255
255
|
|
|
@@ -395,7 +395,7 @@ You can customize the supported search, analysis, and deep-reasoning categories
|
|
|
395
395
|
}
|
|
396
396
|
```
|
|
397
397
|
|
|
398
|
-
> ℹ️ **Note:** Parallel work is not configured as a magic keyword. Use `/
|
|
398
|
+
> ℹ️ **Note:** Parallel work is not configured as a magic keyword. Use `/team` for coordinated agents, or `/execute` to carry an approved task through verified implementation. Keywords such as `autopilot` and `ralph` are hardcoded in the keyword-detector hook and cannot be changed via config files.
|
|
399
399
|
|
|
400
400
|
### Model routing configuration
|
|
401
401
|
|
|
@@ -434,7 +434,7 @@ To run delegated work on a different model, use one of the supported surfaces (a
|
|
|
434
434
|
|
|
435
435
|
### CLAUDE.md configuration
|
|
436
436
|
|
|
437
|
-
OMC's default behavior is also configured via `CLAUDE.md` files. Running `/
|
|
437
|
+
OMC's default behavior is also configured via `CLAUDE.md` files. Running `/omc-setup` generates this file automatically.
|
|
438
438
|
|
|
439
439
|
| Scope | File | Description |
|
|
440
440
|
|-------|------|-------------|
|