Files
zopu-code/docs
-Puter c644ec8d01 feat(git): thin project onboarding, provider integration, and AgentOS repository access
Effect primitives:
- git-provider: GitProvider, connection states, normalized errors, URL
  normalization, host compatibility, credential freshness window
- git-provisioning: validated Puter commands, migration states, idempotency
  keys, safe replacement rules, owner-safe guards
- git-webhook: supported events, signature verification, delivery states
- host-repository: provider-neutral credential-safe clone via GIT_ASKPASS

Normalized Convex schema:
- gitProviderAccounts, refined gitConnections, gitProviderOrganizations,
  gitRepositories, gitMigrations, gitWebhookDeliveries
- projects: gitRepositoryId + instructions fields
- Schema fields optional for backward compatibility, with backfill cron

Backend:
- Connection health: verify action, hourly reconciliation (covers stale
  active + reauth-required + undefined-state legacy connections)
- Puter provisioning: createPuterUser/Organization/Repository with owner
  binding, startGithubMigration (durable via scheduler), getMigration
- Org ownership: explicit member add with admin role + verification
- Webhook HTTP actions: HMAC verification, delivery persistence with
  idempotency, repository resolution, byte-length payload limit
- Automatic Puter webhook creation after repo creation/migration with
  fail-loud state tracking
- Repository sync after connection (Gitea + GitHub)
- AgentOS execution resolves gitRepositoryId for real clone URL
- Credential gating: state + freshness checks before execution and
  project creation
- listForOrganization for cross-project Work filtering

Frontend:
- /projects onboarding page with GitHub OAuth (linkSocial) and Puter PAT
- Zero-project redirect, repository selection, context editor
- Provider-aware settings panel (no serverUrl for Puter)
- Project selection via ?project= query param
- GitHub scopes: repo + read:org

Agent runtime:
- Clones user repository with GIT_ASKPASS credential helper (no token in
  URL, args, or git config), provider-aware username
- Removed fixed Zopu source path and .env copy
2026-07-31 14:36:56 +05:30
..
2026-07-27 15:22:16 +05:30
doc
2026-07-31 01:30:45 +05:30
doc
2026-07-31 01:30:45 +05:30

Zopu Work OS — Documentation Map

Dense context set for product development and coding agents.

Read order

1. agent-context.md  — bootstrap and non-negotiables
2. product.md        — product model and quality doctrine
3. glossary.md       — canonical terminology
4. dev-loop.md       — normative software delivery process
5. tech.md           — architecture, actors, ports, runtimes
6. design.md         — user experience
7. slices.md         — sequential vertical product increments
8. dev-plan.md       — repository execution plan/backlog
9. evaluation.md     — quality measurement and improvement

For a runnable development environment, see LOCAL_SETUP.md.

Use by role

Role Minimum context
Product/definition agent agent-context, product, glossary, dev-loop
Architecture/design agent agent-context, tech, dev-loop, current Work Definition
Coding agent agent-context, current Design Packet/Slice, tech sections, repository rules
Verifier agent-context, dev-loop, evaluation, Verification Plan
Frontend agent agent-context, design, product, current slice
Lead/orchestrator all documents, current repository state, active decisions

Document boundaries

product.md      what/why
tech.md         system architecture
design.md       interaction behavior
dev-loop.md     how software Work is delivered
slices.md       how Zopu product is incrementally built
dev-plan.md     engineering order and release gates
evaluation.md   how quality and improvements are measured
glossary.md     exact term definitions
agent-context   compact instructions for execution agents

First build target

message
→ Signal
→ approved Work Definition
→ approved Design Packet
→ one isolated implementation slice
→ independent verification
→ exact verified PR
→ human question/resume

Start at dev-plan.md backlog item 01. Do not begin dynamic Kit Builder or fleets before Slices 17 work reliably.