The content repository uses the content_item's parent_id to build the hierarchy.
Packages built on base acs_objects use and/or abuse context_id inconsistently in regard to using it to maintain a phsyical (as opposed to permissions inheritence) hierarchy.