cjm-transcript-correction-core 0.0.2__tar.gz → 0.0.3__tar.gz

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.
Files changed (26) hide show
  1. {cjm_transcript_correction_core-0.0.2/cjm_transcript_correction_core.egg-info → cjm_transcript_correction_core-0.0.3}/PKG-INFO +3 -4
  2. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/README.md +1 -2
  3. cjm_transcript_correction_core-0.0.3/cjm_transcript_correction_core/__init__.py +1 -0
  4. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core/journal.py +0 -11
  5. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3/cjm_transcript_correction_core.egg-info}/PKG-INFO +3 -4
  6. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core.egg-info/requires.txt +1 -1
  7. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/pyproject.toml +1 -1
  8. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/tests/test_journal.py +2 -2
  9. cjm_transcript_correction_core-0.0.2/cjm_transcript_correction_core/__init__.py +0 -1
  10. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/LICENSE +0 -0
  11. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/MANIFEST.in +0 -0
  12. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core/cli.py +0 -0
  13. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core/graph.py +0 -0
  14. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core/models.py +0 -0
  15. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core/pipeline.py +0 -0
  16. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core/signals.py +0 -0
  17. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core.egg-info/SOURCES.txt +0 -0
  18. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core.egg-info/dependency_links.txt +0 -0
  19. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core.egg-info/entry_points.txt +0 -0
  20. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/cjm_transcript_correction_core.egg-info/top_level.txt +0 -0
  21. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/setup.cfg +0 -0
  22. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/tests/test_cli.py +0 -0
  23. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/tests/test_graph.py +0 -0
  24. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/tests/test_models.py +0 -0
  25. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/tests/test_pipeline.py +0 -0
  26. {cjm_transcript_correction_core-0.0.2 → cjm_transcript_correction_core-0.0.3}/tests/test_signals.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjm-transcript-correction-core
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A frontend-agnostic core for the transcript correction workflow — the first downstream graph-extension core; composes the graph-storage capability worker into a headless pipeline that applies unified, non-destructive corrections (text, punctuation, segmentation) as a supersede-able overlay on a committed decomposition spine, recomputes the review worklist from deterministic signals, and exposes a CLI as its first driver.
5
5
  Author-email: "Christian J. Mills" <9126128+cj-mills@users.noreply.github.com>
6
6
  License: Apache-2.0
@@ -12,7 +12,7 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: cjm_substrate>=0.0.51
14
14
  Requires-Dist: cjm_context_graph_primitives>=0.0.14
15
- Requires-Dist: cjm-context-graph-layer>=0.0.8
15
+ Requires-Dist: cjm-context-graph-layer>=0.0.10
16
16
  Requires-Dist: cjm-transcript-graph-schema>=0.0.7
17
17
  Dynamic: license-file
18
18
 
@@ -26,7 +26,7 @@ A frontend-agnostic core for the transcript correction workflow — the first do
26
26
 
27
27
  - **`cjm_transcript_correction_core.cli`** — The CLI driver — the correction core's first (and currently only) frontend. run <decomp-manifest> corrects the committed spine in the decomp graph DB, pointing the graph worker at that shared DB via load-time config, with optional session resume/reopen; review runs the interactive text-correction loop (the cross-transcriber diff is intra-graph since stage 5).
28
28
  - **`cjm_transcript_correction_core.graph`** — The correction overlay's graph I/O: targeted (scale-shaped) reads of a committed spine via the graph-storage query action, construction of Correction / CorrectionSession nodes + CORRECTS / SUPERSEDES / DERIVED_FROM / REVIEWED edges, the in-core effective-spine projection (layer-0 + applied corrections), and commit through the job queue. Hand-rolled (revolution-1) = direct CR-18 spec material; append-only on layer-0 (never update/delete a Segment).
29
- - **`cjm_transcript_correction_core.journal`**
29
+ - **`cjm_transcript_correction_core.journal`** — Live append-through for the correction verbs — the workflow journal's domain half.
30
30
  - **`cjm_transcript_correction_core.models`** — Overlay data shapes for the transcript-correction workflow: the Correction / CorrectionSession graph nodes + their relation registry, the read view of a committed spine segment, the worklist item, run configuration, and the correction run manifest (proto-bundle that chains decomp -> correction).
31
31
  - **`cjm_transcript_correction_core.pipeline`** — The headless correction workflow: load a decomp run manifest, resolve the shared graph DB, start/resume/reopen a CorrectionSession, recompute the worklist from deterministic signals + persisted review state, run the D14 empty-segment prune (first operation), and record a chainable correction run manifest — with a cheapest-form HITL approval seam.
32
32
  - **`cjm_transcript_correction_core.signals`** — Pure deterministic Tier-1 signal functions (no capability calls): empty-segment detection, bidirectional boundary punctuation/capitalization heuristics, forced-alignment coverage flags, positional cross-transcriber diff, and phonetic + edit-distance variant clustering. The worklist is recomputed from these each session; revolution-1 builds ZERO new capabilities.
@@ -79,7 +79,6 @@ A frontend-agnostic core for the transcript correction workflow — the first do
79
79
  - `correction_replay_handlers` _function_ — The correction core's registered replay vocabulary (replay stays DOMAIN-OWNED).
80
80
  - `journal_correction_op` _function_ — Append one correction op — envelope + semantic args + the EXACT wires committed.
81
81
  - `segment_anchor` _function_ — The run-independent anchor stamped on every correction op (DEC ccbab9f5 point 5).
82
- - `sidecar_journal_path` _function_ — The db's sidecar journal path (DEC ccbab9f5 point 3: placement is per-workflow,
83
82
 
84
83
  ### `cjm_transcript_correction_core.models`
85
84
 
@@ -8,7 +8,7 @@ A frontend-agnostic core for the transcript correction workflow — the first do
8
8
 
9
9
  - **`cjm_transcript_correction_core.cli`** — The CLI driver — the correction core's first (and currently only) frontend. run <decomp-manifest> corrects the committed spine in the decomp graph DB, pointing the graph worker at that shared DB via load-time config, with optional session resume/reopen; review runs the interactive text-correction loop (the cross-transcriber diff is intra-graph since stage 5).
10
10
  - **`cjm_transcript_correction_core.graph`** — The correction overlay's graph I/O: targeted (scale-shaped) reads of a committed spine via the graph-storage query action, construction of Correction / CorrectionSession nodes + CORRECTS / SUPERSEDES / DERIVED_FROM / REVIEWED edges, the in-core effective-spine projection (layer-0 + applied corrections), and commit through the job queue. Hand-rolled (revolution-1) = direct CR-18 spec material; append-only on layer-0 (never update/delete a Segment).
11
- - **`cjm_transcript_correction_core.journal`**
11
+ - **`cjm_transcript_correction_core.journal`** — Live append-through for the correction verbs — the workflow journal's domain half.
12
12
  - **`cjm_transcript_correction_core.models`** — Overlay data shapes for the transcript-correction workflow: the Correction / CorrectionSession graph nodes + their relation registry, the read view of a committed spine segment, the worklist item, run configuration, and the correction run manifest (proto-bundle that chains decomp -> correction).
13
13
  - **`cjm_transcript_correction_core.pipeline`** — The headless correction workflow: load a decomp run manifest, resolve the shared graph DB, start/resume/reopen a CorrectionSession, recompute the worklist from deterministic signals + persisted review state, run the D14 empty-segment prune (first operation), and record a chainable correction run manifest — with a cheapest-form HITL approval seam.
14
14
  - **`cjm_transcript_correction_core.signals`** — Pure deterministic Tier-1 signal functions (no capability calls): empty-segment detection, bidirectional boundary punctuation/capitalization heuristics, forced-alignment coverage flags, positional cross-transcriber diff, and phonetic + edit-distance variant clustering. The worklist is recomputed from these each session; revolution-1 builds ZERO new capabilities.
@@ -61,7 +61,6 @@ A frontend-agnostic core for the transcript correction workflow — the first do
61
61
  - `correction_replay_handlers` _function_ — The correction core's registered replay vocabulary (replay stays DOMAIN-OWNED).
62
62
  - `journal_correction_op` _function_ — Append one correction op — envelope + semantic args + the EXACT wires committed.
63
63
  - `segment_anchor` _function_ — The run-independent anchor stamped on every correction op (DEC ccbab9f5 point 5).
64
- - `sidecar_journal_path` _function_ — The db's sidecar journal path (DEC ccbab9f5 point 3: placement is per-workflow,
65
64
 
66
65
  ### `cjm_transcript_correction_core.models`
67
66
 
@@ -16,17 +16,6 @@ from cjm_context_graph_primitives.journal import append_op
16
16
  from cjm_context_graph_primitives.query import NodeQuery
17
17
 
18
18
 
19
- def sidecar_journal_path(
20
- db_path: str, # The workflow graph db path (e.g. .../context_graph.db)
21
- ) -> str: # The sidecar write-journal path next to it (.../context_graph.writes.jsonl)
22
- """The db's sidecar journal path (DEC ccbab9f5 point 3: placement is per-workflow,
23
- NEXT TO the db it is the source of truth for). Derived, never configured — one
24
- less ambient default (the explicit-db-path guardrail extended to the journal)."""
25
- if db_path.endswith(".db"):
26
- return db_path[: -len(".db")] + ".writes.jsonl"
27
- return db_path + ".writes.jsonl"
28
-
29
-
30
19
  async def segment_anchor(
31
20
  queue: Any, # Started job queue
32
21
  graph_id: str, # Graph-storage capability id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjm-transcript-correction-core
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A frontend-agnostic core for the transcript correction workflow — the first downstream graph-extension core; composes the graph-storage capability worker into a headless pipeline that applies unified, non-destructive corrections (text, punctuation, segmentation) as a supersede-able overlay on a committed decomposition spine, recomputes the review worklist from deterministic signals, and exposes a CLI as its first driver.
5
5
  Author-email: "Christian J. Mills" <9126128+cj-mills@users.noreply.github.com>
6
6
  License: Apache-2.0
@@ -12,7 +12,7 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: cjm_substrate>=0.0.51
14
14
  Requires-Dist: cjm_context_graph_primitives>=0.0.14
15
- Requires-Dist: cjm-context-graph-layer>=0.0.8
15
+ Requires-Dist: cjm-context-graph-layer>=0.0.10
16
16
  Requires-Dist: cjm-transcript-graph-schema>=0.0.7
17
17
  Dynamic: license-file
18
18
 
@@ -26,7 +26,7 @@ A frontend-agnostic core for the transcript correction workflow — the first do
26
26
 
27
27
  - **`cjm_transcript_correction_core.cli`** — The CLI driver — the correction core's first (and currently only) frontend. run <decomp-manifest> corrects the committed spine in the decomp graph DB, pointing the graph worker at that shared DB via load-time config, with optional session resume/reopen; review runs the interactive text-correction loop (the cross-transcriber diff is intra-graph since stage 5).
28
28
  - **`cjm_transcript_correction_core.graph`** — The correction overlay's graph I/O: targeted (scale-shaped) reads of a committed spine via the graph-storage query action, construction of Correction / CorrectionSession nodes + CORRECTS / SUPERSEDES / DERIVED_FROM / REVIEWED edges, the in-core effective-spine projection (layer-0 + applied corrections), and commit through the job queue. Hand-rolled (revolution-1) = direct CR-18 spec material; append-only on layer-0 (never update/delete a Segment).
29
- - **`cjm_transcript_correction_core.journal`**
29
+ - **`cjm_transcript_correction_core.journal`** — Live append-through for the correction verbs — the workflow journal's domain half.
30
30
  - **`cjm_transcript_correction_core.models`** — Overlay data shapes for the transcript-correction workflow: the Correction / CorrectionSession graph nodes + their relation registry, the read view of a committed spine segment, the worklist item, run configuration, and the correction run manifest (proto-bundle that chains decomp -> correction).
31
31
  - **`cjm_transcript_correction_core.pipeline`** — The headless correction workflow: load a decomp run manifest, resolve the shared graph DB, start/resume/reopen a CorrectionSession, recompute the worklist from deterministic signals + persisted review state, run the D14 empty-segment prune (first operation), and record a chainable correction run manifest — with a cheapest-form HITL approval seam.
32
32
  - **`cjm_transcript_correction_core.signals`** — Pure deterministic Tier-1 signal functions (no capability calls): empty-segment detection, bidirectional boundary punctuation/capitalization heuristics, forced-alignment coverage flags, positional cross-transcriber diff, and phonetic + edit-distance variant clustering. The worklist is recomputed from these each session; revolution-1 builds ZERO new capabilities.
@@ -79,7 +79,6 @@ A frontend-agnostic core for the transcript correction workflow — the first do
79
79
  - `correction_replay_handlers` _function_ — The correction core's registered replay vocabulary (replay stays DOMAIN-OWNED).
80
80
  - `journal_correction_op` _function_ — Append one correction op — envelope + semantic args + the EXACT wires committed.
81
81
  - `segment_anchor` _function_ — The run-independent anchor stamped on every correction op (DEC ccbab9f5 point 5).
82
- - `sidecar_journal_path` _function_ — The db's sidecar journal path (DEC ccbab9f5 point 3: placement is per-workflow,
83
82
 
84
83
  ### `cjm_transcript_correction_core.models`
85
84
 
@@ -1,4 +1,4 @@
1
1
  cjm_substrate>=0.0.51
2
2
  cjm_context_graph_primitives>=0.0.14
3
- cjm-context-graph-layer>=0.0.8
3
+ cjm-context-graph-layer>=0.0.10
4
4
  cjm-transcript-graph-schema>=0.0.7
@@ -14,7 +14,7 @@ classifiers = [
14
14
  "Programming Language :: Python :: 3",
15
15
  "Programming Language :: Python :: 3 :: Only",
16
16
  ]
17
- dependencies = ['cjm_substrate>=0.0.51', 'cjm_context_graph_primitives>=0.0.14', 'cjm-context-graph-layer>=0.0.8', 'cjm-transcript-graph-schema>=0.0.7']
17
+ dependencies = ['cjm_substrate>=0.0.51', 'cjm_context_graph_primitives>=0.0.14', 'cjm-context-graph-layer>=0.0.10', 'cjm-transcript-graph-schema>=0.0.7']
18
18
 
19
19
  [project.urls]
20
20
  Repository = "https://github.com/cj-mills/cjm-transcript-correction-core"
@@ -1,8 +1,8 @@
1
1
  """The correction journal: sidecar path + op envelope (pure half; replay is e2e-proven)."""
2
2
 
3
3
  from cjm_context_graph_primitives.journal import read_journal
4
- from cjm_transcript_correction_core.journal import (correction_replay_handlers,
5
- journal_correction_op, sidecar_journal_path)
4
+ from cjm_transcript_correction_core.journal import correction_replay_handlers, journal_correction_op
5
+ from cjm_context_graph_layer.journal import sidecar_journal_path
6
6
 
7
7
 
8
8
  def test_sidecar_journal_path():