Skip to content

Align Organization naming glossary and confine corpus paths - #28

Merged
XYAIStudio merged 1 commit into
mainfrom
cursor/org-naming-codeql-d3b8
Sep 16, 2026
Merged

XYAIStudio merged 1 commit into
mainfrom
cursor/org-naming-codeql-d3b8

Conversation

@XYAIStudio

Copy link
Copy Markdown
Owner

Summary

Align Organization / mutual-growth copy with the glossary from the #23 follow-up, and keep corpus distill writes off user-supplied paths so CodeQL py/path-injection stays clean.

Glossary

Term Meaning
员工 / employee Assigned into a department (openXYOS control plane)
同事 / colleague Same-organization peers on FreeOS
专家 / 智能助手 / expert / assistant Not yet in an org department

Import (openXYOS → FreeOS) registers department 员工 as 同事. Pack (FreeOS → openXYOS) lands 专家 / 智能助手 as department 员工. Corpus produce creates an 专家 / 智能助手, not a 同事.

produce_from_corpus no longer joins caller distill_path / kb_id into filesystem paths. It only writes {FREEOS_HOME}/org-corpus/default (same confinement style as asset-pack apply).

Target branch

Type of change

  • Bug fix (copy + path confinement)
  • New feature
  • Breaking change
  • Documentation

Test plan

  • Pre-commit make precommit green (format-all + lint + typecheck + scoped tests + dashboard build)
  • Added test_produce_from_corpus_ignores_outside_distill_path
  • CodeQL + Python CI on this PR (Desktop Package may keep running)

Windows verification (no Release replace)

  1. Open 组织. Data-plane metric reads 同事 / 专家; assemble talks 员工 → 同事; pack talks 专家 / 智能助手 → 员工; produce title is 从语料生产专家.
  2. Run assemble / pack / loop once. Timeline uses 同事; localized notes say 同事 / 部门员工 / 智能助手, not mixed 数字员工.
  3. Produce from corpus with an ima URL. Workspace lands under %USERPROFILE%\.freeos\org-corpus\default (or FREEOS_HOME), not a caller path.

Checklist

  • Updated CHANGELOG.md
  • README / docs/asset-loop.md updated

Do not merge. Do not replace Release assets. Version stays 0.0.1.

Open in Web Open in Cursor 

员工 is a department assignment on the control plane, 同事 are
same-org peers on FreeOS, and 专家 / 智能助手 are not yet in a
department. Confine corpus distill writes to FREEOS_HOME/org-corpus/default
so user distill_path cannot reach the filesystem.
@XYAIStudio
XYAIStudio marked this pull request as ready for review September 16, 2026 05:20
@XYAIStudio
XYAIStudio merged commit ff41f6e into main Sep 16, 2026
5 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/org-naming-codeql-d3b8 branch September 16, 2026 06:18
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