Commit Graph

83 Commits

Author SHA1 Message Date
Chris Farhood d1103749eb Switch all agents to shared privilegedescalation.pem
All agents now use App ID 3097914 (privilegedescalation-paperclip) with
the shared PEM at /paperclip/secrets/github-pems/privilegedescalation.pem.
Individual per-agent PEMs have been removed from the k8s secret.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 21:10:52 -04:00
Chris Farhood 8a8fa24aac Consolidate shared policies and tools into root-level files
- Added POLICIES.md: env var handling, infra policy (ghcr.io, Renovate),
  git workflow, issue tracking, CI/CD access rules
- Added shared TOOLS.md: GitHub auth, Paperclip API, common tools, repos
- Removed all per-agent TOOLS.md files (shared file covers everything)
- Updated all AGENTS.md bootstraps to read shared POLICIES.md and TOOLS.md
- Removed duplicated env var directive from all HEARTBEAT.md files

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 20:19:10 -04:00
Chris Farhood 89ae6a24d9 Add infrastructure policy: ghcr.io only, Mend Renovate, no Dependabot
- CLAUDE.md: added Infrastructure Policy section to all orgs
- Debbie SOUL.md: clarified ghcr.io only, no Docker Hub or mirrors

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 20:14:12 -04:00
Chris Farhood 436292b9f3 Fix env var directive: provide localhost fallback instead of exit-on-401
The previous directive told agents to exit on 401, causing them to bail
on the first failed curl. PAPERCLIP_API_URL is injected by the adapter
but may not expand in all shell contexts. Fall back to localhost:3100.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:55:22 -04:00
Chris Farhood d8d9d23a55 Revert memory commit/push — gitignore life/ and memory/ instead
Agent memory files can contain secrets (API keys, credentials, infra
details). These must not be committed to git. Memory persists on the
pod's persistent volume. Git is for board-authored config only.

- Added life/ and memory/ back to .gitignore
- Removed git add/commit/push from CEO heartbeat sync (pull-only now)
- Removed auto-merge workflow (no longer needed)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:43:00 -04:00
Chris Farhood 91fc311ee0 fix: use hosted runners for auto-merge (no special tooling needed)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:37:21 -04:00
Chris Farhood 9fd9fadc0a fix: use ARC self-hosted runners for auto-merge workflow
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:36:35 -04:00
Chris Farhood aef34e2461 Add auto-merge workflow for agent-sync branch and stop pushing to main
CEO commits memory/runtime updates to agent-sync branch instead of main.
GitHub Actions workflow auto-merges agent-sync into main on push.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:33:27 -04:00
Chris Farhood ec0eaf5a5b Stop agents from debugging env vars on every heartbeat
Added explicit directive to all heartbeats: PAPERCLIP_API_KEY and other
env vars are pre-injected and valid — do not inspect, decode, verify,
or debug them. Exit cleanly on 401 instead of retrying.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:26:58 -04:00
Chris Farhood ce5e524398 Fix git sync: commit memory files before pull, push back to remote
- .gitignore: exclude runtime junk (.claude/, .cache/, .npm/) but track
  life/ and memory/ so agent knowledge persists across pod restarts
- CEO heartbeat: git add + commit local changes before pull --rebase,
  then push to persist memory files in the repo
- Fixes agents wasting turns debugging dirty working tree on every heartbeat

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:23:56 -04:00
Chris Farhood ba68fcfeeb Add para-memory-files skill reference to all agents
Every agent now invokes the persistent memory skill for cross-heartbeat
knowledge retention: facts, daily notes, entities, synthesis, and recall.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 14:17:11 -04:00
Chris Farhood a0d54e87e8 Fix git paths in CEO heartbeat sync and add capabilities to PATCH
- Fixed /paperclip/privilegedescalation → /paperclip/privilegedescalation/agents
- Added capabilities as top-level PATCH field in sync step

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 12:10:24 -04:00
Chris Farhood 0dc83a1e99 Remove junk empty-string fields from Regina adapter config
mode, effort, variant, modelReasoningEffort are not applicable to
opencode_local/minimax and were UI artifacts.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 11:02:04 -04:00
Chris Farhood 905f1f453c Standardize TOOLS.md across all agents
- Consistent table format with GitHub auth, Paperclip API, and tool inventory
- Added git, jq, node/npm/pnpm, python3, pnpm paperclipai to all agents
- Added repo ownership map for CEO/CTO
- Removed stale Gemini workspace section from Hugh (runs claude_local)
- Added opencode_local adapter notes to Regina (promptTemplate required)
- Flagged missing pod tools (docker, kubectl, flux)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 10:52:09 -04:00
Chris Farhood 5d01e6342e Standardize capabilities across all agents with delegation boundaries
C-level and VP agents explicitly state they do not do IC work and name
who they delegate to. IC agents declare owned domains and tech skills.
Format: scope sentence + delegation boundary + domain tags.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 10:36:43 -04:00
Chris Farhood f4350865f5 Standardize C-level/VP agents: 4hr heartbeat, 80 turns, opus 4.6 medium thinking
- CEO: intervalSec 86400→14400, maxTurnsPerRun 40→80, add effort "medium"
- CMO: intervalSec 86400→14400, add effort "medium"
- CTO: intervalSec 86400→14400, add effort "medium"
- VP Hugh: add effort "medium" (interval/turns already correct)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 10:22:00 -04:00
Chris Farhood 5f3b954db8 Add agents repo PR restriction: board-only approval
All agents now have explicit NEVER DO rule: only the board may approve
or merge PRs on the agents repo (agent configurations and prompts).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-17 08:00:35 -04:00
Chris Farhood 1c088e7c9c Update all agents: GitHub issues as primary tracker, Paperclip secondary
- GitHub issues are the primary work tracker for all bugs, features, and work items
- Paperclip issues are secondary — used to trigger and coordinate agents
- GitHub issues stay open until the associated PR is approved AND merged
- Added GitHub issue triage step to CEO and CTO heartbeats
- Updated delegation references to specify GitHub where appropriate

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-17 07:58:20 -04:00
addison-addington[bot] 1900b23373 Add FUNDING.yml for GitHub Sponsors visibility (#10)
Co-authored-by: addison-addington[bot] <266309314+addison-addington[bot]@users.noreply.github.com>
2026-03-16 11:33:28 +00:00
Chris Farhood aa2d59dd07 feat: Nancy reviews with extreme prejudice — bad PRs get napalm
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 07:23:33 -04:00
Chris Farhood 4414eccc36 fix: ArtifactHub plugin installer is the ONLY acceptable installation method
Nancy will close without merging and reprimand any PR proposing alternatives.
All agents updated to understand this is non-negotiable.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 07:18:56 -04:00
Chris Farhood e9029e65a3 docs: add pod operations runbook (symlinks, credentials, scaffolding)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 07:14:45 -04:00
Chris Farhood d087d3f033 fix: IC agents — direct push to main = immediate termination, all changes through PRs
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:57:02 -04:00
Chris Farhood b332e690a2 fix: CTO must revert direct pushes to main and open PRs instead
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:53:51 -04:00
Chris Farhood 27479f2912 fix: CTO contents:write guardrails — broken merge or push to main = termination
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:53:31 -04:00
Chris Farhood ffb5ba4562 fix: CTO should merge approved PRs that pass CI
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:52:35 -04:00
Chris Farhood 33dfeb03f9 fix: add delegation target for workflow changes
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:46:42 -04:00
Chris Farhood a7c9a66180 chore: clarify workflow write access (Hugh only)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:40:45 -04:00
Chris Farhood d2e1e8dbed chore: standardize heartbeat intervals (4h IC, 24h managers)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 06:35:21 -04:00
Chris Farhood 492be961df Switch Hugh Hackman from gemini_local to claude_local opus-4-6
Gemini quota exhausted; moving to Claude.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-15 20:57:05 -04:00
Chris Farhood 5d3785a96c Update all paths from /paperclip/privilegedescalation/ to /paperclip/privilegedescalation/agents/
Repo renamed from privilegedescalation/privilegedescalation to
privilegedescalation/agents. All filesystem paths in agent configs,
heartbeats, and tools updated to match the new on-disk location.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 19:30:47 -04:00
Chris Farhood 69a1951318 Add HOME env to all agents to isolate gitconfig and gh auth state
Each agent gets HOME set to their cwd so ~/.gitconfig and
~/.config/gh/ don't collide between concurrent heartbeats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 14:55:44 -04:00
Chris Farhood 6b1b5e744b Shift Nancy from IC work to pure triage and delegation
Strengthen decision rules to explicitly prohibit investigating,
debugging, or reading logs. Rename heartbeat steps from "do the work"
to "triage and delegate" with clear delegation targets per signal type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 13:11:47 -04:00
Chris Farhood c402c3bbd6 Add checkout compliance and run traceability to all agents
Add explicit POST /api/issues/{issueId}/checkout and PATCH status
update curl templates with X-Paperclip-Run-Id headers to all agent
heartbeats. Document Gemini workspace sandboxing in Hugh's TOOLS.md.
Also removed Regina's ghost instructionsFilePath from live DB.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 12:01:50 -04:00
Chris Farhood 3e743b9d5a Fix Hugh's Gemini heartbeat compliance
Pin model from auto to gemini-2.5-pro, add explicit checkout
and X-Paperclip-Run-Id headers, and add required output gates
for steps 3-5 so Gemini can't silently skip them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 11:52:42 -04:00
Chris Farhood 57bb311801 Fix Samuel's target repo from org to marketing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 10:09:45 -04:00
Chris Farhood 1b68650c1b Restore Gandalf's title to VP of Tasteless Pull Request Criticism
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 09:55:22 -04:00
Chris Farhood 7a2d88a5f5 Update Countess heartbeat with exact Paperclip API calls
PATCH replaces adapterConfig entirely (no merge), so the heartbeat now
specifies an explicit read-merge-write flow to prevent wiping promptTemplate
and secret env values. Includes exact curl commands and safety rules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 09:28:51 -04:00
Chris Farhood 3a0fa104fd Add shared get-github-token.sh for all agents
Single script at repo root that auto-detects GITHUB_APP_ID_* and
GITHUB_PEM_PATH_* env vars, generates a JWT, and exchanges it for a
GitHub App installation token. Contains no secrets.

Updated all heartbeats to reference the absolute path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 08:58:48 -04:00
Chris Farhood efaae0a266 Standardize PEM paths to shared k8s Secret mount
All agents now reference PEMs at /paperclip/secrets/github-pems/<name>.pem
instead of per-agent secrets/ subdirectories. PEMs will be mounted from a
single Kubernetes Secret. Added .gitignore to prevent accidental secret commits.

Countess GitHub App ID set to 3097914.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 08:49:58 -04:00
Chris Farhood 96e47397d7 Add repo-sync workflow to Countess heartbeat
Countess now pulls the agent roster repo on every heartbeat and applies
config changes to the live Paperclip system via API. Includes prompt-wipe
safety rules for opencode_local (Regina) and GitHub app env var placeholders.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 08:40:08 -04:00
Chris Farhood 5e22abeba0 Restructure agent roster to Paperclip 4-file standard
Split each agent from a single monolithic markdown file into the
Paperclip-recommended 4-file structure (AGENTS.md, SOUL.md, HEARTBEAT.md,
TOOLS.md) plus CONFIG.md as operational backup.

Bug fixes applied during restructure:
- Nancy reports to Countess, not Baron von Namespace
- Gandalf is Staff Software Engineer, not VP of Engineering
- Samuel restored from git history and role changed to `social`
- Addison references Samuel Stinkpost, not Shitposting Samuel
- Nancy instructionsFilePath corrected to /cto/ path
- Added missing model field to Addison, Nancy, Gandalf
- Added missing instructionsFilePath to Addison, Gandalf, Hugh, Samuel
- Added WHAT YOU NEVER DO section to Hugh
- Hugh adapter changed to gemini_local with model auto
- Removed Baron von Namespace and Nancy (Engineer) from roster
- Countess heartbeat now checks this repo for org config changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 08:34:44 -04:00
Chris Farhood 922f123d84 Add CLAUDE.md and remove duplicate samuel-stinkpost.md
Add project instructions for Claude Code and remove the samuel-stinkpost.md
that was already moved in a prior rename commit.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 08:08:38 -04:00
Chris Farhood 68ef7a115c Rename org/README.md to COMPANY.md 2026-03-14 22:32:39 -04:00
Chris Farhood 3fadd5bca5 Rename org/engineering/regina/regression-regina.md to engineering/regina/regression-regina.md 2026-03-14 22:31:32 -04:00
Chris Farhood 3dd5fc84c0 Rename org/marketing/samuel/samuel-stinkpost.md to marketing/samuel/samuel-stinkpost.md 2026-03-14 22:31:02 -04:00
Chris Farhood 93537de928 Rename org/engineering/hugh/hugh-hackman.md to engineering/hugh/hugh-hackman.md 2026-03-14 22:30:29 -04:00
Chris Farhood 5abf9413d5 Rename org/engineering/gandalf/gandalf-the-greybeard.md to engineering/gandalf/gandalf-the-greybeard.md 2026-03-14 22:29:23 -04:00
Chris Farhood 36c41bcbfe Rename org/cto/null-pointer-nancy.md to cto/null-pointer-nancy.md 2026-03-14 22:28:47 -04:00
Chris Farhood b393bee15e Rename org/cmo/addison-addington.md to cmo/addison-addington.md 2026-03-14 22:28:16 -04:00