[14] 
[DFN[[RUBYB[エージェントクラスター][agent cluster]]]]は、
[[エージェント]]の集まりです。

[15] 
[[エージェントクラスター]]は、
[[JavaScript]] [[プログラム]]が実行される[[プロセス]]に相当するまとまりを、
特定の実装方法に依存しないよう抽象化した[[仕様書]]上の概念です。
ただし実装戦略の自由性を確保するため、
現実の実装より強め (細かめ) に分離されています。
[SRC[>>13]]

[16] 
[[エージェントクラスター]]は 
[[JavaScript]]
の[[メモリー]]モデルを規定するために必要な概念となっています。
とりわけ
[CODE[SharedArray]] 
の挙動の[[相互運用性]]に貢献しています。 
[SRC[>>13]]


* 仕様書

[REFS[
- [13] [CITE@en-US-x-hixie[HTML Standard]], [TIME[2021-04-12T15:12:42.000Z]], [TIME[2021-04-13T08:36:08.165Z]] <https://html.spec.whatwg.org/#integration-with-the-javascript-agent-cluster-formalism>
]REFS]

* 状態

[FIG(list members)[ [12] [[エージェントクラスター]]の状態

: [DFN[[F[cross-origin isolation mode]]]] :
初期値は [CODE[none]]。
[SRC[>>13]]
: [DFN[[F[[RUBYB[[[起源を鍵としている]]][is origin-keyed]]]]]] :
初期値は[[偽]]。
[SRC[>>13]]
[[エージェントを作成]]で設定されます。

]FIG]

* 歴史

[1] [CITE@en[Define agents and agent clusters]]
([[annevk]]著, [TIME[2017-04-26 18:46:01 +09:00]])
<https://github.com/whatwg/html/commit/4db86547f1184e7ceb4f1009cb3bef28101eda4f>

[2] [CITE[The WHATWG Blog — HTML and shared memory]]
([TIME[2017-05-02 09:02:50 +09:00]])
<https://blog.whatwg.org/html-and-shared-memory>

[3] [CITE@en[Make Agents / Agent Clusters concepts that work for WebAssembly · Issue #887 · tc39/ecma262]]
([TIME[2017-12-19 01:03:40 +09:00]])
<https://github.com/tc39/ecma262/issues/887>

[4] [CITE@en[Atomic and thread operators by binji · Pull Request #1019 · WebAssembly/design]]
([TIME[2017-12-19 01:05:47 +09:00]])
<https://github.com/WebAssembly/design/pull/1019>

[5] [CITE@en[Add Origin-aware Transferrables · Issue #3766 · whatwg/html]]
([TIME[2018-07-03 22:34:51 +09:00]])
<https://github.com/whatwg/html/issues/3766>

[6] [CITE@en[Clarify and explain agents and agent clusters]]
([[domenic]]著, [TIME[2018-07-26 02:32:25 +09:00]])
<https://github.com/whatwg/html/commit/db6d0df0b681d0b83a35b60302ad5077e59bb8aa>

[7] [CITE@en[Add Origin-aware Transferrables · Issue #3766 · whatwg/html]]
([TIME[2018-07-26 23:16:38 +09:00]])
<https://github.com/whatwg/html/issues/3766>

[8] [CITE@en[Clarify and explain agents and agent clusters by domenic · Pull Request #3783 · whatwg/html]]
([TIME[2018-07-26 23:17:12 +09:00]])
<https://github.com/whatwg/html/pull/3783>

[9] [CITE@en[Add worklets to JavaScript agent clusters]]
([[hoch]]著, [TIME[2018-10-16 05:46:34 +09:00]])
<https://github.com/whatwg/html/commit/bddeb25e72fc44456057c846a87775c65f0f9d42>

[10] [CITE@en['''['''worklets''']''' relationship to JavaScript agent clusters · Issue #380 · w3c/css-houdini-drafts]]
([TIME[2018-11-06 16:25:33 +09:00]])
<https://github.com/w3c/css-houdini-drafts/issues/380>

[11] [CITE@en[Add Worklet to JavaScript agent clusters by hoch · Pull Request #4069 · whatwg/html]]
([TIME[2018-11-06 16:26:59 +09:00]])
<https://github.com/whatwg/html/pull/4069>