Imported from tako0614/takos-git (
AGENTS.md). Install upstream withnpx skills add tako0614/takos-git. Copyright stays with the author.
AGENTS.md
このファイルは
takos-control/engineering.policy.jsonとecosystem.repos.jsonから generator v1 で生成されています。手編集しないでください。
Repository
- Scope: Standalone installable collaborative Git hosting Capsule and source collaboration API.
- Repository kind:
product - Direct sibling dependencies: なし
- Repository gate:
bun run check - Canonical docs: README.md, docs/collaborative-hosting.md, docs/github-parity-build.md
Ownership
- Owns: Git Smart HTTP object and ref data plane / Repository and forge state plus browser, API, and MCP surfaces / Embedded self-hosted Actions execution design and runtime
- Does not own: Takos chat, agent, or workspace shell / Takosumi install, Run, state, output, audit, or identity authority / The storage.object service
- Hazards: Actions execution requires an operator-owned Container image attachment with a reviewed instance type and egress allowlist; bindings alone do not make the runner usable. / Legacy Git code in Takos is migration debt, not shared ownership.
Required workflow
- repo固有の挙動・契約・architectureは、このrepo自身のsourceとdocsを正本にします。共通工学ルールをこのrepoで再定義しません。
- 通常変更はこのrepo内に閉じます。横断変更はtask ledgerに対象repoと順序を宣言し、unrelatedなdirty workを変更・stage・commitしません。
- handoff前に
bun run checkを実行します。これはread-onlyで、format-check,lint-or-static-analysis,type-or-compile,portable-tests,portable-buildを完全に検証し、未実装項目をskipしてはいけません。 - このrepoにformat writerはありません。
bun run fmtは存在せず、実行するとcoreutilsのfmt(1)が動いて何もせず成功します。formatを直すときはformatterを直接呼びます。 - task ledgerが必要な条件: The change modifies more than one repository. / The work changes production or release behavior. / The work changes a persisted schema or migrates data. / The work changes security, identity, credentials, authorization, billing, or authority. / The work destructively changes data or repository history.
- secret、credential、production記録、private keyをrepoへcommitしません。
Deploy
-
このrepoがproduction targetを持つなら、入口は
bun run deploy一つです。無ければ作ります。承認待ちの列も、登録する先もありません。entrypointは副作用なしの--contractで、自分に立つtriggerと各obligationの果たし方を宣言します。 -
実行するかどうかはoperatorの判断です。task ledger、branch名、green checkのいずれもdeployを承認しません。逆に、どれも欠けているからといってdeployが禁止されるわけでもありません。
-
どのsurfaceも次のobligationを負います。
- provenance: The published bytes belong to one reviewed commit, are built from that worktree, and the commit and artifact digest are recorded. Whatever validates them must cover those bytes.
- post-conditions: After publishing, state how you know the thing works for a real user, and confirm it.
- reversal: State how to get back. If you cannot get back, say so and name the forward-repair plan instead.
- failure-handling: State what the entrypoint prints on failure and what it refuses to do. Raw diagnostics, no blind retry, and a clear split between failing before and after the target was touched.
-
次のtriggerが立つと義務が増えます。判別できないものはirreversible扱いです。
- irreversible (The step leaves the previous artifact unable to serve again: a schema or data migration, a topology change, or anything that rewrites durable state.) → pre-mutation-proof, independent-review
- authority (The step moves money, identity, authentication, authorization, or the deploy mechanism itself.) → independent-review
- published-identity (Publication mints a version, digest, or tag that consumers pin.) → no-overwrite
- asynchronous (Publication completes through an external review or staged delivery the deploy does not control, such as an app store.) → halt
-
果たし方は各surfaceが自分の言葉で決めます。中央は義務を決め、機構は決めません。宣言を弱められませんが、強める分には自由です。
-
利用者/operatorが自分の環境へself-host deployすることは別authorityで、このruleの対象外です。