AGENTS.md markdown
51 lines 2.7 KB
Raw
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf mirror: GitHub Phase A durable MCP OAuth (#270) Human minor ⚠ breaking 10 days ago

Knowtation — agent instructions

Version control (read first)

This repo uses Muse for the canonical history on MuseHub (staging) and Git for GitHub (PRs, CI, mirrors).

Intent Tooling
Default — ship product changes to MuseHub muse statusmuse code add …muse commit -m "…"muse push staging <branch>
GitHub-only — PR, branch protection, Actions git add / git commit / git push when the user or task says Git is the target
  • Staging remote name: staging (aaronrene/knowtation on staging.musehub.ai).
  • .museignore governs Muse snapshots; keep it aligned with .gitignore for secrets and local data (config/local.yaml, data/, etc.).
  • If the user says "commit" without specifying Muse or Git, prefer Muse for this tree or ask once.

GitHub mirror workflow — MANDATORY, no exceptions

NEVER push directly to main on GitHub. Every Muse merge to local main must be mirrored to GitHub via a PR from the muse-mirror branch. This is what preserves the PR audit trail (PR #NNN links, diff view, review threads).

Required steps every time code lands on Muse main:

# 1. After: muse checkout main && muse merge feat/<branch>
git add -A && git commit -m "mirror: muse <sha-before>..<sha-after> (<description>)"
git checkout -B muse-mirror          # reset muse-mirror branch to current HEAD
git push origin muse-mirror --force  # push mirror branch to GitHub

# 2. Open a PR from muse-mirror → main
gh pr create --base main --head muse-mirror \
  --title "mirror: <description>" \
  --body "Muse mirror — <muse-sha-range>"

# 3. Merge the PR (merge commit, not squash or rebase)
gh pr merge --merge

Hard stops — if you are about to run either of these, STOP:

  • git push origin main — use muse-mirror instead
  • git push origin HEAD while on main — use muse-mirror instead

Why this rule exists: The GitHub PR history is the permanent, human-readable audit record. PRs #226, #227, … are proof that every change was reviewed before landing. Pushing directly to main skips that record entirely and is not recoverable after the fact.

Knowtation product (MCP / CLI / vault)

Orchestration, MCP vs CLI, retrieval, and write-back: docs/AGENT-ORCHESTRATION.md. One-page surface overview: docs/AGENT-INTEGRATION.md.

Private vaults: outside the repo or only via ignored config/local.yaml — not under in-repo vault/ if remotes may be public.

Tests and quality

Follow project conventions in CONTRIBUTING.md and existing test layout under test/. Do not commit secrets or gitignored paths.

File History 4 commits
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf mirror: GitHub Phase A durable MCP OAuth (#270) Human minor 10 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b fix(7C-L1b): route hosted delegation proposals through cani… Human minor 30 days ago
sha256:f4def6a1a567d25eac87e879d96235c0588804a6c9b770d3958e74b22231db59 fix(test): align hub.js cache-bust contract with hub integr… Human 50 days ago
sha256:2827ba9e7632a4b141c50caf1e8f7d77abbc3515be20e7465f2bccb0ac4edf91 fix: repair endpoint now sets has_active_subscription when … Human minor 50 days ago