Skip to content

Lab 战役:10 轮 harness 硬化 + 南浪仔文旅 IP 资产 + 独立使用文档(round14-23) - #15

Merged
randypanding merged 30 commits into
mainfrom
sw/lab-campaign-20260825
Aug 26, 2026
Merged

Lab 战役:10 轮 harness 硬化 + 南浪仔文旅 IP 资产 + 独立使用文档(round14-23)#15
randypanding merged 30 commits into
mainfrom
sw/lab-campaign-20260825

Conversation

@randypanding

Copy link
Copy Markdown
Owner

内容

2026-08-21→26 Lab 优化战役的全部 SW 侧成果(26 commits,41 文件,+2456/-124):

harness 硬化(round14-20d,全部先写测试,597 全绿)

  • p3 结构机械修复器(STR-014 承重节拍/BM-002 植入间距/STR-010 主角补位)
  • est_duration_s 等比缩放(DLG-006 根因)+ _retry_pass 传输容错
  • p5 对白区间对齐门禁 + _expand_if_thin 欠量当场扩写
  • p6 prompt 瘦身投影(46k→可发)+ 暗线步进钳制(INV-19)
  • CMP-001 绝对化用语机械替换 + p1 空串占位 + ir.json datetime 导出修复

新资产

  • brands/hainan_nolan + examples/hainan_nolan(海南文旅 IP 南浪仔,用户定稿五幕故事)
  • profiles/lab_smoke_v1 迭代切片

实证

  • 两部完整产物全绿:《下午三点》8 章/8 集、《南浪仔》8 章/8 集(首个零门禁失败完走)
  • 三轴判分(Lab 仓 champions.yaml):v1 0.708/0.929/1.0 → v3 0.75/0.964/1.0
  • spec-guard 双项 rc=0;全量 pytest 597 passed

⚠️ 偏离声明(请 owner 裁决)

  1. prompts/ 手改入库(B1 生成物本应只由 nsc optimize 写入):p3 v3.2 / p5 round13 为战役期手工指令补丁,全绿产物依赖其复现,故随 PR 入库并声明;
  2. brands/hainan_nolan 为资产 A 新增,证据即本 PR 实证一节(Lab 仓 deliverables/2026-08-26/ 有完整判分与战役报告);
  3. config/models.yaml 未改动(保持 LongCat 端点;战役期的 shim 指向只在工作树,未入库)。

合并后 main 即独立可用:配置 api_base + OPENAI_API_KEY 即可 nsc run(见 README「独立使用说明」)。

randypanding and others added 26 commits August 22, 2026 04:57
- context.prev_summary_window(缺省 1=原行为):run_pipeline 与 recompile_episode
  统一走 _window_join(近端在前、远端逐行追加;window=1 逐字节同原实现)
- context.known_fact_fields(缺省原五字段,白名单校验):_known_facts 投影可窄化
- context.inject_threads(缺省 false):p2 Thread 表按 {id,title,status,state}
  投影注入 p3 fragment,p3 转发进 LLM 输入
- profiles/_schema.py 新增 ContextSettings(extra=forbid + field_validator)
- 测试:tests/test_p3_context_config.py(5 例,先红后绿)
Copilot review(PR #13):
- _known_fact_fields_of 用 or 判断,显式 [] 与未配置混同 → 改为 is None 判定
- _window_join 实现是时间序(远端在前),初稿 docstring/ADR/测试注释写成
  "近端在前" → 统一改为时间序表述(与 compress_history【前情】→【上一集】布局一致)
…episode 投影,实证 46631 字符撞护栏;id 全保留 anchor_map 契约不动)
… NOLAN'全名在叙事中永不自然;NOLAN 单用降级为偶发可重试)
Copilot AI lite review requested due to automatic review settings August 26, 2026 09:20

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

cnb added 2 commits August 26, 2026 17:25
…onfig

# Conflicts:
#	adr/0015-pass-contract-strings-as-asset.md
#	adr/0016-pipeline-strategy-profile-sections.md
#	adr/0017-p3-context-profile-section.md
#	profiles/_schema.py
#	profiles/short_drama_v1.yaml
#	profiles/short_video_v1.yaml
#	src/nsc/passes/p3_beatsheet.py
#	src/nsc/passes/p5_dialogue.py
#	src/nsc/passes/pipeline.py
@randypanding
randypanding merged commit 0c93d09 into main Aug 26, 2026
9 checks passed
@randypanding
randypanding deleted the sw/lab-campaign-20260825 branch August 26, 2026 10:21
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.

2 participants