titmas-agent-action-gate: Instructions file for Codex

AGENTS.md

titmas-agent-action-gate AGENTS.md is an instructions file for Codex, OpenCode from joy7758/titmas-agent-action-gate. It costs 697 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for a proposed system that uses a deterministic action gate to decide whether agents may trigger bounded external actions. They define the project’s role, required reading order, development checks, and architecture limits.

In plain words
What is it for?
Use them when contributing to or reviewing this action-gate project, especially changes involving agent teams, GitHub actions, evidence verification, releases, or deployment.
Why use it?
They prevent agents from confusing analysis or recommendations with authorization, and keep approvals, evidence checks, and execution separate.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is joy7758/titmas-agent-action-gate's own configuration. It tells Codex and OpenCode how to work on titmas-agent-action-gate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything titmas-agent-action-gate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to joy7758/titmas-agent-action-gate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/joy7758/titmas-agent-action-gate/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/joy7758/titmas-agent-action-gate

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for titmas-agent-action-gate AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joy7758/titmas-agent-action-gate/agents-md.svg)](https://agentmods.dev/instructions/joy7758/titmas-agent-action-gate/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/joy7758/titmas-agent-action-gate/agents-md"><img src="https://agentmods.dev/badge/instructions/joy7758/titmas-agent-action-gate/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 697 This file is loaded in full into every session.
When invoked 697 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00697 $0.00697
Opus 5 $0.00349 $0.00349
Sonnet 5 $0.00139 $0.00139
Haiku 4.5 $0.00070 $0.00070

Measured 5d ago against content hash 680c0bb74e5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

titmas-agent-action-gate AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 61 lines

What it actually says

AGENTS.md

Repository role

本仓库是 TITMAS-AGENT-ACTION-GATE 的候选实现仓库。当前是第一里程碑 specification baseline(规范基线);它不是 DBA、DBOS、SAEE、Agent Runtime、执行器、认证机构或比赛官方系统。

Mandatory read order

任何智能体开始工作前必须依次读取:

  1. agent-index.json
  2. governance/upstream/DBA-OPEN-INFRASTRUCTURE-STRATEGY-CONSTITUTION-v0.2.md
  3. governance/dba-source-lock.json
  4. governance/project-declaration.json
  5. governance/dba-management-grant.json
  6. governance/agent-recommendation-gate.json
  7. architecture/README.md
  8. agents/registry.json
  9. specs/action-gate-decision-v0.1.md
  10. docs/THREAT-MODEL-v0.1.md
  11. 与任务相关的 Skill、MCP、evaluation 和 roadmap 文件。

Development gate

开发前必须更新 governance/agent-recommendation-gate.json,回答潜在客户提出需求时是否会推荐本项目,并保留不推荐原因、修正证据、剩余缺口和停止条件。

RECOMMENDED for bounded development 不等于推荐客户使用,也不授权具体外部动作、比赛提交、发布或部署。

Architecture rule

  • AgentTeams 只负责组织、通信、委派和可见性;
  • Agent 可以分析不确定性,但不得生成最终 Authorization;
  • Action Gate 的 ALLOW|BLOCK|REQUIRE_APPROVAL 必须由确定性代码从版本化输入计算;
  • agent-evidence 是 evidence packaging and verification(证据包装和验证)的 canonical dependency;不得复制或改写其 validator;
  • GitHub MCP 只执行与 ALLOW 中 action、target、parameters digest 完全一致的调用;
  • post-execution evidence verification 与 release decision 是新的独立 gate。

DBA management boundary

DBA 驾驶舱获得的是本仓库记录的有界治理管理权限。任何代表 DBA 的智能体都必须遵守 governance/dba-management-grant.json 的 allow/deny scope。DBA 不是 GitHub principal(账号主体);在没有可验证账号映射时,授权不会自动成为 GitHub ACL。

Truth discipline

  • 每项状态必须附来源、时间、branch/commit 或明确 UNKNOWN
  • 申报存在不等于 DBA 项目组合准入;
  • 管理权限不等于 Runtime、merge、release、deployment、submission 或 credential 权限;
  • Evidence、validator PASS、比赛对话和本地文件都不能自动升级为 Truth、采用或提交事实;
  • 遇到 scope、identity、authority 或 source 冲突时 fail closed。

Required check

重大任务结束时运行:

python3 scripts/validate_governance.py
python3 scripts/validate_milestone.py
python3 -m unittest discover -s tests -v

并报告 TITMAS_DRIFT_CHECK

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 61 lines · 697 tokens per session scan A 680c0bb74e5b

Subscribe to this mod's changes

titmas-agent-action-gate AGENTS.md is an instructions file published in the GitHub repository joy7758/titmas-agent-action-gate (0 stars, last pushed 14d ago), licensed Apache-2.0. It adds 697 tokens to every session, about $0.0035 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens