ace-hitl 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b03d376ceb86f080d28d686be092bc972d05fa6a03037ba45181ad4bcef124ba
4
- data.tar.gz: eebcbcc9d94d2c4f929eb4a0e6559812170bc2c45c9c2da67fb4ed7fc7eaf2d9
3
+ metadata.gz: 9714397cb519f133f5369d64db2b2e473a480a65591b3a10e29ba257bf3ea6e5
4
+ data.tar.gz: 39a0e54dfc502ca95889b6842c8c763b8cc255473fbcf2b583818ed28ab5b592
5
5
  SHA512:
6
- metadata.gz: 219f51b837aa9f69beb1faaaafdea4327bce68203e9a3fbcdce9d02d85d1c503984abe6d2855ad1643b94f3fdc115142718410f47dd031a98dfeb19d489a4a64
7
- data.tar.gz: d149583ddc5c607e45b15bab620ae41716ebb764fb0e90807252747647edd6e3df1c1d935f171772ea28db1ca9d7bd7a78aaadfffb32a9ea6e0be7bcedce52fa
6
+ metadata.gz: 2a3296c95bdd62d5df4cb22ec1a1807d71c28d7590b965ad4dd939fe996bebffc268a7d231e0563ef4d7de34c7e615798f5fc8851270927d06f13659eacf9686
7
+ data.tar.gz: 7b89bbbac60d296c70d8faa274825d97ef5799d77ee3a33ae642325d9235338743c8f623eef00e7e0ec9dcb91d05127c6ba6a2ceb07dacbeb91cfa61ba412b70
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.28.0] - 2026-11-16
11
+
12
+ ### Fixed
13
+
14
+ - Create fresh HITL event roots PRIVATE 0700 at creation time: `HitlManager.ensure_root_dir` now builds the root with a umask-proof `mkdir_p mode: 0o700` + explicit `chmod 0700` instead of the umask-derived default (`0777 & ~umask`, 0755 under umask 022), so new-worktree event roots are never world-traversable. Existing roots stay untouched (no recursion, no mode flips).
15
+
10
16
  ## [0.27.0] - 2026-11-12
11
17
 
12
18
  ### Changed
@@ -783,8 +783,17 @@ module Ace
783
783
  Molecules::HitlConfigLoader.root_dir(@config)
784
784
  end
785
785
 
786
+ # HITL event roots hold private attention state: a fresh root is
787
+ # created PRIVATE 0700 at creation time (mkdir_p enforces the mode
788
+ # on every directory it creates), never world-traversable. The
789
+ # explicit chmod keeps the pinned mode umask-proof — the same
790
+ # pattern as the lifecycle store layout. Existing roots are
791
+ # untouched — no recursion, no mode flips.
786
792
  private def ensure_root_dir
787
- FileUtils.mkdir_p(@root_dir) unless Dir.exist?(@root_dir)
793
+ return if Dir.exist?(@root_dir)
794
+
795
+ FileUtils.mkdir_p(@root_dir, mode: 0o700)
796
+ File.chmod(0o700, @root_dir)
788
797
  end
789
798
 
790
799
  private def resolve_for_mutation(ref, scope: nil)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module Hitl
5
- VERSION = "0.27.0"
5
+ VERSION = "0.28.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-hitl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-11-12 00:00:00.000000000 Z
10
+ date: 2026-11-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-hitl-contract