Skip to content

chore: standardize environment and establish kickoff baseline - #4

Merged
zhangjun221 merged 10 commits into
mainfrom
codex/b1-ew-complete_jw
Aug 7, 2026
Merged

zhangjun221 merged 10 commits into
mainfrom
codex/b1-ew-complete_jw

Conversation

@zhangjun221

Copy link
Copy Markdown
Collaborator

目标

把 PR3 后的本地集成结果、统一开发环境和正式开工管理基线同步到团队主线。

主要变更

  • 对齐 PyYAML、Pydantic、CI、README 和 pyproject.toml 的依赖口径。
  • 锁定共享 AgentSociety 2.8.2 环境并提交可复现 uv.lock,保留本地源码调试边界。
  • 收紧场景 Pydantic 校验,不再把必需校验依赖作为静默可选能力。
  • 新增 2026-08-07 总体设计、当前功能、PR3 内容和修订执行计划文档。
  • 建立 95 项 Requirement Matrix、P0-P3 Defect Board、Run Registry、Schema/API Change Log。
  • 正式分配责任线:A yilu、B jiaqi、C jiawei、D zhangjun、可视化 yuhang(wyh7)。
  • 更新 PR 模板和协作指南,要求关联 Requirement/Task、owner/reviewer、验证证据和能力边界。
  • 修复 CommunitySpace contract fixture 越出临时目录的问题。

验证

  • TMPDIR=/tmp .venv/bin/python -m pytest tests/ -q
  • 结果:121 passed in 6.70s
  • Requirement Matrix:95 个唯一 ID,无重复。
  • 已合入最新 team/main,无冲突。

证据边界

  • 121 tests 是离线和集成边界证据,不等于真实 AgentSociety 长时程实验通过。
  • 当前只放行 Phase 0/1;真实后端网格、pilot 和大规模实验仍需通过 Gate-F1。
  • 历史 runs/ 在缺少统一 manifest 前保持 pending_review,不进入正式统计。

Copilot AI lite review requested due to automatic review settings August 7, 2026 12:50
@zhangjun221
zhangjun221 merged commit 83b3e48 into main Aug 7, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR synchronizes the team’s post-PR3 integration baseline onto mainline by standardizing the Python environment/dependencies, making scenario validation strict/consistent (Pydantic v2 as a declared requirement), tightening CI to run the offline/integration-boundary suite, and adding a management documentation baseline (requirements/defects/runs/schema change log).

Changes:

  • Standardize dependencies and reproducibility boundaries (Python range, Pydantic v2 required, pinned test/full extras, CI installs .[test] and runs pytest).
  • Fix the CommunitySpace contract fixture so replay artifacts are guaranteed to stay inside the temp directory workspace structure.
  • Add/refresh management docs and collaboration/PR process templates to enforce requirement/task linkage and evidence boundaries.

Reviewed changes

Copilot reviewed 20 out of 22 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Declares Python compatibility, makes Pydantic v2 a base dependency, adds test/full pinned extras, and sets pytest warning filters.
.github/workflows/ci.yml Switches CI to install .[test] and run the offline/integration-boundary test suite.
README.md Updates setup/install instructions to match the new dependency model and test extras, clarifies AS 2.8.2 workflow.
afi/world/scenario.py Removes “optional Pydantic” behavior and enforces declared Pydantic v2 validation path for scenario YAML.
tests/test_awi_and_envs.py Updates scenario validation test to require strict Pydantic validation (no conditional skips).
tests/test_tool_contract_audit.py Nests CommunitySpace workspace to prevent replay output escaping temp directories; adds replay assertion; restores from nested workspace.
afi/backend/as_requirements.md Updates backend patch status to reflect reinstall-safe migration to custom/envs.
.gitignore Ignores .venv/ and external/ local upstream checkouts.
.github/pull_request_template.md Adds required management linkage (Requirement/Defect IDs), evidence boundary fields, and schema-change checklist items.
docs/management/README.md New management entrypoint defining governance rules and PR minimum requirements.
docs/management/requirement-audit-matrix.md Adds the 95-item requirement audit matrix baseline.
docs/management/defect-board.md Adds the P0–P3 defect/task board baseline.
docs/management/run-registry.md Adds run registry schema and initial entries/boundaries.
docs/management/schema-api-change-log.md Adds a schema/API/metric change log with change IDs and rules.
docs/collaboration-guide.md Updates collaboration flow to point to management entrypoint and new install/test extras.
CONTRIBUTING.md Updates contributor guidance to match new management entrypoint and strict Pydantic/test baseline.
docs/0807收尾/* Adds the 2026-08-07 baseline design/plan summaries and PR3 integration summary docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml
Comment on lines +29 to +32
[tool.pytest.ini_options]
filterwarnings = [
"ignore:invalid escape sequence.*:SyntaxWarning",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants