@iiwish/agentrecord 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AgentRecord contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,109 @@
1
+ # AgentRecord
2
+
3
+ AgentRecord turns local AI-agent work traces into a user-owned, auditable AI work profile.
4
+
5
+ It is not a hiring score, leaderboard, certification, or prompt-history viewer. The first product surface is a personal AI work record: what kinds of work you do with agents, how you delegate, how you review, how you verify, and what evidence supports those claims.
6
+
7
+ ## Positioning
8
+
9
+ AgentRecord is a local-first record layer for AI-native work.
10
+
11
+ - **For users:** a private, inspectable profile of how they work with Codex, Claude Code, opencode, OpenClaw, Hermes, and other agents.
12
+ - **For agents:** a compact, prompt-ready work profile that future agents can use to understand the user's preferences, strengths, constraints, and collaboration style.
13
+ - **For sharing:** a redacted proof page that shows evidence-backed work identity without exposing raw conversations, prompts, secrets, terminal output, or source code.
14
+
15
+ ## Product Principles
16
+
17
+ - **User-owned by default:** local files first, export second, hosted services optional.
18
+ - **Evidence over claims:** scores and labels must point back to evidence cards and confidence levels.
19
+ - **No raw trace leakage:** public artifacts never include raw prompts, raw session IDs, secrets, terminal output, or private source files.
20
+ - **Cross-agent model:** individual clients are adapters; the profile model is stable across tools.
21
+ - **Incremental runs:** repeated runs update the profile without rewriting history.
22
+ - **No default hiring decision:** recruiter or hiring views are optional audience layers, not the core product.
23
+
24
+ ## Quickstart
25
+
26
+ After npm install:
27
+
28
+ ```bash
29
+ npm install -g @iiwish/agentrecord
30
+ agentrecord init --owner <owner>
31
+ agentrecord build --config ./agentrecord.config.json --no-account-usage
32
+ agentrecord validate --config ./agentrecord.config.json
33
+ agentrecord open --config ./agentrecord.config.json
34
+ ```
35
+
36
+ From the source checkout:
37
+
38
+ ```bash
39
+ node src/cli.mjs init --owner <owner>
40
+ node src/cli.mjs build --config ./agentrecord.config.json --no-account-usage
41
+ node src/cli.mjs validate --config ./agentrecord.config.json
42
+ node src/cli.mjs open --config ./agentrecord.config.json
43
+ ```
44
+
45
+ The primary product artifact is `profiles/<owner>/index.html`: a single-file, static AI work passport for local review or redacted sharing. `profile.json` and `evidence.jsonl` are the structured truth sources behind the page, and `profile.md` is a secondary audit draft.
46
+
47
+ Agent context is opt-in:
48
+
49
+ ```bash
50
+ node src/cli.mjs build --config ./agentrecord.config.json --agent-context
51
+ ```
52
+
53
+ Default builds generate only the self/share artifacts and do not generate recruiter, job-agent, or employment-decision views.
54
+
55
+ A privacy-safe starter example is available in `examples/basic/`.
56
+
57
+ ## Commands
58
+
59
+ ```bash
60
+ node src/cli.mjs init --dry-run
61
+ node src/cli.mjs init --owner <owner>
62
+ node src/cli.mjs scan --config ./agentrecord.config.json
63
+ node src/cli.mjs build --config ./agentrecord.config.json
64
+ node src/cli.mjs validate --config ./agentrecord.config.json
65
+ node src/cli.mjs open --config ./agentrecord.config.json
66
+ ```
67
+
68
+ Useful overrides:
69
+
70
+ ```bash
71
+ node src/cli.mjs --help
72
+ node src/cli.mjs doctor
73
+ node src/cli.mjs scan --sessions-dir ~/.codex/sessions
74
+ node src/cli.mjs build --owner <owner> --locale zh-CN
75
+ node src/cli.mjs build --config ./agentrecord.config.json --agent-context
76
+ ```
77
+
78
+ ## Expected Outputs
79
+
80
+ ```text
81
+ profiles/<owner>/
82
+ profile.json Machine-readable AI work profile
83
+ evidence.jsonl Redacted evidence cards
84
+ index.html Human-readable local/share report
85
+ profile.md Markdown report
86
+ redaction-report.md Privacy boundary audit
87
+ run-report.md Incremental run summary
88
+ .agentrecord/ Private state, cursors, snapshots
89
+ ```
90
+
91
+ Optional explicit outputs:
92
+
93
+ ```text
94
+ profiles/<owner>/
95
+ agent-context.md Public-safe prompt context for future agents
96
+ agent-context.json Machine-readable agent context pack
97
+ ```
98
+
99
+ The default config file is `agentrecord.config.json`. Output defaults to `profiles/<owner>/`, and private state defaults to `profiles/<owner>/.agentrecord/`. AgentRecord is local-first by default; it does not upload, publish, or host generated artifacts.
100
+
101
+ ## First Supported Adapter
102
+
103
+ The first supported adapter should be Codex local sessions, because it gives enough real usage history to validate the core loop quickly. Claude Code, opencode, OpenClaw, and Hermes should follow once the normalized event model is stable.
104
+
105
+ ## Status
106
+
107
+ AgentRecord is in the v0.1 CLI baseline and uses package version `0.0.1` for the first conservative npm release candidate. The `build` and `validate` commands provide the minimum local loop: generate `profile.json`, `evidence.jsonl`, `index.html`, `profile.md`, `redaction-report.md`, and `run-report.md`, then verify required artifacts, profile shape, evidence references, locale parity, private state, and public-artifact privacy boundaries.
108
+
109
+ HTML is the first product artifact. `profiles/<owner>/index.html` is the primary human-readable output for local review and sharing, backed by the machine-readable profile and evidence files.
@@ -0,0 +1,23 @@
1
+ # AgentRecord basic example
2
+
3
+ This example is a privacy-safe starting point for a first local profile run. It does not include raw traces, private sessions, generated `profiles/` output, or real user data.
4
+
5
+ From the package source:
6
+
7
+ ```bash
8
+ node src/cli.mjs init --owner smoke-owner
9
+ node src/cli.mjs build --config ./agentrecord.config.json --no-account-usage
10
+ node src/cli.mjs validate --config ./agentrecord.config.json
11
+ node src/cli.mjs open --config ./agentrecord.config.json
12
+ ```
13
+
14
+ After installing the npm package:
15
+
16
+ ```bash
17
+ agentrecord init --owner smoke-owner
18
+ agentrecord build --config ./agentrecord.config.json --no-account-usage
19
+ agentrecord validate --config ./agentrecord.config.json
20
+ agentrecord open --config ./agentrecord.config.json
21
+ ```
22
+
23
+ The primary output is `profiles/smoke-owner/index.html`, a single-file static HTML report. Keep raw agent traces and private `.agentrecord/` state local.
@@ -0,0 +1,36 @@
1
+ {
2
+ "schema_version": "agentrecord.config.v0",
3
+ "owner": "smoke-owner",
4
+ "owner_display_name": "Smoke Owner",
5
+ "profiles_dir": "profiles",
6
+ "output": {
7
+ "profile_dir": "profiles/smoke-owner"
8
+ },
9
+ "codex": {
10
+ "sessions_dir": "~/.codex/sessions",
11
+ "session_roots": ["~/.codex/sessions"],
12
+ "account_usage": {
13
+ "enabled": false,
14
+ "timeout_ms": 1500
15
+ }
16
+ },
17
+ "memory": {
18
+ "enabled": false
19
+ },
20
+ "evidence_rules_paths": [
21
+ "../../references/evidence-rules.json"
22
+ ],
23
+ "report": {
24
+ "locale": "en-US",
25
+ "fallback_locale": "en-US",
26
+ "label_mode": "bilingual-compact",
27
+ "schema_language": "en-US",
28
+ "audiences": ["self", "share"],
29
+ "default_audience": "self"
30
+ },
31
+ "privacy": {
32
+ "mode": "strict",
33
+ "public_session_ids": false,
34
+ "public_project_paths": false
35
+ }
36
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "schema_version": "agentrecord.locale.v0",
3
+ "locale": "en-US",
4
+ "html_lang": "en",
5
+ "ui": {
6
+ "title": "AgentRecord Profile",
7
+ "subtitle": "Local, evidence-backed AI work record",
8
+ "generated": "Generated",
9
+ "trace_window": "Trace Window",
10
+ "sessions": "Sessions",
11
+ "token_activity": "Token activity",
12
+ "evidence": "Evidence",
13
+ "identity": "Work Identity",
14
+ "role_signals": "Role Signals",
15
+ "ability_model": "Ability Model",
16
+ "agent_ledger": "Agent Ledger",
17
+ "calibration": "Calibration",
18
+ "privacy_boundary": "Privacy Boundary",
19
+ "run_metadata": "Run Metadata",
20
+ "public_safe": "Public-safe summary only. Raw prompts, raw responses, raw session IDs, terminal output, source code, and secrets are excluded.",
21
+ "not_hiring": "This record does not make employment decisions, external comparison claims, or unsupported seniority claims.",
22
+ "no_memory": "No curated memory evidence was available; this profile uses activity baseline evidence."
23
+ },
24
+ "roles": {
25
+ "product_builder": "Product Builder",
26
+ "technical_reviewer": "Technical Reviewer",
27
+ "agent_operator": "Agent Operator",
28
+ "shipping_owner": "Shipping Owner",
29
+ "systems_thinker": "Systems Thinker",
30
+ "research_synthesizer": "Research Synthesizer",
31
+ "collaboration_handoff": "Collaboration Handoff"
32
+ },
33
+ "abilities": {
34
+ "goal_framing": "Goal Framing",
35
+ "context_packaging": "Context Packaging",
36
+ "agent_delegation": "Agent Delegation",
37
+ "review_judgment": "Review Judgment",
38
+ "verification_discipline": "Verification Discipline",
39
+ "failure_recovery": "Failure Recovery",
40
+ "scope_control": "Scope Control",
41
+ "shipping_hygiene": "Shipping Hygiene",
42
+ "product_judgment": "Product Judgment",
43
+ "collaboration_handoff": "Collaboration Handoff"
44
+ }
45
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "schema_version": "agentrecord.locale.v0",
3
+ "locale": "zh-CN",
4
+ "html_lang": "zh-CN",
5
+ "ui": {
6
+ "title": "AgentRecord 画像",
7
+ "subtitle": "本地优先、证据支撑的 AI 工作记录",
8
+ "generated": "生成时间",
9
+ "trace_window": "Trace 时间窗",
10
+ "sessions": "会话数",
11
+ "token_activity": "Token 活跃度",
12
+ "evidence": "证据",
13
+ "identity": "工作身份",
14
+ "role_signals": "角色信号",
15
+ "ability_model": "能力模型",
16
+ "agent_ledger": "Agent 台账",
17
+ "calibration": "校准说明",
18
+ "privacy_boundary": "隐私边界",
19
+ "run_metadata": "运行元数据",
20
+ "public_safe": "仅包含可公开摘要。原始 prompt、原始回复、原始 session ID、terminal output、source code 和 secrets 均不输出。",
21
+ "not_hiring": "本记录不做录用决策、外部比较结论或未经校准的资历结论。",
22
+ "no_memory": "未发现可用的 memory 证据,本画像使用活跃度基线证据。"
23
+ },
24
+ "roles": {
25
+ "product_builder": "产品建造者",
26
+ "technical_reviewer": "技术评审者",
27
+ "agent_operator": "Agent 操作者",
28
+ "shipping_owner": "交付负责人",
29
+ "systems_thinker": "系统思考者",
30
+ "research_synthesizer": "研究综合者",
31
+ "collaboration_handoff": "协作交接者"
32
+ },
33
+ "abilities": {
34
+ "goal_framing": "目标定义",
35
+ "context_packaging": "上下文打包",
36
+ "agent_delegation": "Agent 调度",
37
+ "review_judgment": "评审判断",
38
+ "verification_discipline": "验证纪律",
39
+ "failure_recovery": "故障恢复",
40
+ "scope_control": "范围控制",
41
+ "shipping_hygiene": "交付卫生",
42
+ "product_judgment": "产品判断",
43
+ "collaboration_handoff": "协作交接"
44
+ }
45
+ }
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@iiwish/agentrecord",
3
+ "version": "0.0.1",
4
+ "description": "Local-first, auditable AI work profiles from agent traces.",
5
+ "type": "module",
6
+ "bin": {
7
+ "agentrecord": "src/cli.mjs"
8
+ },
9
+ "files": [
10
+ "src",
11
+ "examples",
12
+ "locales",
13
+ "references",
14
+ "schemas",
15
+ "scripts",
16
+ "README.md"
17
+ ],
18
+ "scripts": {
19
+ "check": "node --check src/cli.mjs && node src/cli.mjs --help",
20
+ "pack:dry": "npm pack --dry-run --json",
21
+ "smoke:install": "node scripts/smoke-install.mjs"
22
+ },
23
+ "engines": {
24
+ "node": ">=20"
25
+ },
26
+ "keywords": [
27
+ "ai-agent",
28
+ "codex",
29
+ "claude-code",
30
+ "opencode",
31
+ "local-first",
32
+ "work-profile",
33
+ "audit-log"
34
+ ],
35
+ "license": "MIT"
36
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "schema_version": "agentrecord.evidence-rules.v0",
3
+ "scope": "generic",
4
+ "rules": [
5
+ {
6
+ "id": "EV-GENERIC-RELEASE-OPS",
7
+ "title": "Release and shipping verification discipline",
8
+ "category": "shipping_hygiene",
9
+ "evidence_level": ["E1", "E2", "E3"],
10
+ "match": {
11
+ "include_all": [],
12
+ "include_any": ["release", "published", "package", "registry", "CI", "tag", "version", "SHA", "deploy", "build verification"],
13
+ "exclude_any": ["wishlist", "someday"]
14
+ },
15
+ "signal_template": "Release and shipping work treats version, artifact, branch, package, deploy, or registry evidence as verifiable facts.",
16
+ "dimensions": ["Verification Discipline", "Shipping Hygiene", "Scope Control"],
17
+ "role_impacts": ["Technical Reviewer", "Shipping Owner", "Systems Thinker"],
18
+ "profile_impact": "Positive signal for turning AI-assisted work into reviewable release or delivery evidence instead of unsupported completion claims."
19
+ },
20
+ {
21
+ "id": "EV-GENERIC-EVIDENCE-GOVERNANCE",
22
+ "title": "Evidence hierarchy and audit-boundary discipline",
23
+ "category": "evidence_governance",
24
+ "evidence_level": ["E2", "E3"],
25
+ "match": {
26
+ "include_all": [],
27
+ "include_any": ["evidence", "audit", "trace", "E1", "E2", "E3", "E4", "self-report", "review decision", "acceptance gate"],
28
+ "exclude_any": []
29
+ },
30
+ "signal_template": "Work separates system evidence, reproducible traces, summaries, self-report, review decisions, and acceptance boundaries.",
31
+ "dimensions": ["Review Judgment", "Verification Discipline", "Agent Delegation", "Collaboration Handoff"],
32
+ "role_impacts": ["Technical Reviewer", "Agent Operator", "Shipping Owner"],
33
+ "profile_impact": "Positive signal for making AI-agent output inspectable, accountable, and safe to hand off."
34
+ },
35
+ {
36
+ "id": "EV-GENERIC-RELIABILITY-RECOVERY",
37
+ "title": "Reliability diagnosis and failure recovery",
38
+ "category": "reliability_recovery",
39
+ "evidence_level": ["E2", "E3"],
40
+ "match": {
41
+ "include_all": [],
42
+ "include_any": ["debug", "failure", "crash", "timeout", "locked", "recovery", "retry", "smoke", "benchmark", "diagnosis", "regression"],
43
+ "exclude_any": []
44
+ },
45
+ "signal_template": "Reliability work uses staged diagnosis, failure isolation, smoke checks, benchmarks, retries, or recovery evidence.",
46
+ "dimensions": ["Failure Recovery", "Verification Discipline", "Review Judgment", "Scope Control"],
47
+ "role_impacts": ["Technical Reviewer", "Systems Thinker", "Shipping Owner"],
48
+ "profile_impact": "Positive signal for recovering from complex failures without broad rewrites or false success claims."
49
+ },
50
+ {
51
+ "id": "EV-GENERIC-PRODUCT-VALIDATION",
52
+ "title": "Product validation and launch-readiness judgment",
53
+ "category": "product_validation",
54
+ "evidence_level": ["E2", "E3"],
55
+ "match": {
56
+ "include_all": [],
57
+ "include_any": ["MVP", "trial", "launch", "onboarding", "user validation", "viability", "positioning", "beta", "acceptance", "readiness"],
58
+ "exclude_any": []
59
+ },
60
+ "signal_template": "Product judgment ties scope, readiness, positioning, or trial decisions to visible validation evidence.",
61
+ "dimensions": ["Product Judgment", "Verification Discipline", "Goal Framing", "Scope Control"],
62
+ "role_impacts": ["Product Builder", "Shipping Owner", "Technical Reviewer"],
63
+ "profile_impact": "Positive signal for deciding when AI-assisted work is ready for users, trials, launch, or further narrowing."
64
+ },
65
+ {
66
+ "id": "EV-GENERIC-AGENT-WORKFLOW",
67
+ "title": "AI-agent delegation and review workflow design",
68
+ "category": "agent_workflow",
69
+ "evidence_level": ["E2", "E3"],
70
+ "match": {
71
+ "include_all": [],
72
+ "include_any": ["agent", "delegation", "handoff", "execution packet", "prompt", "worker", "review flow", "task graph", "next prompt"],
73
+ "exclude_any": []
74
+ },
75
+ "signal_template": "AI-agent workflow work covers delegation, handoff, execution packets, review loops, or worker coordination.",
76
+ "dimensions": ["Agent Delegation", "Context Packaging", "Collaboration Handoff", "Goal Framing"],
77
+ "role_impacts": ["Agent Operator", "Shipping Owner", "Collaboration Handoff"],
78
+ "profile_impact": "Positive signal for operating agents as reviewable collaborators rather than one-off chat tools."
79
+ },
80
+ {
81
+ "id": "EV-GENERIC-PLATFORM-CONTRACT",
82
+ "title": "Platform contract and schema discipline",
83
+ "category": "platform_contract",
84
+ "evidence_level": ["E2", "E3"],
85
+ "match": {
86
+ "include_all": [],
87
+ "include_any": ["contract", "schema", "protocol", "API", "router", "validation", "type", "migration", "compatibility"],
88
+ "exclude_any": []
89
+ },
90
+ "signal_template": "Platform work aligns contracts, schemas, protocols, APIs, migrations, validation, or compatibility behavior.",
91
+ "dimensions": ["Context Packaging", "Shipping Hygiene", "Collaboration Handoff", "Verification Discipline"],
92
+ "role_impacts": ["Systems Thinker", "Shipping Owner", "Technical Reviewer"],
93
+ "profile_impact": "Positive signal for protocol-minded engineering and cross-surface behavior alignment."
94
+ },
95
+ {
96
+ "id": "EV-ACTIVITY-METADATA",
97
+ "title": "Codex activity metadata baseline",
98
+ "category": "agent_usage",
99
+ "evidence_level": ["E2"],
100
+ "match": {
101
+ "include_all": [],
102
+ "include_any": [],
103
+ "exclude_any": []
104
+ },
105
+ "fallback": true,
106
+ "signal_template": "Local Codex session metadata establishes the activity baseline when no curated memory rule matches are available.",
107
+ "dimensions": ["Agent Delegation", "Context Packaging"],
108
+ "role_impacts": ["Agent Operator"],
109
+ "profile_impact": "Useful baseline signal for repeated agent usage, but insufficient for strong ability claims without stronger work evidence."
110
+ }
111
+ ]
112
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "schema_version": "agentrecord.evidence-rules.v0",
3
+ "scope": "generic",
4
+ "rules": [
5
+ {
6
+ "id": "EV-GENERIC-RELEASE-OPS",
7
+ "title": "发布与构建验证存证",
8
+ "category": "shipping_hygiene",
9
+ "evidence_level": ["E1", "E2", "E3"],
10
+ "match": {
11
+ "include_all": [],
12
+ "include_any": ["release", "published", "package", "registry", "CI", "tag", "version", "SHA", "deploy", "build verification"],
13
+ "exclude_any": ["wishlist", "someday"]
14
+ },
15
+ "signal_template": "发布与交付工作将版本、制品、分支、包、部署或注册表作为可审计验证的事实证据。",
16
+ "dimensions": ["Verification Discipline", "Shipping Hygiene", "Scope Control"],
17
+ "role_impacts": ["Technical Reviewer", "Shipping Owner", "Systems Thinker"],
18
+ "profile_impact": "高价值信号:表明能将 AI 辅助的工作输出,转化为有事实审计链保护的制品、分支与上线记录,而非口头上的“已写完”。"
19
+ },
20
+ {
21
+ "id": "EV-GENERIC-EVIDENCE-GOVERNANCE",
22
+ "title": "数据边界与审计合规存证",
23
+ "category": "evidence_governance",
24
+ "evidence_level": ["E2", "E3"],
25
+ "match": {
26
+ "include_all": [],
27
+ "include_any": ["evidence", "audit", "trace", "E1", "E2", "E3", "E4", "self-report", "review decision", "acceptance gate"],
28
+ "exclude_any": []
29
+ },
30
+ "signal_template": "工作流程中清晰地划分系统事实级证据、可复现的追踪审计、汇总报告、自我陈述以及接收验收红线。",
31
+ "dimensions": ["Review Judgment", "Verification Discipline", "Agent Delegation", "Collaboration Handoff"],
32
+ "role_impacts": ["Technical Reviewer", "Agent Operator", "Shipping Owner"],
33
+ "profile_impact": "高价值信号:表明拥有清晰的主客体责任意识,使 AI 调度具备可审计、可追溯的安全交付合规属性。"
34
+ },
35
+ {
36
+ "id": "EV-GENERIC-RELIABILITY-RECOVERY",
37
+ "title": "高可靠性诊断与故障恢复存证",
38
+ "category": "reliability_recovery",
39
+ "evidence_level": ["E2", "E3"],
40
+ "match": {
41
+ "include_all": [],
42
+ "include_any": ["debug", "failure", "crash", "timeout", "locked", "recovery", "retry", "smoke", "benchmark", "diagnosis", "regression"],
43
+ "exclude_any": []
44
+ },
45
+ "signal_template": "系统故障调试工作使用阶段式精准诊断、故障源头隔离、冒烟测试、基准基准测试、熔断重试等事实证据保障系统可靠性。",
46
+ "dimensions": ["Failure Recovery", "Verification Discipline", "Review Judgment", "Scope Control"],
47
+ "role_impacts": ["Technical Reviewer", "Systems Thinker", "Shipping Owner"],
48
+ "profile_impact": "高价值信号:表明在面对高难度异常、死锁和编译崩溃时,能用分步求证法配合测试验证精准修复,而非无头苍蝇式乱改。"
49
+ },
50
+ {
51
+ "id": "EV-GENERIC-PRODUCT-VALIDATION",
52
+ "title": "产品可行性验证与就绪判定存证",
53
+ "category": "product_validation",
54
+ "evidence_level": ["E2", "E3"],
55
+ "match": {
56
+ "include_all": [],
57
+ "include_any": ["MVP", "trial", "launch", "onboarding", "user validation", "viability", "positioning", "beta", "acceptance", "readiness"],
58
+ "exclude_any": []
59
+ },
60
+ "signal_template": "产品就绪判定和业务落地深度绑定,将产品功能边界、灰度上线及用户可用性决策与公开事实证据链牢牢挂钩。",
61
+ "dimensions": ["Product Judgment", "Verification Discipline", "Goal Framing", "Scope Control"],
62
+ "role_impacts": ["Product Builder", "Shipping Owner", "Technical Reviewer"],
63
+ "profile_impact": "高价值信号:表明具有出色的业务敏感度,懂得何时叫 AI 快速停止无谓的过度设计,专注核心 MVP 验证。"
64
+ },
65
+ {
66
+ "id": "EV-GENERIC-AGENT-WORKFLOW",
67
+ "title": "智能体协同调度与工作流设计存证",
68
+ "category": "agent_workflow",
69
+ "evidence_level": ["E2", "E3"],
70
+ "match": {
71
+ "include_all": [],
72
+ "include_any": ["agent", "delegation", "handoff", "execution packet", "prompt", "worker", "review flow", "task graph", "next prompt"],
73
+ "exclude_any": []
74
+ },
75
+ "signal_template": "AI 协同操作工作涵盖了任务分派、优雅交接、上下文数据打包、多轮评审反馈闭环以及多智能体协同调度。",
76
+ "dimensions": ["Agent Delegation", "Context Packaging", "Collaboration Handoff", "Goal Framing"],
77
+ "role_impacts": ["Agent Operator", "Shipping Owner", "Collaboration Handoff"],
78
+ "profile_impact": "高价值信号:表明不再将 AI 当作一锤子买卖的问答聊天框,而是将其作为可以被规范管理、调度并参与工程评审的协同下属。"
79
+ },
80
+ {
81
+ "id": "EV-GENERIC-PLATFORM-CONTRACT",
82
+ "title": "契约模式与 API 架构规约存证",
83
+ "category": "platform_contract",
84
+ "evidence_level": ["E2", "E3"],
85
+ "match": {
86
+ "include_all": [],
87
+ "include_any": ["contract", "schema", "protocol", "API", "router", "validation", "type", "migration", "compatibility"],
88
+ "exclude_any": []
89
+ },
90
+ "signal_template": "架构底层工作对准并对齐核心契约、数据 Schema、网络协议、API 路由规约、版本平滑迁移以及兼容性判定。",
91
+ "dimensions": ["Context Packaging", "Shipping Hygiene", "Collaboration Handoff", "Verification Discipline"],
92
+ "role_impacts": ["Systems Thinker", "Shipping Owner", "Technical Reviewer"],
93
+ "profile_impact": "高价值信号:表明具有敏锐的架构治理视野,擅长使用确定性的 Schema 和接口契约去约束 AI 从而保证大型系统的稳定性。"
94
+ },
95
+ {
96
+ "id": "EV-ACTIVITY-METADATA",
97
+ "title": "Codex 本地会话活动度基线",
98
+ "category": "agent_usage",
99
+ "evidence_level": ["E2"],
100
+ "match": {
101
+ "include_all": [],
102
+ "include_any": [],
103
+ "exclude_any": []
104
+ },
105
+ "fallback": true,
106
+ "signal_template": "在缺乏结构化调教文本证据时,使用本地 Codex 适配器累计的原始会话数据和 Token 活动度建立基础行为基线。",
107
+ "dimensions": ["Agent Delegation", "Context Packaging"],
108
+ "role_impacts": ["Agent Operator"],
109
+ "profile_impact": "基础级存证信号:能作为持续、高频使用 AI 进行本地开发的基本活动度证明,但在缺乏上层事实证据时,不直接代表工程交付水平。"
110
+ }
111
+ ]
112
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentrecord.local/schemas/evidence.schema.json",
4
+ "title": "AgentRecord Evidence Card",
5
+ "type": "object",
6
+ "required": [
7
+ "id",
8
+ "level",
9
+ "title",
10
+ "summary",
11
+ "agent_clients",
12
+ "dimensions",
13
+ "role_signals",
14
+ "confidence",
15
+ "refs",
16
+ "privacy"
17
+ ],
18
+ "properties": {
19
+ "id": { "type": "string" },
20
+ "level": { "type": "array", "items": { "type": "string" } },
21
+ "title": { "type": "string" },
22
+ "summary": { "type": "string" },
23
+ "agent_clients": { "type": "array", "items": { "type": "string" } },
24
+ "dimensions": { "type": "array", "items": { "type": "string" } },
25
+ "role_signals": { "type": "array", "items": { "type": "string" } },
26
+ "confidence": { "type": "string" },
27
+ "refs": { "type": "array" },
28
+ "privacy": { "type": "object", "required": ["public_safe"] }
29
+ }
30
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentrecord.local/schemas/profile.schema.json",
4
+ "title": "AgentRecord Profile",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "owner",
9
+ "generated_at",
10
+ "report",
11
+ "work_identity",
12
+ "work_role_signals",
13
+ "ability_model",
14
+ "agent_ledger",
15
+ "evidence_notes",
16
+ "calibration_notes",
17
+ "privacy_boundary",
18
+ "run_metadata"
19
+ ],
20
+ "properties": {
21
+ "schema_version": { "const": "agentrecord.profile.v0" },
22
+ "owner": { "type": "object", "required": ["id", "display_name"] },
23
+ "generated_at": { "type": "string" },
24
+ "report": { "type": "object", "required": ["locale", "audiences", "schema_language"] },
25
+ "work_identity": { "type": "object", "required": ["primary_label", "summary", "confidence", "evidence_ids"] },
26
+ "work_role_signals": { "type": "array", "items": { "type": "object", "required": ["role_id", "label", "band", "confidence", "evidence_ids"] } },
27
+ "ability_model": { "type": "array", "items": { "type": "object", "required": ["dimension_id", "label", "score", "band", "confidence", "evidence_ids"] } },
28
+ "agent_ledger": { "type": "object", "required": ["clients"] },
29
+ "evidence_notes": { "type": "array", "items": { "type": "object", "required": ["evidence_id", "level", "title", "summary", "refs", "privacy"] } },
30
+ "calibration_notes": { "type": "array" },
31
+ "privacy_boundary": { "type": "object", "required": ["local_only_generation", "raw_logs_included", "public_session_ids_included"] },
32
+ "run_metadata": { "type": "object", "required": ["mode", "run_count", "generated_at"] }
33
+ }
34
+ }