Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

[自由工坊](https://freetwai.com) 讓會員先完成定位、選擇公會並領取 Repo 技能書,再以供貨、商店、開源作品、行銷與小隊共同完成成果。

FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。
FreeTWAI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。

已有 profile、任務表單與可供各倉用 commit SHA 固定的 reusable verification workflow。 workflow 存在或跑綠不表示 ruleset 已強制、維護者已審核、release 已簽章或網站已部署。

本 repo 的維護者負責「FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。」這個模組;公會職稱與自填 GitHub slug 不授予寫入權。
本 repo 的維護者負責「FreeTWAI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。」這個模組;公會職稱與自填 GitHub slug 不授予寫入權。

先讀本倉 README、CONTRIBUTING、現有上游產品/授權說明,以及受影響目錄的 AGENTS。Issue 的最新討論與 PR 才是任務/審查紀錄,平台摘要只是索引。

Expand All @@ -27,9 +27,9 @@ FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。

### 接手與交付

1. 讀[目前 Issues](https://github.com/FreeTWAI-AI/.github/issues)與[已開 PR](https://github.com/FreeTWAI-AI/.github/pulls),確認範圍、完成條件、既有認領與相依工作。
1. 讀[目前 Issues](https://github.com/FreeTWAI/.github/issues)與[已開 PR](https://github.com/FreeTWAI/.github/pulls),確認範圍、完成條件、既有認領與相依工作。
2. 一般社群貢獻先留言提出認領範圍,讓維護者確認;若當前對話已獲明確派工,沿用授權直接做,不再發明確認關卡。不要自行發送訊息或建立 Issue,除非任務已授權。
3. 使用自己的 fork/工作分支或已授權分支。PR 目標為 `FreeTWAI-AI/.github` 的目前預設分支 `main`;不自動 force-push、合併、發版或擴大外部操作。
3. 使用自己的 fork/工作分支或已授權分支。PR 目標為 `FreeTWAI/.github` 的目前預設分支 `main`;不自動 force-push、合併、發版或擴大外部操作。
4. PR 附原 Issue、前後行為、檔案範圍、實跑命令/結果與未驗證部分;交接列 commit、下一步及真正卡點。保留真實 GitHub 作者、review 與 merged SHA,不把未驗證 slug、點讚或使用 AI 轉成 XP/報酬/職務證明。

### 驗證
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ no contribution license agreement or new license grant.
<!-- freedom-repository-guide:start -->
## 自由工坊:從一個成果到一個 PR

FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。 已有 profile、任務表單與可供各倉用 commit SHA 固定的 reusable verification workflow。
FreeTWAI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。 已有 profile、任務表單與可供各倉用 commit SHA 固定的 reusable verification workflow。

先看[本倉 Issues](https://github.com/FreeTWAI-AI/.github/issues)與[現有 PR](https://github.com/FreeTWAI-AI/.github/pulls)。提出問題、這一輪範圍、完成條件與可投入時間,在 Issue 認領並協調重疊工作;維護者已直接派工時不必重複等待,將約定連回交接即可。使用自己的 fork/分支,PR 送到 **FreeTWAI-AI/.github:main**。
先看[本倉 Issues](https://github.com/FreeTWAI/.github/issues)與[現有 PR](https://github.com/FreeTWAI/.github/pulls)。提出問題、這一輪範圍、完成條件與可投入時間,在 Issue 認領並協調重疊工作;維護者已直接派工時不必重複等待,將約定連回交接即可。使用自己的 fork/分支,PR 送到 **FreeTWAI/.github:main**。

交給 Agent 前先讓它讀 [AGENTS.md](AGENTS.md)。PR 寫明變更用途、使用者可見結果、驗證命令、限制與原 Issue;附上可公開的合成案例或重現方式。Issue/PR 是程式協作的記錄,平台名片與公會身分不取代 repo 維護者的審查。

Expand All @@ -45,7 +45,7 @@ npm run build

### 署名與上游

本 repo 的維護者負責「FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。」這個模組;公會職稱與自填 GitHub slug 不授予寫入權。 保留原作者與授權檔,另列真正完成文件、測試、設計、程式或協作的人。使用 AI 時如實交代協作範圍;只有實際 GitHub PR/review/合併紀錄可以作為對應貢獻證據,不能靠自填帳號推定。
本 repo 的維護者負責「FreeTWAI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。」這個模組;公會職稱與自填 GitHub slug 不授予寫入權。 保留原作者與授權檔,另列真正完成文件、測試、設計、程式或協作的人。使用 AI 時如實交代協作範圍;只有實際 GitHub PR/review/合併紀錄可以作為對應貢獻證據,不能靠自填帳號推定。

自願貢獻不保證案源、XP、收益或雇用。若產生付費合作,由當事人另定條款與 Seller 外部收款;平台不代收。秘密、客戶資料、真實交易單據與未授權素材不進公開 Issue/PR。
<!-- freedom-repository-guide:end -->
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@

[自由工坊](https://freetwai.com) 讓會員先完成定位、選擇公會並領取 Repo 技能書,再以供貨、商店、開源作品、行銷與小隊共同完成成果。

FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。 已有 profile、任務表單與可供各倉用 commit SHA 固定的 reusable verification workflow。
FreeTWAI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。 已有 profile、任務表單與可供各倉用 commit SHA 固定的 reusable verification workflow。

workflow 存在或跑綠不表示 ruleset 已強制、維護者已審核、release 已簽章或網站已部署。

本 repo 的維護者負責「FreeTWAI-AI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。」這個模組;公會職稱與自填 GitHub slug 不授予寫入權。
本 repo 的維護者負責「FreeTWAI 的組織介紹、共用 Issue/PR 範本与唯讀 CI 入口。」這個模組;公會職稱與自填 GitHub slug 不授予寫入權。

程式/內容入口:[profile/README.md](profile/README.md)、[.github/ISSUE_TEMPLATE/](.github/ISSUE_TEMPLATE/)、[.github/PULL_REQUEST_TEMPLATE.md](.github/PULL_REQUEST_TEMPLATE.md)、[.github/workflows/verify-template.yml](.github/workflows/verify-template.yml)、[scripts/verify-contracts.mjs](scripts/verify-contracts.mjs)。協作先讀 [CONTRIBUTING.md](CONTRIBUTING.md),讓 Agent 讀 [AGENTS.md](AGENTS.md);從[本倉 Issues](https://github.com/FreeTWAI-AI/.github/issues)認領、[查看既有 PR](https://github.com/FreeTWAI-AI/.github/pulls)避免重工。
程式/內容入口:[profile/README.md](profile/README.md)、[.github/ISSUE_TEMPLATE/](.github/ISSUE_TEMPLATE/)、[.github/PULL_REQUEST_TEMPLATE.md](.github/PULL_REQUEST_TEMPLATE.md)、[.github/workflows/verify-template.yml](.github/workflows/verify-template.yml)、[scripts/verify-contracts.mjs](scripts/verify-contracts.mjs)。協作先讀 [CONTRIBUTING.md](CONTRIBUTING.md),讓 Agent 讀 [AGENTS.md](AGENTS.md);從[本倉 Issues](https://github.com/FreeTWAI/.github/issues)認領、[查看既有 PR](https://github.com/FreeTWAI/.github/pulls)避免重工。

這裡維護組織協作規則,不維護會員 DB 或業務權限。中央契約由 freedom-platform 產出;此 workflow 保持最小 contents:read,不夾帶部署或私人 provider secrets。 跨 repo 的協定由[中央平台](https://github.com/FreeTWAI-AI/freedom-platform)維護。
這裡維護組織協作規則,不維護會員 DB 或業務權限。中央契約由 freedom-platform 產出;此 workflow 保持最小 contents:read,不夾帶部署或私人 provider secrets。 跨 repo 的協定由[中央平台](https://github.com/FreeTWAI/freedom-platform)維護。
<!-- freedom-repository-guide:end -->

Shared repository templates and read-only verification for FreeTWAI-AI projects.
Shared repository templates and read-only verification for FreeTWAI projects.
The existing organization profile remains in `profile/README.md`.

`.github/workflows/verify-template.yml` is a reusable `workflow_call` workflow.
Expand All @@ -35,7 +35,7 @@ GitHub settings.
Shared issue and pull-request templates are in `.github/`. They help connect a
change to the affected module, Platform contract version, and reproducible test.
No invented teams or CODEOWNERS entries are supplied. Repository ownership and
maintenance identify the observed `FreeTWAI-AI` organization and `teddashh` user.
maintenance identify the observed `FreeTWAI` organization and `teddashh` user.

Licensing has not been chosen for this bootstrap. `NOASSERTION` and
`source_available` are metadata, not a license grant.
16 changes: 8 additions & 8 deletions freedom.project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"accountable_team": null,
"external_owner": {
"type": "Organization",
"account_id": "331546855",
"login": "FreeTWAI-AI",
"html_url": "https://github.com/FreeTWAI-AI"
"account_id": "342048686",
"login": "FreeTWAI",
"html_url": "https://github.com/FreeTWAI"
},
"accountable_party_ref": "user:teddashh",
"module_stewardship_ref": null,
Expand All @@ -47,8 +47,8 @@
"security_contact": "https://github.com/teddashh"
},
"repository": {
"full_name": "FreeTWAI-AI/.github",
"html_url": "https://github.com/FreeTWAI-AI/.github",
"full_name": "FreeTWAI/.github",
"html_url": "https://github.com/FreeTWAI/.github",
"repository_id": "1378081556",
"default_branch": "main",
"visibility": "public",
Expand Down Expand Up @@ -168,9 +168,9 @@
]
},
"links": {
"documentation": "https://github.com/FreeTWAI-AI/.github/blob/main/README.md",
"documentation": "https://github.com/FreeTWAI/.github/blob/main/README.md",
"demo": null,
"support": "https://github.com/FreeTWAI-AI/.github/issues",
"issues": "https://github.com/FreeTWAI-AI/.github/issues"
"support": "https://github.com/FreeTWAI/.github/issues",
"issues": "https://github.com/FreeTWAI/.github/issues"
}
}
2 changes: 1 addition & 1 deletion profile/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FreeTWAI-AI
# FreeTWAI

Freedom Platform / 自由工坊 — AI 自由平台.

Expand Down
4 changes: 2 additions & 2 deletions scripts/verify-contracts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {resolve} from 'node:path';
const root=process.cwd(),vendor=resolve(root,'vendor/freedom-platform');
const lock=JSON.parse(await readFile(resolve(root,'contracts.lock.json'),'utf8'));
const hash=data=>createHash('sha256').update(data).digest('hex');
if(lock.source_repository!=='FreeTWAI-AI/freedom-platform'||!/^[a-f0-9]{40}$/.test(lock.source_commit)||lock.bundle_path!=='contracts/preview/v1')throw Error('Invalid canonical contract source');
if(!['FreeTWAI-AI/freedom-platform','FreeTWAI/freedom-platform'].includes(lock.source_repository)||!/^[a-f0-9]{40}$/.test(lock.source_commit)||lock.bundle_path!=='contracts/preview/v1')throw Error('Invalid canonical contract source');
const manifestBytes=await readFile(resolve(vendor,'bundle.json'));
if(hash(manifestBytes)!==lock.bundle_sha256)throw Error('Contract bundle digest differs from lock');
const bundle=JSON.parse(manifestBytes);if(bundle.protocol!==lock.protocol||bundle.protocol_sha256!==lock.protocol_sha256)throw Error('Protocol identity differs from lock');
Expand All @@ -18,6 +18,6 @@ for(const file of expected){
const path=resolve(vendor,file);if(!(await lstat(path)).isFile())throw Error('Artifact must be a regular file');
const local=await readFile(path);const declared=file==='bundle.json'?{sha256:lock.bundle_sha256}:bundle.files[file];
if(hash(local)!==declared.sha256||(declared.bytes!==undefined&&local.byteLength!==declared.bytes))throw Error(`Modified canonical artifact ${file}`);
if(remote){const url=`https://raw.githubusercontent.com/${lock.source_repository}/${lock.source_commit}/${lock.bundle_path}/${file}`;const response=await fetch(url,{redirect:'error',signal:AbortSignal.timeout(20000)});if(!response.ok)throw Error(`Cannot verify pinned artifact ${file}: ${response.status}`);const bytes=new Uint8Array(await response.arrayBuffer());if(bytes.byteLength>2_000_000||hash(bytes)!==declared.sha256)throw Error(`Pinned upstream differs: ${file}`);}
if(remote){const url=`https://raw.githubusercontent.com/FreeTWAI/freedom-platform/${lock.source_commit}/${lock.bundle_path}/${file}`;const response=await fetch(url,{redirect:'error',signal:AbortSignal.timeout(20000)});if(!response.ok)throw Error(`Cannot verify pinned artifact ${file}: ${response.status}`);const bytes=new Uint8Array(await response.arrayBuffer());if(bytes.byteLength>2_000_000||hash(bytes)!==declared.sha256)throw Error(`Pinned upstream differs: ${file}`);}
}
console.log(`Contract ${lock.protocol} at ${lock.source_commit.slice(0,12)}: ${expected.size} artifacts verified${remote?' against pinned GitHub source':''}.`);
Loading